From 57bfa87b2c56809eedcc64bf63be9dcdd6c7400f Mon Sep 17 00:00:00 2001 From: Kitson Kelly Date: Fri, 7 Jan 2022 11:27:13 +1100 Subject: feat(lsp): provide registry details on hover if present (#13294) Closes: #13272 --- cli/tests/testdata/lsp/registries/deno-import-intellisense.json | 2 ++ cli/tests/testdata/lsp/registries/doc_a_latest_mod.ts.json | 4 ++++ 2 files changed, 6 insertions(+) create mode 100644 cli/tests/testdata/lsp/registries/doc_a_latest_mod.ts.json (limited to 'cli/tests/testdata/lsp/registries') diff --git a/cli/tests/testdata/lsp/registries/deno-import-intellisense.json b/cli/tests/testdata/lsp/registries/deno-import-intellisense.json index 7fe514dc0..5fd87085e 100644 --- a/cli/tests/testdata/lsp/registries/deno-import-intellisense.json +++ b/cli/tests/testdata/lsp/registries/deno-import-intellisense.json @@ -16,6 +16,7 @@ }, { "key": "path", + "documentation": "/lsp/registries/doc_${module}_${{version}}_${path}.json", "url": "/lsp/registries/${module}_${{version}}_${path}.json" } ] @@ -30,6 +31,7 @@ }, { "key": "path", + "documentation": "/lsp/registries/doc_${module}_latest_${path}.json", "url": "/lsp/registries/${module}_latest_${path}.json" } ] diff --git a/cli/tests/testdata/lsp/registries/doc_a_latest_mod.ts.json b/cli/tests/testdata/lsp/registries/doc_a_latest_mod.ts.json new file mode 100644 index 000000000..522f5b271 --- /dev/null +++ b/cli/tests/testdata/lsp/registries/doc_a_latest_mod.ts.json @@ -0,0 +1,4 @@ +{ + "kind": "markdown", + "value": "**a**\n\nmod.ts" +} -- cgit v1.2.3