Fix opening new documents regression
[lsp-test.git] / src / Language / Haskell / LSP / Test.hs
index 3ba86905c2d48d6c015812421253fa7319f3a3e6..592589c5abb0e39bc44f0fcbd958839b2261c2a8 100644 (file)
@@ -153,6 +153,8 @@ runSessionWithConfig config serverExe rootDir session = do
 documentContents :: TextDocumentIdentifier -> Session T.Text
 documentContents doc = do
   vfs <- vfs <$> get
+  liftIO $ print vfs
+  liftIO $ print doc
   let file = vfs Map.! (doc ^. uri)
   return $ Rope.toText $ Language.Haskell.LSP.VFS._text file