From fe6285335360e62a511ff55417c810c0364dd37a Mon Sep 17 00:00:00 2001 From: Paul Emmerich Date: Mon, 26 Feb 2024 20:41:50 +0100 Subject: [PATCH] Only load files in workspace for --check (skip libraries) --- script/cli/check.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/script/cli/check.lua b/script/cli/check.lua index 146035b62..84ac8766e 100644 --- a/script/cli/check.lua +++ b/script/cli/check.lua @@ -27,6 +27,7 @@ if not rootUri then print(lang.script('CLI_CHECK_ERROR_URI', rootPath)) return end +rootUri = rootUri:gsub("/$", "") if CHECKLEVEL then if not define.DiagnosticSeverity[CHECKLEVEL] then @@ -70,7 +71,7 @@ lclient():start(function (client) end config.set(rootUri, 'Lua.diagnostics.disable', util.getTableKeys(disables, true)) - local uris = files.getAllUris(rootUri) + local uris = files.getChildFiles(rootUri) local max = #uris for i, uri in ipairs(uris) do files.open(uri)