Skip to content

Commit

Permalink
Refactor extHostTask (#80970)
Browse files Browse the repository at this point in the history
so that most of it is in common
  • Loading branch information
alexr00 authored Sep 16, 2019
1 parent dac9343 commit 1c01ce8
Show file tree
Hide file tree
Showing 7 changed files with 743 additions and 605 deletions.
1 change: 1 addition & 0 deletions src/vs/workbench/api/browser/mainThreadTask.ts
Original file line number Diff line number Diff line change
Expand Up @@ -422,6 +422,7 @@ export class MainThreadTask implements MainThreadTaskShape {
this._proxy.$OnDidEndTask(TaskExecutionDTO.from(task.getTaskExecution()));
}
});
this._taskService.setJsonTasksSupported(Promise.resolve(this._proxy.$jsonTasksSupported()));
}

public dispose(): void {
Expand Down
1 change: 1 addition & 0 deletions src/vs/workbench/api/common/extHost.protocol.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1204,6 +1204,7 @@ export interface ExtHostTaskShape {
$OnDidEndTask(execution: tasks.TaskExecutionDTO): void;
$resolveVariables(workspaceFolder: UriComponents, toResolve: { process?: { name: string; cwd?: string }, variables: string[] }): Promise<{ process?: string; variables: { [key: string]: string } }>;
$getDefaultShellAndArgs(): Thenable<{ shell: string, args: string[] | string | undefined }>;
$jsonTasksSupported(): Thenable<boolean>;
}

export interface IBreakpointDto {
Expand Down
Loading

0 comments on commit 1c01ce8

Please sign in to comment.