Skip to content

Commit

Permalink
Only load files in workspace for --check (skip libraries)
Browse files Browse the repository at this point in the history
  • Loading branch information
emmericp committed Feb 26, 2024
1 parent 3723346 commit fe62853
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion script/cli/check.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit fe62853

Please sign in to comment.