diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2023-08-31 11:47:12 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2023-08-31 11:47:12 +0800 |
commit | 16b9ce9bafbf0f432ab7d1d063e2f18b1ed0c947 (patch) | |
tree | 627ffc964c8150026dfa3232e14d69ac8c0c37a9 /script | |
parent | 2735bf2902306efeba0c27cde5954c9841343050 (diff) | |
download | lua-language-server-16b9ce9bafbf0f432ab7d1d063e2f18b1ed0c947.zip |
fix #2299
Diffstat (limited to 'script')
-rw-r--r-- | script/provider/provider.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/script/provider/provider.lua b/script/provider/provider.lua index eccf562a..a791e980 100644 --- a/script/provider/provider.lua +++ b/script/provider/provider.lua @@ -712,11 +712,11 @@ m.register 'completionItem/resolve' { --await.setPriority(1000) local state = files.getState(uri) if not state then - return nil + return item end local resolved = core.resolve(id) if not resolved then - return nil + return item end item.detail = resolved.detail or item.detail item.documentation = resolved.description and { |