Skip to content

Commit 119356b

Browse files
committed
fix #1141
1 parent d436eba commit 119356b

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.vscode/launch.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
"arg": [
1414
],
1515
"luaVersion": "5.4",
16-
"consoleCoding": "utf8",
1716
"sourceCoding": "utf8",
1817
"console": "internalConsole",
1918
"outputCapture": [
@@ -47,7 +46,6 @@
4746
"arg": [
4847
],
4948
"luaVersion": "latest",
50-
"consoleCoding": "utf8",
5149
"sourceCoding": "utf8",
5250
"outputCapture": [
5351
"print",
@@ -67,7 +65,6 @@
6765
"${workspaceRoot}",
6866
],
6967
"luaVersion": "5.4",
70-
"consoleCoding": "utf8",
7168
"sourceCoding": "utf8",
7269
"outputCapture": [
7370
"print",
@@ -85,7 +82,6 @@
8582
"arg": [
8683
],
8784
"luaVersion": "latest",
88-
"consoleCoding": "utf8",
8985
"sourceCoding": "utf8",
9086
"outputCapture": [
9187
"print",

changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* `FIX` [#1125](https://github.com/sumneko/lua-language-server/issues/1125)
1010
* `FIX` [#1131](https://github.com/sumneko/lua-language-server/issues/1131)
1111
* `FIX` [#1134](https://github.com/sumneko/lua-language-server/issues/1134)
12+
* `FIX` [#1141](https://github.com/sumneko/lua-language-server/issues/1141)
1213

1314
## 3.2.3
1415
`2022-5-16`

script/vm/generic.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ mt.type = 'generic'
1515
---@param resolved? table<string, vm.node>
1616
---@return parser.object | vm.node
1717
local function cloneObject(source, resolved)
18+
if not source then
19+
return nil
20+
end
1821
if not resolved then
1922
return source
2023
end

0 commit comments

Comments
 (0)