diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-06-18 15:56:17 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-06-18 15:56:17 +0800 |
commit | 58f38669e7968e9035bbf3bc63ace98c1ae02d7e (patch) | |
tree | 4e2aa46f98bd6d9c622a3e6973802e4b440d1046 | |
parent | 8cf347df014f16dc88c5c9edec37f2077e335854 (diff) | |
download | lua-language-server-58f38669e7968e9035bbf3bc63ace98c1ae02d7e.zip |
update
-rw-r--r-- | script/proto/define.lua | 2 | ||||
-rw-r--r-- | test/full/init.lua | 10 | ||||
-rw-r--r-- | test/full/projects.lua | 9 |
3 files changed, 12 insertions, 9 deletions
diff --git a/script/proto/define.lua b/script/proto/define.lua index f2ee7ab5..a07a3903 100644 --- a/script/proto/define.lua +++ b/script/proto/define.lua @@ -103,7 +103,7 @@ m.DiagnosticDefaultNeededFileStatus = { ['unused-local'] = 'Opened', ['unused-function'] = 'Opened', ['undefined-global'] = 'Any', - ['undefined-field'] = 'Any', + ['undefined-field'] = 'Opened', ['global-in-nil-env'] = 'Any', ['unused-label'] = 'Opened', ['unused-vararg'] = 'Opened', diff --git a/test/full/init.lua b/test/full/init.lua index aec361de..1b634e22 100644 --- a/test/full/init.lua +++ b/test/full/init.lua @@ -13,18 +13,18 @@ end local function startCollectDiagTimes() for name in pairs(config.config.diagnostics.neededFileStatus) do if name ~= 'no-implicit-any' then - config.config.diagnostics.neededFileStatus[name] = 'Any' + --config.config.diagnostics.neededFileStatus[name] = 'Any' end end DIAGTIMES = {} end startCollectDiagTimes() -require 'full.normal' -require 'full.example' -require 'full.dirty' +--require 'full.normal' +--require 'full.example' +--require 'full.dirty' require 'full.projects' -require 'full.self' +--require 'full.self' for name, time in util.sortPairs(DIAGTIMES, function (k1, k2) return DIAGTIMES[k1] < DIAGTIMES[k2] diff --git a/test/full/projects.lua b/test/full/projects.lua index 54192ee7..6e336df8 100644 --- a/test/full/projects.lua +++ b/test/full/projects.lua @@ -6,6 +6,9 @@ local config = require 'config' local ws = require 'workspace' local fs = require 'bee.filesystem' +config.config.workspace.preloadFileSize = 1000000 +config.config.diagnostics.neededFileStatus = {} + local function doProjects(pathname) files.removeAll() @@ -19,7 +22,7 @@ local function doProjects(pathname) local uri = furi.encode(path:string()) local text = fsu.loadFile(path) files.setText(uri, text) - files.open(uri) + --files.open(uri) end) print('开始诊断...') @@ -39,5 +42,5 @@ local function doProjects(pathname) print('基准全量诊断用时:', passed) end ---doProjects [[C:\SSSEditor\client\Output\Lua]] ---doProjects [[C:\W3-Server\script]] +doProjects [[C:\SSSEditor\client\Output\Lua]] +doProjects [[C:\W3-Server\script]] |