summaryrefslogtreecommitdiff
path: root/locale
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-05-25 18:05:02 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-05-25 18:05:02 +0800
commit99e124ef95b65fe29f56cb5492538585574e8ded (patch)
treebe7733d737a72ec4cefcadce7814ea1b917b015f /locale
parentc586a11e9ae9b3f001c39d7f2f6762b0cf7af671 (diff)
downloadlua-language-server-99e124ef95b65fe29f56cb5492538585574e8ded.zip
don't scan huge directories
* if `rootUri` or `workspaceFolder` is set to `ROOT` or `HOME`, this extension will refuse to load these directories and show an error message. * show warning message when scanning more than 100,000 files.
Diffstat (limited to 'locale')
-rw-r--r--locale/en-us/script.lua4
-rw-r--r--locale/pt-br/script.lua4
-rw-r--r--locale/zh-cn/script.lua4
-rw-r--r--locale/zh-tw/script.lua4
4 files changed, 16 insertions, 0 deletions
diff --git a/locale/en-us/script.lua b/locale/en-us/script.lua
index 1cba9dd5..f6c069fc 100644
--- a/locale/en-us/script.lua
+++ b/locale/en-us/script.lua
@@ -142,6 +142,10 @@ WORKSPACE_DIAGNOSTIC =
'Diagnosing workspace'
WORKSPACE_SKIP_HUGE_FILE =
'For performance reasons, the parsing of this file has been stopped: {}'
+WORKSPACE_NOT_ALLOWED =
+'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)'
+WORKSPACE_SCAN_TOO_MUCH =
+'More than {} files have been scanned. The current scanned directory is `{}`. Please confirm whether the configuration is correct.'
PARSER_CRASH =
'Parser crashed! Last words:{}'
diff --git a/locale/pt-br/script.lua b/locale/pt-br/script.lua
index 21d8ea55..a5342e1f 100644
--- a/locale/pt-br/script.lua
+++ b/locale/pt-br/script.lua
@@ -142,6 +142,10 @@ WORKSPACE_DIAGNOSTIC =
'Diagnóstico de espaço de trabalho.'
WORKSPACE_SKIP_HUGE_FILE =
'Por motivos de desempenho, a análise deste arquivo foi interrompida: {}'
+WORKSPACE_NOT_ALLOWED = -- TODO: need translate!
+'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)'
+WORKSPACE_SCAN_TOO_MUCH = -- TODO: need translate!
+'More than {} files have been scanned. The current scanned directory is `{}`. Please confirm whether the configuration is correct.'
PARSER_CRASH =
'Parser quebrou! Últimas palavras: {}'
diff --git a/locale/zh-cn/script.lua b/locale/zh-cn/script.lua
index 10a703c7..24bd02bd 100644
--- a/locale/zh-cn/script.lua
+++ b/locale/zh-cn/script.lua
@@ -142,6 +142,10 @@ WORKSPACE_DIAGNOSTIC =
'正在对工作目录进行诊断'
WORKSPACE_SKIP_HUGE_FILE =
'出于性能考虑,已停止对此文件解析:{}'
+WORKSPACE_NOT_ALLOWED =
+'你的工作目录被设置为了 `{}`,Lua语言服务拒绝加载此目录,请检查你的配置。[了解更多](https://github.com/sumneko/lua-language-server/wiki/Why-scanning-home-folder)'
+WORKSPACE_SCAN_TOO_MUCH =
+'已扫描了超过 {} 个文件,当前扫描的目录为 `{}`,请确认配置是否正确。'
PARSER_CRASH =
'语法解析崩溃了!遗言:{}'
diff --git a/locale/zh-tw/script.lua b/locale/zh-tw/script.lua
index cef05b54..4fc652d4 100644
--- a/locale/zh-tw/script.lua
+++ b/locale/zh-tw/script.lua
@@ -142,6 +142,10 @@ WORKSPACE_DIAGNOSTIC =
'正在對工作目錄進行診斷'
WORKSPACE_SKIP_HUGE_FILE =
'出於效能考慮,已停止對此檔案解析:{}'
+WORKSPACE_NOT_ALLOWED = -- TODO: need translate!
+'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)'
+WORKSPACE_SCAN_TOO_MUCH = -- TODO: need translate!
+'More than {} files have been scanned. The current scanned directory is `{}`. Please confirm whether the configuration is correct.'
PARSER_CRASH =
'語法解析崩潰了!遺言:{}'