diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-01-28 20:06:27 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-01-28 20:06:27 +0800 |
commit | 91ac06cc06ce136a9563a51fefea3680d937dc5c (patch) | |
tree | 15812ae418956c78ddb08a04e162b9e992f20613 | |
parent | 0c083272ea34af6705ad838d013fe2a3a85234a2 (diff) | |
download | lua-language-server-91ac06cc06ce136a9563a51fefea3680d937dc5c.zip |
update
-rw-r--r-- | script/provider/diagnostic.lua | 2 | ||||
-rw-r--r-- | script/workspace/workspace.lua | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/script/provider/diagnostic.lua b/script/provider/diagnostic.lua index 9f9416fb..29d01a6c 100644 --- a/script/provider/diagnostic.lua +++ b/script/provider/diagnostic.lua @@ -278,7 +278,7 @@ local function askForDisable() } }) elseif item.title == lang.script.WINDOW_DISABLE_DIAGNOSTIC then - proto.notify('workspace/executeCommand', { + proto.notify('$/command', { command = 'lua.config', data = { key = 'Lua.diagnostics.workspaceDelay', diff --git a/script/workspace/workspace.lua b/script/workspace/workspace.lua index 368add6b..d0676b30 100644 --- a/script/workspace/workspace.lua +++ b/script/workspace/workspace.lua @@ -201,7 +201,7 @@ local function loadFileFactory(root, progressData, isLibrary) data = { key = 'Lua.workspace.maxPreload', action = 'set', - value = config.config.workspace.maxPreload * 2, + value = config.config.workspace.maxPreload + math.max(1000, config.config.workspace.maxPreload), } }) end |