summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-10-20 16:03:45 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-10-20 16:03:45 +0800
commit12ca56af1b403b1473472d547c377493780e7844 (patch)
tree83aa9130bed21be26fd6c2098c3c3865f1175459
parent6897e265fef6b0a43f5f2a6355fd0ef300b72692 (diff)
downloadlua-language-server-12ca56af1b403b1473472d547c377493780e7844.zip
fix quickfix
don't set into override scope
-rw-r--r--.vscode/launch.json3
-rw-r--r--script/config/config.lua2
2 files changed, 4 insertions, 1 deletions
diff --git a/.vscode/launch.json b/.vscode/launch.json
index b80e7f49..2b077bee 100644
--- a/.vscode/launch.json
+++ b/.vscode/launch.json
@@ -36,6 +36,9 @@
]
],
"windows": {
+ "name": "🍄attach",
+ "type": "lua",
+ "request": "attach",
"sourceMaps": [
[
"script\\*",
diff --git a/script/config/config.lua b/script/config/config.lua
index 70e83fc8..b10b0a6d 100644
--- a/script/config/config.lua
+++ b/script/config/config.lua
@@ -76,7 +76,7 @@ end
function m.set(uri, key, value)
local unit = template[key]
assert(unit, 'unknown key: ' .. key)
- local scp = getScope(uri)
+ local scp = getScope(uri, key)
local oldValue = m.get(uri, key)
m.setByScope(scp, key, value)
local newValue = m.get(uri, key)