fix(lsp): correctly parse registry patterns (#12063)

This commit is contained in:
Kitson Kelly 2021-09-14 22:40:35 +10:00 committed by GitHub
parent 5e2c5d0afa
commit d36b01ff69
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 369 additions and 60 deletions

View file

@ -0,0 +1,4 @@
[
"1.0.0",
"1.0.1"
]

View file

@ -0,0 +1,4 @@
[
"2.0.0",
"2.0.1"
]

View file

@ -0,0 +1,5 @@
[
"efg",
"efgh",
"fg"
]

View file

@ -0,0 +1,6 @@
[
"0.2.2",
"0.2.1",
"0.2.0",
"0.1.0"
]

View file

@ -0,0 +1,6 @@
[
"mod.ts",
"example/mod.ts",
"CHANGELOG.md",
"deps.ts"
]

View file

@ -0,0 +1,3 @@
[
"3.0.0"
]

View 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"
}
]
}
]
}

View 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"
}
]
}
]
}

View file

@ -0,0 +1,5 @@
[
"cde",
"cdef",
"def"
]