1-- Copyright (c) 2019 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
2-- SPDX-License-Identifier: Apache-2.0
3{-# LANGUAGE PatternSynonyms #-}
5module Development.IDE.LSP.Protocol
6 ( module Language.Haskell.LSP.Types
8 , ServerNotification(..)
9 , pattern EventFileDiagnostics
12import qualified Data.Aeson as Aeson
13import qualified Data.Text as T
14import Development.IDE.Types.Diagnostics
15import Development.IDE.Types.Location
16import Language.Haskell.LSP.Messages
19import Language.Haskell.LSP.Types hiding
28-- | Request sent by the client to the server.
32 | Completion !CompletionParams
33 | SignatureHelp !TextDocumentPositionParams
34 | Hover !TextDocumentPositionParams
35 | Definition !TextDocumentPositionParams
36 | References !ReferenceParams
37 | CodeLens !CodeLensParams
38 | Rename !RenameParams
39 | DocumentSymbol !DocumentSymbolParams
40 | WorkspaceSymbol !WorkspaceSymbolParams
41 | Formatting !DocumentFormattingParams
42 | UnknownRequest !T.Text !Aeson.Value
45data ServerNotification
46 = DidOpenTextDocument DidOpenTextDocumentParams
47 | DidChangeTextDocument DidChangeTextDocumentParams
48 | DidCloseTextDocument DidCloseTextDocumentParams
49 | DidSaveTextDocument DidSaveTextDocumentParams
50 | UnknownNotification T.Text Aeson.Value
52----------------------------------------------------------------------------------------------------
54----------------------------------------------------------------------------------------------------
56-- | Pattern synonym to make it a bit more convenient to match on diagnostics
57-- in things like damlc test.
58pattern EventFileDiagnostics :: FilePath -> [Diagnostic] -> FromServerMessage
59pattern EventFileDiagnostics fp diags <-
61 (NotificationMessage _ _ (PublishDiagnosticsParams (uriToFilePath' -> Just fp) (List diags)))
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list