Skip to content

Fix and enable disabled code action unit tests, fix fallback handler #643

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
5 changes: 2 additions & 3 deletions hls-plugin-api/src/Ide/Plugin.hs
Original file line number Diff line number Diff line change
Expand Up @@ -238,9 +238,8 @@ makeExecuteCommands ecs lf ide = wrapUnhandledExceptions $ do
-- Send off the workspace request if it has one
forM_ mEdit $ \edit -> do
let eParams = J.ApplyWorkspaceEditParams edit
-- TODO: Use lspfuncs to send an applyedit message. Or change
-- the API to allow a list of messages to be returned.
return (Right J.Null, Just(J.WorkspaceApplyEdit, eParams))
reqId <- LSP.getNextReqId lf
LSP.sendFunc lf $ ReqApplyWorkspaceEdit $ RequestMessage "2.0" reqId WorkspaceApplyEdit eParams

case mCmd of
-- If we have a command, continue to execute it
Expand Down
Loading