Skip to content

Commit

Permalink
don't do diagnostics when workspace is not ready
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Jun 4, 2024
1 parent e2ca72d commit b0cd231
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions script/provider/diagnostic.lua
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,9 @@ local function isValid(uri)
if not config.get(uri, 'Lua.diagnostics.enable') then
return false
end
if not ws.isReady(uri) then
return false
end
if files.isLibrary(uri, true) then
local status = config.get(uri, 'Lua.diagnostics.libraryFiles')
if status == 'Disable' then
Expand Down

0 comments on commit b0cd231

Please sign in to comment.