Always capture command in callback

This commit is contained in:
Dirk Baeumer
2025-05-19 20:53:57 +02:00
parent 1b196d8046
commit 155d317f52

View File

@@ -241,13 +241,14 @@ export class SingleTsServer extends Disposable implements ITypeScriptServer {
onError: reject,
queuingStartTime: Date.now(),
isAsync: executeInfo.isAsync,
traceId: request.arguments.$traceId,
command: request.command
command: request.command,
traceId: request.arguments.$traceId
} : {
onSuccess: resolve as () => ServerResponse.Response<Proto.Response> | undefined,
onError: reject,
queuingStartTime: Date.now(),
isAsync: executeInfo.isAsync
isAsync: executeInfo.isAsync,
command: request.command,
};
this._callbacks.add(request.seq, item, executeInfo.isAsync);
if (executeInfo.token) {