summaryrefslogtreecommitdiff
path: root/cli/tests
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests')
-rw-r--r--cli/tests/testdata/lsp/registries/deno-import-intellisense.json14
-rw-r--r--cli/tests/testdata/lsp/registries/doc_a.json4
-rw-r--r--cli/tests/testdata/lsp/registries/modules.json4
-rw-r--r--cli/tests/testdata/lsp/registries/modules_.json8
-rw-r--r--cli/tests/testdata/lsp/registries/modules_a.json10
5 files changed, 30 insertions, 10 deletions
diff --git a/cli/tests/testdata/lsp/registries/deno-import-intellisense.json b/cli/tests/testdata/lsp/registries/deno-import-intellisense.json
index 8aa4a4eca..cdd71a7cf 100644
--- a/cli/tests/testdata/lsp/registries/deno-import-intellisense.json
+++ b/cli/tests/testdata/lsp/registries/deno-import-intellisense.json
@@ -1,20 +1,21 @@
{
- "version": 1,
+ "version": 2,
"registries": [
{
"schema": "/x/:module([a-z0-9_]*)@:version?/:path*",
"variables": [
{
"key": "module",
- "url": "http://localhost:4545/lsp/registries/modules.json"
+ "documentation": "/lsp/registries/doc_${module}.json",
+ "url": "/lsp/registries/modules_${module}.json"
},
{
"key": "version",
- "url": "http://localhost:4545/lsp/registries/${module}_versions.json"
+ "url": "/lsp/registries/${module}_versions.json"
},
{
"key": "path",
- "url": "http://localhost:4545/lsp/registries/${module}_${{version}}.json"
+ "url": "/lsp/registries/${module}_${{version}}.json"
}
]
},
@@ -23,11 +24,12 @@
"variables": [
{
"key": "module",
- "url": "http://localhost:4545/lsp/registries/modules.json"
+ "documentation": "/lsp/registries/doc_${module}.json",
+ "url": "/lsp/registries/modules_${module}.json"
},
{
"key": "path",
- "url": "http://localhost:4545/lsp/registries/${module}_latest.json"
+ "url": "/lsp/registries/${module}_latest.json"
}
]
}
diff --git a/cli/tests/testdata/lsp/registries/doc_a.json b/cli/tests/testdata/lsp/registries/doc_a.json
new file mode 100644
index 000000000..ecddb9144
--- /dev/null
+++ b/cli/tests/testdata/lsp/registries/doc_a.json
@@ -0,0 +1,4 @@
+{
+ "kind": "markdown",
+ "value": "**a**"
+}
diff --git a/cli/tests/testdata/lsp/registries/modules.json b/cli/tests/testdata/lsp/registries/modules.json
deleted file mode 100644
index 517c9d68e..000000000
--- a/cli/tests/testdata/lsp/registries/modules.json
+++ /dev/null
@@ -1,4 +0,0 @@
-[
- "a",
- "b"
-]
diff --git a/cli/tests/testdata/lsp/registries/modules_.json b/cli/tests/testdata/lsp/registries/modules_.json
new file mode 100644
index 000000000..fae3b40a3
--- /dev/null
+++ b/cli/tests/testdata/lsp/registries/modules_.json
@@ -0,0 +1,8 @@
+{
+ "items": [
+ "a",
+ "b"
+ ],
+ "isIncomplete": true,
+ "preselect": "a"
+}
diff --git a/cli/tests/testdata/lsp/registries/modules_a.json b/cli/tests/testdata/lsp/registries/modules_a.json
new file mode 100644
index 000000000..0163f18a4
--- /dev/null
+++ b/cli/tests/testdata/lsp/registries/modules_a.json
@@ -0,0 +1,10 @@
+{
+ "items": [
+ "a",
+ "aa",
+ "ab",
+ "aba"
+ ],
+ "isIncomplete": false,
+ "preselect": "a"
+}