Skip to content

Commit fbdfcb5

Browse files
committed
update default setting values
1 parent 2f6cd61 commit fbdfcb5

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

changelog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# changelog
22

33
## 2.6.1
4+
* `CHG` default values of settings:
5+
+ `Lua.diagnostics.workspaceDelay`: `0` sec -> `3` sec
6+
+ `Lua.workspace.maxPreload`: `1000` -> `5000`
7+
+ `Lua.workspace.preloadFileSize`: `100` KB -> `500` KB
48
* `FIX` modify luarc failed
59
* `FIX` library files not recognized correctly
610
* `FIX` [#906](https://github.com/sumneko/lua-language-server/issues/906)

script/config/config.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,15 +167,15 @@ local Template = {
167167
>> util.deepCopy(define.DiagnosticDefaultSeverity),
168168
['Lua.diagnostics.neededFileStatus'] = Type.Hash(Type.String, Type.String)
169169
>> util.deepCopy(define.DiagnosticDefaultNeededFileStatus),
170-
['Lua.diagnostics.workspaceDelay'] = Type.Integer >> 0,
170+
['Lua.diagnostics.workspaceDelay'] = Type.Integer >> 5,
171171
['Lua.diagnostics.workspaceRate'] = Type.Integer >> 100,
172172
['Lua.diagnostics.libraryFiles'] = Type.String >> 'Opened',
173173
['Lua.diagnostics.ignoredFiles'] = Type.String >> 'Opened',
174174
['Lua.workspace.ignoreDir'] = Type.Array(Type.String),
175175
['Lua.workspace.ignoreSubmodules'] = Type.Boolean >> true,
176176
['Lua.workspace.useGitIgnore'] = Type.Boolean >> true,
177-
['Lua.workspace.maxPreload'] = Type.Integer >> 1000,
178-
['Lua.workspace.preloadFileSize'] = Type.Integer >> 100,
177+
['Lua.workspace.maxPreload'] = Type.Integer >> 3000,
178+
['Lua.workspace.preloadFileSize'] = Type.Integer >> 500,
179179
['Lua.workspace.library'] = Type.Hash(Type.String, Type.Boolean, ';'),
180180
['Lua.workspace.checkThirdParty'] = Type.Boolean >> true,
181181
['Lua.workspace.userThirdParty'] = Type.Array(Type.String),

test.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ log = require 'log'
2020
log.init(ROOT, ROOT / 'log' / 'test.log')
2121
log.debug('测试开始')
2222

23+
LOCALE = 'zh-cn'
24+
2325
--dofile((ROOT / 'build_package.lua'):string())
2426
require 'tracy'
2527

@@ -67,7 +69,6 @@ local function testAll()
6769
end
6870

6971
local function main()
70-
LOCALE = 'zh-cn'
7172
require 'utility'.enableCloseFunction()
7273
require 'client' .client 'VSCode'
7374

0 commit comments

Comments
 (0)