File tree Expand file tree Collapse file tree
extensions/typescript/src/features Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -168,6 +168,7 @@ class TscTaskProvider implements vscode.TaskProvider {
168168 const buildTaskidentifier : TypeScriptTaskDefinition = { type : 'typescript' , tsconfig : label } ;
169169 const buildTask = new vscode . Task (
170170 buildTaskidentifier ,
171+ project . workspaceFolder || vscode . TaskScope . Workspace ,
171172 localize ( 'buildTscLabel' , 'build - {0}' , label ) ,
172173 'tsc' ,
173174 new vscode . ShellExecution ( `${ command } -p "${ project . path } "` ) ,
@@ -181,6 +182,7 @@ class TscTaskProvider implements vscode.TaskProvider {
181182 const watchTaskidentifier : TypeScriptTaskDefinition = { type : 'typescript' , tsconfig : label , option : 'watch' } ;
182183 const watchTask = new vscode . Task (
183184 watchTaskidentifier ,
185+ project . workspaceFolder || vscode . TaskScope . Workspace ,
184186 localize ( 'buildAndWatchTscLabel' , 'watch - {0}' , label ) ,
185187 'tsc' ,
186188 new vscode . ShellExecution ( `${ command } --watch -p "${ project . path } "` ) ,
You can’t perform that action at this time.
0 commit comments