summaryrefslogtreecommitdiff
path: root/server/src/core
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2018-12-28 18:37:04 +0800
committer最萌小汐 <sumneko@hotmail.com>2018-12-28 18:37:04 +0800
commitc9a8662d1e6bbae1fafada2a3b19ed11e8931ee2 (patch)
treedf24fe32bbf64e200b8b61caf2095a19e4d85ea4 /server/src/core
parent4e63ce41147f68b25282c375b2c067c2663e9aaa (diff)
downloadlua-language-server-c9a8662d1e6bbae1fafada2a3b19ed11e8931ee2.zip
神TM Function和Method的图标是一样的,只能换个图标了
Diffstat (limited to 'server/src/core')
-rw-r--r--server/src/core/document_symbol.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/src/core/document_symbol.lua b/server/src/core/document_symbol.lua
index 3902f8a3..75035e92 100644
--- a/server/src/core/document_symbol.lua
+++ b/server/src/core/document_symbol.lua
@@ -58,7 +58,7 @@ local function buildFunction(vm, func)
range = { math.min(source.start, declarat.start), source.finish }
selectionRange = { declarat.start, declarat.finish }
if var.parent and var.parent.value and not var.parent.value.ENV then
- kind = SymbolKind.Method
+ kind = SymbolKind.Field
end
else
range = { source.start, source.finish }