Skip to content

Commit eb0e2e4

Browse files
committed
Merge remote-tracking branch 'sumneko/master' into array-contents-support
# Conflicts: # script/core/completion/completion.lua # script/vm/compiler.lua
2 parents 80e03b3 + 0db0e59 commit eb0e2e4

File tree

118 files changed

+5824
-1503
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

118 files changed

+5824
-1503
lines changed

.luarc.json

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,17 @@
33
"disable": [
44
"close-non-object"
55
],
6-
"neededFileStatus": {
7-
"undefined-field": "Any",
8-
"await-in-sync": "Any",
9-
"not-yieldable": "Any",
10-
"discard-returns": "Any",
11-
"redundant-parameter": "Any",
12-
"missing-parameter": "Any",
13-
"need-check-nil": "Any",
14-
"redundant-value": "Any",
15-
"deprecated": "Any"
6+
"groupFileStatus": {
7+
"ambiguity": "Any",
8+
"await": "Any",
9+
"duplicate": "Any",
10+
"global": "Any",
11+
"luadoc": "Any",
12+
"redefined": "Any",
13+
"strict": "Any",
14+
"type-check": "Any",
15+
"unbalanced": "Any",
16+
"unused": "Any"
1617
},
1718
"ignoredFiles": "Opened",
1819
"libraryFiles": "Opened"
@@ -36,10 +37,6 @@
3637
"3rd",
3738
".vscode",
3839
"meta"
39-
],
40-
"library": [
41-
"script/meta",
42-
"bin"
4340
]
4441
}
4542
}

3rd/EmmyLuaCodeStyle

Submodule EmmyLuaCodeStyle updated 152 files

changelog.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,48 @@
11
# changelog
22

3+
## 3.4.0
4+
* `NEW` diagnostics:
5+
* `cast-local-type`
6+
* `assign-type-mismatch`
7+
* `param-type-mismatch`
8+
* `unknown-cast-variable`
9+
* `cast-type-mismatch`
10+
* `NEW` settings:
11+
* `diagnostics.groupSeverity`
12+
* `diagnostics.groupFileStatus`
13+
* `type.castNumberToInteger`
14+
* `type.weakUnionCheck`
15+
* `CHG` infer `nil` as redundant return value
16+
```lua
17+
local function f() end
18+
local x = f() -- `x` is `nil` instead of `unknown`
19+
```
20+
* `CHG` infer called function by params num
21+
```lua
22+
---@overload fun(x: number, y: number):string
23+
---@overload fun(x: number):number
24+
---@return boolean
25+
local function f() end
26+
27+
local n1 = f() -- `n1` is `boolean`
28+
local n2 = f(0) -- `n2` is `number`
29+
local n3 = f(0, 0) -- `n3` is `string`
30+
```
31+
* `CHG` semicolons and parentheses can be used in `DocTable`
32+
```lua
33+
---@type { (x: number); (y: boolean) }
34+
```
35+
* `CHG` return names and parentheses can be used in `DocFunction`
36+
```lua
37+
---@type fun():(x: number, y: number, ...: number)
38+
```
39+
* `CHG` supports `---@return boolean ...`
40+
* `CHG` improve experience for diagnostics and semantic-tokens
41+
* `FIX` diagnostics flash when opening a file
42+
* `FIX` sometimes workspace diagnostics are not triggered
43+
* `FIX` [#1228](https://github.com/sumneko/lua-language-server/issues/1228)
44+
* `FIX` [#1229](https://github.com/sumneko/lua-language-server/issues/1229)
45+
346
## 3.3.1
447
`2022-6-17`
548
* `FIX` [#1213](https://github.com/sumneko/lua-language-server/issues/1213)

0 commit comments

Comments
 (0)