mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 12:29:21 +00:00
Undefined scope comment
This commit is contained in:
parent
001608914b
commit
d246a5f58b
1 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue