diff options
author | Kitson Kelly <me@kitsonkelly.com> | 2022-01-07 11:27:13 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-07 11:27:13 +1100 |
commit | 57bfa87b2c56809eedcc64bf63be9dcdd6c7400f (patch) | |
tree | a93fe2d056323754f8d45d64c5fbc7204b06ee12 /cli/tests/testdata | |
parent | 2067820714fea49be1692fa678754488ace8228b (diff) |
feat(lsp): provide registry details on hover if present (#13294)
Closes: #13272
Diffstat (limited to 'cli/tests/testdata')
4 files changed, 10 insertions, 2 deletions
diff --git a/cli/tests/testdata/lsp/did_open_params_import_hover.json b/cli/tests/testdata/lsp/did_open_params_import_hover.json index e054eef3e..a79ba0d7f 100644 --- a/cli/tests/testdata/lsp/did_open_params_import_hover.json +++ b/cli/tests/testdata/lsp/did_open_params_import_hover.json @@ -3,6 +3,6 @@ "uri": "file:///a/file.ts", "languageId": "typescript", "version": 1, - "text": "import * as a from \"http://127.0.0.1:4545/xTypeScriptTypes.js\";\n// @deno-types=\"http://127.0.0.1:4545/type_definitions/foo.d.ts\"\nimport * as b from \"http://127.0.0.1:4545/type_definitions/foo.js\";\nimport * as c from \"http://127.0.0.1:4545/subdir/type_reference.js\";\nimport * as d from \"http://127.0.0.1:4545/subdir/mod1.ts\";\nimport * as e from \"data:application/typescript;base64,ZXhwb3J0IGNvbnN0IGEgPSAiYSI7CgpleHBvcnQgZW51bSBBIHsKICBBLAogIEIsCiAgQywKfQo=\";\nimport * as f from \"./file_01.ts\";\n\nconsole.log(a, b, c, d, e, f);\n" + "text": "import * as a from \"http://127.0.0.1:4545/xTypeScriptTypes.js\";\n// @deno-types=\"http://127.0.0.1:4545/type_definitions/foo.d.ts\"\nimport * as b from \"http://127.0.0.1:4545/type_definitions/foo.js\";\nimport * as c from \"http://127.0.0.1:4545/subdir/type_reference.js\";\nimport * as d from \"http://127.0.0.1:4545/subdir/mod1.ts\";\nimport * as e from \"data:application/typescript;base64,ZXhwb3J0IGNvbnN0IGEgPSAiYSI7CgpleHBvcnQgZW51bSBBIHsKICBBLAogIEIsCiAgQywKfQo=\";\nimport * as f from \"./file_01.ts\";\nimport * as g from \"http://localhost:4545/x/a/mod.ts\";\n\nconsole.log(a, b, c, d, e, f, g);\n" } } diff --git a/cli/tests/testdata/lsp/initialize_params_registry.json b/cli/tests/testdata/lsp/initialize_params_registry.json index 67559ebb3..286f6085f 100644 --- a/cli/tests/testdata/lsp/initialize_params_registry.json +++ b/cli/tests/testdata/lsp/initialize_params_registry.json @@ -10,8 +10,10 @@ "cache": null, "codeLens": { "implementations": true, - "references": true + "references": true, + "test": true }, + "config": "", "importMap": null, "lint": true, "suggest": { 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" +} |