Skip to content

Commit 82743b1

Browse files
committed
Fix tests failing
1 parent 62d4d35 commit 82743b1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

script/core/code-action.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -688,6 +688,10 @@ local function findRequireTargets(visiblePaths)
688688
end
689689

690690
local function checkMissingRequire(results, uri, start, finish, diagnostics)
691+
if not diagnostics then
692+
return
693+
end
694+
691695
local state = files.getState(uri)
692696
local text = files.getText(uri)
693697
if not state or not text then

0 commit comments

Comments
 (0)