提交 3a54e322 编写于 作者: M Matt Bierner

Update TypeScript to use new task API

Fixes #35371
上级 a763c7a0
......@@ -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}"`),
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册