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 #-}
4module Development.IDE.Types.LSP
8 , pattern EventFileDiagnostics
12import qualified Data.Text as T
13import Development.IDE.Types.Diagnostics
15import Language.Haskell.LSP.Messages
16import Language.Haskell.LSP.Types
18-- | Different types of content we can show on hover.
20 = HoverDamlCode !T.Text
21 -- ^ Highlighted DAML-Code
22 | HoverMarkdown !T.Text
26getHoverTextContent :: HoverText -> T.Text
27getHoverTextContent = \case
32data VirtualResource = VRScenario
33 { vrScenarioFile :: !NormalizedFilePath
34 , vrScenarioName :: !T.Text
35 } deriving (Eq, Ord, Show, Generic)
36 -- ^ VRScenario identifies a scenario in a given file.
37 -- This virtual resource is associated with the HTML result of
38 -- interpreting the corresponding scenario.
40instance NFData VirtualResource
42-- | Pattern synonym to make it a bit more convenient to match on diagnostics
43-- in things like damlc test.
44pattern EventFileDiagnostics :: FilePath -> [Diagnostic] -> FromServerMessage
45pattern EventFileDiagnostics fp diags <-
47 (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