Skip to content

Commit 87581be

Browse files
committed
don't do diagnostics when workspace is not ready
1 parent e2ca72d commit 87581be

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
## Unreleased
44
<!-- Add all new changes here. They will be moved under a version at release -->
5+
* `FIX` Don't do diagnostics when the workspace is not ready
56
* `NEW` Reference workspace symbols in comments using `[some text](lua://symbolName)` syntax
67

78
## 3.9.0

script/provider/diagnostic.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,9 @@ local function isValid(uri)
246246
if not config.get(uri, 'Lua.diagnostics.enable') then
247247
return false
248248
end
249+
if not ws.isReady(uri) then
250+
return false
251+
end
249252
if files.isLibrary(uri, true) then
250253
local status = config.get(uri, 'Lua.diagnostics.libraryFiles')
251254
if status == 'Disable' then

0 commit comments

Comments
 (0)