Add ability to replay from exe
[lsp-test.git] / test / data / script / test.lsp
diff --git a/test/data/script/test.lsp b/test/data/script/test.lsp
new file mode 100644 (file)
index 0000000..52c0a95
--- /dev/null
@@ -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"
+}