summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--server/src/method/initialize.lua2
-rw-r--r--server/src/vm/library.lua1
-rw-r--r--server/test/completion/init.lua3
3 files changed, 5 insertions, 1 deletions
diff --git a/server/src/method/initialize.lua b/server/src/method/initialize.lua
index e236617c..ba183c5e 100644
--- a/server/src/method/initialize.lua
+++ b/server/src/method/initialize.lua
@@ -22,7 +22,7 @@ return function (lsp)
-- 支持“重命名”
renameProvider = true,
-- 支持“大纲”
- --documentSymbolProvider = true,
+ documentSymbolProvider = true,
-- 支持“签名帮助”
signatureHelpProvider = {
triggerCharacters = { '(', ',' },
diff --git a/server/src/vm/library.lua b/server/src/vm/library.lua
index 8f034229..167ac726 100644
--- a/server/src/vm/library.lua
+++ b/server/src/vm/library.lua
@@ -54,6 +54,7 @@ function buildLibValue(lib)
for fName, fLib in pairs(lib.child) do
local fValue = buildLibValue(fLib)
value:rawSet(fName, fValue)
+ value:addInfo('set child', sourceMgr.dummy(), fName)
end
end
diff --git a/server/test/completion/init.lua b/server/test/completion/init.lua
index 59189921..fec6f105 100644
--- a/server/test/completion/init.lua
+++ b/server/test/completion/init.lua
@@ -330,6 +330,9 @@ TEST [[
TEST 'local s = "a:@"' (nil)
+TEST 'debug.@'
+(EXISTS)
+
TEST [[
local xxxx = {
xxyy = 1,