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 | |
parent | 2735bf2902306efeba0c27cde5954c9841343050 (diff) | |
download | lua-language-server-16b9ce9bafbf0f432ab7d1d063e2f18b1ed0c947.zip |
fix #2299
-rw-r--r-- | changelog.md | 5 | ||||
-rw-r--r-- | script/provider/provider.lua | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/changelog.md b/changelog.md index c593b330..e3680354 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,10 @@ # changelog +## 3.7.1 +* `FIX` [#2299] + +[#2299]: https://github.com/LuaLS/lua-language-server/issues/2299 + ## 3.7.0 `2023-8-24` * `NEW` support `---@type` and `--[[@as]]` for return statement 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 { |