summaryrefslogtreecommitdiff
path: root/script/core/code-action.lua
diff options
context:
space:
mode:
authorSewbacca <sebastian.kalus@kolabnow.com>2023-06-23 22:05:34 +0200
committerSewbacca <sebastian.kalus@kolabnow.com>2023-06-23 22:05:34 +0200
commit82743b19dc64cc9b1859f9a81246d5b4f7a494b5 (patch)
tree0ed4ac736fca0b4e95558ecad8d6751be70ad0fe /script/core/code-action.lua
parent62d4d35faf325788355ea9854bee54383db5acdb (diff)
downloadlua-language-server-82743b19dc64cc9b1859f9a81246d5b4f7a494b5.zip
Fix tests failing
Diffstat (limited to 'script/core/code-action.lua')
-rw-r--r--script/core/code-action.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/script/core/code-action.lua b/script/core/code-action.lua
index fa0e0f10..9fbdabce 100644
--- a/script/core/code-action.lua
+++ b/script/core/code-action.lua
@@ -688,6 +688,10 @@ local function findRequireTargets(visiblePaths)
end
local function checkMissingRequire(results, uri, start, finish, diagnostics)
+ if not diagnostics then
+ return
+ end
+
local state = files.getState(uri)
local text = files.getText(uri)
if not state or not text then