Skip to content

Commit 16b9ce9

Browse files
committed
fix #2299
1 parent 2735bf2 commit 16b9ce9

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

changelog.md

+5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# changelog
22

3+
## 3.7.1
4+
* `FIX` [#2299]
5+
6+
[#2299]: https://github.com/LuaLS/lua-language-server/issues/2299
7+
38
## 3.7.0
49
`2023-8-24`
510
* `NEW` support `---@type` and `--[[@as]]` for return statement

script/provider/provider.lua

+2-2
Original file line numberDiff line numberDiff line change
@@ -712,11 +712,11 @@ m.register 'completionItem/resolve' {
712712
--await.setPriority(1000)
713713
local state = files.getState(uri)
714714
if not state then
715-
return nil
715+
return item
716716
end
717717
local resolved = core.resolve(id)
718718
if not resolved then
719-
return nil
719+
return item
720720
end
721721
item.detail = resolved.detail or item.detail
722722
item.documentation = resolved.description and {

0 commit comments

Comments
 (0)