summaryrefslogtreecommitdiff
path: root/script/provider
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-11-29 18:57:43 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-11-29 18:57:43 +0800
commitc6271c7022c91a366b6c81ecda60e9946266c1bd (patch)
tree93049e1a16f93e465b0a09c675ef96e3b781156d /script/provider
parentac3be36d170dfbfaa7c9f9a5d3ace10ccce8cfe4 (diff)
downloadlua-language-server-c6271c7022c91a366b6c81ecda60e9946266c1bd.zip
fix compiling for multi-workspace
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