Skip to content

Commit

Permalink
hide tasks in TaskExecution
Browse files Browse the repository at this point in the history
  • Loading branch information
jrieken committed Feb 1, 2021
1 parent 46cf57b commit 82c629e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/vs/workbench/api/common/extHostTask.ts
Original file line number Diff line number Diff line change
Expand Up @@ -341,15 +341,18 @@ export namespace TaskFilterDTO {

class TaskExecutionImpl implements vscode.TaskExecution {

constructor(private readonly _tasks: ExtHostTaskBase, readonly _id: string, private readonly _task: vscode.Task) {
readonly #tasks: ExtHostTaskBase;

constructor(tasks: ExtHostTaskBase, readonly _id: string, private readonly _task: vscode.Task) {
this.#tasks = tasks;
}

public get task(): vscode.Task {
return this._task;
}

public terminate(): void {
this._tasks.terminateTask(this);
this.#tasks.terminateTask(this);
}

public fireDidStartProcess(value: tasks.TaskProcessStartedDTO): void {
Expand Down

0 comments on commit 82c629e

Please sign in to comment.