projects
/
lsp-test.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
23b1dcf
)
Handle CustomClientMethod
author
Pepe Iborra
<pepeiborra@gmail.com>
Sat, 5 Sep 2020 22:54:29 +0000
(23:54 +0100)
committer
Pepe Iborra
<pepeiborra@gmail.com>
Sat, 5 Sep 2020 22:56:00 +0000
(23:56 +0100)
src/Language/Haskell/LSP/Test/Decoding.hs
patch
|
blob
|
history
diff --git
a/src/Language/Haskell/LSP/Test/Decoding.hs
b/src/Language/Haskell/LSP/Test/Decoding.hs
index 8805976c3dedcaef8be8c88fd06c904f1d6b0c36..350b5251ad8b49133d3be5086852e3984f682a8c 100644
(file)
--- a/
src/Language/Haskell/LSP/Test/Decoding.hs
+++ b/
src/Language/Haskell/LSP/Test/Decoding.hs
@@
-116,6
+116,7
@@
matchResponseMsgType req = case req of
TextDocumentDocumentLink -> RspDocumentLink . decoded
DocumentLinkResolve -> RspDocumentLinkResolve . decoded
TextDocumentWillSaveWaitUntil -> RspWillSaveWaitUntil . decoded
+ CustomClientMethod{} -> RspCustomServer . decoded
x -> error . ((show x ++ " is not a request: ") ++) . show
where decoded x = fromMaybe (error $ "Couldn't decode response for the request type: "
++ show req ++ "\n" ++ show x)