From f8d571f5d45c57b3e6455e0c2669695dfe9d45a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20M=C3=A4der?= Date: Tue, 27 Jul 2021 15:09:57 +0200 Subject: [PATCH] Renamed event MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Thomas Mäder --- packages/plugin-ext/src/main/browser/tasks-main.ts | 2 +- packages/task/src/browser/provided-task-configurations.ts | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/plugin-ext/src/main/browser/tasks-main.ts b/packages/plugin-ext/src/main/browser/tasks-main.ts index 58bffd0a6359f..5ac42c7cc7e89 100644 --- a/packages/plugin-ext/src/main/browser/tasks-main.ts +++ b/packages/plugin-ext/src/main/browser/tasks-main.ts @@ -73,7 +73,7 @@ export class TasksMainImpl implements TasksMain, Disposable { this.taskService = container.get(TaskService); this.taskDefinitionRegistry = container.get(TaskDefinitionRegistry); - this.toDispose.push(container.get(ProvidedTaskConfigurations).onStartUserInteraction((event: TaskStartUserInteractionEvent) => { + this.toDispose.push(container.get(ProvidedTaskConfigurations).onDidStartUserInteraction((event: TaskStartUserInteractionEvent) => { // we must wait with further processing until the plugin side has had time to clean up its garbage event.waitUntil(this.proxy.$onDidStartUserInteraction()); })); diff --git a/packages/task/src/browser/provided-task-configurations.ts b/packages/task/src/browser/provided-task-configurations.ts index b5a1743760876..e1df4e232e8cb 100644 --- a/packages/task/src/browser/provided-task-configurations.ts +++ b/packages/task/src/browser/provided-task-configurations.ts @@ -44,18 +44,18 @@ export class ProvidedTaskConfigurations { @inject(TaskDefinitionRegistry) protected readonly taskDefinitionRegistry: TaskDefinitionRegistry; - readonly onStartUserInteractionEmitter: Emitter = new Emitter(); + readonly onDidStartUserInteractionEmitter: Emitter = new Emitter(); private currentToken: number = 0; private nextToken = 1; - get onStartUserInteraction(): Event { - return this.onStartUserInteractionEmitter.event; + get onDidStartUserInteraction(): Event { + return this.onDidStartUserInteractionEmitter.event; } startUserAction(): Promise { const token = this.nextToken++; - return WaitUntilEvent.fire(this.onStartUserInteractionEmitter, { token: token }).then(() => token); + return WaitUntilEvent.fire(this.onDidStartUserInteractionEmitter, { token: token }).then(() => token); } /** returns a list of provided tasks */