diff options
Diffstat (limited to 'script/cli/check.lua')
-rw-r--r-- | script/cli/check.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/script/cli/check.lua b/script/cli/check.lua index 146035b6..84ac8766 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) |