X-Git-Url: http://git.lukelau.me/?a=blobdiff_plain;f=example%2FMain.hs;h=4891c6c12219cf34d85b1b23bb1a303cbb17bd6f;hb=0da56e90a0fd4ada9acb01ca9ce769c5924653ec;hp=fc453db39cdb032a98cb0c468e697167816458cf;hpb=bc52b000bf018360efbfa0fcd289329c70d2c77e;p=opengl.git diff --git a/example/Main.hs b/example/Main.hs index fc453db..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" "test/recordings/renamePass" $ do +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