- replay "test/recordings/renamePass/client.log"
- "test/recordings/renamePass/server.log"
- "test/recordings/renamePass"
- `shouldReturn` True
+ runSession "hie" "test/recordings/renamePass" $ do
+ doc <- openDoc "Desktop/simple.hs" "haskell"
+
+ skipMany loggingNotification
+
+ diagsNot <- notification :: Session PublishDiagnosticsNotification
+
+ liftIO $ diagsNot ^. params . diagnostics `shouldBe` List []
+
+ sendRequest TextDocumentDocumentSymbol (DocumentSymbolParams doc)
+
+ rspSymbols <- response :: Session DocumentSymbolsResponse
+
+ liftIO $ do
+ let (List symbols) = fromJust (rspSymbols ^. result)
+ mainSymbol = head symbols
+ mainSymbol ^. name `shouldBe` "main"
+ mainSymbol ^. kind `shouldBe` SkFunction
+ mainSymbol ^. location . range `shouldBe` Range (Position 3 0) (Position 3 4)
+ mainSymbol ^. containerName `shouldBe` Nothing
+