summaryrefslogtreecommitdiff
path: root/script/provider
diff options
context:
space:
mode:
Diffstat (limited to 'script/provider')
-rw-r--r--script/provider/provider.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/script/provider/provider.lua b/script/provider/provider.lua
index 62395df2..7e06c809 100644
--- a/script/provider/provider.lua
+++ b/script/provider/provider.lua
@@ -866,11 +866,13 @@ m.register 'textDocument/codeAction' {
},
},
abortByFileUpdate = true,
+ ---@async
function (params)
local core = require 'core.code-action'
local uri = files.getRealUri(params.textDocument.uri)
local range = params.range
local diagnostics = params.context.diagnostics
+ workspace.awaitReady(uri)
local state = files.getState(uri)
if not state then