We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8316ba1 commit feaf34bCopy full SHA for feaf34b
src/vs/workbench/contrib/tasks/browser/abstractTaskService.ts
@@ -337,7 +337,11 @@ export abstract class AbstractTaskService extends Disposable implements ITaskSer
337
this._waitForSupportedExecutions = new Promise(resolve => {
338
once(this._onDidRegisterSupportedExecutions.event)(() => resolve());
339
});
340
- this._register(this.onDidReconnectToTerminals(async () => await this._attemptTaskReconnection()));
+ this._register(this.onDidReconnectToTerminals(async () => {
341
+ await this._waitForSupportedExecutions;
342
+ await this._attemptTaskReconnection();
343
+ }));
344
+
345
this._register(this._onDidRegisterSupportedExecutions.event(async () => await this._attemptTaskReconnection()));
346
this._upgrade();
347
}
0 commit comments