diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-10-22 11:24:12 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-10-22 11:24:12 +0800 |
commit | 47cfc4608a7f26a0e635ea6b33c3fa3f3fca3883 (patch) | |
tree | 64222932118fed0054dc5b293115dfe6feffb03c /server | |
parent | e9728bdbafa7d93bf1f017ab5835ad84890604fc (diff) | |
download | lua-language-server-47cfc4608a7f26a0e635ea6b33c3fa3f3fca3883.zip |
过测试
Diffstat (limited to 'server')
-rw-r--r-- | server/build_package.lua | 2 | ||||
-rw-r--r-- | server/test/hover/init.lua | 14 |
2 files changed, 8 insertions, 8 deletions
diff --git a/server/build_package.lua b/server/build_package.lua index 91e61445..a1c57467 100644 --- a/server/build_package.lua +++ b/server/build_package.lua @@ -318,7 +318,7 @@ io.save(ROOT:parent_path() / 'package.nls.zh-cn.json', json.encode { ]] .. example.library, ['config.completion.enable'] = '启用自动完成。', ['config.completion.callSnippet'] = '显示函数调用片段。', - ['config.completion.callSnippet.Disable'] = "只显示 `函数名`", + ['config.completion.callSnippet.Disable'] = "只显示 `函数名`。", ['config.completion.callSnippet.Both'] = "显示 `函数名` 与 `调用片段`。", ['config.completion.callSnippet.Replace'] = "只显示 `调用片段`。", ['config.completion.keywordSnippet'] = '显示关键字语法片段', diff --git a/server/test/hover/init.lua b/server/test/hover/init.lua index 3a4c05b1..362ec9ac 100644 --- a/server/test/hover/init.lua +++ b/server/test/hover/init.lua @@ -190,7 +190,7 @@ TEST [[ [=[ function load(chunk: string/function [, chunkname: string [, mode: string [, env: table]]]) -> function - , error_message: string + 2. error_message: string ]=] TEST [[ @@ -456,7 +456,7 @@ TEST[[ [[ function next(table: table [, index: any]) -> key: any - , value: any + 2. value: any ]] TEST[[ @@ -465,7 +465,7 @@ local <?n?> = pairs() [[ function n<next>(table: table [, index: any]) -> key: any - , value: any + 2. value: any ]] TEST[[ @@ -615,7 +615,7 @@ end [[ function f() -> A|B - , C + 2. C ]] TEST [[ @@ -861,7 +861,7 @@ function <?f?>() end [=[ function f() -> key: string - , value: string + 2. value: string ]=] TEST [[ @@ -873,8 +873,8 @@ function <?f?>() end [=[ function f() -> [x: any [ - , y: string] - , z: string] + 2. y: string] + 3. z: string] ]=] TEST [[ |