Skip to content

Commit

Permalink
fix #994
Browse files Browse the repository at this point in the history
  • Loading branch information
sumneko committed Apr 17, 2022
1 parent 66de37c commit a379960
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* `CHG` hover: split `local` into `local` / `parameter` / `upvalue` / `self`.
* `CHG` hover: added parentheses to some words, such as `global` / `field` / `class`.
* `FIX` definition of `table<k, v>`
* `FIX` [#994](https://github.com/sumneko/lua-language-server/issues/994)
* `FIX` [#1057](https://github.com/sumneko/lua-language-server/issues/1057)
* `FIX` runtime errors reported by telemetry, see [#1058](https://github.com/sumneko/lua-language-server/issues/1058)

Expand Down
1 change: 1 addition & 0 deletions script/parser/luadoc.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1406,6 +1406,7 @@ local function bindDocsBetween(sources, binded, bindSources, start, finish)
or src.type == 'tableindex'
or src.type == 'setfield'
or src.type == 'setindex'
or src.type == 'setmethod'
or src.type == 'function' then
src.bindDocs = binded
bindSources[#bindSources+1] = src
Expand Down
10 changes: 10 additions & 0 deletions test/diagnostics/common.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1395,3 +1395,13 @@ T.x = 1
print(<!T.x!>)
]]

TEST [[
T = {}
---@deprecated
function T:ff()
end
<!T:ff!>()
]]

0 comments on commit a379960

Please sign in to comment.