Skip to content

Commit ba77a75

Browse files
committed
1.20.5
1 parent 23302e9 commit ba77a75

File tree

11 files changed

+71
-6
lines changed

11 files changed

+71
-6
lines changed

changelog.md

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

3+
## 1.20.5
4+
`2021-4-30`
5+
`NEW` setting: `completion.autoRequire`
6+
`NEW` setting: `hover.enumsLimit`
7+
`CHG` folding: supports `-- #region`
8+
`FIX` completion: details may be suspended
9+
`FIX` [#522](https://github.com/sumneko/lua-language-server/issues/522)
10+
`FIX` [#523](https://github.com/sumneko/lua-language-server/issues/523)
11+
312
## 1.20.4
413
`2021-4-13`
514
`NEW` diagnostic: `deprecated`

package.json

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,12 @@
3232
"scope": "resource",
3333
"type": "string"
3434
},
35+
"Lua.completion.autoRequire": {
36+
"default": true,
37+
"markdownDescription": "%config.completion.autoRequire%",
38+
"scope": "resource",
39+
"type": "boolean"
40+
},
3541
"Lua.completion.callSnippet": {
3642
"default": "Disable",
3743
"enum": [
@@ -962,6 +968,12 @@
962968
"scope": "resource",
963969
"type": "boolean"
964970
},
971+
"Lua.hover.enumsLimit": {
972+
"default": 5,
973+
"markdownDescription": "%config.hover.enumsLimit%",
974+
"scope": "resource",
975+
"type": "integer"
976+
},
965977
"Lua.hover.fieldInfer": {
966978
"default": 3000,
967979
"markdownDescription": "%config.hover.fieldInfer%",
@@ -1404,5 +1416,5 @@
14041416
"type": "git",
14051417
"url": "https://github.com/sumneko/lua-language-server"
14061418
},
1407-
"version": "1.20.4"
1419+
"version": "1.20.5"
14081420
}

package.nls.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"config.color.mode": "Color mode.",
44
"config.color.mode.Grammar": "Grammar color.",
55
"config.color.mode.Semantic": "Semantic color. You may need to set `editor.semanticHighlighting.enabled` to `true` to take effect.",
6+
"config.completion.autoRequire": "When the input looks like a file name, automatically `require` this file.",
67
"config.completion.callSnippet": "Shows function call snippets.",
78
"config.completion.callSnippet.Both": "Shows `function name` and `call snippet`.",
89
"config.completion.callSnippet.Disable": "Only shows `function name`.",
@@ -29,6 +30,7 @@
2930
"config.hint.paramType": "Show type hints at the parameter of the function.",
3031
"config.hint.setType": "Hint type at assignment operation.",
3132
"config.hover.enable": "Enable hover.",
33+
"config.hover.enumsLimit": "When the value corresponds to multiple types, limit the number of types displaying.",
3234
"config.hover.fieldInfer": "When hovering to view a table, type infer will be performed for each field. When the accumulated time of type infer reaches the set value (MS), the type infer of subsequent fields will be skipped.",
3335
"config.hover.previewFields": "When hovering to view a table, limits the maximum number of previews for fields.",
3436
"config.hover.viewNumber": "Hover to view numeric content (only if literal is not decimal).",

package.nls.zh-cn.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"config.color.mode": "着色模式。",
55
"config.color.mode.Grammar": "语法着色。",
66
"config.color.mode.Semantic": "语义着色。你可能需要同时将 `editor.semanticHighlighting.enabled` 设置为 `true` 才能生效。",
7+
"config.completion.autoRequire": "输入内容看起来是个文件名时,自动 `require` 此文件。",
78
"config.completion.callSnippet": "显示函数调用片段。",
89
"config.completion.callSnippet.Both": "显示 `函数名` 与 `调用片段`。",
910
"config.completion.callSnippet.Disable": "只显示 `函数名`。",
@@ -14,7 +15,7 @@
1415
"config.completion.keywordSnippet.Both": "显示 `关键字` 与 `语法片段`。",
1516
"config.completion.keywordSnippet.Disable": "只显示 `关键字`。",
1617
"config.completion.keywordSnippet.Replace": "只显示 `语法片段`。",
17-
"config.completion.workspaceWord": "显示工作区范围内的单词",
18+
"config.completion.workspaceWord": "显示工作区范围内的单词",
1819
"config.develop.debuggerPort": "调试器监听端口。",
1920
"config.develop.debuggerWait": "调试器连接之前挂起。",
2021
"config.develop.enable": "开发者模式。请勿开启,会影响性能。",
@@ -32,6 +33,7 @@
3233
"config.hint.paramType": "在函数的参数位置提示类型。",
3334
"config.hint.setType": "在赋值操作位置提示类型。",
3435
"config.hover.enable": "启用悬停提示。",
36+
"config.hover.enumsLimit": "当值对应多个类型时,限制类型的显示数量。",
3537
"config.hover.fieldInfer": "悬停提示查看表时,会对表的每个字段进行类型推测,当类型推测的用时累计达到该设定值(毫秒)时,将跳过后续字段的类型推测。",
3638
"config.hover.previewFields": "悬停提示查看表时,限制表内字段的最大预览数量。",
3739
"config.hover.viewNumber": "悬停提示查看数字内容(仅当字面量不是十进制时)。",

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.20.4"
3+
local VERSION = "1.20.5"
44

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

package/configuration.lua

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,12 @@ local config = {
235235
default = true,
236236
markdownDescription = "%config.completion.workspaceWord%"
237237
},
238+
['Lua.completion.autoRequire'] = {
239+
scope = "resource",
240+
type = "boolean",
241+
default = true,
242+
markdownDescription = "%config.completion.autoRequire%"
243+
},
238244
["Lua.color.mode"] = {
239245
scope = "resource",
240246
type = "string",
@@ -291,6 +297,12 @@ local config = {
291297
default = 100,
292298
markdownDescription = "%config.hover.previewFields%"
293299
},
300+
['Lua.hover.enumsLimit'] = {
301+
scope = "resource",
302+
type = "integer",
303+
default = 5,
304+
markdownDescription = "%config.hover.enumsLimit%"
305+
},
294306
--["Lua.plugin.enable"] = {
295307
-- scope = "resource",
296308
-- type = "boolean",

package/nls-zh-cn.lua

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ return {
4444
['config.completion.keywordSnippet.Both'] = "显示 `关键字` 与 `语法片段`。",
4545
['config.completion.keywordSnippet.Replace'] = "只显示 `语法片段`。",
4646
['config.completion.displayContext'] = "预览建议的相关代码片段,可能可以帮助你了解这项建议的用法。设置的数字表示代码片段的截取行数,设置为`0`可以禁用此功能。",
47-
['config.completion.workspaceWord'] = "显示工作区范围内的单词",
47+
['config.completion.workspaceWord'] = "显示工作区范围内的单词。",
48+
['config.completion.autoRequire'] = "输入内容看起来是个文件名时,自动 `require` 此文件。",
4849
['config.color.mode'] = "着色模式。",
4950
['config.color.mode.Semantic'] = "语义着色。你可能需要同时将 `editor.semanticHighlighting.enabled` 设置为 `true` 才能生效。",
5051
['config.color.mode.Grammar'] = "语法着色。",
@@ -55,6 +56,7 @@ return {
5556
['config.hover.viewNumber'] = "悬停提示查看数字内容(仅当字面量不是十进制时)。",
5657
['config.hover.fieldInfer'] = "悬停提示查看表时,会对表的每个字段进行类型推测,当类型推测的用时累计达到该设定值(毫秒)时,将跳过后续字段的类型推测。",
5758
['config.hover.previewFields'] = "悬停提示查看表时,限制表内字段的最大预览数量。",
59+
['config.hover.enumsLimit'] = "当值对应多个类型时,限制类型的显示数量。",
5860
['config.zzzzzz.cat'] = 'DONT TOUCH ME, LET ME SLEEP >_<',
5961
['config.develop.enable'] = '开发者模式。请勿开启,会影响性能。',
6062
['config.develop.debuggerPort'] = '调试器监听端口。',

package/nls.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ The language service will additionally load the lua files in these directories,
4545
['config.completion.keywordSnippet.Replace'] = "Only shows `syntax snippet`.",
4646
['config.completion.displayContext'] = "Previewing the relevant code snippet of the suggestion may help you understand the usage of the suggestion. The number set indicates the number of intercepted lines in the code fragment. If it is set to `0`, this feature can be disabled.",
4747
['config.completion.workspaceWord'] = "Shows words within the workspace.",
48+
['config.completion.autoRequire'] = "When the input looks like a file name, automatically `require` this file.",
4849
['config.color.mode'] = "Color mode.",
4950
['config.color.mode.Semantic'] = "Semantic color. You may need to set `editor.semanticHighlighting.enabled` to `true` to take effect.",
5051
['config.color.mode.Grammar'] = "Grammar color.",
@@ -55,6 +56,7 @@ The language service will additionally load the lua files in these directories,
5556
['config.hover.viewNumber'] = "Hover to view numeric content (only if literal is not decimal).",
5657
['config.hover.fieldInfer'] = "When hovering to view a table, type infer will be performed for each field. When the accumulated time of type infer reaches the set value (MS), the type infer of subsequent fields will be skipped.",
5758
['config.hover.previewFields'] = "When hovering to view a table, limits the maximum number of previews for fields.",
59+
['config.hover.enumsLimit'] = "When the value corresponds to multiple types, limit the number of types displaying.",
5860
['config.zzzzzz.cat'] = 'DONT TOUCH ME, LET ME SLEEP >_<',
5961
['config.develop.enable'] = 'Developer mode. Do not enable, performance will be affected.',
6062
['config.develop.debuggerPort'] = 'Listen port of debugger.',

server

setting/schema-zh-cn.json

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@
1616
"scope": "resource",
1717
"type": "string"
1818
},
19+
"Lua.completion.autoRequire": {
20+
"default": true,
21+
"markdownDescription": "输入内容看起来是个文件名时,自动 `require` 此文件。",
22+
"scope": "resource",
23+
"type": "boolean"
24+
},
1925
"Lua.completion.callSnippet": {
2026
"default": "Disable",
2127
"enum": [
@@ -62,7 +68,7 @@
6268
},
6369
"Lua.completion.workspaceWord": {
6470
"default": true,
65-
"markdownDescription": "显示工作区范围内的单词",
71+
"markdownDescription": "显示工作区范围内的单词",
6672
"scope": "resource",
6773
"type": "boolean"
6874
},
@@ -946,6 +952,12 @@
946952
"scope": "resource",
947953
"type": "boolean"
948954
},
955+
"Lua.hover.enumsLimit": {
956+
"default": 5,
957+
"markdownDescription": "当值对应多个类型时,限制类型的显示数量。",
958+
"scope": "resource",
959+
"type": "integer"
960+
},
949961
"Lua.hover.fieldInfer": {
950962
"default": 3000,
951963
"markdownDescription": "悬停提示查看表时,会对表的每个字段进行类型推测,当类型推测的用时累计达到该设定值(毫秒)时,将跳过后续字段的类型推测。",

0 commit comments

Comments
 (0)