mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-23 01:58:53 +01:00
Correctly convert null to a resource scope (#89131)
For #87768 I believe that calling `vscode.workspace.getConfiguration('section', null)` is supposed to create a specific config accessor that works for any resource. Currently it behaves the same as if you omitted the second param
This commit is contained in:
@@ -85,6 +85,9 @@ function scopeToOverrides(scope: vscode.ConfigurationScope | undefined | null):
|
||||
if (isWorkspaceFolder(scope)) {
|
||||
return { resource: scope.uri };
|
||||
}
|
||||
if (scope === null) {
|
||||
return { resource: null };
|
||||
}
|
||||
return undefined;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user