From d246a5f58b825d5113b75a68e6e424035243dcad Mon Sep 17 00:00:00 2001 From: Oliver Cooper Date: Thu, 9 Sep 2021 08:50:24 +1200 Subject: [PATCH] Undefined scope comment --- editors/code/src/tasks.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/editors/code/src/tasks.ts b/editors/code/src/tasks.ts index 02b4d34ff69..99edd9ae9da 100644 --- a/editors/code/src/tasks.ts +++ b/editors/code/src/tasks.ts @@ -111,6 +111,8 @@ export async function buildCargoTask( return new vscode.Task( definition, + // scope can sometimes be undefined. in these situations we default to the workspace taskscope as + // recommended by the official docs: https://code.visualstudio.com/api/extension-guides/task-provider#task-provider) scope ?? vscode.TaskScope.Workspace, name, TASK_SOURCE,