@codingame/monaco-vscode-api 1.76.2 → 1.76.3-next.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -1
- package/dist/api.js +3 -860
- package/dist/{extHost.js → api2.js} +16555 -13467
- package/dist/async.js +107 -2
- package/dist/audioCue.js +105 -103
- package/dist/button.js +1 -1
- package/dist/cancellation.js +3 -0
- package/dist/configuration.js +7 -344
- package/dist/configuration2.js +339 -0
- package/dist/configurationRegistry.js +441 -0
- package/dist/contextkeys.js +211 -0
- package/dist/debug.d.ts +22 -0
- package/dist/debug.js +15842 -0
- package/dist/dialogs.js +855 -9
- package/dist/extensionResourceLoader.js +96 -0
- package/dist/extensions.d.ts +491 -0
- package/dist/extensions.js +70 -0
- package/dist/{tools.js → extensionsRegistry.js} +2 -30
- package/dist/files.js +1407 -334
- package/dist/iconv.js +43 -0
- package/dist/injection.js +1 -1
- package/dist/jschardet.js +7 -0
- package/dist/keybindings.d.ts +1 -485
- package/dist/keybindings.js +666 -679
- package/dist/labels.js +14 -0
- package/dist/languageConfiguration.d.ts +1 -2
- package/dist/languageConfiguration.js +9 -16
- package/dist/languageService.js +112 -8
- package/dist/languages.d.ts +1 -473
- package/dist/languages.js +2 -12
- package/dist/layout.js +4 -3
- package/dist/layoutService.js +1 -1
- package/dist/missing-services.js +4710 -74
- package/dist/modelEditor.d.ts +324 -2
- package/dist/modelEditor.js +15 -228
- package/dist/monaco.js +7 -72
- package/dist/notifications.js +75 -232
- package/dist/polyfill.js +10715 -2459
- package/dist/resources.js +197 -0
- package/dist/services.d.ts +924 -3
- package/dist/services.js +1 -2
- package/dist/services2.js +2436 -18
- package/dist/snippets.d.ts +1 -473
- package/dist/snippets.js +8 -867
- package/dist/snippetsService.js +868 -0
- package/dist/textFileEditorModel.js +2985 -0
- package/dist/textmate.d.ts +3 -475
- package/dist/textmate.js +19 -29
- package/dist/theme.d.ts +1 -3
- package/dist/theme.js +24 -70
- package/dist/tokenClassification.d.ts +1 -475
- package/dist/tokenClassification.js +11 -37
- package/dist/tokenClassificationRegistry.js +8 -4
- package/dist/variableResolver.js +1711 -0
- package/dist/workbenchThemeService.js +1 -1
- package/dist/workspaceContext.js +1 -3
- package/package.json +27 -12
- package/dist/contextkey.js +0 -419
- package/dist/dialog.web.contribution.js +0 -945
package/dist/iconv.js
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
const textDecoder = new TextEncoder();
|
|
2
|
+
const textEncoder = new TextDecoder();
|
|
3
|
+
const encoder = {
|
|
4
|
+
write(str) {
|
|
5
|
+
return textDecoder.encode(str);
|
|
6
|
+
},
|
|
7
|
+
end() {
|
|
8
|
+
return undefined;
|
|
9
|
+
}
|
|
10
|
+
};
|
|
11
|
+
const decoder = {
|
|
12
|
+
write(str) {
|
|
13
|
+
return textEncoder.decode(str);
|
|
14
|
+
},
|
|
15
|
+
end() {
|
|
16
|
+
return undefined;
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
function checkEncoding(encoding) {
|
|
20
|
+
if (!encodingExists(encoding)) {
|
|
21
|
+
throw new Error(`Encoding not found: ${encoding}`);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
const getEncoder = (encoding) => {
|
|
25
|
+
checkEncoding(encoding);
|
|
26
|
+
return encoder;
|
|
27
|
+
};
|
|
28
|
+
const getDecoder = (encoding) => {
|
|
29
|
+
checkEncoding(encoding);
|
|
30
|
+
return decoder;
|
|
31
|
+
};
|
|
32
|
+
const encodingExists = (encoding) => {
|
|
33
|
+
return encoding === 'utf8';
|
|
34
|
+
};
|
|
35
|
+
const decode = (buffer, encoding) => {
|
|
36
|
+
checkEncoding(encoding);
|
|
37
|
+
return decoder.write(buffer);
|
|
38
|
+
};
|
|
39
|
+
const encode = (buffer, encoding) => {
|
|
40
|
+
checkEncoding(encoding);
|
|
41
|
+
return encoder.write(buffer);
|
|
42
|
+
};
|
|
43
|
+
export { decode, encode, encodingExists, getDecoder, getEncoder };
|
package/dist/injection.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { _util } from 'monaco-editor/esm/vs/platform/instantiation/common/instantiation.js';
|
|
2
2
|
function getInjectedParameters(instantiationService, ctor) {
|
|
3
3
|
return instantiationService.invokeFunction((accessor) => {
|
|
4
|
-
return _util.getServiceDependencies(ctor).sort((a, b) => a.index - b.index).map(d => accessor.get(d.id));
|
|
4
|
+
return ( _util.getServiceDependencies(ctor).sort((a, b) => a.index - b.index).map(d => accessor.get(d.id)));
|
|
5
5
|
});
|
|
6
6
|
}
|
|
7
7
|
function createInjectedClass(ctor) {
|
package/dist/keybindings.d.ts
CHANGED
|
@@ -1,476 +1,5 @@
|
|
|
1
1
|
import * as monaco from 'monaco-editor';
|
|
2
2
|
|
|
3
|
-
/**
|
|
4
|
-
* Uniform Resource Identifier (URI) http://tools.ietf.org/html/rfc3986.
|
|
5
|
-
* This class is a simple parser which creates the basic component parts
|
|
6
|
-
* (http://tools.ietf.org/html/rfc3986#section-3) with minimal validation
|
|
7
|
-
* and encoding.
|
|
8
|
-
*
|
|
9
|
-
* ```txt
|
|
10
|
-
* foo://example.com:8042/over/there?name=ferret#nose
|
|
11
|
-
* \_/ \______________/\_________/ \_________/ \__/
|
|
12
|
-
* | | | | |
|
|
13
|
-
* scheme authority path query fragment
|
|
14
|
-
* | _____________________|__
|
|
15
|
-
* / \ / \
|
|
16
|
-
* urn:example:animal:ferret:nose
|
|
17
|
-
* ```
|
|
18
|
-
*/
|
|
19
|
-
declare class URI implements UriComponents {
|
|
20
|
-
static isUri(thing: any): thing is URI;
|
|
21
|
-
/**
|
|
22
|
-
* scheme is the 'http' part of 'http://www.example.com/some/path?query#fragment'.
|
|
23
|
-
* The part before the first colon.
|
|
24
|
-
*/
|
|
25
|
-
readonly scheme: string;
|
|
26
|
-
/**
|
|
27
|
-
* authority is the 'www.example.com' part of 'http://www.example.com/some/path?query#fragment'.
|
|
28
|
-
* The part between the first double slashes and the next slash.
|
|
29
|
-
*/
|
|
30
|
-
readonly authority: string;
|
|
31
|
-
/**
|
|
32
|
-
* path is the '/some/path' part of 'http://www.example.com/some/path?query#fragment'.
|
|
33
|
-
*/
|
|
34
|
-
readonly path: string;
|
|
35
|
-
/**
|
|
36
|
-
* query is the 'query' part of 'http://www.example.com/some/path?query#fragment'.
|
|
37
|
-
*/
|
|
38
|
-
readonly query: string;
|
|
39
|
-
/**
|
|
40
|
-
* fragment is the 'fragment' part of 'http://www.example.com/some/path?query#fragment'.
|
|
41
|
-
*/
|
|
42
|
-
readonly fragment: string;
|
|
43
|
-
/**
|
|
44
|
-
* @internal
|
|
45
|
-
*/
|
|
46
|
-
protected constructor(scheme: string, authority?: string, path?: string, query?: string, fragment?: string, _strict?: boolean);
|
|
47
|
-
/**
|
|
48
|
-
* @internal
|
|
49
|
-
*/
|
|
50
|
-
protected constructor(components: UriComponents);
|
|
51
|
-
/**
|
|
52
|
-
* Returns a string representing the corresponding file system path of this URI.
|
|
53
|
-
* Will handle UNC paths, normalizes windows drive letters to lower-case, and uses the
|
|
54
|
-
* platform specific path separator.
|
|
55
|
-
*
|
|
56
|
-
* * Will *not* validate the path for invalid characters and semantics.
|
|
57
|
-
* * Will *not* look at the scheme of this URI.
|
|
58
|
-
* * The result shall *not* be used for display purposes but for accessing a file on disk.
|
|
59
|
-
*
|
|
60
|
-
*
|
|
61
|
-
* The *difference* to `URI#path` is the use of the platform specific separator and the handling
|
|
62
|
-
* of UNC paths. See the below sample of a file-uri with an authority (UNC path).
|
|
63
|
-
*
|
|
64
|
-
* ```ts
|
|
65
|
-
const u = URI.parse('file://server/c$/folder/file.txt')
|
|
66
|
-
u.authority === 'server'
|
|
67
|
-
u.path === '/shares/c$/file.txt'
|
|
68
|
-
u.fsPath === '\\server\c$\folder\file.txt'
|
|
69
|
-
```
|
|
70
|
-
*
|
|
71
|
-
* Using `URI#path` to read a file (using fs-apis) would not be enough because parts of the path,
|
|
72
|
-
* namely the server name, would be missing. Therefore `URI#fsPath` exists - it's sugar to ease working
|
|
73
|
-
* with URIs that represent files on disk (`file` scheme).
|
|
74
|
-
*/
|
|
75
|
-
get fsPath(): string;
|
|
76
|
-
with(change: {
|
|
77
|
-
scheme?: string;
|
|
78
|
-
authority?: string | null;
|
|
79
|
-
path?: string | null;
|
|
80
|
-
query?: string | null;
|
|
81
|
-
fragment?: string | null;
|
|
82
|
-
}): URI;
|
|
83
|
-
/**
|
|
84
|
-
* Creates a new URI from a string, e.g. `http://www.example.com/some/path`,
|
|
85
|
-
* `file:///usr/home`, or `scheme:with/path`.
|
|
86
|
-
*
|
|
87
|
-
* @param value A string which represents an URI (see `URI#toString`).
|
|
88
|
-
*/
|
|
89
|
-
static parse(value: string, _strict?: boolean): URI;
|
|
90
|
-
/**
|
|
91
|
-
* Creates a new URI from a file system path, e.g. `c:\my\files`,
|
|
92
|
-
* `/usr/home`, or `\\server\share\some\path`.
|
|
93
|
-
*
|
|
94
|
-
* The *difference* between `URI#parse` and `URI#file` is that the latter treats the argument
|
|
95
|
-
* as path, not as stringified-uri. E.g. `URI.file(path)` is **not the same as**
|
|
96
|
-
* `URI.parse('file://' + path)` because the path might contain characters that are
|
|
97
|
-
* interpreted (# and ?). See the following sample:
|
|
98
|
-
* ```ts
|
|
99
|
-
const good = URI.file('/coding/c#/project1');
|
|
100
|
-
good.scheme === 'file';
|
|
101
|
-
good.path === '/coding/c#/project1';
|
|
102
|
-
good.fragment === '';
|
|
103
|
-
const bad = URI.parse('file://' + '/coding/c#/project1');
|
|
104
|
-
bad.scheme === 'file';
|
|
105
|
-
bad.path === '/coding/c'; // path is now broken
|
|
106
|
-
bad.fragment === '/project1';
|
|
107
|
-
```
|
|
108
|
-
*
|
|
109
|
-
* @param path A file system path (see `URI#fsPath`)
|
|
110
|
-
*/
|
|
111
|
-
static file(path: string): URI;
|
|
112
|
-
static from(components: {
|
|
113
|
-
scheme: string;
|
|
114
|
-
authority?: string;
|
|
115
|
-
path?: string;
|
|
116
|
-
query?: string;
|
|
117
|
-
fragment?: string;
|
|
118
|
-
}): URI;
|
|
119
|
-
/**
|
|
120
|
-
* Join a URI path with path fragments and normalizes the resulting path.
|
|
121
|
-
*
|
|
122
|
-
* @param uri The input URI.
|
|
123
|
-
* @param pathFragment The path fragment to add to the URI path.
|
|
124
|
-
* @returns The resulting URI.
|
|
125
|
-
*/
|
|
126
|
-
static joinPath(uri: URI, ...pathFragment: string[]): URI;
|
|
127
|
-
/**
|
|
128
|
-
* Creates a string representation for this URI. It's guaranteed that calling
|
|
129
|
-
* `URI.parse` with the result of this function creates an URI which is equal
|
|
130
|
-
* to this URI.
|
|
131
|
-
*
|
|
132
|
-
* * The result shall *not* be used for display purposes but for externalization or transport.
|
|
133
|
-
* * The result will be encoded using the percentage encoding and encoding happens mostly
|
|
134
|
-
* ignore the scheme-specific encoding rules.
|
|
135
|
-
*
|
|
136
|
-
* @param skipEncoding Do not encode the result, default is `false`
|
|
137
|
-
*/
|
|
138
|
-
toString(skipEncoding?: boolean): string;
|
|
139
|
-
toJSON(): UriComponents;
|
|
140
|
-
static revive(data: UriComponents | URI): URI;
|
|
141
|
-
static revive(data: UriComponents | URI | undefined): URI | undefined;
|
|
142
|
-
static revive(data: UriComponents | URI | null): URI | null;
|
|
143
|
-
static revive(data: UriComponents | URI | undefined | null): URI | undefined | null;
|
|
144
|
-
}
|
|
145
|
-
interface UriComponents {
|
|
146
|
-
scheme: string;
|
|
147
|
-
authority: string;
|
|
148
|
-
path: string;
|
|
149
|
-
query: string;
|
|
150
|
-
fragment: string;
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
interface ILocalizedString {
|
|
154
|
-
/**
|
|
155
|
-
* The localized value of the string.
|
|
156
|
-
*/
|
|
157
|
-
value: string;
|
|
158
|
-
/**
|
|
159
|
-
* The original (non localized value of the string)
|
|
160
|
-
*/
|
|
161
|
-
original: string;
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
/**
|
|
165
|
-
* Type of extension.
|
|
166
|
-
*
|
|
167
|
-
* **NOTE**: This is defined in `platform/environment` because it can appear as a CLI argument.
|
|
168
|
-
*/
|
|
169
|
-
type ExtensionKind = 'ui' | 'workspace' | 'web';
|
|
170
|
-
|
|
171
|
-
interface ICommand {
|
|
172
|
-
command: string;
|
|
173
|
-
title: string | ILocalizedString;
|
|
174
|
-
category?: string | ILocalizedString;
|
|
175
|
-
}
|
|
176
|
-
interface IConfigurationProperty {
|
|
177
|
-
description: string;
|
|
178
|
-
type: string | string[];
|
|
179
|
-
default?: any;
|
|
180
|
-
}
|
|
181
|
-
interface IConfiguration {
|
|
182
|
-
id?: string;
|
|
183
|
-
order?: number;
|
|
184
|
-
title?: string;
|
|
185
|
-
properties: {
|
|
186
|
-
[key: string]: IConfigurationProperty;
|
|
187
|
-
};
|
|
188
|
-
}
|
|
189
|
-
interface IDebugger {
|
|
190
|
-
label?: string;
|
|
191
|
-
type: string;
|
|
192
|
-
runtime?: string;
|
|
193
|
-
}
|
|
194
|
-
interface IGrammar {
|
|
195
|
-
language: string;
|
|
196
|
-
}
|
|
197
|
-
interface IJSONValidation {
|
|
198
|
-
fileMatch: string | string[];
|
|
199
|
-
url: string;
|
|
200
|
-
}
|
|
201
|
-
interface IKeyBinding {
|
|
202
|
-
command: string;
|
|
203
|
-
key: string;
|
|
204
|
-
when?: string;
|
|
205
|
-
mac?: string;
|
|
206
|
-
linux?: string;
|
|
207
|
-
win?: string;
|
|
208
|
-
}
|
|
209
|
-
interface ILanguage {
|
|
210
|
-
id: string;
|
|
211
|
-
extensions: string[];
|
|
212
|
-
aliases: string[];
|
|
213
|
-
}
|
|
214
|
-
interface IMenu {
|
|
215
|
-
command: string;
|
|
216
|
-
alt?: string;
|
|
217
|
-
when?: string;
|
|
218
|
-
group?: string;
|
|
219
|
-
}
|
|
220
|
-
interface ISnippet {
|
|
221
|
-
language: string;
|
|
222
|
-
}
|
|
223
|
-
interface ITheme {
|
|
224
|
-
label: string;
|
|
225
|
-
}
|
|
226
|
-
interface IViewContainer {
|
|
227
|
-
id: string;
|
|
228
|
-
title: string;
|
|
229
|
-
}
|
|
230
|
-
interface IView {
|
|
231
|
-
id: string;
|
|
232
|
-
name: string;
|
|
233
|
-
}
|
|
234
|
-
interface IColor {
|
|
235
|
-
id: string;
|
|
236
|
-
description: string;
|
|
237
|
-
defaults: {
|
|
238
|
-
light: string;
|
|
239
|
-
dark: string;
|
|
240
|
-
highContrast: string;
|
|
241
|
-
};
|
|
242
|
-
}
|
|
243
|
-
interface IWebviewEditor {
|
|
244
|
-
readonly viewType: string;
|
|
245
|
-
readonly priority: string;
|
|
246
|
-
readonly selector: readonly {
|
|
247
|
-
readonly filenamePattern?: string;
|
|
248
|
-
}[];
|
|
249
|
-
}
|
|
250
|
-
interface ICodeActionContributionAction {
|
|
251
|
-
readonly kind: string;
|
|
252
|
-
readonly title: string;
|
|
253
|
-
readonly description?: string;
|
|
254
|
-
}
|
|
255
|
-
interface ICodeActionContribution {
|
|
256
|
-
readonly languages: readonly string[];
|
|
257
|
-
readonly actions: readonly ICodeActionContributionAction[];
|
|
258
|
-
}
|
|
259
|
-
interface IAuthenticationContribution {
|
|
260
|
-
readonly id: string;
|
|
261
|
-
readonly label: string;
|
|
262
|
-
}
|
|
263
|
-
interface IWalkthroughStep {
|
|
264
|
-
readonly id: string;
|
|
265
|
-
readonly title: string;
|
|
266
|
-
readonly description: string | undefined;
|
|
267
|
-
readonly media: {
|
|
268
|
-
image: string | {
|
|
269
|
-
dark: string;
|
|
270
|
-
light: string;
|
|
271
|
-
hc: string;
|
|
272
|
-
};
|
|
273
|
-
altText: string;
|
|
274
|
-
markdown?: never;
|
|
275
|
-
svg?: never;
|
|
276
|
-
} | {
|
|
277
|
-
markdown: string;
|
|
278
|
-
image?: never;
|
|
279
|
-
svg?: never;
|
|
280
|
-
} | {
|
|
281
|
-
svg: string;
|
|
282
|
-
altText: string;
|
|
283
|
-
markdown?: never;
|
|
284
|
-
image?: never;
|
|
285
|
-
};
|
|
286
|
-
readonly completionEvents?: string[];
|
|
287
|
-
/** @deprecated use `completionEvents: 'onCommand:...'` */
|
|
288
|
-
readonly doneOn?: {
|
|
289
|
-
command: string;
|
|
290
|
-
};
|
|
291
|
-
readonly when?: string;
|
|
292
|
-
}
|
|
293
|
-
interface IWalkthrough {
|
|
294
|
-
readonly id: string;
|
|
295
|
-
readonly title: string;
|
|
296
|
-
readonly icon?: string;
|
|
297
|
-
readonly description: string;
|
|
298
|
-
readonly steps: IWalkthroughStep[];
|
|
299
|
-
readonly featuredFor: string[] | undefined;
|
|
300
|
-
readonly when?: string;
|
|
301
|
-
}
|
|
302
|
-
interface IStartEntry {
|
|
303
|
-
readonly title: string;
|
|
304
|
-
readonly description: string;
|
|
305
|
-
readonly command: string;
|
|
306
|
-
readonly when?: string;
|
|
307
|
-
readonly category: 'file' | 'folder' | 'notebook';
|
|
308
|
-
}
|
|
309
|
-
interface INotebookEntry {
|
|
310
|
-
readonly type: string;
|
|
311
|
-
readonly displayName: string;
|
|
312
|
-
}
|
|
313
|
-
interface INotebookRendererContribution {
|
|
314
|
-
readonly id: string;
|
|
315
|
-
readonly displayName: string;
|
|
316
|
-
readonly mimeTypes: string[];
|
|
317
|
-
}
|
|
318
|
-
interface ITranslation {
|
|
319
|
-
id: string;
|
|
320
|
-
path: string;
|
|
321
|
-
}
|
|
322
|
-
interface ILocalizationContribution {
|
|
323
|
-
languageId: string;
|
|
324
|
-
languageName?: string;
|
|
325
|
-
localizedLanguageName?: string;
|
|
326
|
-
translations: ITranslation[];
|
|
327
|
-
minimalTranslations?: {
|
|
328
|
-
[key: string]: string;
|
|
329
|
-
};
|
|
330
|
-
}
|
|
331
|
-
interface IExtensionContributions {
|
|
332
|
-
commands?: ICommand[];
|
|
333
|
-
configuration?: IConfiguration | IConfiguration[];
|
|
334
|
-
debuggers?: IDebugger[];
|
|
335
|
-
grammars?: IGrammar[];
|
|
336
|
-
jsonValidation?: IJSONValidation[];
|
|
337
|
-
keybindings?: IKeyBinding[];
|
|
338
|
-
languages?: ILanguage[];
|
|
339
|
-
menus?: {
|
|
340
|
-
[context: string]: IMenu[];
|
|
341
|
-
};
|
|
342
|
-
snippets?: ISnippet[];
|
|
343
|
-
themes?: ITheme[];
|
|
344
|
-
iconThemes?: ITheme[];
|
|
345
|
-
productIconThemes?: ITheme[];
|
|
346
|
-
viewsContainers?: {
|
|
347
|
-
[location: string]: IViewContainer[];
|
|
348
|
-
};
|
|
349
|
-
views?: {
|
|
350
|
-
[location: string]: IView[];
|
|
351
|
-
};
|
|
352
|
-
colors?: IColor[];
|
|
353
|
-
localizations?: ILocalizationContribution[];
|
|
354
|
-
readonly customEditors?: readonly IWebviewEditor[];
|
|
355
|
-
readonly codeActions?: readonly ICodeActionContribution[];
|
|
356
|
-
authentication?: IAuthenticationContribution[];
|
|
357
|
-
walkthroughs?: IWalkthrough[];
|
|
358
|
-
startEntries?: IStartEntry[];
|
|
359
|
-
readonly notebooks?: INotebookEntry[];
|
|
360
|
-
readonly notebookRenderer?: INotebookRendererContribution[];
|
|
361
|
-
}
|
|
362
|
-
interface IExtensionCapabilities {
|
|
363
|
-
readonly virtualWorkspaces?: ExtensionVirtualWorkspaceSupport;
|
|
364
|
-
readonly untrustedWorkspaces?: ExtensionUntrustedWorkspaceSupport;
|
|
365
|
-
}
|
|
366
|
-
type LimitedWorkspaceSupportType = 'limited';
|
|
367
|
-
type ExtensionUntrustedWorkspaceSupport = {
|
|
368
|
-
supported: true;
|
|
369
|
-
} | {
|
|
370
|
-
supported: false;
|
|
371
|
-
description: string;
|
|
372
|
-
} | {
|
|
373
|
-
supported: LimitedWorkspaceSupportType;
|
|
374
|
-
description: string;
|
|
375
|
-
restrictedConfigurations?: string[];
|
|
376
|
-
};
|
|
377
|
-
type ExtensionVirtualWorkspaceSupport = boolean | {
|
|
378
|
-
supported: true;
|
|
379
|
-
} | {
|
|
380
|
-
supported: false | LimitedWorkspaceSupportType;
|
|
381
|
-
description: string;
|
|
382
|
-
};
|
|
383
|
-
interface IRelaxedExtensionManifest {
|
|
384
|
-
name: string;
|
|
385
|
-
displayName?: string;
|
|
386
|
-
publisher: string;
|
|
387
|
-
version: string;
|
|
388
|
-
engines: {
|
|
389
|
-
readonly vscode: string;
|
|
390
|
-
};
|
|
391
|
-
description?: string;
|
|
392
|
-
main?: string;
|
|
393
|
-
browser?: string;
|
|
394
|
-
preview?: boolean;
|
|
395
|
-
l10n?: string;
|
|
396
|
-
icon?: string;
|
|
397
|
-
categories?: string[];
|
|
398
|
-
keywords?: string[];
|
|
399
|
-
activationEvents?: string[];
|
|
400
|
-
extensionDependencies?: string[];
|
|
401
|
-
extensionPack?: string[];
|
|
402
|
-
extensionKind?: ExtensionKind | ExtensionKind[];
|
|
403
|
-
contributes?: IExtensionContributions;
|
|
404
|
-
repository?: {
|
|
405
|
-
url: string;
|
|
406
|
-
};
|
|
407
|
-
bugs?: {
|
|
408
|
-
url: string;
|
|
409
|
-
};
|
|
410
|
-
enabledApiProposals?: readonly string[];
|
|
411
|
-
api?: string;
|
|
412
|
-
scripts?: {
|
|
413
|
-
[key: string]: string;
|
|
414
|
-
};
|
|
415
|
-
capabilities?: IExtensionCapabilities;
|
|
416
|
-
}
|
|
417
|
-
declare const enum TargetPlatform {
|
|
418
|
-
WIN32_X64 = "win32-x64",
|
|
419
|
-
WIN32_IA32 = "win32-ia32",
|
|
420
|
-
WIN32_ARM64 = "win32-arm64",
|
|
421
|
-
LINUX_X64 = "linux-x64",
|
|
422
|
-
LINUX_ARM64 = "linux-arm64",
|
|
423
|
-
LINUX_ARMHF = "linux-armhf",
|
|
424
|
-
ALPINE_X64 = "alpine-x64",
|
|
425
|
-
ALPINE_ARM64 = "alpine-arm64",
|
|
426
|
-
DARWIN_X64 = "darwin-x64",
|
|
427
|
-
DARWIN_ARM64 = "darwin-arm64",
|
|
428
|
-
WEB = "web",
|
|
429
|
-
UNIVERSAL = "universal",
|
|
430
|
-
UNKNOWN = "unknown",
|
|
431
|
-
UNDEFINED = "undefined"
|
|
432
|
-
}
|
|
433
|
-
/**
|
|
434
|
-
* **!Do not construct directly!**
|
|
435
|
-
*
|
|
436
|
-
* **!Only static methods because it gets serialized!**
|
|
437
|
-
*
|
|
438
|
-
* This represents the "canonical" version for an extension identifier. Extension ids
|
|
439
|
-
* have to be case-insensitive (due to the marketplace), but we must ensure case
|
|
440
|
-
* preservation because the extension API is already public at this time.
|
|
441
|
-
*
|
|
442
|
-
* For example, given an extension with the publisher `"Hello"` and the name `"World"`,
|
|
443
|
-
* its canonical extension identifier is `"Hello.World"`. This extension could be
|
|
444
|
-
* referenced in some other extension's dependencies using the string `"hello.world"`.
|
|
445
|
-
*
|
|
446
|
-
* To make matters more complicated, an extension can optionally have an UUID. When two
|
|
447
|
-
* extensions have the same UUID, they are considered equal even if their identifier is different.
|
|
448
|
-
*/
|
|
449
|
-
declare class ExtensionIdentifier {
|
|
450
|
-
readonly value: string;
|
|
451
|
-
private readonly _lower;
|
|
452
|
-
constructor(value: string);
|
|
453
|
-
static equals(a: ExtensionIdentifier | string | null | undefined, b: ExtensionIdentifier | string | null | undefined): boolean;
|
|
454
|
-
/**
|
|
455
|
-
* Gives the value by which to index (for equality).
|
|
456
|
-
*/
|
|
457
|
-
static toKey(id: ExtensionIdentifier | string): string;
|
|
458
|
-
}
|
|
459
|
-
interface IRelaxedExtensionDescription extends IRelaxedExtensionManifest {
|
|
460
|
-
id?: string;
|
|
461
|
-
identifier: ExtensionIdentifier;
|
|
462
|
-
uuid?: string;
|
|
463
|
-
targetPlatform: TargetPlatform;
|
|
464
|
-
isBuiltin: boolean;
|
|
465
|
-
isUserBuiltin: boolean;
|
|
466
|
-
isUnderDevelopment: boolean;
|
|
467
|
-
extensionLocation: URI;
|
|
468
|
-
browserNlsBundleUris?: {
|
|
469
|
-
[language: string]: URI;
|
|
470
|
-
};
|
|
471
|
-
}
|
|
472
|
-
type IExtensionDescription = Readonly<IRelaxedExtensionDescription>;
|
|
473
|
-
|
|
474
3
|
interface IUserFriendlyKeybinding {
|
|
475
4
|
key: string;
|
|
476
5
|
command: string;
|
|
@@ -489,20 +18,7 @@ interface ContributedKeyBinding {
|
|
|
489
18
|
linux?: string;
|
|
490
19
|
win?: string;
|
|
491
20
|
}
|
|
492
|
-
interface IUserFriendlyCommand {
|
|
493
|
-
command: string;
|
|
494
|
-
title: string | ILocalizedString;
|
|
495
|
-
shortTitle?: string | ILocalizedString;
|
|
496
|
-
enablement?: string;
|
|
497
|
-
category?: string | ILocalizedString;
|
|
498
|
-
icon?: string | {
|
|
499
|
-
light: string;
|
|
500
|
-
dark: string;
|
|
501
|
-
};
|
|
502
|
-
}
|
|
503
|
-
declare function setKeybindings(grammars: ContributedKeyBinding | ContributedKeyBinding[], extension?: IExtensionDescription): void;
|
|
504
|
-
declare function setCommands(keybindings: IUserFriendlyCommand | IUserFriendlyCommand[], extension?: IExtensionDescription): void;
|
|
505
21
|
declare function updateUserKeybindings(keybindingsJson: string): Promise<void>;
|
|
506
22
|
declare function getServiceOverride(): IEditorOverrideServices;
|
|
507
23
|
|
|
508
|
-
export { ContributedKeyBinding, IUserFriendlyKeybinding, getServiceOverride as default,
|
|
24
|
+
export { ContributedKeyBinding, IUserFriendlyKeybinding, getServiceOverride as default, updateUserKeybindings };
|