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:
Matt Bierner
2020-01-23 10:01:06 -08:00
committed by GitHub
parent dcb5998b75
commit ead3e2373d

View File

@@ -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;
}