summaryrefslogtreecommitdiff
path: root/script/provider
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-09-06 16:23:24 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-09-06 16:23:24 +0800
commit7047393031801c91c8d0cf78a77c91e5a6f64114 (patch)
treeba35a333e65183b4b04ec412b7722b76bec2eadf /script/provider
parentf7f0929f8b7c8997a6e390f8e738b9634efc5f29 (diff)
downloadlua-language-server-7047393031801c91c8d0cf78a77c91e5a6f64114.zip
improve document-symbol
Diffstat (limited to 'script/provider')
-rw-r--r--script/provider/provider.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/provider/provider.lua b/script/provider/provider.lua
index 2f1451b0..a312bf1e 100644
--- a/script/provider/provider.lua
+++ b/script/provider/provider.lua
@@ -785,7 +785,7 @@ m.register 'textDocument/documentSymbol' {
symbol.selectionRange[2]
)
if symbol.name == '' then
- symbol.name = lang.script.SYMBOL_ANONYMOUS
+ symbol.name = ' '
end
symbol.valueRange = nil
if symbol.children then