X-Git-Url: http://git.lukelau.me/?a=blobdiff_plain;f=test.lsp;fp=test.lsp;h=954ca5b27bba3ebc80b7e21e1d07697fb1181999;hb=92f1ae3d69a580eee74755a38a647e27c4f164ff;hp=0000000000000000000000000000000000000000;hpb=4ad648fac174ce2b8475d24c2e4f215105e10e94;p=lsp-test.git diff --git a/test.lsp b/test.lsp new file mode 100644 index 0000000..954ca5b --- /dev/null +++ b/test.lsp @@ -0,0 +1,18 @@ +"start" { wait for any then open "src/Lib.hs" "haskell" } +"get the symbols" { + wait for + method == "textDocument/publishDiagnostics" + then + open "src/Lib.hs" "haskell" + id1: request "textDocument/documentSymbol" { + textDocument: { + uri: uri "src/Lib.hs" + } + } +} +"check the symbols" { + wait for + id == 1 + then + open "src/Lib.hs" "haskell" +} \ No newline at end of file