X-Git-Url: http://git.lukelau.me/?a=blobdiff_plain;f=test%2Fdata%2Fscript%2Ftest.lsp;fp=test%2Fdata%2Fscript%2Ftest.lsp;h=52c0a954e7373bcffd184448427446d6fedafbc8;hb=54b23e6b7a8aa59e649a807ab286f0808908935a;hp=0000000000000000000000000000000000000000;hpb=f01fb33a61da785ec470a204069f718e5e7fef78;p=lsp-test.git diff --git a/test/data/script/test.lsp b/test/data/script/test.lsp new file mode 100644 index 0000000..52c0a95 --- /dev/null +++ b/test/data/script/test.lsp @@ -0,0 +1,18 @@ +"start" { wait for any then open "Test.hs" "haskell" } +"get the symbols" { + wait for + method == "textDocument/publishDiagnostics" + then + open "Test.hs" "haskell" + id1: request "textDocument/documentSymbol" { + textDocument: { + uri: uri "Test.hs" + } + } +} +"check the symbols" { + wait for + id == 1 + then + open "Test.hs" "haskell" +}