Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'editors/code/src/tasks.ts')
| -rw-r--r-- | editors/code/src/tasks.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/editors/code/src/tasks.ts b/editors/code/src/tasks.ts index 02b4d34ff6..99edd9ae9d 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, |