Skip to content

Commit 4e0180b

Browse files
committed
update defaults of settings
1 parent 46b57f6 commit 4e0180b

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1055,7 +1055,7 @@
10551055
"type": "object"
10561056
},
10571057
"Lua.diagnostics.workspaceDelay": {
1058-
"default": 0,
1058+
"default": 3,
10591059
"markdownDescription": "%config.diagnostics.workspaceDelay%",
10601060
"scope": "resource",
10611061
"type": "integer"
@@ -1501,13 +1501,13 @@
15011501
"type": "array"
15021502
},
15031503
"Lua.workspace.maxPreload": {
1504-
"default": 1000,
1504+
"default": 5000,
15051505
"markdownDescription": "%config.workspace.maxPreload%",
15061506
"scope": "resource",
15071507
"type": "integer"
15081508
},
15091509
"Lua.workspace.preloadFileSize": {
1510-
"default": 100,
1510+
"default": 500,
15111511
"markdownDescription": "%config.workspace.preloadFileSize%",
15121512
"scope": "resource",
15131513
"type": "integer"

package/configuration.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ local config = {
143143
["Lua.diagnostics.workspaceDelay"] = {
144144
scope = 'resource',
145145
type = "integer",
146-
default = 0,
146+
default = 3,
147147
markdownDescription = "%config.diagnostics.workspaceDelay%",
148148
},
149149
["Lua.diagnostics.workspaceRate"] = {
@@ -210,13 +210,13 @@ local config = {
210210
["Lua.workspace.maxPreload"] = {
211211
scope = 'resource',
212212
type = "integer",
213-
default = 1000,
213+
default = 5000,
214214
markdownDescription = "%config.workspace.maxPreload%"
215215
},
216216
["Lua.workspace.preloadFileSize"] = {
217217
scope = 'resource',
218218
type = "integer",
219-
default = 100,
219+
default = 500,
220220
markdownDescription = "%config.workspace.preloadFileSize%"
221221
},
222222
["Lua.workspace.library"] = {

setting/schema-zh-cn.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1109,7 +1109,7 @@
11091109
"type": "object"
11101110
},
11111111
"diagnostics.workspaceDelay": {
1112-
"default": 0,
1112+
"default": 3,
11131113
"markdownDescription": "进行工作区诊断的延迟(毫秒)。当你启动工作区,或编辑了任意文件后,将会在后台对整个工作区进行重新诊断。设置为负数可以禁用工作区诊断。",
11141114
"scope": "resource",
11151115
"type": "integer"
@@ -1702,13 +1702,13 @@
17021702
"type": "array"
17031703
},
17041704
"workspace.maxPreload": {
1705-
"default": 1000,
1705+
"default": 5000,
17061706
"markdownDescription": "最大预加载文件数。",
17071707
"scope": "resource",
17081708
"type": "integer"
17091709
},
17101710
"workspace.preloadFileSize": {
1711-
"default": 100,
1711+
"default": 500,
17121712
"markdownDescription": "预加载时跳过大小大于该值(KB)的文件。",
17131713
"scope": "resource",
17141714
"type": "integer"

setting/schema.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1109,7 +1109,7 @@
11091109
"type": "object"
11101110
},
11111111
"diagnostics.workspaceDelay": {
1112-
"default": 0,
1112+
"default": 3,
11131113
"markdownDescription": "Latency (milliseconds) for workspace diagnostics. When you start the workspace, or edit any file, the entire workspace will be re-diagnosed in the background. Set to negative to disable workspace diagnostics.",
11141114
"scope": "resource",
11151115
"type": "integer"
@@ -1702,13 +1702,13 @@
17021702
"type": "array"
17031703
},
17041704
"workspace.maxPreload": {
1705-
"default": 1000,
1705+
"default": 5000,
17061706
"markdownDescription": "Max preloaded files.",
17071707
"scope": "resource",
17081708
"type": "integer"
17091709
},
17101710
"workspace.preloadFileSize": {
1711-
"default": 100,
1711+
"default": 500,
17121712
"markdownDescription": "Skip files larger than this value (KB) when preloading.",
17131713
"scope": "resource",
17141714
"type": "integer"

0 commit comments

Comments
 (0)