mirror of
https://github.com/denoland/deno.git
synced 2025-10-01 06:31:15 +00:00
fix(lsp): correctly parse registry patterns (#12063)
This commit is contained in:
parent
5e2c5d0afa
commit
d36b01ff69
11 changed files with 369 additions and 60 deletions
4
cli/tests/testdata/lsp/registries/cde_tags.json
vendored
Normal file
4
cli/tests/testdata/lsp/registries/cde_tags.json
vendored
Normal file
|
@ -0,0 +1,4 @@
|
|||
[
|
||||
"1.0.0",
|
||||
"1.0.1"
|
||||
]
|
4
cli/tests/testdata/lsp/registries/cdef_tags.json
vendored
Normal file
4
cli/tests/testdata/lsp/registries/cdef_tags.json
vendored
Normal file
|
@ -0,0 +1,4 @@
|
|||
[
|
||||
"2.0.0",
|
||||
"2.0.1"
|
||||
]
|
5
cli/tests/testdata/lsp/registries/complex.json
vendored
Normal file
5
cli/tests/testdata/lsp/registries/complex.json
vendored
Normal file
|
@ -0,0 +1,5 @@
|
|||
[
|
||||
"efg",
|
||||
"efgh",
|
||||
"fg"
|
||||
]
|
6
cli/tests/testdata/lsp/registries/complex_efg.json
vendored
Normal file
6
cli/tests/testdata/lsp/registries/complex_efg.json
vendored
Normal file
|
@ -0,0 +1,6 @@
|
|||
[
|
||||
"0.2.2",
|
||||
"0.2.1",
|
||||
"0.2.0",
|
||||
"0.1.0"
|
||||
]
|
6
cli/tests/testdata/lsp/registries/complex_efg_0.2.0.json
vendored
Normal file
6
cli/tests/testdata/lsp/registries/complex_efg_0.2.0.json
vendored
Normal file
|
@ -0,0 +1,6 @@
|
|||
[
|
||||
"mod.ts",
|
||||
"example/mod.ts",
|
||||
"CHANGELOG.md",
|
||||
"deps.ts"
|
||||
]
|
3
cli/tests/testdata/lsp/registries/def_tags.json
vendored
Normal file
3
cli/tests/testdata/lsp/registries/def_tags.json
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
[
|
||||
"3.0.0"
|
||||
]
|
22
cli/tests/testdata/lsp/registries/deno-import-intellisense-complex.json
vendored
Normal file
22
cli/tests/testdata/lsp/registries/deno-import-intellisense-complex.json
vendored
Normal file
|
@ -0,0 +1,22 @@
|
|||
{
|
||||
"version": 1,
|
||||
"registries": [
|
||||
{
|
||||
"schema": "/:module([a-zA-Z0-9_]*)@:version/:path*",
|
||||
"variables": [
|
||||
{
|
||||
"key": "module",
|
||||
"url": "http://localhost:4545/lsp/registries/complex.json"
|
||||
},
|
||||
{
|
||||
"key": "version",
|
||||
"url": "http://localhost:4545/lsp/registries/complex_${module}.json"
|
||||
},
|
||||
{
|
||||
"key": "path",
|
||||
"url": "http://localhost:4545/lsp/registries/complex_${module}_${version}.json"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
18
cli/tests/testdata/lsp/registries/deno-import-intellisense-key-first.json
vendored
Normal file
18
cli/tests/testdata/lsp/registries/deno-import-intellisense-key-first.json
vendored
Normal file
|
@ -0,0 +1,18 @@
|
|||
{
|
||||
"version": 1,
|
||||
"registries": [
|
||||
{
|
||||
"schema": "/:module([a-zA-Z0-9-_]+)@:tag([a-zA-Z0-9-_\\.]+)",
|
||||
"variables": [
|
||||
{
|
||||
"key": "module",
|
||||
"url": "http://localhost:4545/lsp/registries/key_first.json"
|
||||
},
|
||||
{
|
||||
"key": "tag",
|
||||
"url": "http://localhost:4545/lsp/registries/${module}_tags.json"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
5
cli/tests/testdata/lsp/registries/key_first.json
vendored
Normal file
5
cli/tests/testdata/lsp/registries/key_first.json
vendored
Normal file
|
@ -0,0 +1,5 @@
|
|||
[
|
||||
"cde",
|
||||
"cdef",
|
||||
"def"
|
||||
]
|
Loading…
Add table
Add a link
Reference in a new issue