Skip to content

Commit 1b3c3c3

Browse files
committed
Add 'failedChange'
Just a small missing field.
1 parent 201d376 commit 1b3c3c3

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

lsp-test/src/Language/LSP/Test/Session.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ updateStateC = awaitForever $ \msg -> do
308308
respond (FromServerMess SWindowWorkDoneProgressCreate req) =
309309
sendMessage $ ResponseMessage "2.0" (Just $ req ^. LSP.id) (Right Empty)
310310
respond (FromServerMess SWorkspaceApplyEdit r) = do
311-
sendMessage $ ResponseMessage "2.0" (Just $ r ^. LSP.id) (Right $ ApplyWorkspaceEditResponseBody True Nothing)
311+
sendMessage $ ResponseMessage "2.0" (Just $ r ^. LSP.id) (Right $ ApplyWorkspaceEditResponseBody True Nothing Nothing)
312312
respond _ = pure ()
313313

314314

lsp-types/src/Language/LSP/Types/WorkspaceEdit.hs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -359,6 +359,11 @@ data ApplyWorkspaceEditResponseBody =
359359
-- logging or to provide a suitable error for a request that
360360
-- triggered the edit.
361361
, _failureReason :: Maybe Text
362+
-- | Depending on the client's failure handling strategy `failedChange`
363+
-- might contain the index of the change that failed. This property is
364+
-- only available if the client signals a `failureHandling` strategy
365+
-- in its client capabilities.
366+
, _failedChange :: Maybe Word32
362367
} deriving (Show, Read, Eq)
363368

364369
deriveJSON lspOptions ''ApplyWorkspaceEditResponseBody

0 commit comments

Comments
 (0)