Undefined scope comment
This commit is contained in:
@@ -111,6 +111,8 @@ export async function buildCargoTask(
|
|||||||
|
|
||||||
return new vscode.Task(
|
return new vscode.Task(
|
||||||
definition,
|
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,
|
scope ?? vscode.TaskScope.Workspace,
|
||||||
name,
|
name,
|
||||||
TASK_SOURCE,
|
TASK_SOURCE,
|
||||||
|
|||||||
Reference in New Issue
Block a user