From ea59a710ca419d66063592b9efd97b0e361676b5 Mon Sep 17 00:00:00 2001 From: Romain Marcadier-Muller Date: Mon, 21 Jan 2019 16:22:36 -0800 Subject: [PATCH] Fix the "tsc watch" task when references are used Moves the `--watch` option at the end of the `tsc` invocation, as `--build` is required to be the first option on the call. Fixes #66875 --- extensions/typescript-language-features/src/features/task.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extensions/typescript-language-features/src/features/task.ts b/extensions/typescript-language-features/src/features/task.ts index c71f3c4435d..a084fc9e495 100644 --- a/extensions/typescript-language-features/src/features/task.ts +++ b/extensions/typescript-language-features/src/features/task.ts @@ -197,7 +197,7 @@ class TscTaskProvider implements vscode.TaskProvider { project.workspaceFolder || vscode.TaskScope.Workspace, localize('buildAndWatchTscLabel', 'watch - {0}', label), 'tsc', - new vscode.ShellExecution(command, ['--watch', ...args]), + new vscode.ShellExecution(command, [...args, '--watch']), '$tsc-watch'); watchTask.group = vscode.TaskGroup.Build; watchTask.isBackground = true; @@ -272,4 +272,4 @@ export default class TypeScriptTaskProviderManager { this.taskProviderSub = vscode.workspace.registerTaskProvider('typescript', new TscTaskProvider(this.client)); } } -} \ No newline at end of file +}