Skip to content

Commit

Permalink
feat: Add support for LSP 2 (dhall-lang#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
2 people authored and rvl committed Feb 23, 2024
1 parent f8ea643 commit 0bc8d43
Show file tree
Hide file tree
Showing 6 changed files with 105 additions and 94 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 @@ -52,7 +52,7 @@ library
, dhall >= 1.38.0 && < 1.43
, dhall-json >= 1.4 && < 1.8
, filepath >= 1.4.2 && < 1.5
, lsp >= 1.2.0.0 && < 1.5
, lsp >= 2.1.0.0 && < 2.2
, rope-utf16-splay >= 0.3.1.0 && < 0.5
, hslogger >= 1.2.10 && < 1.4
, lens >= 4.16.1 && < 5.3
Expand Down Expand Up @@ -104,9 +104,9 @@ Test-Suite tests
GHC-Options: -Wall
Build-Depends:
base ,
lsp-types >= 1.2.0.0 && < 1.5 ,
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 0bc8d43

Please sign in to comment.