Skip to content

Commit 767db22

Browse files
committed
#1208 fix runtime error
`attempt to concatenate a boolean value (local 'lastKey')`
1 parent 54a488b commit 767db22

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

changelog.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* `FIX` with clients that support LSP 3.17 (VSCode), workspace diagnostics are triggered every time when opening a file.
1212
* `FIX` [#1204](https://github.com./sumneko/lua-language-server/issues/1204)
1313

14-
## 3.2.51204
14+
## 3.2.5
1515
`2022-6-9`
1616
* `NEW` provide config docs in `LUA_LANGUAGE_SERVER/doc/`
1717
* `FIX` [#1148](https://github.com./sumneko/lua-language-server/issues/1148)

script/vm/def.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ local nodeSwitch;nodeSwitch = util.switch()
8585
local parentNode = vm.compileNode(source.node)
8686
local uri = guide.getUri(source)
8787
local key = guide.getKeyName(source)
88-
if not key then
88+
if type(key) ~= 'string' then
8989
return
9090
end
9191
if lastKey then

0 commit comments

Comments
 (0)