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)