|
1 | 1 | export interface Person {
|
2 |
| - name: string; |
3 |
| - url?: string; |
4 |
| - email?: string; |
| 2 | + name: string |
| 3 | + url?: string |
| 4 | + email?: string |
5 | 5 | }
|
6 | 6 |
|
7 | 7 | export interface Translation {
|
8 |
| - id: string; |
9 |
| - path: string; |
| 8 | + id: string |
| 9 | + path: string |
10 | 10 | }
|
11 | 11 |
|
12 | 12 | export interface Localization {
|
13 |
| - languageId: string; |
14 |
| - languageName?: string; |
15 |
| - localizedLanguageName?: string; |
16 |
| - translations: Translation[]; |
| 13 | + languageId: string |
| 14 | + languageName?: string |
| 15 | + localizedLanguageName?: string |
| 16 | + translations: Translation[] |
17 | 17 | }
|
18 | 18 |
|
19 | 19 | export interface Language {
|
20 |
| - readonly id: string; |
21 |
| - readonly aliases?: string[]; |
22 |
| - readonly extensions?: string[]; |
| 20 | + readonly id: string |
| 21 | + readonly aliases?: string[] |
| 22 | + readonly extensions?: string[] |
23 | 23 | }
|
24 | 24 |
|
25 | 25 | export interface Grammar {
|
26 |
| - readonly language: string; |
27 |
| - readonly scopeName: string; |
28 |
| - readonly path: string; |
| 26 | + readonly language: string |
| 27 | + readonly scopeName: string |
| 28 | + readonly path: string |
29 | 29 | }
|
30 | 30 |
|
31 | 31 | export interface Command {
|
32 |
| - readonly command: string; |
33 |
| - readonly title: string; |
| 32 | + readonly command: string |
| 33 | + readonly title: string |
34 | 34 | }
|
35 | 35 |
|
36 | 36 | export interface Authentication {
|
37 |
| - readonly id: string; |
38 |
| - readonly label: string; |
| 37 | + readonly id: string |
| 38 | + readonly label: string |
39 | 39 | }
|
40 | 40 |
|
41 | 41 | export interface CustomEditor {
|
42 |
| - readonly viewType: string; |
43 |
| - readonly priority: string; |
44 |
| - readonly selector: readonly { |
45 |
| - readonly filenamePattern?: string; |
46 |
| - }[]; |
| 42 | + readonly viewType: string |
| 43 | + readonly priority: string |
| 44 | + readonly selector: readonly { |
| 45 | + readonly filenamePattern?: string |
| 46 | + }[] |
47 | 47 | }
|
48 | 48 |
|
49 | 49 | export interface View {
|
50 |
| - readonly id: string; |
51 |
| - readonly name: string; |
| 50 | + readonly id: string |
| 51 | + readonly name: string |
52 | 52 | }
|
53 | 53 |
|
54 | 54 | export interface Contributions {
|
55 |
| - readonly localizations?: Localization[]; |
56 |
| - readonly languages?: Language[]; |
57 |
| - readonly grammars?: Grammar[]; |
58 |
| - readonly commands?: Command[]; |
59 |
| - readonly authentication?: Authentication[]; |
60 |
| - readonly customEditors?: CustomEditor[]; |
61 |
| - readonly views?: { [location: string]: View[] }; |
62 |
| - readonly [contributionType: string]: any; |
| 55 | + readonly localizations?: Localization[] |
| 56 | + readonly languages?: Language[] |
| 57 | + readonly grammars?: Grammar[] |
| 58 | + readonly commands?: Command[] |
| 59 | + readonly authentication?: Authentication[] |
| 60 | + readonly customEditors?: CustomEditor[] |
| 61 | + readonly views?: { [location: string]: View[] } |
| 62 | + readonly [contributionType: string]: any |
63 | 63 | }
|
64 | 64 |
|
65 |
| -export type ExtensionKind = 'ui' | 'workspace' | 'web'; |
| 65 | +export type ExtensionKind = 'ui' | 'workspace' | 'web' |
66 | 66 |
|
67 | 67 | export interface Manifest {
|
68 |
| - // mandatory (npm) |
69 |
| - name: string; |
70 |
| - version: string; |
71 |
| - engines: { [name: string]: string }; |
| 68 | + // mandatory (npm) |
| 69 | + name: string |
| 70 | + version: string |
| 71 | + engines: { [name: string]: string } |
72 | 72 |
|
73 |
| - // vscode |
74 |
| - publisher: string; |
75 |
| - icon?: string; |
76 |
| - contributes?: Contributions; |
77 |
| - activationEvents?: string[]; |
78 |
| - extensionDependencies?: string[]; |
79 |
| - extensionPack?: string[]; |
80 |
| - galleryBanner?: { color?: string; theme?: string }; |
81 |
| - preview?: boolean; |
82 |
| - badges?: { url: string; href: string; description: string }[]; |
83 |
| - markdown?: 'github' | 'standard'; |
84 |
| - _bundling?: { [name: string]: string }[]; |
85 |
| - _testing?: string; |
86 |
| - enableProposedApi?: boolean; |
87 |
| - enabledApiProposals?: readonly string[]; |
88 |
| - qna?: 'marketplace' | string | false; |
89 |
| - extensionKind?: ExtensionKind | ExtensionKind[]; |
90 |
| - sponsor?: { url: string }; |
| 73 | + // vscode |
| 74 | + publisher: string |
| 75 | + icon?: string |
| 76 | + contributes?: Contributions |
| 77 | + activationEvents?: string[] |
| 78 | + extensionDependencies?: string[] |
| 79 | + extensionPack?: string[] |
| 80 | + galleryBanner?: { color?: string; theme?: string } |
| 81 | + preview?: boolean |
| 82 | + badges?: { url: string; href: string; description: string }[] |
| 83 | + markdown?: 'github' | 'standard' |
| 84 | + _bundling?: { [name: string]: string }[] |
| 85 | + _testing?: string |
| 86 | + enableProposedApi?: boolean |
| 87 | + enabledApiProposals?: readonly string[] |
| 88 | + qna?: 'marketplace' | string | false |
| 89 | + extensionKind?: ExtensionKind | ExtensionKind[] |
| 90 | + sponsor?: { url: string } |
91 | 91 |
|
92 |
| - // optional (npm) |
93 |
| - author?: string | Person; |
94 |
| - displayName?: string; |
95 |
| - description?: string; |
96 |
| - keywords?: string[]; |
97 |
| - categories?: string[]; |
98 |
| - homepage?: string; |
99 |
| - bugs?: string | { url?: string; email?: string }; |
100 |
| - license?: string; |
101 |
| - contributors?: string | Person[]; |
102 |
| - main?: string; |
103 |
| - browser?: string; |
104 |
| - repository?: string | { type?: string; url?: string }; |
105 |
| - scripts?: { [name: string]: string }; |
106 |
| - dependencies?: { [name: string]: string }; |
107 |
| - devDependencies?: { [name: string]: string }; |
108 |
| - private?: boolean; |
109 |
| - pricing?: string; |
| 92 | + // optional (npm) |
| 93 | + author?: string | Person |
| 94 | + displayName?: string |
| 95 | + description?: string |
| 96 | + keywords?: string[] |
| 97 | + categories?: string[] |
| 98 | + homepage?: string |
| 99 | + bugs?: string | { url?: string; email?: string } |
| 100 | + license?: string |
| 101 | + contributors?: string | Person[] |
| 102 | + main?: string |
| 103 | + browser?: string |
| 104 | + repository?: string | { type?: string; url?: string } |
| 105 | + scripts?: { [name: string]: string } |
| 106 | + dependencies?: { [name: string]: string } |
| 107 | + devDependencies?: { [name: string]: string } |
| 108 | + private?: boolean |
| 109 | + pricing?: string |
110 | 110 |
|
111 |
| - // vsce |
112 |
| - vsce?: any; |
| 111 | + // vsce |
| 112 | + vsce?: any |
113 | 113 |
|
114 |
| - // not supported (npm) |
115 |
| - // files?: string[]; |
116 |
| - // bin |
117 |
| - // man |
118 |
| - // directories |
119 |
| - // config |
120 |
| - // peerDependencies |
121 |
| - // bundledDependencies |
122 |
| - // optionalDependencies |
123 |
| - // os?: string[]; |
124 |
| - // cpu?: string[]; |
125 |
| - // preferGlobal |
126 |
| - // publishConfig |
| 114 | + // not supported (npm) |
| 115 | + // files?: string[]; |
| 116 | + // bin |
| 117 | + // man |
| 118 | + // directories |
| 119 | + // config |
| 120 | + // peerDependencies |
| 121 | + // bundledDependencies |
| 122 | + // optionalDependencies |
| 123 | + // os?: string[]; |
| 124 | + // cpu?: string[]; |
| 125 | + // preferGlobal |
| 126 | + // publishConfig |
127 | 127 | }
|
0 commit comments