Skip to content

Commit

Permalink
fix #485
Browse files Browse the repository at this point in the history
  • Loading branch information
sumneko committed Apr 6, 2021
1 parent 65d80d3 commit a0caef2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## 1.20.3
`FIX` [#479](https://github.com/sumneko/lua-language-server/issues/479)
`FIX` [#483](https://github.com/sumneko/lua-language-server/issues/483)
`FIX` [#485](https://github.com/sumneko/lua-language-server/issues/485)

## 1.20.2
`2021-4-2`
Expand Down
1 change: 1 addition & 0 deletions script/core/completion.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1397,6 +1397,7 @@ local function tryCallArg(ast, text, offset, results)
end

local function tryTable(ast, text, offset, results)
offset = lookBackward.skipSpace(text, offset)
local source = findNearestSource(ast, offset)
if not source then
return
Expand Down
7 changes: 7 additions & 0 deletions test/completion/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2506,3 +2506,10 @@ TEST [[
elseif $ then
]]
(nil)

TEST [[
---@type iolib
local t = {
$
]]
(EXISTS)

0 comments on commit a0caef2

Please sign in to comment.