Skip to content

Commit 3a54e32

Browse files
committed
Update TypeScript to use new task API
Fixes microsoft#35371
1 parent a763c7a commit 3a54e32

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

extensions/typescript/src/features/taskProvider.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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}"`),

0 commit comments

Comments
 (0)