diff options
-rw-r--r-- | changelog.md | 4 | ||||
-rw-r--r-- | script/config/config.lua | 6 | ||||
-rw-r--r-- | test.lua | 3 |
3 files changed, 9 insertions, 4 deletions
diff --git a/changelog.md b/changelog.md index ba61c5c7..88ab37f4 100644 --- a/changelog.md +++ b/changelog.md @@ -1,6 +1,10 @@ # changelog ## 2.6.1 +* `CHG` default values of settings: + + `Lua.diagnostics.workspaceDelay`: `0` sec -> `3` sec + + `Lua.workspace.maxPreload`: `1000` -> `5000` + + `Lua.workspace.preloadFileSize`: `100` KB -> `500` KB * `FIX` modify luarc failed * `FIX` library files not recognized correctly * `FIX` [#906](https://github.com/sumneko/lua-language-server/issues/906) diff --git a/script/config/config.lua b/script/config/config.lua index c4ab69dc..06309d72 100644 --- a/script/config/config.lua +++ b/script/config/config.lua @@ -167,15 +167,15 @@ local Template = { >> util.deepCopy(define.DiagnosticDefaultSeverity), ['Lua.diagnostics.neededFileStatus'] = Type.Hash(Type.String, Type.String) >> util.deepCopy(define.DiagnosticDefaultNeededFileStatus), - ['Lua.diagnostics.workspaceDelay'] = Type.Integer >> 0, + ['Lua.diagnostics.workspaceDelay'] = Type.Integer >> 5, ['Lua.diagnostics.workspaceRate'] = Type.Integer >> 100, ['Lua.diagnostics.libraryFiles'] = Type.String >> 'Opened', ['Lua.diagnostics.ignoredFiles'] = Type.String >> 'Opened', ['Lua.workspace.ignoreDir'] = Type.Array(Type.String), ['Lua.workspace.ignoreSubmodules'] = Type.Boolean >> true, ['Lua.workspace.useGitIgnore'] = Type.Boolean >> true, - ['Lua.workspace.maxPreload'] = Type.Integer >> 1000, - ['Lua.workspace.preloadFileSize'] = Type.Integer >> 100, + ['Lua.workspace.maxPreload'] = Type.Integer >> 3000, + ['Lua.workspace.preloadFileSize'] = Type.Integer >> 500, ['Lua.workspace.library'] = Type.Hash(Type.String, Type.Boolean, ';'), ['Lua.workspace.checkThirdParty'] = Type.Boolean >> true, ['Lua.workspace.userThirdParty'] = Type.Array(Type.String), @@ -20,6 +20,8 @@ log = require 'log' log.init(ROOT, ROOT / 'log' / 'test.log') log.debug('测试开始') +LOCALE = 'zh-cn' + --dofile((ROOT / 'build_package.lua'):string()) require 'tracy' @@ -67,7 +69,6 @@ local function testAll() end local function main() - LOCALE = 'zh-cn' require 'utility'.enableCloseFunction() require 'client' .client 'VSCode' |