summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-01-18 20:51:08 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-01-18 20:51:08 +0800
commitfbdfcb59b261672454aee34d486e7f06b5a5d114 (patch)
tree120204a4055fab5eb487559258735f1524650a78
parent2f6cd61ad2f37a680be1a0c19e09ff4fee1af48d (diff)
downloadlua-language-server-fbdfcb59b261672454aee34d486e7f06b5a5d114.zip
update default setting values
-rw-r--r--changelog.md4
-rw-r--r--script/config/config.lua6
-rw-r--r--test.lua3
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'