mirror of
https://github.com/microsoft/vscode.git
synced 2026-08-30 18:46:26 +01:00
better fix
This commit is contained in:
@@ -28,9 +28,10 @@ export class RunAutomaticTasks extends Disposable implements IWorkbenchContribut
|
||||
@IWorkspaceTrustManagementService private readonly _workspaceTrustManagementService: IWorkspaceTrustManagementService,
|
||||
@ILogService private readonly _logService: ILogService) {
|
||||
super();
|
||||
this._taskService.onDidReconnectToTasks((() => this._tryRunTasks()));
|
||||
if (this._taskService.isReconnected) {
|
||||
this._tryRunTasks();
|
||||
} else {
|
||||
this._register(Event.once(this._taskService.onDidReconnectToTasks)(() => this._tryRunTasks()));
|
||||
}
|
||||
this._register(this._workspaceTrustManagementService.onDidChangeTrust(async trusted => {
|
||||
if (trusted) {
|
||||
|
||||
Reference in New Issue
Block a user