Update TypeScript to use new task API

Fixes #35371
This commit is contained in:
Matt Bierner
2017-10-13 14:19:46 -07:00
parent a763c7a0cb
commit 3a54e32291

View File

@@ -168,6 +168,7 @@ class TscTaskProvider implements vscode.TaskProvider {
const buildTaskidentifier: TypeScriptTaskDefinition = { type: 'typescript', tsconfig: label };
const buildTask = new vscode.Task(
buildTaskidentifier,
project.workspaceFolder || vscode.TaskScope.Workspace,
localize('buildTscLabel', 'build - {0}', label),
'tsc',
new vscode.ShellExecution(`${command} -p "${project.path}"`),
@@ -181,6 +182,7 @@ class TscTaskProvider implements vscode.TaskProvider {
const watchTaskidentifier: TypeScriptTaskDefinition = { type: 'typescript', tsconfig: label, option: 'watch' };
const watchTask = new vscode.Task(
watchTaskidentifier,
project.workspaceFolder || vscode.TaskScope.Workspace,
localize('buildAndWatchTscLabel', 'watch - {0}', label),
'tsc',
new vscode.ShellExecution(`${command} --watch -p "${project.path}"`),