Skip to content

Commit f3f0cc5

Browse files
committed
1.18.0
1 parent 177fd8f commit f3f0cc5

File tree

6 files changed

+95
-3
lines changed

6 files changed

+95
-3
lines changed

changelog.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,32 @@
11
# changelog
22

33
## 1.18.0
4+
`2021-3-9`
5+
* `NEW` `LuaDoc`: supports `---@diagnostic disable`
6+
* `NEW` code-action: convert JSON to Lua
7+
* `NEW` completion: provide `then .. end` snippet
8+
* `NEW` type-formating:
9+
```lua
10+
-- press `enter` at $
11+
local function f() $ end
12+
-- formating result:
13+
local function f()
14+
$
15+
end
16+
17+
-- as well as
18+
do $ end
19+
-- formating result
20+
do
21+
$
22+
end
23+
```
424
* `CHG` `Windows`: dose not provide `ucrt` any more
525
* `CHG` `Lua.workspace.library`: use `path[]` instead of `<path, true>`
626
* `FIX` missed syntax error `local a <const>= 1`
27+
* `FIX` workspace: preload blocked when hitting `Lua.workspace.maxPreload`
28+
* `FIX` [#443](https://github.com/sumneko/lua-language-server/issues/443)
29+
* `FIX` [#445](https://github.com/sumneko/lua-language-server/issues/445)
730

831
## 1.17.4
932
`2021-3-4`

package.json

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,6 +433,17 @@
433433
"scope": "resource",
434434
"type": "string"
435435
},
436+
"unknown-diag-code": {
437+
"default": "Any",
438+
"description": "%config.diagnostics.unknown-diag-code%",
439+
"enum": [
440+
"Any",
441+
"Opened",
442+
"None"
443+
],
444+
"scope": "resource",
445+
"type": "string"
446+
},
436447
"unused-function": {
437448
"default": "Opened",
438449
"description": "%config.diagnostics.unused-function%",
@@ -821,6 +832,18 @@
821832
"scope": "resource",
822833
"type": "string"
823834
},
835+
"unknown-diag-code": {
836+
"default": "Waiting",
837+
"description": "%config.diagnostics.unknown-diag-code%",
838+
"enum": [
839+
"Error",
840+
"Warning",
841+
"Information",
842+
"Hint"
843+
],
844+
"scope": "resource",
845+
"type": "string"
846+
},
824847
"unused-function": {
825848
"default": "Hint",
826849
"description": "%config.diagnostics.unused-function%",
@@ -1171,5 +1194,5 @@
11711194
"type": "git",
11721195
"url": "https://github.com/sumneko/lua-language-server"
11731196
},
1174-
"version": "1.17.4"
1197+
"version": "1.18.0"
11751198
}

package/build.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
local json = require 'json-beautify'
22

3-
local VERSION = "1.17.4"
3+
local VERSION = "1.18.0"
44

55
local package = require 'package.package'
66
local fsu = require 'fs-utility'

server

setting/schema-zh-cn.json

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -417,6 +417,17 @@
417417
"scope": "resource",
418418
"type": "string"
419419
},
420+
"unknown-diag-code": {
421+
"default": "Any",
422+
"description": "%config.diagnostics.unknown-diag-code%",
423+
"enum": [
424+
"Any",
425+
"Opened",
426+
"None"
427+
],
428+
"scope": "resource",
429+
"type": "string"
430+
},
420431
"unused-function": {
421432
"default": "Opened",
422433
"description": "未使用的函数",
@@ -805,6 +816,18 @@
805816
"scope": "resource",
806817
"type": "string"
807818
},
819+
"unknown-diag-code": {
820+
"default": "Waiting",
821+
"description": "%config.diagnostics.unknown-diag-code%",
822+
"enum": [
823+
"Error",
824+
"Warning",
825+
"Information",
826+
"Hint"
827+
],
828+
"scope": "resource",
829+
"type": "string"
830+
},
808831
"unused-function": {
809832
"default": "Hint",
810833
"description": "未使用的函数",

setting/schema.json

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -417,6 +417,17 @@
417417
"scope": "resource",
418418
"type": "string"
419419
},
420+
"unknown-diag-code": {
421+
"default": "Any",
422+
"description": "%config.diagnostics.unknown-diag-code%",
423+
"enum": [
424+
"Any",
425+
"Opened",
426+
"None"
427+
],
428+
"scope": "resource",
429+
"type": "string"
430+
},
420431
"unused-function": {
421432
"default": "Opened",
422433
"description": "%config.diagnostics.unused-function%",
@@ -805,6 +816,18 @@
805816
"scope": "resource",
806817
"type": "string"
807818
},
819+
"unknown-diag-code": {
820+
"default": "Waiting",
821+
"description": "%config.diagnostics.unknown-diag-code%",
822+
"enum": [
823+
"Error",
824+
"Warning",
825+
"Information",
826+
"Hint"
827+
],
828+
"scope": "resource",
829+
"type": "string"
830+
},
808831
"unused-function": {
809832
"default": "Hint",
810833
"description": "%config.diagnostics.unused-function%",

0 commit comments

Comments
 (0)