File tree Expand file tree Collapse file tree 6 files changed +95
-3
lines changed
Expand file tree Collapse file tree 6 files changed +95
-3
lines changed Original file line number Diff line number Diff line change 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`
Original file line number Diff line number Diff line change 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%" ,
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%" ,
11711194 "type" : " git" ,
11721195 "url" : " https://github.com/sumneko/lua-language-server"
11731196 },
1174- "version" : " 1.17.4 "
1197+ "version" : " 1.18.0 "
11751198}
Original file line number Diff line number Diff line change 11local json = require ' json-beautify'
22
3- local VERSION = " 1.17.4 "
3+ local VERSION = " 1.18.0 "
44
55local package = require ' package.package'
66local fsu = require ' fs-utility'
Original file line number Diff line number Diff line change 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" : " 未使用的函数" ,
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" : " 未使用的函数" ,
Original file line number Diff line number Diff line change 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%" ,
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%" ,
You can’t perform that action at this time.
0 commit comments