Hook LSP script into haskell-lsp-test
[lsp-test.git] / test.lsp
diff --git a/test.lsp b/test.lsp
new file mode 100644 (file)
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