Skip to content

Commit

Permalink
feat: Add support for LSP 2 (#2560)
Browse files Browse the repository at this point in the history
* feat: Add support for LSP 2

* fix: Update CI lsp versions

lsp 2.x needs 'row-types'

---------

Co-authored-by: Mann mit Hut <[email protected]>
  • Loading branch information
Vekhir and mmhat authored Dec 25, 2023
1 parent ab58159 commit 2000127
Show file tree
Hide file tree
Showing 10 changed files with 134 additions and 111 deletions.
6 changes: 3 additions & 3 deletions dhall-lsp-server/dhall-lsp-server.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ library
, dhall >= 1.38.0 && < 1.43
, dhall-json >= 1.4 && < 1.8
, filepath >= 1.4.2 && < 1.5
, lsp >= 1.5.0.0 && < 2
, lsp >= 2.1.0.0 && < 2.2
, lens >= 4.16.1 && < 5.3
-- megaparsec follows SemVer: https://github.com/mrkkrp/megaparsec/issues/469#issuecomment-927918469
, megaparsec >= 7.0.2 && < 10
Expand Down Expand Up @@ -104,9 +104,9 @@ Test-Suite tests
GHC-Options: -Wall
Build-Depends:
base ,
lsp-types >= 1.2.0.0 && < 1.7 ,
lsp-types >= 2.0.1 && < 2.1 ,
hspec >= 2.7 && < 2.11 ,
lsp-test >= 0.13.0.0 && < 0.15 ,
lsp-test >= 0.15.0.0 && < 0.16 ,
tasty >= 0.11.2 && < 1.5 ,
tasty-hspec >= 1.1 && < 1.3 ,
text >= 0.11 && < 2.1
Expand Down
2 changes: 1 addition & 1 deletion dhall-lsp-server/src/Dhall/LSP/Backend/Dhall.hs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ import qualified Dhall.Import as Dhall
import qualified Dhall.Map
import qualified Dhall.Parser as Dhall
import qualified Dhall.TypeCheck as Dhall
import qualified Language.LSP.Types as LSP.Types
import qualified Language.LSP.Protocol.Types as LSP.Types
import qualified Network.URI as URI


Expand Down
Loading

0 comments on commit 2000127

Please sign in to comment.