Skip to content

Commit 66f4c5b

Browse files
committed
Adopt OSS tool
1 parent 976cfe3 commit 66f4c5b

File tree

9 files changed

+982
-2234
lines changed

9 files changed

+982
-2234
lines changed

.vscode/cglicenses.schema.json

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"type": "array",
3+
"items": {
4+
"type": "object",
5+
"required": [
6+
"name",
7+
"licenseDetail"
8+
],
9+
"properties": {
10+
"name": {
11+
"type": "string",
12+
"description": "The name of the dependency"
13+
},
14+
"licenseDetail": {
15+
"type": "array",
16+
"description": "The complete license text of the dependency",
17+
"items": {
18+
"type": "string"
19+
}
20+
}
21+
}
22+
}
23+
}

.vscode/cgmanifest.schema.json

+75
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
{
2+
"type": "object",
3+
"properties": {
4+
"registrations": {
5+
"type": "array",
6+
"items": {
7+
"type": "object",
8+
"properties": {
9+
"component": {
10+
"oneOf": [
11+
{
12+
"type": "object",
13+
"required": [ "type", "git" ],
14+
"properties": {
15+
"type": { "type": "string", "enum": [ "git" ] },
16+
"git": {
17+
"type": "object",
18+
"required": [ "name", "repositoryUrl", "commitHash" ],
19+
"properties": {
20+
"name": { "type": "string" },
21+
"repositoryUrl": { "type": "string" },
22+
"commitHash": { "type": "string" }
23+
}
24+
}
25+
}
26+
},
27+
{
28+
"type": "object",
29+
"required": [ "type", "npm" ],
30+
"properties": {
31+
"type": { "type": "string", "enum": [ "npm" ] },
32+
"npm": {
33+
"type": "object",
34+
"required": [ "name", "version" ],
35+
"properties": {
36+
"name": { "type": "string" },
37+
"version": { "type": "string" }
38+
}
39+
}
40+
}
41+
}
42+
]
43+
},
44+
"repositoryUrl": {
45+
"type": "string",
46+
"description": "The git url of the component"
47+
},
48+
"version": {
49+
"type": "string",
50+
"description": "The version of the component"
51+
},
52+
"license": {
53+
"type": "string",
54+
"description": "The name of the license"
55+
},
56+
"isOnlyDevelopmentDependency": {
57+
"type": "boolean",
58+
"description": "This component is inlined in the vscode repo and **is not shipped**."
59+
},
60+
"isOnlyProductionDependency": {
61+
"type": "boolean",
62+
"description": "This component is shipped and **is not inlined in the vscode repo**."
63+
},
64+
"licenseDetail": {
65+
"type": "array",
66+
"items": {
67+
"type": "string"
68+
},
69+
"description": "The license text"
70+
}
71+
}
72+
}
73+
}
74+
}
75+
}

.vscode/settings.json

+10-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
}
1111
},
1212
"files.associations": {
13-
"OSSREADME.json": "jsonc"
13+
"OSSREADME.json": "jsonc",
14+
"cglicenses.json": "jsonc"
1415
},
1516
"search.exclude": {
1617
"**/node_modules": true,
@@ -41,5 +42,12 @@
4142
"npm.exclude": "**/extensions/**",
4243
"emmet.excludeLanguages": [],
4344
"typescript.preferences.importModuleSpecifier": "non-relative",
44-
"typescript.preferences.quoteStyle": "single"
45+
"typescript.preferences.quoteStyle": "single",
46+
"json.schemas": [{
47+
"fileMatch": [ "cgmanifest.json" ],
48+
"url": "./.vscode/cgmanifest.schema.json"
49+
}, {
50+
"fileMatch": [ "cglicenses.json" ],
51+
"url": "./.vscode/cglicenses.schema.json"
52+
}]
4553
}

0 commit comments

Comments
 (0)