We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 80d6de8 commit d130e76Copy full SHA for d130e76
changelog.md
@@ -1,5 +1,8 @@
1
# changelog
2
3
+## 1.21.1
4
+* `FIX` [#529](https://github.com/sumneko/lua-language-server/issues/529)
5
+
6
## 1.21.0
7
`2021-5-7`
8
* `NEW` setting: `completion.showParams`
script/parser/ast.lua
@@ -9,7 +9,12 @@ local tableSort = table.sort
9
10
_ENV = nil
11
12
-local State
+local DefaultState = {
13
+ lua = '',
14
+ options = {},
15
+}
16
17
+local State = DefaultState
18
local PushError
19
local PushDiag
20
local PushComment
@@ -1925,7 +1930,7 @@ local function init(state)
1925
1930
end
1926
1931
1927
1932
local function close()
1928
- State = nil
1933
+ State = DefaultState
1929
1934
PushError = function (...) end
1935
PushDiag = function (...) end
1936
PushComment = function (...) end
0 commit comments