File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
lsp-test/src/Language/LSP/Test
lsp-types/src/Language/LSP/Types Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -308,7 +308,7 @@ updateStateC = awaitForever $ \msg -> do
308
308
respond (FromServerMess SWindowWorkDoneProgressCreate req) =
309
309
sendMessage $ ResponseMessage " 2.0" (Just $ req ^. LSP. id ) (Right Empty )
310
310
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 )
312
312
respond _ = pure ()
313
313
314
314
Original file line number Diff line number Diff line change @@ -359,6 +359,11 @@ data ApplyWorkspaceEditResponseBody =
359
359
-- logging or to provide a suitable error for a request that
360
360
-- triggered the edit.
361
361
, _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
362
367
} deriving (Show , Read , Eq )
363
368
364
369
deriveJSON lspOptions ''ApplyWorkspaceEditResponseBody
You can’t perform that action at this time.
0 commit comments