diff options
Diffstat (limited to 'src/vs/workbench/contrib/tasks/common/taskConfiguration.ts')
-rw-r--r-- | src/vs/workbench/contrib/tasks/common/taskConfiguration.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/vs/workbench/contrib/tasks/common/taskConfiguration.ts b/src/vs/workbench/contrib/tasks/common/taskConfiguration.ts index 7ab00229e89..9c6f0ba9e34 100644 --- a/src/vs/workbench/contrib/tasks/common/taskConfiguration.ts +++ b/src/vs/workbench/contrib/tasks/common/taskConfiguration.ts @@ -282,7 +282,7 @@ export interface CommandProperties extends BaseCommandProperties { export interface GroupKind { kind?: string; - isDefault?: boolean; + isDefault?: boolean | string; } export interface ConfigurationProperties { @@ -1245,7 +1245,7 @@ export namespace GroupKind { return { _id: external, isDefault: false }; } else if (Types.isString(external.kind) && Tasks.TaskGroup.is(external.kind)) { let group: string = external.kind; - let isDefault: boolean = !!external.isDefault; + let isDefault: boolean | string = Types.isUndefined(external.isDefault) ? false : external.isDefault; return { _id: group, isDefault }; } @@ -1260,7 +1260,7 @@ export namespace GroupKind { } return { kind: group._id, - isDefault: group.isDefault + isDefault: group.isDefault, }; } } |