summaryrefslogtreecommitdiff
path: root/script/config/loader.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script/config/loader.lua')
-rw-r--r--script/config/loader.lua16
1 files changed, 8 insertions, 8 deletions
diff --git a/script/config/loader.lua b/script/config/loader.lua
index 072a9c71..69daf417 100644
--- a/script/config/loader.lua
+++ b/script/config/loader.lua
@@ -16,8 +16,8 @@ end
local m = {}
-function m.loadRCConfig(filename)
- local path = workspace.getAbsolutePath(filename)
+function m.loadRCConfig(uri, filename)
+ local path = workspace.getAbsolutePath(uri, filename)
if not path then
m.lastRCConfig = nil
return nil
@@ -75,27 +75,27 @@ function m.loadLocalConfig(filename)
end
---@async
-function m.loadClientConfig()
+function m.loadClientConfig(uri)
local configs = proto.awaitRequest('workspace/configuration', {
items = {
{
- scopeUri = workspace.rootUri,
+ scopeUri = uri,
section = 'Lua',
},
{
- scopeUri = workspace.rootUri,
+ scopeUri = uri,
section = 'files.associations',
},
{
- scopeUri = workspace.rootUri,
+ scopeUri = uri,
section = 'files.exclude',
},
{
- scopeUri = workspace.rootUri,
+ scopeUri = uri,
section = 'editor.semanticHighlighting.enabled',
},
{
- scopeUri = workspace.rootUri,
+ scopeUri = uri,
section = 'editor.acceptSuggestionOnEnter',
},
},