Skip to content

Commit 7958fe9

Browse files
committed
Reconcile "openvsx" vs "vsx" changes
1 parent 2694208 commit 7958fe9

File tree

5 files changed

+61
-151
lines changed

5 files changed

+61
-151
lines changed

purl-types-index.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
"npm",
2626
"nuget",
2727
"oci",
28-
"openvsx",
2928
"pub",
3029
"pypi",
3130
"qpkg",

tests/types/openvsx-test.json renamed to tests/types/vsx-test.json

Lines changed: 42 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
"$schema": "https://packageurl.org/schemas/purl-test.schema-1.0.json",
33
"tests": [
44
{
5-
"description": "Parse test for basic OpenVSX PURL with version",
5+
"description": "Parse test for basic VS Code Extension PURL with version",
66
"test_group": "base",
77
"test_type": "parse",
8-
"input": "pkg:openvsx/redhat/java@1.46.2025091308",
8+
"input": "pkg:vsx/redhat/java@1.46.2025091308",
99
"expected_output": {
10-
"type": "openvsx",
10+
"type": "vsx",
1111
"namespace": "redhat",
1212
"name": "java",
1313
"version": "1.46.2025091308",
@@ -18,37 +18,37 @@
1818
"expected_failure_reason": null
1919
},
2020
{
21-
"description": "Roundtrip test for basic OpenVSX PURL with version",
21+
"description": "Roundtrip test for basic VS Code Extension PURL with version",
2222
"test_group": "base",
2323
"test_type": "roundtrip",
24-
"input": "pkg:openvsx/redhat/java@1.46.2025091308",
25-
"expected_output": "pkg:openvsx/redhat/java@1.46.2025091308",
24+
"input": "pkg:vsx/redhat/java@1.46.2025091308",
25+
"expected_output": "pkg:vsx/redhat/java@1.46.2025091308",
2626
"expected_failure": false,
2727
"expected_failure_reason": null
2828
},
2929
{
30-
"description": "Build test for basic OpenVSX PURL with version",
30+
"description": "Build test for basic VS Code Extension PURL with version",
3131
"test_group": "base",
3232
"test_type": "build",
3333
"input": {
34-
"type": "openvsx",
34+
"type": "vsx",
3535
"namespace": "redhat",
3636
"name": "java",
3737
"version": "1.46.2025091308",
3838
"qualifiers": null,
3939
"subpath": null
4040
},
41-
"expected_output": "pkg:openvsx/redhat/java@1.46.2025091308",
41+
"expected_output": "pkg:vsx/redhat/java@1.46.2025091308",
4242
"expected_failure": false,
4343
"expected_failure_reason": null
4444
},
4545
{
46-
"description": "Parse test for OpenVSX PURL with platform qualifier",
46+
"description": "Parse test for VS Code Extension PURL with platform qualifier",
4747
"test_group": "base",
4848
"test_type": "parse",
49-
"input": "pkg:openvsx/redhat/java@1.46.2025091308?platform=linux-x64",
49+
"input": "pkg:vsx/redhat/java@1.46.2025091308?platform=linux-x64",
5050
"expected_output": {
51-
"type": "openvsx",
51+
"type": "vsx",
5252
"namespace": "redhat",
5353
"name": "java",
5454
"version": "1.46.2025091308",
@@ -61,20 +61,20 @@
6161
"expected_failure_reason": null
6262
},
6363
{
64-
"description": "Roundtrip test for OpenVSX PURL with platform qualifier",
64+
"description": "Roundtrip test for VS Code Extension PURL with platform qualifier",
6565
"test_group": "base",
6666
"test_type": "roundtrip",
67-
"input": "pkg:openvsx/redhat/java@1.46.2025091308?platform=linux-x64",
68-
"expected_output": "pkg:openvsx/redhat/java@1.46.2025091308?platform=linux-x64",
67+
"input": "pkg:vsx/redhat/java@1.46.2025091308?platform=linux-x64",
68+
"expected_output": "pkg:vsx/redhat/java@1.46.2025091308?platform=linux-x64",
6969
"expected_failure": false,
7070
"expected_failure_reason": null
7171
},
7272
{
73-
"description": "Build test for OpenVSX PURL with platform qualifier",
73+
"description": "Build test for VS Code Extension PURL with platform qualifier",
7474
"test_group": "base",
7575
"test_type": "build",
7676
"input": {
77-
"type": "openvsx",
77+
"type": "vsx",
7878
"namespace": "redhat",
7979
"name": "java",
8080
"version": "1.46.2025091308",
@@ -83,17 +83,17 @@
8383
},
8484
"subpath": null
8585
},
86-
"expected_output": "pkg:openvsx/redhat/java@1.46.2025091308?platform=linux-x64",
86+
"expected_output": "pkg:vsx/redhat/java@1.46.2025091308?platform=linux-x64",
8787
"expected_failure": false,
8888
"expected_failure_reason": null
8989
},
9090
{
91-
"description": "Parse test for OpenVSX PURL without version",
91+
"description": "Parse test for VS Code Extension PURL without version",
9292
"test_group": "base",
9393
"test_type": "parse",
94-
"input": "pkg:openvsx/ms-python/python",
94+
"input": "pkg:vsx/ms-python/python",
9595
"expected_output": {
96-
"type": "openvsx",
96+
"type": "vsx",
9797
"namespace": "ms-python",
9898
"name": "python",
9999
"version": null,
@@ -104,37 +104,37 @@
104104
"expected_failure_reason": null
105105
},
106106
{
107-
"description": "Roundtrip test for OpenVSX PURL without version",
107+
"description": "Roundtrip test for VS Code Extension PURL without version",
108108
"test_group": "base",
109109
"test_type": "roundtrip",
110-
"input": "pkg:openvsx/ms-python/python",
111-
"expected_output": "pkg:openvsx/ms-python/python",
110+
"input": "pkg:vsx/ms-python/python",
111+
"expected_output": "pkg:vsx/ms-python/python",
112112
"expected_failure": false,
113113
"expected_failure_reason": null
114114
},
115115
{
116-
"description": "Build test for OpenVSX PURL without version",
116+
"description": "Build test for VS Code Extension PURL without version",
117117
"test_group": "base",
118118
"test_type": "build",
119119
"input": {
120-
"type": "openvsx",
120+
"type": "vsx",
121121
"namespace": "microsoft",
122122
"name": "python",
123123
"version": null,
124124
"qualifiers": null,
125125
"subpath": null
126126
},
127-
"expected_output": "pkg:openvsx/microsoft/python",
127+
"expected_output": "pkg:vsx/microsoft/python",
128128
"expected_failure": false,
129129
"expected_failure_reason": null
130130
},
131131
{
132-
"description": "Parse test for OpenVSX PURL with darwin-arm64 platform",
132+
"description": "Parse test for VS Code Extension PURL with darwin-arm64 platform",
133133
"test_group": "base",
134134
"test_type": "parse",
135-
"input": "pkg:openvsx/microsoft/python@2024.10.0?platform=darwin-arm64",
135+
"input": "pkg:vsx/microsoft/python@2024.10.0?platform=darwin-arm64",
136136
"expected_output": {
137-
"type": "openvsx",
137+
"type": "vsx",
138138
"namespace": "microsoft",
139139
"name": "python",
140140
"version": "2024.10.0",
@@ -147,12 +147,12 @@
147147
"expected_failure_reason": null
148148
},
149149
{
150-
"description": "Parse test for OpenVSX PURL with win32-x64 platform",
150+
"description": "Parse test for VS Code Extension PURL with win32-x64 platform",
151151
"test_group": "base",
152152
"test_type": "parse",
153-
"input": "pkg:openvsx/golang/go@0.39.1?platform=win32-x64",
153+
"input": "pkg:vsx/golang/go@0.39.1?platform=win32-x64",
154154
"expected_output": {
155-
"type": "openvsx",
155+
"type": "vsx",
156156
"namespace": "golang",
157157
"name": "go",
158158
"version": "0.39.1",
@@ -165,20 +165,20 @@
165165
"expected_failure_reason": null
166166
},
167167
{
168-
"description": "Parse test for OpenVSX PURL without namespace should fail",
168+
"description": "Parse test for VS Code Extension PURL without namespace should fail",
169169
"test_group": "base",
170170
"test_type": "parse",
171-
"input": "pkg:openvsx/java@1.46.2025091308",
171+
"input": "pkg:vsx/java@1.46.2025091308",
172172
"expected_output": null,
173173
"expected_failure": true,
174-
"expected_failure_reason": "OpenVSX PURLs require a namespace (publisher)"
174+
"expected_failure_reason": "VS Code Extension PURLs require a namespace (publisher)"
175175
},
176176
{
177-
"description": "Build test for OpenVSX PURL without namespace should fail",
177+
"description": "Build test for VS Code Extension PURL without namespace should fail",
178178
"test_group": "base",
179179
"test_type": "build",
180180
"input": {
181-
"type": "openvsx",
181+
"type": "vsx",
182182
"namespace": null,
183183
"name": "java",
184184
"version": "1.46.2025091308",
@@ -187,15 +187,15 @@
187187
},
188188
"expected_output": null,
189189
"expected_failure": true,
190-
"expected_failure_reason": "OpenVSX PURLs require a namespace (publisher)"
190+
"expected_failure_reason": "VS Code Extension PURLs require a namespace (publisher)"
191191
},
192192
{
193-
"description": "Parse test for OpenVSX PURL with platform=universal (default)",
193+
"description": "Parse test for VS Code Extension PURL with platform=universal (default)",
194194
"test_group": "base",
195195
"test_type": "parse",
196-
"input": "pkg:openvsx/redhat/java@1.46.2025091308?platform=universal",
196+
"input": "pkg:vsx/redhat/java@1.46.2025091308?platform=universal",
197197
"expected_output": {
198-
"type": "openvsx",
198+
"type": "vsx",
199199
"namespace": "redhat",
200200
"name": "java",
201201
"version": "1.46.2025091308",

types-doc/openvsx-definition.md

Lines changed: 0 additions & 56 deletions
This file was deleted.

types/openvsx-definition.json

Lines changed: 0 additions & 49 deletions
This file was deleted.

types/vsx-definition.json

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
"namespace_definition": {
1212
"requirement": "optional",
1313
"case_sensitive": true,
14-
"native_name": "publisher"
14+
"native_name": "publisher",
15+
"note": "The namespace is the publisher or vendor of the extension (e.g., 'redhat', 'microsoft')"
1516
},
1617
"name_definition": {
1718
"requirement": "required",
@@ -23,8 +24,23 @@
2324
"case_sensitive": true,
2425
"native_name": "version"
2526
},
27+
"qualifiers_definition": [
28+
{
29+
"key": "platform",
30+
"requirement": "optional",
31+
"description": "The target platform for the extension. Common values include 'universal', 'linux-x64', 'linux-arm64', 'darwin-x64', 'darwin-arm64', 'win32-x64', 'win32-arm64', etc.",
32+
"default_value": "universal",
33+
"native_name": "targetPlatform"
34+
}
35+
],
2636
"examples": [
27-
"pkg:vsix/ms-python/python@2023.25.10292213",
28-
"pkg:vsix/muhammad-sammy/csharp@2.15.30?repository_url=open-vsx.org"
37+
"pkg:vsx/ms-python/python@2023.25.10292213",
38+
"pkg:vsx/muhammad-sammy/csharp@2.15.30?repository_url=open-vsx.org",
39+
"pkg:vsx/golang/go@0.39.1?platform=win32-x64"
40+
],
41+
"reference_urls": [
42+
"https://open-vsx.org/",
43+
"https://github.com/eclipse/openvsx",
44+
"https://code.visualstudio.com/api/working-with-extensions/publishing-extension#platformspecific-extensions"
2945
]
3046
}

0 commit comments

Comments
 (0)