summaryrefslogtreecommitdiff
path: root/test/crossfile/completion.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-06-23 16:12:29 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-06-23 16:12:29 +0800
commita782eb79202e29326b96fab7cd7591ba881a7778 (patch)
tree01e2e9d8369b154067b0671b533bf84b5302619f /test/crossfile/completion.lua
parent3c4203ac592c00fa8f3072faf77e1966149a7860 (diff)
downloadlua-language-server-a782eb79202e29326b96fab7cd7591ba881a7778.zip
自动完成显示代码块参考
Diffstat (limited to 'test/crossfile/completion.lua')
-rw-r--r--test/crossfile/completion.lua11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/crossfile/completion.lua b/test/crossfile/completion.lua
index 14744430..26579de2 100644
--- a/test/crossfile/completion.lua
+++ b/test/crossfile/completion.lua
@@ -92,6 +92,17 @@ function TEST(data)
local expect = data.completion
if expect then
assert(result)
+ for _, item in ipairs(result) do
+ item.data = nil
+ end
+ for _, item in ipairs(expect) do
+ if item.documentation then
+ item.documentation = {
+ kind = 'markdown',
+ value = item.documentation,
+ }
+ end
+ end
assert(eq(expect, result))
else
assert(result == nil)