mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-04 02:54:00 +00:00
Undefined scope comment
This commit is contained in:
parent
001608914b
commit
d246a5f58b
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user