Skip to content

Commit 2da853a

Browse files
committed
Fixes 36588: TypeScript build task fails when path to tsconfig.json file has spaces
1 parent b93b184 commit 2da853a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

extensions/typescript/src/features/taskProvider.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ class TscTaskProvider implements vscode.TaskProvider {
186186
project.workspaceFolder || vscode.TaskScope.Workspace,
187187
localize('buildTscLabel', 'build - {0}', label),
188188
'tsc',
189-
new vscode.ShellExecution(`${command} -p "${project.path}"`),
189+
new vscode.ShellExecution(command, ['-p', project.path]),
190190
'$tsc');
191191
buildTask.group = vscode.TaskGroup.Build;
192192
buildTask.isBackground = false;
@@ -200,7 +200,7 @@ class TscTaskProvider implements vscode.TaskProvider {
200200
project.workspaceFolder || vscode.TaskScope.Workspace,
201201
localize('buildAndWatchTscLabel', 'watch - {0}', label),
202202
'tsc',
203-
new vscode.ShellExecution(`${command} --watch -p "${project.path}"`),
203+
new vscode.ShellExecution(command, ['--watch', '-p', project.path]),
204204
'$tsc-watch');
205205
watchTask.group = vscode.TaskGroup.Build;
206206
watchTask.isBackground = true;

0 commit comments

Comments
 (0)