diff --git a/src/languageserver/handlers/settingsHandlers.ts b/src/languageserver/handlers/settingsHandlers.ts index d72a42e2..88acc1b7 100644 --- a/src/languageserver/handlers/settingsHandlers.ts +++ b/src/languageserver/handlers/settingsHandlers.ts @@ -40,7 +40,7 @@ export class SettingsHandler { const config = await this.connection.workspace.getConfiguration([ { section: 'yaml' }, { section: 'http' }, - { section: '[yaml]' }, + { section: '[yaml]', scopeUri: 'file:///' }, { section: 'editor' }, { section: 'files' }, ]); diff --git a/test/settingsHandlers.test.ts b/test/settingsHandlers.test.ts index 1438aad3..e97f6cae 100644 --- a/test/settingsHandlers.test.ts +++ b/test/settingsHandlers.test.ts @@ -369,7 +369,7 @@ describe('Settings Handlers Tests', () => { expect(workspaceStub.getConfiguration).calledOnceWith([ { section: 'yaml' }, { section: 'http' }, - { section: '[yaml]' }, + { section: '[yaml]', scopeUri: 'file:///' }, { section: 'editor' }, { section: 'files' }, ]); @@ -409,7 +409,7 @@ describe('Settings Handlers Tests', () => { expect(workspaceStub.getConfiguration).calledOnceWith([ { section: 'yaml' }, { section: 'http' }, - { section: '[yaml]' }, + { section: '[yaml]', scopeUri: 'file:///' }, { section: 'editor' }, { section: 'files' }, ]);