File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 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)
665665 }
666666
667667 local ws = require ' workspace'
668+ local client = require ' client'
669+ if not client .isReady () then
670+ log .error (' Client not ready!' , uri )
671+ end
668672 local prog <close> = progress .create (uri , lang .script .WINDOW_COMPILING , 0.5 )
669673 prog :setMessage (ws .getRelativePath (uri ))
670674 log .trace (' Compile State:' , uri )
Original file line number Diff line number Diff line change @@ -866,11 +866,13 @@ m.register 'textDocument/codeAction' {
866866 },
867867 },
868868 abortByFileUpdate = true ,
869+ --- @async
869870 function (params )
870871 local core = require ' core.code-action'
871872 local uri = files .getRealUri (params .textDocument .uri )
872873 local range = params .range
873874 local diagnostics = params .context .diagnostics
875+ workspace .awaitReady (uri )
874876
875877 local state = files .getState (uri )
876878 if not state then
You can’t perform that action at this time.
0 commit comments