X-Git-Url: http://git.lukelau.me/?p=opengl.git;a=blobdiff_plain;f=example%2FMain.hs;h=4891c6c12219cf34d85b1b23bb1a303cbb17bd6f;hp=29795fa22e52b76279d1ae98eca5c5f111eb72cd;hb=22df37c703e39fa5ebeb130be5785b3a9713c520;hpb=502c8dc3ff63383487536922176330a3f459a462 diff --git a/example/Main.hs b/example/Main.hs index 29795fa..4891c6c 100644 --- a/example/Main.hs +++ b/example/Main.hs @@ -1,17 +1,12 @@ import Language.Haskell.LSP.Test import Language.Haskell.LSP.TH.DataTypesJSON -import Data.Proxy import Control.Monad.IO.Class main = runSession "hie --lsp" "test/recordings/renamePass" $ do + docItem <- openDoc "Desktop/simple.hs" "haskell" - docItem <- getDocItem "Desktop/simple.hs" "haskell" - docId <- TextDocumentIdentifier <$> getDocUri "Desktop/simple.hs" - - sendNotification TextDocumentDidOpen (DidOpenTextDocumentParams docItem) - - sendRequest TextDocumentDocumentSymbol (DocumentSymbolParams docId) + sendRequest TextDocumentDocumentSymbol (DocumentSymbolParams docItem) skipMany loggingNotification