Skip to content

Commit bfbd863

Browse files
authored
Merge pull request #181 from alanz/shutdown-response-fix
Fix shutdown response type
2 parents 6ce4f75 + f7c537b commit bfbd863

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

haskell-lsp-types/src/Language/Haskell/LSP/Types/DataTypesJSON.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -794,8 +794,8 @@ Response
794794
795795
-}
796796

797-
type ShutdownRequest = RequestMessage ClientMethod (Maybe A.Value) Text
798-
type ShutdownResponse = ResponseMessage Text
797+
type ShutdownRequest = RequestMessage ClientMethod (Maybe A.Value) (Maybe ())
798+
type ShutdownResponse = ResponseMessage (Maybe ())
799799

800800
-- ---------------------------------------------------------------------
801801
{-

src/Language/Haskell/LSP/Core.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -879,7 +879,7 @@ progressCancelHandler tvarCtx (J.NotificationMessage _ _ (J.ProgressCancelParams
879879
shutdownRequestHandler :: TVar (LanguageContextData config) -> J.ShutdownRequest -> IO ()
880880
shutdownRequestHandler tvarCtx req@(J.RequestMessage _ origId _ _) =
881881
flip E.catches (defaultErrorHandlers tvarCtx (J.responseId origId) req) $ do
882-
let res = makeResponseMessage req "ok"
882+
let res = makeResponseMessage req Nothing
883883

884884
sendResponse tvarCtx $ RspShutdown res
885885

0 commit comments

Comments
 (0)