diff options
Diffstat (limited to 'server')
-rw-r--r-- | server/test/document_symbol/init.lua | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/server/test/document_symbol/init.lua b/server/test/document_symbol/init.lua index 397893e6..89c18e35 100644 --- a/server/test/document_symbol/init.lua +++ b/server/test/document_symbol/init.lua @@ -320,6 +320,22 @@ local t = { } } +TEST[[ +local function g() +end + +g = 1 +]]{ + [1] = { + name = 'g', + detail = 'function g()', + kind = SymbolKind.Function, + range = {1, 22}, + selectionRange = {16, 16}, + children = EXISTS, + } +} + -- 临时 local fs = require 'bee.filesystem' local function testIfExit(path) |