From fbdfcb59b261672454aee34d486e7f06b5a5d114 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Tue, 18 Jan 2022 20:51:08 +0800 Subject: update default setting values --- changelog.md | 4 ++++ script/config/config.lua | 6 +++--- 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), diff --git a/test.lua b/test.lua index 9f29b9d9..2cdb8c5e 100644 --- a/test.lua +++ b/test.lua @@ -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' -- cgit v1.2.3