projects
/
lsp-test.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add openDoc convenience function
[lsp-test.git]
/
test
/
Test.hs
diff --git
a/test/Test.hs
b/test/Test.hs
index 13e7ccc5d3066b687c7ca4391a3e6e8af62cbe77..fd2466677b3c80702f25482dc5e515225e8eb142 100644
(file)
--- a/
test/Test.hs
+++ b/
test/Test.hs
@@
-14,10
+14,7
@@
main = hspec $ do
describe "manual session validation" $
it "passes a test" $
runSession "test/recordings/renamePass" $ do
describe "manual session validation" $
it "passes a test" $
runSession "test/recordings/renamePass" $ do
- docItem <- getDocItem "Desktop/simple.hs" "haskell"
- docId <- TextDocumentIdentifier <$> getDocUri "Desktop/simple.hs"
-
- sendNotification TextDocumentDidOpen (DidOpenTextDocumentParams docItem)
+ doc <- openDoc "Desktop/simple.hs" "haskell"
skipMany loggingNotification
skipMany loggingNotification
@@
-27,7
+24,7
@@
main = hspec $ do
sendRequest (Proxy :: Proxy DocumentSymbolRequest)
TextDocumentDocumentSymbol
sendRequest (Proxy :: Proxy DocumentSymbolRequest)
TextDocumentDocumentSymbol
- (DocumentSymbolParams doc
Id
)
+ (DocumentSymbolParams doc)
RspDocumentSymbols rspSymbols <- response
RspDocumentSymbols rspSymbols <- response