Skip to content

Commit f8fdf2a

Browse files
authored
Merge pull request #643 from peterwicksstringfield/enable_code_action_tests
Fix and enable disabled code action unit tests, fix fallback handler
2 parents f8d0012 + 4c9de9e commit f8fdf2a

File tree

6 files changed

+167
-160
lines changed

6 files changed

+167
-160
lines changed

Diff for: hls-plugin-api/src/Ide/Plugin.hs

+2-3
Original file line numberDiff line numberDiff line change
@@ -238,9 +238,8 @@ makeExecuteCommands ecs lf ide = wrapUnhandledExceptions $ do
238238
-- Send off the workspace request if it has one
239239
forM_ mEdit $ \edit -> do
240240
let eParams = J.ApplyWorkspaceEditParams edit
241-
-- TODO: Use lspfuncs to send an applyedit message. Or change
242-
-- the API to allow a list of messages to be returned.
243-
return (Right J.Null, Just(J.WorkspaceApplyEdit, eParams))
241+
reqId <- LSP.getNextReqId lf
242+
LSP.sendFunc lf $ ReqApplyWorkspaceEdit $ RequestMessage "2.0" reqId WorkspaceApplyEdit eParams
244243

245244
case mCmd of
246245
-- If we have a command, continue to execute it

0 commit comments

Comments
 (0)