projects
/
lsp-test.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' into travis-windows
[lsp-test.git]
/
src
/
Language
/
Haskell
/
LSP
/
Test
/
Messages.hs
diff --git
a/src/Language/Haskell/LSP/Test/Messages.hs
b/src/Language/Haskell/LSP/Test/Messages.hs
index fd568c0b07ae61aad5c5a646ced7c21306db5f43..4c1141d113d91103b0cd74752888a3a8d6a0f97b 100644
(file)
--- a/
src/Language/Haskell/LSP/Test/Messages.hs
+++ b/
src/Language/Haskell/LSP/Test/Messages.hs
@@
-3,7
+3,7
@@
module Language.Haskell.LSP.Test.Messages where
import Data.Aeson
import Language.Haskell.LSP.Messages
import Data.Aeson
import Language.Haskell.LSP.Messages
-import Language.Haskell.LSP.Types
hiding (error)
+import Language.Haskell.LSP.Types
isServerResponse :: FromServerMessage -> Bool
isServerResponse (RspInitialize _) = True
isServerResponse :: FromServerMessage -> Bool
isServerResponse (RspInitialize _) = True
@@
-81,6
+81,11
@@
handleServerMessage request response notification msg = case msg of
(RspDocumentLink m) -> response m
(RspDocumentLinkResolve m) -> response m
(RspWillSaveWaitUntil m) -> response m
(RspDocumentLink m) -> response m
(RspDocumentLinkResolve m) -> response m
(RspWillSaveWaitUntil m) -> response m
+ (RspTypeDefinition m) -> response m
+ (RspImplementation m) -> response m
+ (RspDocumentColor m) -> response m
+ (RspColorPresentation m) -> response m
+ (RspFoldingRange m) -> response m
(NotPublishDiagnostics m) -> notification m
(NotLogMessage m) -> notification m
(NotShowMessage m) -> notification m
(NotPublishDiagnostics m) -> notification m
(NotLogMessage m) -> notification m
(NotShowMessage m) -> notification m
@@
-117,6
+122,11
@@
handleClientMessage request response notification msg = case msg of
(ReqDocumentLink m) -> request m
(ReqDocumentLinkResolve m) -> request m
(ReqWillSaveWaitUntil m) -> request m
(ReqDocumentLink m) -> request m
(ReqDocumentLinkResolve m) -> request m
(ReqWillSaveWaitUntil m) -> request m
+ (ReqImplementation m) -> request m
+ (ReqTypeDefinition m) -> request m
+ (ReqDocumentColor m) -> request m
+ (ReqColorPresentation m) -> request m
+ (ReqFoldingRange m) -> request m
(RspApplyWorkspaceEdit m) -> response m
(RspFromClient m) -> response m
(NotInitialized m) -> notification m
(RspApplyWorkspaceEdit m) -> response m
(RspFromClient m) -> response m
(NotInitialized m) -> notification m
@@
-129,4
+139,5
@@
handleClientMessage request response notification msg = case msg of
(NotWillSaveTextDocument m) -> notification m
(NotDidSaveTextDocument m) -> notification m
(NotDidChangeWatchedFiles m) -> notification m
(NotWillSaveTextDocument m) -> notification m
(NotDidSaveTextDocument m) -> notification m
(NotDidChangeWatchedFiles m) -> notification m
+ (NotDidChangeWorkspaceFolders m) -> notification m
(UnknownFromClientMessage m) -> error $ "Unknown message sent from client: " ++ show m
(UnknownFromClientMessage m) -> error $ "Unknown message sent from client: " ++ show m