diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-11-25 21:38:57 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-11-25 21:38:57 +0800 |
commit | 5ec8ad22d27051507c55d49d6144f08132976215 (patch) | |
tree | 75c843f738c0283eb19516293f857d29560d9b3c /test/full | |
parent | 24f4dfa889cc66bd05223e5d8d36fa19865c772b (diff) | |
download | lua-language-server-5ec8ad22d27051507c55d49d6144f08132976215.zip |
cleanup
Diffstat (limited to 'test/full')
-rw-r--r-- | test/full/example.lua | 2 | ||||
-rw-r--r-- | test/full/init.lua | 4 | ||||
-rw-r--r-- | test/full/projects.lua | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/test/full/example.lua b/test/full/example.lua index 0505f1a5..c0ce23ee 100644 --- a/test/full/example.lua +++ b/test/full/example.lua @@ -10,7 +10,7 @@ local noder = require 'core.noder' -- 临时 ---@diagnostic disable: await-in-sync local function testIfExit(path) - config.set('Lua.workspace.preloadFileSize', 1000000000) + config.set(nil, 'Lua.workspace.preloadFileSize', 1000000000) local buf = util.loadFile(path:string()) if buf then local state diff --git a/test/full/init.lua b/test/full/init.lua index 9584db6f..e83a7d6d 100644 --- a/test/full/init.lua +++ b/test/full/init.lua @@ -12,9 +12,9 @@ function TEST(script) end local function startCollectDiagTimes() - for name in pairs(config.get 'Lua.diagnostics.neededFileStatus') do + for name in pairs(config.get(nil, 'Lua.diagnostics.neededFileStatus')) do if name ~= 'no-implicit-any' then - --config.get 'Lua.diagnostics.neededFileStatus'[name] = 'Any' + --config.get(nil, 'Lua.diagnostics.neededFileStatus')[name] = 'Any' end end DIAGTIMES = {} diff --git a/test/full/projects.lua b/test/full/projects.lua index a095f316..7beaa026 100644 --- a/test/full/projects.lua +++ b/test/full/projects.lua @@ -6,8 +6,8 @@ local config = require 'config' local ws = require 'workspace' local fs = require 'bee.filesystem' -config.set('Lua.workspace.preloadFileSize', 1000000) -config.set('Lua.diagnostics.neededFileStatus', { +config.set(nil, 'Lua.workspace.preloadFileSize', 1000000) +config.set(nil, 'Lua.diagnostics.neededFileStatus', { ['await-in-sync'] = 'Any', ['not-yieldable'] = 'Any', }) |