File tree 2 files changed +6
-0
lines changed
2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -665,6 +665,10 @@ function m.compileState(uri)
665
665
}
666
666
667
667
local ws = require ' workspace'
668
+ local client = require ' client'
669
+ if not client .isReady () then
670
+ log .error (' Client not ready!' , uri )
671
+ end
668
672
local prog <close> = progress .create (uri , lang .script .WINDOW_COMPILING , 0.5 )
669
673
prog :setMessage (ws .getRelativePath (uri ))
670
674
log .trace (' Compile State:' , uri )
Original file line number Diff line number Diff line change @@ -866,11 +866,13 @@ m.register 'textDocument/codeAction' {
866
866
},
867
867
},
868
868
abortByFileUpdate = true ,
869
+ --- @async
869
870
function (params )
870
871
local core = require ' core.code-action'
871
872
local uri = files .getRealUri (params .textDocument .uri )
872
873
local range = params .range
873
874
local diagnostics = params .context .diagnostics
875
+ workspace .awaitReady (uri )
874
876
875
877
local state = files .getState (uri )
876
878
if not state then
You can’t perform that action at this time.
0 commit comments