From 1a5255eb7d2711da411b40c9702d27e08bcb06cb Mon Sep 17 00:00:00 2001 From: Alvaro Sanchez-Leon Date: Mon, 1 Feb 2021 12:47:55 -0500 Subject: [PATCH] Align TaskScope with API object Align the TaskScope enum definition with vscode see issue [1] and corresponding schemas for Theia [2] and vscode [3] [1] https://github.com/eclipse-theia/theia/issues/7931 [2] https://github.com/eclipse-theia/theia/blob/2aa2fa1ab091ec36ef851c4e364b322301cddb40/packages/plugin/src/theia.d.ts#L8637 [3] https://github.com/microsoft/vscode/blob/50f907f0ba9b0c799a7c1d2f28a625bf30041636/src/vs/vscode.d.ts#L5923 Signed-off-by: Alvaro Sanchez-Leon --- packages/task/src/common/task-protocol.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/task/src/common/task-protocol.ts b/packages/task/src/common/task-protocol.ts index 5136642267182..e2b3cacc30e3e 100644 --- a/packages/task/src/common/task-protocol.ts +++ b/packages/task/src/common/task-protocol.ts @@ -149,8 +149,8 @@ export namespace TaskCustomization { } export enum TaskScope { - Workspace, - Global + Global = 1, + Workspace = 2 } export type TaskConfigurationScope = string | TaskScope.Workspace | TaskScope.Global;