Skip to content

Commit 3711565

Browse files
committed
3.1.0
1 parent f8248b6 commit 3711565

11 files changed

+2081
-168
lines changed

README.md

-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ If you need to compile by yourself, please refer to [here](https://github.com/su
7878

7979
* [bee.lua](https://github.com/actboy168/bee.lua)
8080
* [luamake](https://github.com/actboy168/luamake)
81-
* [lni](https://github.com/actboy168/lni)
8281
* [LPegLabel](https://github.com/sqmedeiros/lpeglabel)
8382
* [LuaParser](https://github.com/sumneko/LuaParser)
8483
* [ScreenToGif](https://github.com/NickeManarin/ScreenToGif)

changelog.md

+11
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
# changelog
22

3+
## 3.1.0
4+
`2022-4-17`
5+
* `NEW` support find definition in method
6+
* `CHG` hint: move to LSP. Its font is now controlled by the client.
7+
* `CHG` hover: split `local` into `local` / `parameter` / `upvalue` / `self`.
8+
* `CHG` hover: added parentheses to some words, such as `global` / `field` / `class`.
9+
* `FIX` definition of `table<k, v>`
10+
* `FIX` [#994](https://github.com/sumneko/lua-language-server/issues/994)
11+
* `FIX` [#1057](https://github.com/sumneko/lua-language-server/issues/1057)
12+
* `FIX` runtime errors reported by telemetry, see [#1058](https://github.com/sumneko/lua-language-server/issues/1058)
13+
314
## 3.0.2
415
`2022-4-15`
516
* `FIX` `table<string, boolean>[string] -> boolean`

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1709,5 +1709,5 @@
17091709
"type": "git",
17101710
"url": "https://github.com/sumneko/lua-language-server"
17111711
},
1712-
"version": "3.0.2"
1712+
"version": "3.1.0"
17131713
}

package.nls.json

+17
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,33 @@
2929
"config.develop.debuggerPort": "Listen port of debugger.",
3030
"config.develop.debuggerWait": "Suspend before debugger connects.",
3131
"config.develop.enable": "Developer mode. Do not enable, performance will be affected.",
32+
"config.diagnostics.ambiguity-1": "优先级歧义,如:`num or 0 + 1`,推测用户的实际期望为 `(num or 0) + 1` ",
3233
"config.diagnostics.disable": "Disabled diagnostic (Use code in hover brackets).",
34+
"config.diagnostics.duplicate-index": "在字面量表中重复定义了索引",
35+
"config.diagnostics.empty-block": "空代码块",
3336
"config.diagnostics.enable": "Enable diagnostics.",
3437
"config.diagnostics.files.Disable": "These files are not diagnosed.",
3538
"config.diagnostics.files.Enable": "Always diagnose these files.",
3639
"config.diagnostics.files.Opened": "Only when these files are opened will it be diagnosed.",
40+
"config.diagnostics.global-in-nil-env": "不能使用全局变量( `_ENV` 被设置为了 `nil`)",
3741
"config.diagnostics.globals": "Defined global variables.",
3842
"config.diagnostics.ignoredFiles": "How to diagnose ignored files.",
3943
"config.diagnostics.libraryFiles": "How to diagnose files loaded via `Lua.workspace.library`.",
44+
"config.diagnostics.lowercase-global": "首字母小写的全局变量定义",
4045
"config.diagnostics.neededFileStatus": "* Opened: only diagnose opened files\n* Any: diagnose all files\n* Disable: disable this diagnostic\n",
46+
"config.diagnostics.newfield-call": "在字面量表中,2行代码之间缺少分隔符,在语法上被解析为了一次索引操作",
47+
"config.diagnostics.newline-call": "以 `(` 开始的新行,在语法上被解析为了上一行的函数调用",
48+
"config.diagnostics.redefined-local": "重复定义的局部变量",
49+
"config.diagnostics.redundant-parameter": "函数调用时,传入了多余的参数",
50+
"config.diagnostics.redundant-value": "赋值操作时,值的数量比被赋值的对象多",
4151
"config.diagnostics.severity": "Modified diagnostic severity.",
52+
"config.diagnostics.trailing-space": "后置空格",
53+
"config.diagnostics.undefined-env-child": "`_ENV` 被设置为了新的字面量表,但是试图获取的全局变量不再这张表中",
54+
"config.diagnostics.undefined-global": "未定义的全局变量",
55+
"config.diagnostics.unused-function": "未使用的函数",
56+
"config.diagnostics.unused-label": "未使用的标签",
57+
"config.diagnostics.unused-local": "未使用的局部变量",
58+
"config.diagnostics.unused-vararg": "未使用的不定参数",
4259
"config.diagnostics.workspaceDelay": "Latency (milliseconds) for workspace diagnostics. When you start the workspace, or edit any file, the entire workspace will be re-diagnosed in the background. Set to negative to disable workspace diagnostics.",
4360
"config.diagnostics.workspaceRate": "Workspace diagnostics run rate (%). Decreasing this value reduces CPU usage, but also reduces the speed of workspace diagnostics. The diagnosis of the file you are currently editing is always done at full speed and is not affected by this setting.",
4461
"config.format.enable": "Enable code formatter.",

package.nls.pt-br.json

+108
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,108 @@
1+
{
2+
"config.IntelliSense.traceBeSetted": "Please read [wiki](https://github.com/sumneko/lua-language-server/wiki/IntelliSense-optional-features) to learn more.",
3+
"config.IntelliSense.traceFieldInject": "Please read [wiki](https://github.com/sumneko/lua-language-server/wiki/IntelliSense-optional-features) to learn more.",
4+
"config.IntelliSense.traceLocalSet": "Please read [wiki](https://github.com/sumneko/lua-language-server/wiki/IntelliSense-optional-features) to learn more.",
5+
"config.IntelliSense.traceReturn": "Please read [wiki](https://github.com/sumneko/lua-language-server/wiki/IntelliSense-optional-features) to learn more.",
6+
"config.color.mode": "Color mode.",
7+
"config.color.mode.Grammar": "Grammar color.",
8+
"config.color.mode.Semantic": "Semantic color. You may need to set `editor.semanticHighlighting.enabled` to `true` to take effect.",
9+
"config.color.mode.SemanticEnhanced": "Enhanced semantic color. Like `Semantic`, but with additional analysis which might be more computationally expensive.",
10+
"config.completion.autoRequire": "When the input looks like a file name, automatically `require` this file.",
11+
"config.completion.callSnippet": "Shows function call snippets.",
12+
"config.completion.callSnippet.Both": "Shows `function name` and `call snippet`.",
13+
"config.completion.callSnippet.Disable": "Only shows `function name`.",
14+
"config.completion.callSnippet.Replace": "Only shows `call snippet.`",
15+
"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.",
16+
"config.completion.enable": "Enable completion.",
17+
"config.completion.keywordSnippet": "Shows keyword syntax snippets.",
18+
"config.completion.keywordSnippet.Both": "Shows `keyword` and `syntax snippet`.",
19+
"config.completion.keywordSnippet.Disable": "Only shows `keyword`.",
20+
"config.completion.keywordSnippet.Replace": "Only shows `syntax snippet`.",
21+
"config.completion.postfix": "The symbol used to trigger the postfix suggestion.",
22+
"config.completion.requireSeparator": "The separator used when `require`.",
23+
"config.completion.showParams": "Display parameters in completion list. When the function has multiple definitions, they will be displayed separately.",
24+
"config.completion.showWord": "Show contextual words in suggestions.",
25+
"config.completion.showWord.Disable": "Do not display context words.",
26+
"config.completion.showWord.Enable": "Always show context words in suggestions.",
27+
"config.completion.showWord.Fallback": "Contextual words are only displayed when suggestions based on semantics cannot be provided.",
28+
"config.completion.workspaceWord": "Whether the displayed context word contains the content of other files in the workspace.",
29+
"config.develop.debuggerPort": "Listen port of debugger.",
30+
"config.develop.debuggerWait": "Suspend before debugger connects.",
31+
"config.develop.enable": "Developer mode. Do not enable, performance will be affected.",
32+
"config.diagnostics.ambiguity-1": "优先级歧义,如:`num or 0 + 1`,推测用户的实际期望为 `(num or 0) + 1` ",
33+
"config.diagnostics.disable": "Disabled diagnostic (Use code in hover brackets).",
34+
"config.diagnostics.duplicate-index": "在字面量表中重复定义了索引",
35+
"config.diagnostics.empty-block": "空代码块",
36+
"config.diagnostics.enable": "Enable diagnostics.",
37+
"config.diagnostics.files.Disable": "These files are not diagnosed.",
38+
"config.diagnostics.files.Enable": "Always diagnose these files.",
39+
"config.diagnostics.files.Opened": "Only when these files are opened will it be diagnosed.",
40+
"config.diagnostics.global-in-nil-env": "不能使用全局变量( `_ENV` 被设置为了 `nil`)",
41+
"config.diagnostics.globals": "Defined global variables.",
42+
"config.diagnostics.ignoredFiles": "How to diagnose ignored files.",
43+
"config.diagnostics.libraryFiles": "How to diagnose files loaded via `Lua.workspace.library`.",
44+
"config.diagnostics.lowercase-global": "首字母小写的全局变量定义",
45+
"config.diagnostics.neededFileStatus": "* Opened: only diagnose opened files\n* Any: diagnose all files\n* Disable: disable this diagnostic\n",
46+
"config.diagnostics.newfield-call": "在字面量表中,2行代码之间缺少分隔符,在语法上被解析为了一次索引操作",
47+
"config.diagnostics.newline-call": "以 `(` 开始的新行,在语法上被解析为了上一行的函数调用",
48+
"config.diagnostics.redefined-local": "重复定义的局部变量",
49+
"config.diagnostics.redundant-parameter": "函数调用时,传入了多余的参数",
50+
"config.diagnostics.redundant-value": "赋值操作时,值的数量比被赋值的对象多",
51+
"config.diagnostics.severity": "Modified diagnostic severity.",
52+
"config.diagnostics.trailing-space": "后置空格",
53+
"config.diagnostics.undefined-env-child": "`_ENV` 被设置为了新的字面量表,但是试图获取的全局变量不再这张表中",
54+
"config.diagnostics.undefined-global": "未定义的全局变量",
55+
"config.diagnostics.unused-function": "未使用的函数",
56+
"config.diagnostics.unused-label": "未使用的标签",
57+
"config.diagnostics.unused-local": "未使用的局部变量",
58+
"config.diagnostics.unused-vararg": "未使用的不定参数",
59+
"config.diagnostics.workspaceDelay": "Latency (milliseconds) for workspace diagnostics. When you start the workspace, or edit any file, the entire workspace will be re-diagnosed in the background. Set to negative to disable workspace diagnostics.",
60+
"config.diagnostics.workspaceRate": "Workspace diagnostics run rate (%). Decreasing this value reduces CPU usage, but also reduces the speed of workspace diagnostics. The diagnosis of the file you are currently editing is always done at full speed and is not affected by this setting.",
61+
"config.format.enable": "Enable code formatter.",
62+
"config.hint.arrayIndex": "Show hints of array index when constructing a table.",
63+
"config.hint.arrayIndex.Auto": "Show hints only when the table is greater than 3 items, or the table is a mixed table.",
64+
"config.hint.arrayIndex.Disable": "Disable hints of array index.",
65+
"config.hint.arrayIndex.Enable": "Show hints in all tables.",
66+
"config.hint.enable": "Enable inlay hint.",
67+
"config.hint.paramName": "Show hints of parameter name at the function call.",
68+
"config.hint.paramName.All": "All types of parameters are shown.",
69+
"config.hint.paramName.Disable": "Disable parameter hints.",
70+
"config.hint.paramName.Literal": "Only literal type parameters are shown.",
71+
"config.hint.paramType": "Show type hints at the parameter of the function.",
72+
"config.hint.setType": "Show hints of type at assignment operation.",
73+
"config.hover.enable": "Enable hover.",
74+
"config.hover.enumsLimit": "When the value corresponds to multiple types, limit the number of types displaying.",
75+
"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.",
76+
"config.hover.previewFields": "When hovering to view a table, limits the maximum number of previews for fields.",
77+
"config.hover.viewNumber": "Hover to view numeric content (only if literal is not decimal).",
78+
"config.hover.viewString": "Hover to view the contents of a string (only if the literal contains an escape character).",
79+
"config.hover.viewStringMax": "The maximum length of a hover to view the contents of a string.",
80+
"config.intelliSense.fastGlobal": "In the global variable completion, and view `_G` suspension prompt. This will slightly reduce the accuracy of type speculation, but it will have a significant performance improvement for projects that use a lot of global variables.",
81+
"config.intelliSense.searchDepth": "Set the search depth for IntelliSense. Increasing this value increases accuracy, but decreases performance. Different workspace have different tolerance for this setting. Please adjust it to the appropriate value.",
82+
"config.misc.parameters": "[Command line parameters](https://github.com/sumneko/lua-telemetry-server/tree/master/method) when starting the language service in VSCode.",
83+
"config.runtime.builtin": "Adjust the enabled state of the built-in library. You can disable (or redefine) the non-existent library according to the actual runtime environment.\n\n* `default`: Indicates that the library will be enabled or disabled according to the runtime version\n* `enable`: always enable\n* `disable`: always disable\n",
84+
"config.runtime.fileEncoding": "File encoding. The `ansi` option is only available under the `Windows` platform.",
85+
"config.runtime.nonstandardSymbol": "Supports non-standard symbols. Make sure that your runtime environment supports these symbols.",
86+
"config.runtime.path": "When using `require`, how to find the file based on the input name.\nSetting this config to `?/init.lua` means that when you enter `require 'myfile'`, `${workspace}/myfile/init.lua` will be searched from the loaded files.\nif `runtime.pathStrict` is `false`, `${workspace}/**/myfile/init.lua` will also be searched.\nIf you want to load files outside the workspace, you need to set `Lua.workspace.library` first.\n",
87+
"config.runtime.pathStrict": "When enabled, `runtime.path` will only search the first level of directories, see the description of `runtime.path`.",
88+
"config.runtime.plugin": "Plugin path. Please read [wiki](https://github.com/sumneko/lua-language-server/wiki/Plugin) to learn more.",
89+
"config.runtime.special": "The custom global variables are regarded as some special built-in variables, and the language server will provide special support\nThe following example shows that 'include' is treated as' require '.\n```json\n\"Lua.runtime.special\" : {\n \"include\" : \"require\"\n}\n```\n",
90+
"config.runtime.unicodeName": "Allows Unicode characters in name.",
91+
"config.runtime.version": "Lua runtime version.",
92+
"config.semantic.annotation": "Semantic coloring of type annotations.",
93+
"config.semantic.enable": "Enable semantic color. You may need to set `editor.semanticHighlighting.enabled` to `true` to take effect.",
94+
"config.semantic.keyword": "Semantic coloring of keywords/literals/operators. You only need to enable this feature if your editor cannot do syntax coloring.",
95+
"config.semantic.variable": "Semantic coloring of variables/fields/parameters.",
96+
"config.signatureHelp.enable": "Enable signature help.",
97+
"config.telemetry.enable": "Enable telemetry to send your editor information and error logs over the network. Read our privacy policy [here](https://github.com/sumneko/lua-language-server/wiki/Privacy-Policy).\n",
98+
"config.window.progressBar": "Show progress bar in status bar.",
99+
"config.window.statusBar": "Show extension status in status bar.",
100+
"config.workspace.checkThirdParty": "Automatic detection and adaptation of third-party libraries, currently supported libraries are:\n\n* OpenResty\n* Cocos4.0\n* LÖVE\n* LÖVR\n* skynet\n* Jass\n",
101+
"config.workspace.ignoreDir": "Ignored files and directories (Use `.gitignore` grammar).",
102+
"config.workspace.ignoreSubmodules": "Ignore submodules.",
103+
"config.workspace.library": "In addition to the current workspace, which directories will load files from. The files in these directories will be treated as externally provided code libraries, and some features (such as renaming fields) will not modify these files.",
104+
"config.workspace.maxPreload": "Max preloaded files.",
105+
"config.workspace.preloadFileSize": "Skip files larger than this value (KB) when preloading.",
106+
"config.workspace.useGitIgnore": "Ignore files list in `.gitignore` .",
107+
"config.workspace.userThirdParty": "Add private third-party library configuration file paths here, please refer to the built-in [configuration file path](https://github.com/sumneko/lua-language-server/tree/master/meta/3rd)"
108+
}

0 commit comments

Comments
 (0)