diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-01-07 09:11:01 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-01-07 09:11:01 +0800 |
commit | f440d6c1a75b4d6fefcc40cf35cca74e8ec52271 (patch) | |
tree | 0d2753806340cc82554c610730c7f2b7c06f3c4d /server/src | |
parent | 6662e5572c6c8b35e018a959b4e30d172ef3e450 (diff) | |
download | lua-language-server-f440d6c1a75b4d6fefcc40cf35cca74e8ec52271.zip |
判空
Diffstat (limited to 'server/src')
-rw-r--r-- | server/src/core/completion.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/src/core/completion.lua b/server/src/core/completion.lua index 8ad1b90c..07b46402 100644 --- a/server/src/core/completion.lua +++ b/server/src/core/completion.lua @@ -248,7 +248,7 @@ local function searchInArg(vm, inCall, inString, callback) -- require列举出可以引用到的文件 if lib.special == 'require' then - if not vm.lsp or not vm.lsp.workspace then + if not vm.lsp or not vm.lsp.workspace or not inString then return end local results = vm.lsp.workspace:matchPath(vm.uri, inString[1]) |