未验证 提交 43485ec7 编写于 作者: A Alex Ross

Fix configure action for recent tasks without a tasks.json

Fixes #125862
上级 f8dfa344
......@@ -215,7 +215,13 @@ export class TaskQuickPick extends Disposable {
if (ContributedTask.is(task)) {
this.taskService.customize(task, undefined, true);
} else if (CustomTask.is(task) || ConfiguringTask.is(task)) {
if (!(await this.taskService.openConfig(task))) {
let canOpenConfig: boolean = false;
try {
canOpenConfig = await this.taskService.openConfig(task);
} catch (e) {
// do nothing.
}
if (!canOpenConfig) {
this.taskService.customize(task, undefined, true);
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册