Skip to content

Commit 85f7e6f

Browse files
authored
Merge pull request #2546 from emmericp/check-only-ws
Only load files in workspace for --check (skip libraries)
2 parents 16d39f0 + fe62853 commit 85f7e6f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

script/cli/check.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ if not rootUri then
2727
print(lang.script('CLI_CHECK_ERROR_URI', rootPath))
2828
return
2929
end
30+
rootUri = rootUri:gsub("/$", "")
3031

3132
if CHECKLEVEL then
3233
if not define.DiagnosticSeverity[CHECKLEVEL] then
@@ -70,7 +71,7 @@ lclient():start(function (client)
7071
end
7172
config.set(rootUri, 'Lua.diagnostics.disable', util.getTableKeys(disables, true))
7273

73-
local uris = files.getAllUris(rootUri)
74+
local uris = files.getChildFiles(rootUri)
7475
local max = #uris
7576
for i, uri in ipairs(uris) do
7677
files.open(uri)

0 commit comments

Comments
 (0)