1-- Copyright (c) 2019 The DAML Authors. All rights reserved.
2-- SPDX-License-Identifier: Apache-2.0
3{-# LANGUAGE PatternSynonyms #-}
5module Development.IDE.LSP.Protocol
6 ( pattern EventFileDiagnostics
9import Development.IDE.Types.Diagnostics
10import Development.IDE.Types.Location
11import Language.Haskell.LSP.Messages
12import Language.Haskell.LSP.Types
14----------------------------------------------------------------------------------------------------
16----------------------------------------------------------------------------------------------------
18-- | Pattern synonym to make it a bit more convenient to match on diagnostics
19-- in things like damlc test.
20pattern EventFileDiagnostics :: FilePath -> [Diagnostic] -> FromServerMessage
21pattern EventFileDiagnostics fp diags <-
23 (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