diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-05-25 18:05:02 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-05-25 18:05:02 +0800 |
commit | 99e124ef95b65fe29f56cb5492538585574e8ded (patch) | |
tree | be7733d737a72ec4cefcadce7814ea1b917b015f /locale/en-us/script.lua | |
parent | c586a11e9ae9b3f001c39d7f2f6762b0cf7af671 (diff) | |
download | lua-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/en-us/script.lua')
-rw-r--r-- | locale/en-us/script.lua | 4 |
1 files changed, 4 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:{}' |