diff --git a/hls-code-range-plugin.cabal b/hls-code-range-plugin.cabal
--- a/hls-code-range-plugin.cabal
+++ b/hls-code-range-plugin.cabal
@@ -1,6 +1,6 @@
 cabal-version:      2.4
 name:               hls-code-range-plugin
-version:            2.1.0.0
+version:            2.2.0.0
 synopsis:
   HLS Plugin to support smart selection range and Folding range
 
@@ -37,9 +37,9 @@
     , containers
     , deepseq
     , extra
-    , ghcide           == 2.1.0.0
+    , ghcide           == 2.2.0.0
     , hashable
-    , hls-plugin-api   == 2.1.0.0
+    , hls-plugin-api   == 2.2.0.0
     , lens
     , lsp
     , mtl
@@ -62,10 +62,10 @@
     , bytestring
     , containers
     , filepath
-    , ghcide                     == 2.1.0.0
+    , ghcide                     == 2.2.0.0
     , hls-code-range-plugin
     , hls-plugin-api
-    , hls-test-utils             == 2.1.0.0
+    , hls-test-utils             == 2.2.0.0
     , lens
     , lsp
     , lsp-test
diff --git a/test/Main.hs b/test/Main.hs
--- a/test/Main.hs
+++ b/test/Main.hs
@@ -41,7 +41,7 @@
 
 selectionRangeGoldenTest :: TestName -> [(UInt, UInt)] -> TestTree
 selectionRangeGoldenTest testName positions = goldenGitDiff testName (testDataDir </> testName <.> "golden" <.> "txt") $ do
-    res <- runSessionWithServer plugin testDataDir $ do
+    res <- runSessionWithServer def plugin testDataDir $ do
         doc <- openDoc (testName <.> "hs") "haskell"
         resp <- request SMethod_TextDocumentSelectionRange $ SelectionRangeParams Nothing Nothing doc
             $ fmap (uncurry Position . (\(x, y) -> (x-1, y-1))) positions
@@ -71,7 +71,7 @@
 
 foldingRangeGoldenTest :: TestName -> TestTree
 foldingRangeGoldenTest testName = goldenGitDiff  testName (testDataDir </> testName <.> "golden" <.> "txt") $ do
-    res <- runSessionWithServer plugin testDataDir $ do
+    res <- runSessionWithServer def plugin testDataDir $ do
         doc <- openDoc (testName <.> "hs") "haskell"
         resp <- request SMethod_TextDocumentFoldingRange $ FoldingRangeParams Nothing Nothing doc
         let res = resp ^. result
