Skip to content

Commit

Permalink
Fix runtime warning on configuration loading
Browse files Browse the repository at this point in the history
Avoid an warning message as:

[exthost] [warning] [redhat.vscode-yaml] Accessing a resource scoped configuration without providing a resource is not expected. To get the effective value for '[yaml]', provide the URI of a resource or 'null' for any resource.
  • Loading branch information
ssbarnea authored and evidolob committed Feb 22, 2021
1 parent 77c8e7b commit df619bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,12 @@ export const getDocUri = (p: string): vscode.Uri => {
};

export const updateSettings = (setting: string, value: unknown): Thenable<void> => {
const yamlConfiguration = vscode.workspace.getConfiguration('yaml');
const yamlConfiguration = vscode.workspace.getConfiguration('yaml', null);
return yamlConfiguration.update(setting, value, false);
};

export const resetSettings = (setting: string, value: unknown): Thenable<void> => {
const yamlConfiguration = vscode.workspace.getConfiguration('yaml');
const yamlConfiguration = vscode.workspace.getConfiguration('yaml', null);
return yamlConfiguration.update(setting, value, false);
};

Expand Down

0 comments on commit df619bf

Please sign in to comment.