Skip to content

Commit b406413

Browse files
committed
Merge branch 'master' of https://github.com/sumneko/lua-language-server into HEAD
2 parents 5eef995 + 496b61d commit b406413

Some content is hidden

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

55 files changed

+1868
-1432
lines changed

.vscode/launch.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
"arg": [
1414
],
1515
"luaVersion": "5.4",
16-
"consoleCoding": "utf8",
1716
"sourceCoding": "utf8",
1817
"console": "internalConsole",
1918
"outputCapture": [
@@ -47,7 +46,6 @@
4746
"arg": [
4847
],
4948
"luaVersion": "latest",
50-
"consoleCoding": "utf8",
5149
"sourceCoding": "utf8",
5250
"outputCapture": [
5351
"print",
@@ -67,7 +65,6 @@
6765
"${workspaceRoot}",
6866
],
6967
"luaVersion": "5.4",
70-
"consoleCoding": "utf8",
7168
"sourceCoding": "utf8",
7269
"outputCapture": [
7370
"print",
@@ -85,7 +82,6 @@
8582
"arg": [
8683
],
8784
"luaVersion": "latest",
88-
"consoleCoding": "utf8",
8985
"sourceCoding": "utf8",
9086
"outputCapture": [
9187
"print",

changelog.md

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

3+
## 3.2.5
4+
* `FIX` [#1149](https://github.com/sumneko/lua-language-server/issues/1149)
5+
36
## 3.2.4
7+
`2022-5-25`
8+
* `NEW` settings:
9+
+ `workspace.supportScheme`: `["file", "untitled", "git"]`
10+
+ `diagnostics.disableScheme`: `["git"]`
11+
* `NEW` folding: support folding `---@alias`
12+
* `CHG` if `rootUri` or `workspaceFolder` is set to `ROOT` or `HOME`, this extension will refuse to load these directories and show an error message.
13+
* `CHG` show warning message when scanning more than 100,000 files.
14+
* `CHG` upgrade [LSP](https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/) to `3.17`
415
* `FIX` hover: can not union `table` with other basic types
516
* `FIX` [#1125](https://github.com/sumneko/lua-language-server/issues/1125)
617
* `FIX` [#1131](https://github.com/sumneko/lua-language-server/issues/1131)
18+
* `FIX` [#1134](https://github.com/sumneko/lua-language-server/issues/1134)
19+
* `FIX` [#1141](https://github.com/sumneko/lua-language-server/issues/1141)
20+
* `FIX` [#1144](https://github.com/sumneko/lua-language-server/issues/1144)
21+
* `FIX` [#1150](https://github.com/sumneko/lua-language-server/issues/1150)
22+
* `FIX` [#1155](https://github.com/sumneko/lua-language-server/issues/1155)
723

824
## 3.2.3
925
`2022-5-16`

locale/en-us/script.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,10 @@ WORKSPACE_DIAGNOSTIC =
142142
'Diagnosing workspace'
143143
WORKSPACE_SKIP_HUGE_FILE =
144144
'For performance reasons, the parsing of this file has been stopped: {}'
145+
WORKSPACE_NOT_ALLOWED =
146+
'Your workspace is set to `{}`. Lua language server refused to load this directory. Please check your configuration.[learn more here](https://github.com/sumneko/lua-language-server/wiki/Why-scanning-home-folder)'
147+
WORKSPACE_SCAN_TOO_MUCH =
148+
'More than {} files have been scanned. The current scanned directory is `{}`. Please confirm whether the configuration is correct.'
145149

146150
PARSER_CRASH =
147151
'Parser crashed! Last words:{}'

locale/en-us/setting.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ config.diagnostics.files.Opened =
6464
"Only when these files are opened will it be diagnosed."
6565
config.diagnostics.files.Disable =
6666
"These files are not diagnosed."
67+
config.diagnostics.disableScheme =
68+
'Do not diagnose Lua files that use the following scheme.'
6769
config.workspace.ignoreDir =
6870
"Ignored files and directories (Use `.gitignore` grammar)."-- .. example.ignoreDir,
6971
config.workspace.ignoreSubmodules =
@@ -89,6 +91,8 @@ Automatic detection and adaptation of third-party libraries, currently supported
8991
]]
9092
config.workspace.userThirdParty =
9193
'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)'
94+
config.workspace.supportScheme =
95+
'Provide language server for the Lua files of the following scheme.'
9296
config.completion.enable =
9397
'Enable completion.'
9498
config.completion.callSnippet =

locale/pt-br/script.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,10 @@ WORKSPACE_DIAGNOSTIC =
142142
'Diagnóstico de espaço de trabalho.'
143143
WORKSPACE_SKIP_HUGE_FILE =
144144
'Por motivos de desempenho, a análise deste arquivo foi interrompida: {}'
145+
WORKSPACE_NOT_ALLOWED = -- TODO: need translate!
146+
'Your workspace is set to `{}`. Lua language server refused to load this directory. Please check your configuration.[learn more here](https://github.com/sumneko/lua-language-server/wiki/Why-scanning-home-folder)'
147+
WORKSPACE_SCAN_TOO_MUCH = -- TODO: need translate!
148+
'More than {} files have been scanned. The current scanned directory is `{}`. Please confirm whether the configuration is correct.'
145149

146150
PARSER_CRASH =
147151
'Parser quebrou! Últimas palavras: {}'

locale/pt-br/setting.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ config.diagnostics.files.Opened = -- TODO: need translate!
6464
"Only when these files are opened will it be diagnosed."
6565
config.diagnostics.files.Disable = -- TODO: need translate!
6666
"These files are not diagnosed."
67+
config.diagnostics.disableScheme = -- TODO: need translate!
68+
'Do not diagnose Lua files that use the following scheme.'
6769
config.workspace.ignoreDir = -- TODO: need translate!
6870
"Ignored files and directories (Use `.gitignore` grammar)."-- .. example.ignoreDir,
6971
config.workspace.ignoreSubmodules = -- TODO: need translate!
@@ -89,6 +91,8 @@ Automatic detection and adaptation of third-party libraries, currently supported
8991
]]
9092
config.workspace.userThirdParty = -- TODO: need translate!
9193
'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)'
94+
config.workspace.supportScheme = -- TODO: need translate!
95+
'Provide language server for the Lua files of the following scheme.'
9296
config.completion.enable = -- TODO: need translate!
9397
'Enable completion.'
9498
config.completion.callSnippet = -- TODO: need translate!

locale/zh-cn/script.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,10 @@ WORKSPACE_DIAGNOSTIC =
142142
'正在对工作目录进行诊断'
143143
WORKSPACE_SKIP_HUGE_FILE =
144144
'出于性能考虑,已停止对此文件解析:{}'
145+
WORKSPACE_NOT_ALLOWED =
146+
'你的工作目录被设置为了 `{}`,Lua语言服务拒绝加载此目录,请检查你的配置。[了解更多](https://github.com/sumneko/lua-language-server/wiki/Why-scanning-home-folder)'
147+
WORKSPACE_SCAN_TOO_MUCH =
148+
'已扫描了超过 {} 个文件,当前扫描的目录为 `{}`,请确认配置是否正确。'
145149

146150
PARSER_CRASH =
147151
'语法解析崩溃了!遗言:{}'

locale/zh-cn/setting.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ config.diagnostics.files.Opened =
6464
"只有打开这些文件时才会诊断。"
6565
config.diagnostics.files.Disable =
6666
"不诊断这些文件。"
67+
config.diagnostics.disableScheme =
68+
'不诊断使用以下 scheme 的lua文件。'
6769
config.workspace.ignoreDir =
6870
"忽略的文件与目录(使用 `.gitignore` 语法)。"
6971
config.workspace.ignoreSubmodules =
@@ -89,6 +91,8 @@ config.workspace.checkThirdParty =
8991
]]
9092
config.workspace.userThirdParty =
9193
'在这里添加私有的第三方库适配文件路径,请参考内置的[配置文件路径](https://github.com/sumneko/lua-language-server/tree/master/meta/3rd)'
94+
config.workspace.supportScheme =
95+
'为以下 scheme 的lua文件提供语言服务。'
9296
config.completion.enable =
9397
'启用自动完成。'
9498
config.completion.callSnippet =

0 commit comments

Comments
 (0)