Skip to content

Commit d130e76

Browse files
committed
fix #529
1 parent 80d6de8 commit d130e76

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

Diff for: changelog.md

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

3+
## 1.21.1
4+
* `FIX` [#529](https://github.com/sumneko/lua-language-server/issues/529)
5+
36
## 1.21.0
47
`2021-5-7`
58
* `NEW` setting: `completion.showParams`

Diff for: script/parser/ast.lua

+7-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,12 @@ local tableSort = table.sort
99

1010
_ENV = nil
1111

12-
local State
12+
local DefaultState = {
13+
lua = '',
14+
options = {},
15+
}
16+
17+
local State = DefaultState
1318
local PushError
1419
local PushDiag
1520
local PushComment
@@ -1925,7 +1930,7 @@ local function init(state)
19251930
end
19261931

19271932
local function close()
1928-
State = nil
1933+
State = DefaultState
19291934
PushError = function (...) end
19301935
PushDiag = function (...) end
19311936
PushComment = function (...) end

0 commit comments

Comments
 (0)