diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2018-12-21 18:27:37 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2018-12-21 18:27:37 +0800 |
commit | 8f5725af96853b31afe6473b741e0b918b4a0210 (patch) | |
tree | d66bdf05dc8897666c5a8b2004ca66544a82cb70 /server/src/method/textDocument | |
parent | 0d56d8653a28f12601deba8b1a137557cf42f6cd (diff) | |
download | lua-language-server-8f5725af96853b31afe6473b741e0b918b4a0210.zip |
修正用常量做对象时无法找到可用函数的bug
Diffstat (limited to 'server/src/method/textDocument')
-rw-r--r-- | server/src/method/textDocument/completion.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/src/method/textDocument/completion.lua b/server/src/method/textDocument/completion.lua index d202f1a5..b866d18c 100644 --- a/server/src/method/textDocument/completion.lua +++ b/server/src/method/textDocument/completion.lua @@ -4,7 +4,7 @@ return function (lsp, params) local uri = params.textDocument.uri local vm, lines = lsp:loadVM(uri) if not vm then - return {} + return nil end -- lua是从1开始的,因此都要+1 local position = lines:position(params.position.line + 1, params.position.character + 1) |