File tree Expand file tree Collapse file tree 3 files changed +23
-1
lines changed Expand file tree Collapse file tree 3 files changed +23
-1
lines changed Original file line number Diff line number Diff line change 44* ` FIX ` commandline parameter ` checklevel ` may not work
55* ` FIX ` [ #2036 ]
66* ` FIX ` [ #2037 ]
7+ * ` FIX ` [ #2077 ]
78* ` FIX ` [ #2081 ]
89
910[ #2036 ] : https://github.com/LuaLS/lua-language-server/issues/2036
1011[ #2037 ] : https://github.com/LuaLS/lua-language-server/issues/2037
12+ [ #2077 ] : https://github.com/LuaLS/lua-language-server/issues/2077
1113[ #2081 ] : https://github.com/LuaLS/lua-language-server/issues/2081
1214
1315## 3.6.18
Original file line number Diff line number Diff line change @@ -86,7 +86,8 @@ local function getHover(source)
8686 else
8787 addHover (source , true , oop )
8888 for _ , def in ipairs (vm .getDefs (source )) do
89- if def .type == ' global' then
89+ if def .type == ' global'
90+ or def .type == ' setlocal' then
9091 goto CONTINUE
9192 end
9293 if guide .isOOP (def ) then
Original file line number Diff line number Diff line change @@ -1776,3 +1776,22 @@ function foo(bar: any, baz: any)
17761776
17771777@*param* `baz` — "dolor sit" this is ignored]]
17781778}
1779+
1780+ TEST { {path = ' a.lua' , content = [[
1781+ --comment1
1782+ local x
1783+
1784+ --comment2
1785+ x = 1
1786+
1787+ print(<?x?>)
1788+ ]] },
1789+ hover = [[
1790+ ```lua
1791+ local x: integer = 1
1792+ ```
1793+
1794+ ---
1795+
1796+ comment1]]
1797+ }
You can’t perform that action at this time.
0 commit comments