haskell-lsp 0.2.1.0 → 0.2.2.0
raw patch · 4 files changed
+8/−4 lines, 4 filesdep ~haskell-lsp-typesPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: haskell-lsp-types
API changes (from Hackage documentation)
Files
- ChangeLog.md +4/−0
- example/Main.hs +1/−1
- haskell-lsp.cabal +1/−1
- test/DiagnosticsSpec.hs +2/−2
ChangeLog.md view
@@ -1,5 +1,9 @@ # Revision history for haskell-lsp +## 0.2.2.0 -- 2018-05-04++* Make Diagnostic relatedInformation optional, as per the LSP Spec. By @Bubba.+ ## 0.2.1.0 -- 2018-05-02 * Support GHC 8.4.2
example/Main.hs view
@@ -316,7 +316,7 @@ Nothing -- code (Just "lsp-hello") -- source "Example diagnostic message"- (J.List [])+ (Just (J.List [])) ] -- reactorSend $ J.NotificationMessage "2.0" "textDocument/publishDiagnostics" (Just r) publishDiagnostics 100 fileUri mversion (partitionBySource diags)
haskell-lsp.cabal view
@@ -1,5 +1,5 @@ name: haskell-lsp-version: 0.2.1.0+version: 0.2.2.0 synopsis: Haskell library for the Microsoft Language Server Protocol description: An implementation of the types, and basic message server to
test/DiagnosticsSpec.hs view
@@ -34,14 +34,14 @@ rng = J.Range (J.Position 0 1) (J.Position 3 0) loc = J.Location (J.Uri "file") rng in- J.Diagnostic rng Nothing Nothing ms str (J.List [J.DiagnosticRelatedInformation loc str])+ J.Diagnostic rng Nothing Nothing ms str (Just (J.List [J.DiagnosticRelatedInformation loc str])) mkDiagnostic2 :: Maybe J.DiagnosticSource -> Text -> J.Diagnostic mkDiagnostic2 ms str = let rng = J.Range (J.Position 4 1) (J.Position 5 0) loc = J.Location (J.Uri "file") rng- in J.Diagnostic rng Nothing Nothing ms str (J.List [J.DiagnosticRelatedInformation loc str])+ in J.Diagnostic rng Nothing Nothing ms str (Just (J.List [J.DiagnosticRelatedInformation loc str])) -- ---------------------------------------------------------------------