Skip to content

Commit 2c76aee

Browse files
committed
Fix task delete debt
Part of microsoft#96022
1 parent 03be1bb commit 2c76aee

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/vs/workbench/contrib/tasks/browser/taskQuickPick.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
import * as nls from 'vs/nls';
77
import * as Objects from 'vs/base/common/objects';
8-
import { Task, ContributedTask, CustomTask, ConfiguringTask, TaskSorter } from 'vs/workbench/contrib/tasks/common/tasks';
8+
import { Task, ContributedTask, CustomTask, ConfiguringTask, TaskSorter, KeyedTaskIdentifier } from 'vs/workbench/contrib/tasks/common/tasks';
99
import { IWorkspace, IWorkspaceFolder } from 'vs/platform/workspace/common/workspace';
1010
import * as Types from 'vs/base/common/types';
1111
import { ITaskService, WorkspaceFolderTaskResult } from 'vs/workbench/contrib/tasks/common/taskService';
@@ -52,7 +52,7 @@ export class TaskQuickPick extends Disposable {
5252
}
5353
if (ConfiguringTask.is(task)) {
5454
let label: string = task.configures.type;
55-
const configures = Objects.deepClone(task.configures);
55+
const configures: Partial<KeyedTaskIdentifier> = Objects.deepClone(task.configures);
5656
delete configures['_key'];
5757
delete configures['type'];
5858
Object.keys(configures).forEach(key => label += `: ${configures[key]}`);

src/vs/workbench/contrib/tasks/common/taskConfiguration.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1197,7 +1197,7 @@ namespace ProblemMatcherConverter {
11971197
if (global) {
11981198
return Objects.deepClone(global);
11991199
}
1200-
let localProblemMatcher = context.namedProblemMatchers[variableName];
1200+
let localProblemMatcher: ProblemMatcher & Partial<NamedProblemMatcher> = context.namedProblemMatchers[variableName];
12011201
if (localProblemMatcher) {
12021202
localProblemMatcher = Objects.deepClone(localProblemMatcher);
12031203
// remove the name

0 commit comments

Comments
 (0)