@codingame/monaco-vscode-api 1.69.24 → 1.76.0-next.2
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 +1 -3
- package/dist/_.contribution.js +3 -3
- package/dist/api.js +63 -31
- package/dist/async.js +9 -9
- package/dist/configuration.d.ts +109 -21
- package/dist/configuration.js +47 -217
- package/dist/{workspace.js → contextkey.js} +26 -47
- package/dist/dialogs.js +498 -426
- package/dist/extHost.js +1884 -909
- package/dist/files.js +65 -63
- package/dist/keybindings.d.ts +24 -18
- package/dist/keybindings.js +475 -404
- package/dist/languageConfiguration.js +5 -5
- package/dist/languageService.js +11 -3
- package/dist/languages.d.ts +24 -7
- package/dist/languages.js +1 -1
- package/dist/layout.js +104 -166
- package/dist/missing-services.js +230 -77
- package/dist/modelEditor.d.ts +1 -5
- package/dist/modelEditor.js +32 -58
- package/dist/monaco.d.ts +303 -713
- package/dist/monaco.js +2 -2
- package/dist/notifications.js +95 -235
- package/dist/polyfill.js +2022 -1637
- package/dist/services.d.ts +8908 -8467
- package/dist/services.js +1 -1
- package/dist/services2.js +293 -113
- package/dist/snippets.d.ts +24 -7
- package/dist/snippets.js +11 -9
- package/dist/textmate.d.ts +114 -20
- package/dist/textmate.js +825 -453
- package/dist/theme.js +13 -14
- package/dist/tokenClassification.d.ts +24 -7
- package/dist/tokenClassification.js +1 -1
- package/dist/tokenClassificationRegistry.js +1 -1
- package/dist/tools.js +104 -28
- package/package.json +12 -19
- package/dist/messages.d.ts +0 -10
- package/dist/messages.js +0 -11
- package/dist/types.js +0 -46
package/dist/monaco.d.ts
CHANGED
|
@@ -1,12 +1,28 @@
|
|
|
1
1
|
import * as monaco from 'monaco-editor';
|
|
2
2
|
import * as vscode from 'vscode';
|
|
3
3
|
|
|
4
|
+
/**
|
|
5
|
+
* An object that performs a cleanup operation when `.dispose()` is called.
|
|
6
|
+
*
|
|
7
|
+
* Some examples of how disposables are used:
|
|
8
|
+
*
|
|
9
|
+
* - An event listener that removes itself when `.dispose()` is called.
|
|
10
|
+
* - A resource such as a file system watcher that cleans up the resource when `.dispose()` is called.
|
|
11
|
+
* - The return value from registering a provider. When `.dispose()` is called, the provider is unregistered.
|
|
12
|
+
*/
|
|
4
13
|
interface IDisposable {
|
|
5
14
|
dispose(): void;
|
|
6
15
|
}
|
|
16
|
+
/**
|
|
17
|
+
* Manages a collection of disposable values.
|
|
18
|
+
*
|
|
19
|
+
* This is the preferred way to manage multiple disposables. A `DisposableStore` is safer to work with than an
|
|
20
|
+
* `IDisposable[]` as it considers edge cases, such as registering the same value multiple times or adding an item to a
|
|
21
|
+
* store that has already been disposed of.
|
|
22
|
+
*/
|
|
7
23
|
declare class DisposableStore implements IDisposable {
|
|
8
24
|
static DISABLE_DISPOSED_WARNING: boolean;
|
|
9
|
-
private _toDispose;
|
|
25
|
+
private readonly _toDispose;
|
|
10
26
|
private _isDisposed;
|
|
11
27
|
constructor();
|
|
12
28
|
/**
|
|
@@ -16,20 +32,36 @@ declare class DisposableStore implements IDisposable {
|
|
|
16
32
|
*/
|
|
17
33
|
dispose(): void;
|
|
18
34
|
/**
|
|
19
|
-
*
|
|
35
|
+
* @return `true` if this object has been disposed of.
|
|
20
36
|
*/
|
|
21
37
|
get isDisposed(): boolean;
|
|
22
38
|
/**
|
|
23
39
|
* Dispose of all registered disposables but do not mark this object as disposed.
|
|
24
40
|
*/
|
|
25
41
|
clear(): void;
|
|
42
|
+
/**
|
|
43
|
+
* Add a new {@link IDisposable disposable} to the collection.
|
|
44
|
+
*/
|
|
26
45
|
add<T extends IDisposable>(o: T): T;
|
|
27
46
|
}
|
|
47
|
+
/**
|
|
48
|
+
* Abstract base class for a {@link IDisposable disposable} object.
|
|
49
|
+
*
|
|
50
|
+
* Subclasses can {@linkcode _register} disposables that will be automatically cleaned up when this object is disposed of.
|
|
51
|
+
*/
|
|
28
52
|
declare abstract class Disposable implements IDisposable {
|
|
53
|
+
/**
|
|
54
|
+
* A disposable that does nothing when it is disposed of.
|
|
55
|
+
*
|
|
56
|
+
* TODO: This should not be a static property.
|
|
57
|
+
*/
|
|
29
58
|
static readonly None: Readonly<IDisposable>;
|
|
30
59
|
protected readonly _store: DisposableStore;
|
|
31
60
|
constructor();
|
|
32
61
|
dispose(): void;
|
|
62
|
+
/**
|
|
63
|
+
* Adds `o` to the collection of disposables managed by this object.
|
|
64
|
+
*/
|
|
33
65
|
protected _register<T extends IDisposable>(o: T): T;
|
|
34
66
|
}
|
|
35
67
|
|
|
@@ -258,20 +290,50 @@ interface IObserver {
|
|
|
258
290
|
}
|
|
259
291
|
|
|
260
292
|
/**
|
|
261
|
-
*
|
|
262
|
-
*
|
|
293
|
+
* Can be passed into the Delayed to defer using a microtask
|
|
294
|
+
* */
|
|
295
|
+
declare const MicrotaskDelay: unique symbol;
|
|
296
|
+
|
|
297
|
+
/**
|
|
298
|
+
* An event with zero or one parameters that can be subscribed to. The event is a function itself.
|
|
263
299
|
*/
|
|
264
300
|
type Event<T> = vscode.Event<T>
|
|
265
301
|
declare namespace Event {
|
|
266
302
|
const None: Event<any>;
|
|
303
|
+
/**
|
|
304
|
+
* Given an event, returns another event which debounces calls and defers the listeners to a later task via a shared
|
|
305
|
+
* `setTimeout`. The event is converted into a signal (`Event<void>`) to avoid additional object creation as a
|
|
306
|
+
* result of merging events and to try prevent race conditions that could arise when using related deferred and
|
|
307
|
+
* non-deferred events.
|
|
308
|
+
*
|
|
309
|
+
* This is useful for deferring non-critical work (eg. general UI updates) to ensure it does not block critical work
|
|
310
|
+
* (eg. latency of keypress to text rendered).
|
|
311
|
+
*
|
|
312
|
+
* *NOTE* that this function returns an `Event` and it MUST be called with a `DisposableStore` whenever the returned
|
|
313
|
+
* event is accessible to "third parties", e.g the event is a public property. Otherwise a leaked listener on the
|
|
314
|
+
* returned event causes this utility to leak a listener on the original event.
|
|
315
|
+
*
|
|
316
|
+
* @param event The event source for the new event.
|
|
317
|
+
* @param disposable A disposable store to add the new EventEmitter to.
|
|
318
|
+
*/
|
|
319
|
+
function defer(event: Event<unknown>, disposable?: DisposableStore): Event<void>;
|
|
267
320
|
/**
|
|
268
321
|
* Given an event, returns another event which only fires once.
|
|
322
|
+
*
|
|
323
|
+
* @param event The event source for the new event.
|
|
269
324
|
*/
|
|
270
325
|
function once<T>(event: Event<T>): Event<T>;
|
|
271
326
|
/**
|
|
327
|
+
* Maps an event of one type into an event of another type using a mapping function, similar to how
|
|
328
|
+
* `Array.prototype.map` works.
|
|
329
|
+
*
|
|
272
330
|
* *NOTE* that this function returns an `Event` and it MUST be called with a `DisposableStore` whenever the returned
|
|
273
331
|
* event is accessible to "third parties", e.g the event is a public property. Otherwise a leaked listener on the
|
|
274
332
|
* returned event causes this utility to leak a listener on the original event.
|
|
333
|
+
*
|
|
334
|
+
* @param event The event source for the new event.
|
|
335
|
+
* @param map The mapping function.
|
|
336
|
+
* @param disposable A disposable store to add the new EventEmitter to.
|
|
275
337
|
*/
|
|
276
338
|
function map<I, O>(event: Event<I>, map: (i: I) => O, disposable?: DisposableStore): Event<O>;
|
|
277
339
|
/**
|
|
@@ -305,17 +367,33 @@ declare namespace Event {
|
|
|
305
367
|
*/
|
|
306
368
|
function reduce<I, O>(event: Event<I>, merge: (last: O | undefined, event: I) => O, initial?: O, disposable?: DisposableStore): Event<O>;
|
|
307
369
|
/**
|
|
370
|
+
* Given an event, creates a new emitter that event that will debounce events based on {@link delay} and give an
|
|
371
|
+
* array event object of all events that fired.
|
|
372
|
+
*
|
|
308
373
|
* *NOTE* that this function returns an `Event` and it MUST be called with a `DisposableStore` whenever the returned
|
|
309
374
|
* event is accessible to "third parties", e.g the event is a public property. Otherwise a leaked listener on the
|
|
310
375
|
* returned event causes this utility to leak a listener on the original event.
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
376
|
+
*
|
|
377
|
+
* @param event The original event to debounce.
|
|
378
|
+
* @param merge A function that reduces all events into a single event.
|
|
379
|
+
* @param delay The number of milliseconds to debounce.
|
|
380
|
+
* @param leading Whether to fire a leading event without debouncing.
|
|
381
|
+
* @param flushOnListenerRemove Whether to fire all debounced events when a listener is removed. If this is not
|
|
382
|
+
* specified, some events could go missing. Use this if it's important that all events are processed, even if the
|
|
383
|
+
* listener gets disposed before the debounced event fires.
|
|
384
|
+
* @param leakWarningThreshold See {@link EmitterOptions.leakWarningThreshold}.
|
|
385
|
+
* @param disposable A disposable store to register the debounce emitter to.
|
|
386
|
+
*/
|
|
387
|
+
function debounce<T>(event: Event<T>, merge: (last: T | undefined, event: T) => T, delay?: number | typeof MicrotaskDelay, leading?: boolean, flushOnListenerRemove?: boolean, leakWarningThreshold?: number, disposable?: DisposableStore): Event<T>;
|
|
388
|
+
function debounce<I, O>(event: Event<I>, merge: (last: O | undefined, event: I) => O, delay?: number | typeof MicrotaskDelay, leading?: boolean, flushOnListenerRemove?: boolean, leakWarningThreshold?: number, disposable?: DisposableStore): Event<O>;
|
|
389
|
+
/**
|
|
390
|
+
* Debounces an event, firing after some delay (default=0) with an array of all event original objects.
|
|
391
|
+
*
|
|
314
392
|
* *NOTE* that this function returns an `Event` and it MUST be called with a `DisposableStore` whenever the returned
|
|
315
393
|
* event is accessible to "third parties", e.g the event is a public property. Otherwise a leaked listener on the
|
|
316
394
|
* returned event causes this utility to leak a listener on the original event.
|
|
317
395
|
*/
|
|
318
|
-
function
|
|
396
|
+
function accumulate<T>(event: Event<T>, delay?: number, disposable?: DisposableStore): Event<T[]>;
|
|
319
397
|
/**
|
|
320
398
|
* *NOTE* that this function returns an `Event` and it MUST be called with a `DisposableStore` whenever the returned
|
|
321
399
|
* event is accessible to "third parties", e.g the event is a public property. Otherwise a leaked listener on the
|
|
@@ -323,9 +401,21 @@ declare namespace Event {
|
|
|
323
401
|
*/
|
|
324
402
|
function latch<T>(event: Event<T>, equals?: (a: T, b: T) => boolean, disposable?: DisposableStore): Event<T>;
|
|
325
403
|
/**
|
|
404
|
+
* Splits an event whose parameter is a union type into 2 separate events for each type in the union.
|
|
405
|
+
*
|
|
326
406
|
* *NOTE* that this function returns an `Event` and it MUST be called with a `DisposableStore` whenever the returned
|
|
327
407
|
* event is accessible to "third parties", e.g the event is a public property. Otherwise a leaked listener on the
|
|
328
408
|
* returned event causes this utility to leak a listener on the original event.
|
|
409
|
+
*
|
|
410
|
+
* @example
|
|
411
|
+
* ```
|
|
412
|
+
* const event = new EventEmitter<number | undefined>().event;
|
|
413
|
+
* const [numberEvent, undefinedEvent] = Event.split(event, isUndefined);
|
|
414
|
+
* ```
|
|
415
|
+
*
|
|
416
|
+
* @param event The event source for the new event.
|
|
417
|
+
* @param isT A function that determines what event is of the first type.
|
|
418
|
+
* @param disposable A disposable store to add the new EventEmitter to.
|
|
329
419
|
*/
|
|
330
420
|
function split<T, U>(event: Event<T | U>, isT: (e: T | U) => e is T, disposable?: DisposableStore): [Event<T>, Event<U>];
|
|
331
421
|
/**
|
|
@@ -342,8 +432,8 @@ declare namespace Event {
|
|
|
342
432
|
filter<R>(fn: (e: T | R) => e is R): IChainableEvent<R>;
|
|
343
433
|
reduce<R>(merge: (last: R | undefined, event: T) => R, initial?: R): IChainableEvent<R>;
|
|
344
434
|
latch(): IChainableEvent<T>;
|
|
345
|
-
debounce(merge: (last: T | undefined, event: T) => T, delay?: number, leading?: boolean, leakWarningThreshold?: number): IChainableEvent<T>;
|
|
346
|
-
debounce<R>(merge: (last: R | undefined, event: T) => R, delay?: number, leading?: boolean, leakWarningThreshold?: number): IChainableEvent<R>;
|
|
435
|
+
debounce(merge: (last: T | undefined, event: T) => T, delay?: number, leading?: boolean, flushOnListenerRemove?: boolean, leakWarningThreshold?: number): IChainableEvent<T>;
|
|
436
|
+
debounce<R>(merge: (last: R | undefined, event: T) => R, delay?: number, leading?: boolean, flushOnListenerRemove?: boolean, leakWarningThreshold?: number): IChainableEvent<R>;
|
|
347
437
|
on(listener: (e: T) => any, thisArgs?: any, disposables?: IDisposable[] | DisposableStore): IDisposable;
|
|
348
438
|
once(listener: (e: T) => any, thisArgs?: any, disposables?: IDisposable[]): IDisposable;
|
|
349
439
|
}
|
|
@@ -416,7 +506,7 @@ interface IContextKeyExpression {
|
|
|
416
506
|
map(mapFnc: IContextKeyExprMapper): ContextKeyExpression;
|
|
417
507
|
negate(): ContextKeyExpression;
|
|
418
508
|
}
|
|
419
|
-
|
|
509
|
+
type ContextKeyExpression = (ContextKeyFalseExpr | ContextKeyTrueExpr | ContextKeyDefinedExpr | ContextKeyNotExpr | ContextKeyEqualsExpr | ContextKeyNotEqualsExpr | ContextKeyRegexExpr | ContextKeyNotRegexExpr | ContextKeyAndExpr | ContextKeyOrExpr | ContextKeyInExpr | ContextKeyNotInExpr | ContextKeyGreaterExpr | ContextKeyGreaterEqualsExpr | ContextKeySmallerExpr | ContextKeySmallerEqualsExpr);
|
|
420
510
|
declare class ContextKeyFalseExpr implements IContextKeyExpression {
|
|
421
511
|
static INSTANCE: ContextKeyFalseExpr;
|
|
422
512
|
readonly type = ContextKeyExprType.False;
|
|
@@ -634,7 +724,7 @@ declare class ContextKeyNotRegexExpr implements IContextKeyExpression {
|
|
|
634
724
|
declare class ContextKeyAndExpr implements IContextKeyExpression {
|
|
635
725
|
readonly expr: ContextKeyExpression[];
|
|
636
726
|
private negated;
|
|
637
|
-
static create(_expr: ReadonlyArray<ContextKeyExpression | null | undefined>, negated: ContextKeyExpression | null): ContextKeyExpression | undefined;
|
|
727
|
+
static create(_expr: ReadonlyArray<ContextKeyExpression | null | undefined>, negated: ContextKeyExpression | null, extraRedundantCheck: boolean): ContextKeyExpression | undefined;
|
|
638
728
|
readonly type = ContextKeyExprType.And;
|
|
639
729
|
private constructor();
|
|
640
730
|
cmp(other: ContextKeyExpression): number;
|
|
@@ -663,7 +753,7 @@ declare class ContextKeyOrExpr implements IContextKeyExpression {
|
|
|
663
753
|
map(mapFnc: IContextKeyExprMapper): ContextKeyExpression;
|
|
664
754
|
negate(): ContextKeyExpression;
|
|
665
755
|
}
|
|
666
|
-
|
|
756
|
+
type ContextKeyValue = null | undefined | boolean | number | string | Array<null | undefined | boolean | number | string> | Record<string, null | undefined | boolean | number | string>;
|
|
667
757
|
interface IContext {
|
|
668
758
|
getValue<T extends ContextKeyValue = ContextKeyValue>(key: string): T | undefined;
|
|
669
759
|
}
|
|
@@ -701,7 +791,7 @@ interface IContextKeyService {
|
|
|
701
791
|
updateParent(parentContextKeyService: IContextKeyService): void;
|
|
702
792
|
}
|
|
703
793
|
|
|
704
|
-
|
|
794
|
+
type JSONSchemaType = 'string' | 'number' | 'integer' | 'boolean' | 'null' | 'array' | 'object';
|
|
705
795
|
interface IJSONSchema {
|
|
706
796
|
id?: string;
|
|
707
797
|
$id?: string;
|
|
@@ -790,17 +880,6 @@ interface IJSONSchemaSnippet {
|
|
|
790
880
|
bodyText?: string;
|
|
791
881
|
}
|
|
792
882
|
|
|
793
|
-
/**
|
|
794
|
-
* Configuration options for auto indentation in the editor
|
|
795
|
-
*/
|
|
796
|
-
declare const enum EditorAutoIndentStrategy {
|
|
797
|
-
None = 0,
|
|
798
|
-
Keep = 1,
|
|
799
|
-
Brackets = 2,
|
|
800
|
-
Advanced = 3,
|
|
801
|
-
Full = 4
|
|
802
|
-
}
|
|
803
|
-
|
|
804
883
|
/**
|
|
805
884
|
* A position in the editor. This interface is suitable for serialization.
|
|
806
885
|
*/
|
|
@@ -991,11 +1070,11 @@ declare class Range {
|
|
|
991
1070
|
/**
|
|
992
1071
|
* Test if this range equals other.
|
|
993
1072
|
*/
|
|
994
|
-
equalsRange(other: IRange | null): boolean;
|
|
1073
|
+
equalsRange(other: IRange | null | undefined): boolean;
|
|
995
1074
|
/**
|
|
996
1075
|
* Test if range `a` equals `b`.
|
|
997
1076
|
*/
|
|
998
|
-
static equalsRange(a: IRange | null, b: IRange | null): boolean;
|
|
1077
|
+
static equalsRange(a: IRange | null | undefined, b: IRange | null | undefined): boolean;
|
|
999
1078
|
/**
|
|
1000
1079
|
* Return the end position (which will be after or equal to the start position)
|
|
1001
1080
|
*/
|
|
@@ -1032,6 +1111,18 @@ declare class Range {
|
|
|
1032
1111
|
* Create a new empty range using this range's start position.
|
|
1033
1112
|
*/
|
|
1034
1113
|
static collapseToStart(range: IRange): Range;
|
|
1114
|
+
/**
|
|
1115
|
+
* Create a new empty range using this range's end position.
|
|
1116
|
+
*/
|
|
1117
|
+
collapseToEnd(): Range;
|
|
1118
|
+
/**
|
|
1119
|
+
* Create a new empty range using this range's end position.
|
|
1120
|
+
*/
|
|
1121
|
+
static collapseToEnd(range: IRange): Range;
|
|
1122
|
+
/**
|
|
1123
|
+
* Moves the range by the given amount of lines.
|
|
1124
|
+
*/
|
|
1125
|
+
delta(lineCount: number): Range;
|
|
1035
1126
|
static fromPositions(start: IPosition, end?: IPosition): Range;
|
|
1036
1127
|
/**
|
|
1037
1128
|
* Create a `Range` from an `IRange`.
|
|
@@ -1068,6 +1159,40 @@ declare class Range {
|
|
|
1068
1159
|
toJSON(): IRange;
|
|
1069
1160
|
}
|
|
1070
1161
|
|
|
1162
|
+
interface MarkdownStringTrustedOptions {
|
|
1163
|
+
readonly enabledCommands: readonly string[];
|
|
1164
|
+
}
|
|
1165
|
+
interface IMarkdownString {
|
|
1166
|
+
readonly value: string;
|
|
1167
|
+
readonly isTrusted?: boolean | MarkdownStringTrustedOptions;
|
|
1168
|
+
readonly supportThemeIcons?: boolean;
|
|
1169
|
+
readonly supportHtml?: boolean;
|
|
1170
|
+
readonly baseUri?: UriComponents;
|
|
1171
|
+
uris?: {
|
|
1172
|
+
[href: string]: UriComponents;
|
|
1173
|
+
};
|
|
1174
|
+
}
|
|
1175
|
+
|
|
1176
|
+
/**
|
|
1177
|
+
* A single edit operation, that acts as a simple replace.
|
|
1178
|
+
* i.e. Replace text at `range` with `text` in model.
|
|
1179
|
+
*/
|
|
1180
|
+
interface ISingleEditOperation {
|
|
1181
|
+
/**
|
|
1182
|
+
* The range to replace. This can be empty to emulate a simple insert.
|
|
1183
|
+
*/
|
|
1184
|
+
range: IRange;
|
|
1185
|
+
/**
|
|
1186
|
+
* The text to replace with. This can be null to emulate a simple delete.
|
|
1187
|
+
*/
|
|
1188
|
+
text: string | null;
|
|
1189
|
+
/**
|
|
1190
|
+
* This indicates that this operation has "insert" semantics.
|
|
1191
|
+
* i.e. forceMoveMarkers = true => if `range` is collapsed, all markers at the position will be moved.
|
|
1192
|
+
*/
|
|
1193
|
+
forceMoveMarkers?: boolean;
|
|
1194
|
+
}
|
|
1195
|
+
|
|
1071
1196
|
/**
|
|
1072
1197
|
* A selection in the editor.
|
|
1073
1198
|
* The selection is a range that has an orientation.
|
|
@@ -1183,603 +1308,30 @@ declare class Selection extends Range {
|
|
|
1183
1308
|
static createWithDirection(startLineNumber: number, startColumn: number, endLineNumber: number, endColumn: number, direction: SelectionDirection): Selection;
|
|
1184
1309
|
}
|
|
1185
1310
|
|
|
1186
|
-
interface
|
|
1187
|
-
|
|
1188
|
-
readonly isTrusted?: boolean;
|
|
1189
|
-
readonly supportThemeIcons?: boolean;
|
|
1190
|
-
readonly supportHtml?: boolean;
|
|
1191
|
-
readonly baseUri?: UriComponents;
|
|
1192
|
-
uris?: {
|
|
1193
|
-
[href: string]: UriComponents;
|
|
1194
|
-
};
|
|
1311
|
+
interface ThemeColor {
|
|
1312
|
+
id: string;
|
|
1195
1313
|
}
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
* A single edit operation, that acts as a simple replace.
|
|
1199
|
-
* i.e. Replace text at `range` with `text` in model.
|
|
1200
|
-
*/
|
|
1201
|
-
interface ISingleEditOperation {
|
|
1202
|
-
/**
|
|
1203
|
-
* The range to replace. This can be empty to emulate a simple insert.
|
|
1204
|
-
*/
|
|
1205
|
-
range: IRange;
|
|
1206
|
-
/**
|
|
1207
|
-
* The text to replace with. This can be null to emulate a simple delete.
|
|
1208
|
-
*/
|
|
1209
|
-
text: string | null;
|
|
1210
|
-
/**
|
|
1211
|
-
* This indicates that this operation has "insert" semantics.
|
|
1212
|
-
* i.e. forceMoveMarkers = true => if `range` is collapsed, all markers at the position will be moved.
|
|
1213
|
-
*/
|
|
1214
|
-
forceMoveMarkers?: boolean;
|
|
1314
|
+
declare namespace ThemeColor {
|
|
1315
|
+
function isThemeColor(obj: any): obj is ThemeColor;
|
|
1215
1316
|
}
|
|
1216
|
-
|
|
1217
|
-
/**
|
|
1218
|
-
* The Codicon library is a set of default icons that are built-in in VS Code.
|
|
1219
|
-
*
|
|
1220
|
-
* In the product (outside of base) Codicons should only be used as defaults. In order to have all icons in VS Code
|
|
1221
|
-
* themeable, component should define new, UI component specific icons using `iconRegistry.registerIcon`.
|
|
1222
|
-
* In that call a Codicon can be named as default.
|
|
1223
|
-
*/
|
|
1224
|
-
declare class Codicon implements CSSIcon {
|
|
1225
|
-
readonly id: string;
|
|
1226
|
-
readonly definition: IconDefinition;
|
|
1227
|
-
description?: string | undefined;
|
|
1228
|
-
private constructor();
|
|
1229
|
-
get classNames(): string;
|
|
1230
|
-
get classNamesArray(): string[];
|
|
1231
|
-
get cssSelector(): string;
|
|
1232
|
-
private static _allCodicons;
|
|
1233
|
-
/**
|
|
1234
|
-
* @returns Returns all default icons covered by the codicon font. Only to be used by the icon registry in platform.
|
|
1235
|
-
*/
|
|
1236
|
-
static getAll(): readonly Codicon[];
|
|
1237
|
-
static readonly add: Codicon;
|
|
1238
|
-
static readonly plus: Codicon;
|
|
1239
|
-
static readonly gistNew: Codicon;
|
|
1240
|
-
static readonly repoCreate: Codicon;
|
|
1241
|
-
static readonly lightbulb: Codicon;
|
|
1242
|
-
static readonly lightBulb: Codicon;
|
|
1243
|
-
static readonly repo: Codicon;
|
|
1244
|
-
static readonly repoDelete: Codicon;
|
|
1245
|
-
static readonly gistFork: Codicon;
|
|
1246
|
-
static readonly repoForked: Codicon;
|
|
1247
|
-
static readonly gitPullRequest: Codicon;
|
|
1248
|
-
static readonly gitPullRequestAbandoned: Codicon;
|
|
1249
|
-
static readonly recordKeys: Codicon;
|
|
1250
|
-
static readonly keyboard: Codicon;
|
|
1251
|
-
static readonly tag: Codicon;
|
|
1252
|
-
static readonly tagAdd: Codicon;
|
|
1253
|
-
static readonly tagRemove: Codicon;
|
|
1254
|
-
static readonly person: Codicon;
|
|
1255
|
-
static readonly personFollow: Codicon;
|
|
1256
|
-
static readonly personOutline: Codicon;
|
|
1257
|
-
static readonly personFilled: Codicon;
|
|
1258
|
-
static readonly gitBranch: Codicon;
|
|
1259
|
-
static readonly gitBranchCreate: Codicon;
|
|
1260
|
-
static readonly gitBranchDelete: Codicon;
|
|
1261
|
-
static readonly sourceControl: Codicon;
|
|
1262
|
-
static readonly mirror: Codicon;
|
|
1263
|
-
static readonly mirrorPublic: Codicon;
|
|
1264
|
-
static readonly star: Codicon;
|
|
1265
|
-
static readonly starAdd: Codicon;
|
|
1266
|
-
static readonly starDelete: Codicon;
|
|
1267
|
-
static readonly starEmpty: Codicon;
|
|
1268
|
-
static readonly comment: Codicon;
|
|
1269
|
-
static readonly commentAdd: Codicon;
|
|
1270
|
-
static readonly alert: Codicon;
|
|
1271
|
-
static readonly warning: Codicon;
|
|
1272
|
-
static readonly search: Codicon;
|
|
1273
|
-
static readonly searchSave: Codicon;
|
|
1274
|
-
static readonly logOut: Codicon;
|
|
1275
|
-
static readonly signOut: Codicon;
|
|
1276
|
-
static readonly logIn: Codicon;
|
|
1277
|
-
static readonly signIn: Codicon;
|
|
1278
|
-
static readonly eye: Codicon;
|
|
1279
|
-
static readonly eyeUnwatch: Codicon;
|
|
1280
|
-
static readonly eyeWatch: Codicon;
|
|
1281
|
-
static readonly circleFilled: Codicon;
|
|
1282
|
-
static readonly primitiveDot: Codicon;
|
|
1283
|
-
static readonly closeDirty: Codicon;
|
|
1284
|
-
static readonly debugBreakpoint: Codicon;
|
|
1285
|
-
static readonly debugBreakpointDisabled: Codicon;
|
|
1286
|
-
static readonly debugHint: Codicon;
|
|
1287
|
-
static readonly primitiveSquare: Codicon;
|
|
1288
|
-
static readonly edit: Codicon;
|
|
1289
|
-
static readonly pencil: Codicon;
|
|
1290
|
-
static readonly info: Codicon;
|
|
1291
|
-
static readonly issueOpened: Codicon;
|
|
1292
|
-
static readonly gistPrivate: Codicon;
|
|
1293
|
-
static readonly gitForkPrivate: Codicon;
|
|
1294
|
-
static readonly lock: Codicon;
|
|
1295
|
-
static readonly mirrorPrivate: Codicon;
|
|
1296
|
-
static readonly close: Codicon;
|
|
1297
|
-
static readonly removeClose: Codicon;
|
|
1298
|
-
static readonly x: Codicon;
|
|
1299
|
-
static readonly repoSync: Codicon;
|
|
1300
|
-
static readonly sync: Codicon;
|
|
1301
|
-
static readonly clone: Codicon;
|
|
1302
|
-
static readonly desktopDownload: Codicon;
|
|
1303
|
-
static readonly beaker: Codicon;
|
|
1304
|
-
static readonly microscope: Codicon;
|
|
1305
|
-
static readonly vm: Codicon;
|
|
1306
|
-
static readonly deviceDesktop: Codicon;
|
|
1307
|
-
static readonly file: Codicon;
|
|
1308
|
-
static readonly fileText: Codicon;
|
|
1309
|
-
static readonly more: Codicon;
|
|
1310
|
-
static readonly ellipsis: Codicon;
|
|
1311
|
-
static readonly kebabHorizontal: Codicon;
|
|
1312
|
-
static readonly mailReply: Codicon;
|
|
1313
|
-
static readonly reply: Codicon;
|
|
1314
|
-
static readonly organization: Codicon;
|
|
1315
|
-
static readonly organizationFilled: Codicon;
|
|
1316
|
-
static readonly organizationOutline: Codicon;
|
|
1317
|
-
static readonly newFile: Codicon;
|
|
1318
|
-
static readonly fileAdd: Codicon;
|
|
1319
|
-
static readonly newFolder: Codicon;
|
|
1320
|
-
static readonly fileDirectoryCreate: Codicon;
|
|
1321
|
-
static readonly trash: Codicon;
|
|
1322
|
-
static readonly trashcan: Codicon;
|
|
1323
|
-
static readonly history: Codicon;
|
|
1324
|
-
static readonly clock: Codicon;
|
|
1325
|
-
static readonly folder: Codicon;
|
|
1326
|
-
static readonly fileDirectory: Codicon;
|
|
1327
|
-
static readonly symbolFolder: Codicon;
|
|
1328
|
-
static readonly logoGithub: Codicon;
|
|
1329
|
-
static readonly markGithub: Codicon;
|
|
1330
|
-
static readonly github: Codicon;
|
|
1331
|
-
static readonly terminal: Codicon;
|
|
1332
|
-
static readonly console: Codicon;
|
|
1333
|
-
static readonly repl: Codicon;
|
|
1334
|
-
static readonly zap: Codicon;
|
|
1335
|
-
static readonly symbolEvent: Codicon;
|
|
1336
|
-
static readonly error: Codicon;
|
|
1337
|
-
static readonly stop: Codicon;
|
|
1338
|
-
static readonly variable: Codicon;
|
|
1339
|
-
static readonly symbolVariable: Codicon;
|
|
1340
|
-
static readonly array: Codicon;
|
|
1341
|
-
static readonly symbolArray: Codicon;
|
|
1342
|
-
static readonly symbolModule: Codicon;
|
|
1343
|
-
static readonly symbolPackage: Codicon;
|
|
1344
|
-
static readonly symbolNamespace: Codicon;
|
|
1345
|
-
static readonly symbolObject: Codicon;
|
|
1346
|
-
static readonly symbolMethod: Codicon;
|
|
1347
|
-
static readonly symbolFunction: Codicon;
|
|
1348
|
-
static readonly symbolConstructor: Codicon;
|
|
1349
|
-
static readonly symbolBoolean: Codicon;
|
|
1350
|
-
static readonly symbolNull: Codicon;
|
|
1351
|
-
static readonly symbolNumeric: Codicon;
|
|
1352
|
-
static readonly symbolNumber: Codicon;
|
|
1353
|
-
static readonly symbolStructure: Codicon;
|
|
1354
|
-
static readonly symbolStruct: Codicon;
|
|
1355
|
-
static readonly symbolParameter: Codicon;
|
|
1356
|
-
static readonly symbolTypeParameter: Codicon;
|
|
1357
|
-
static readonly symbolKey: Codicon;
|
|
1358
|
-
static readonly symbolText: Codicon;
|
|
1359
|
-
static readonly symbolReference: Codicon;
|
|
1360
|
-
static readonly goToFile: Codicon;
|
|
1361
|
-
static readonly symbolEnum: Codicon;
|
|
1362
|
-
static readonly symbolValue: Codicon;
|
|
1363
|
-
static readonly symbolRuler: Codicon;
|
|
1364
|
-
static readonly symbolUnit: Codicon;
|
|
1365
|
-
static readonly activateBreakpoints: Codicon;
|
|
1366
|
-
static readonly archive: Codicon;
|
|
1367
|
-
static readonly arrowBoth: Codicon;
|
|
1368
|
-
static readonly arrowDown: Codicon;
|
|
1369
|
-
static readonly arrowLeft: Codicon;
|
|
1370
|
-
static readonly arrowRight: Codicon;
|
|
1371
|
-
static readonly arrowSmallDown: Codicon;
|
|
1372
|
-
static readonly arrowSmallLeft: Codicon;
|
|
1373
|
-
static readonly arrowSmallRight: Codicon;
|
|
1374
|
-
static readonly arrowSmallUp: Codicon;
|
|
1375
|
-
static readonly arrowUp: Codicon;
|
|
1376
|
-
static readonly bell: Codicon;
|
|
1377
|
-
static readonly bold: Codicon;
|
|
1378
|
-
static readonly book: Codicon;
|
|
1379
|
-
static readonly bookmark: Codicon;
|
|
1380
|
-
static readonly debugBreakpointConditionalUnverified: Codicon;
|
|
1381
|
-
static readonly debugBreakpointConditional: Codicon;
|
|
1382
|
-
static readonly debugBreakpointConditionalDisabled: Codicon;
|
|
1383
|
-
static readonly debugBreakpointDataUnverified: Codicon;
|
|
1384
|
-
static readonly debugBreakpointData: Codicon;
|
|
1385
|
-
static readonly debugBreakpointDataDisabled: Codicon;
|
|
1386
|
-
static readonly debugBreakpointLogUnverified: Codicon;
|
|
1387
|
-
static readonly debugBreakpointLog: Codicon;
|
|
1388
|
-
static readonly debugBreakpointLogDisabled: Codicon;
|
|
1389
|
-
static readonly briefcase: Codicon;
|
|
1390
|
-
static readonly broadcast: Codicon;
|
|
1391
|
-
static readonly browser: Codicon;
|
|
1392
|
-
static readonly bug: Codicon;
|
|
1393
|
-
static readonly calendar: Codicon;
|
|
1394
|
-
static readonly caseSensitive: Codicon;
|
|
1395
|
-
static readonly check: Codicon;
|
|
1396
|
-
static readonly checklist: Codicon;
|
|
1397
|
-
static readonly chevronDown: Codicon;
|
|
1398
|
-
static readonly dropDownButton: Codicon;
|
|
1399
|
-
static readonly chevronLeft: Codicon;
|
|
1400
|
-
static readonly chevronRight: Codicon;
|
|
1401
|
-
static readonly chevronUp: Codicon;
|
|
1402
|
-
static readonly chromeClose: Codicon;
|
|
1403
|
-
static readonly chromeMaximize: Codicon;
|
|
1404
|
-
static readonly chromeMinimize: Codicon;
|
|
1405
|
-
static readonly chromeRestore: Codicon;
|
|
1406
|
-
static readonly circleOutline: Codicon;
|
|
1407
|
-
static readonly debugBreakpointUnverified: Codicon;
|
|
1408
|
-
static readonly circleSlash: Codicon;
|
|
1409
|
-
static readonly circuitBoard: Codicon;
|
|
1410
|
-
static readonly clearAll: Codicon;
|
|
1411
|
-
static readonly clippy: Codicon;
|
|
1412
|
-
static readonly closeAll: Codicon;
|
|
1413
|
-
static readonly cloudDownload: Codicon;
|
|
1414
|
-
static readonly cloudUpload: Codicon;
|
|
1415
|
-
static readonly code: Codicon;
|
|
1416
|
-
static readonly collapseAll: Codicon;
|
|
1417
|
-
static readonly colorMode: Codicon;
|
|
1418
|
-
static readonly commentDiscussion: Codicon;
|
|
1419
|
-
static readonly compareChanges: Codicon;
|
|
1420
|
-
static readonly creditCard: Codicon;
|
|
1421
|
-
static readonly dash: Codicon;
|
|
1422
|
-
static readonly dashboard: Codicon;
|
|
1423
|
-
static readonly database: Codicon;
|
|
1424
|
-
static readonly debugContinue: Codicon;
|
|
1425
|
-
static readonly debugDisconnect: Codicon;
|
|
1426
|
-
static readonly debugPause: Codicon;
|
|
1427
|
-
static readonly debugRestart: Codicon;
|
|
1428
|
-
static readonly debugStart: Codicon;
|
|
1429
|
-
static readonly debugStepInto: Codicon;
|
|
1430
|
-
static readonly debugStepOut: Codicon;
|
|
1431
|
-
static readonly debugStepOver: Codicon;
|
|
1432
|
-
static readonly debugStop: Codicon;
|
|
1433
|
-
static readonly debug: Codicon;
|
|
1434
|
-
static readonly deviceCameraVideo: Codicon;
|
|
1435
|
-
static readonly deviceCamera: Codicon;
|
|
1436
|
-
static readonly deviceMobile: Codicon;
|
|
1437
|
-
static readonly diffAdded: Codicon;
|
|
1438
|
-
static readonly diffIgnored: Codicon;
|
|
1439
|
-
static readonly diffModified: Codicon;
|
|
1440
|
-
static readonly diffRemoved: Codicon;
|
|
1441
|
-
static readonly diffRenamed: Codicon;
|
|
1442
|
-
static readonly diff: Codicon;
|
|
1443
|
-
static readonly discard: Codicon;
|
|
1444
|
-
static readonly editorLayout: Codicon;
|
|
1445
|
-
static readonly emptyWindow: Codicon;
|
|
1446
|
-
static readonly exclude: Codicon;
|
|
1447
|
-
static readonly extensions: Codicon;
|
|
1448
|
-
static readonly eyeClosed: Codicon;
|
|
1449
|
-
static readonly fileBinary: Codicon;
|
|
1450
|
-
static readonly fileCode: Codicon;
|
|
1451
|
-
static readonly fileMedia: Codicon;
|
|
1452
|
-
static readonly filePdf: Codicon;
|
|
1453
|
-
static readonly fileSubmodule: Codicon;
|
|
1454
|
-
static readonly fileSymlinkDirectory: Codicon;
|
|
1455
|
-
static readonly fileSymlinkFile: Codicon;
|
|
1456
|
-
static readonly fileZip: Codicon;
|
|
1457
|
-
static readonly files: Codicon;
|
|
1458
|
-
static readonly filter: Codicon;
|
|
1459
|
-
static readonly flame: Codicon;
|
|
1460
|
-
static readonly foldDown: Codicon;
|
|
1461
|
-
static readonly foldUp: Codicon;
|
|
1462
|
-
static readonly fold: Codicon;
|
|
1463
|
-
static readonly folderActive: Codicon;
|
|
1464
|
-
static readonly folderOpened: Codicon;
|
|
1465
|
-
static readonly gear: Codicon;
|
|
1466
|
-
static readonly gift: Codicon;
|
|
1467
|
-
static readonly gistSecret: Codicon;
|
|
1468
|
-
static readonly gist: Codicon;
|
|
1469
|
-
static readonly gitCommit: Codicon;
|
|
1470
|
-
static readonly gitCompare: Codicon;
|
|
1471
|
-
static readonly gitMerge: Codicon;
|
|
1472
|
-
static readonly githubAction: Codicon;
|
|
1473
|
-
static readonly githubAlt: Codicon;
|
|
1474
|
-
static readonly globe: Codicon;
|
|
1475
|
-
static readonly grabber: Codicon;
|
|
1476
|
-
static readonly graph: Codicon;
|
|
1477
|
-
static readonly gripper: Codicon;
|
|
1478
|
-
static readonly heart: Codicon;
|
|
1479
|
-
static readonly home: Codicon;
|
|
1480
|
-
static readonly horizontalRule: Codicon;
|
|
1481
|
-
static readonly hubot: Codicon;
|
|
1482
|
-
static readonly inbox: Codicon;
|
|
1483
|
-
static readonly issueClosed: Codicon;
|
|
1484
|
-
static readonly issueReopened: Codicon;
|
|
1485
|
-
static readonly issues: Codicon;
|
|
1486
|
-
static readonly italic: Codicon;
|
|
1487
|
-
static readonly jersey: Codicon;
|
|
1488
|
-
static readonly json: Codicon;
|
|
1489
|
-
static readonly kebabVertical: Codicon;
|
|
1490
|
-
static readonly key: Codicon;
|
|
1491
|
-
static readonly law: Codicon;
|
|
1492
|
-
static readonly lightbulbAutofix: Codicon;
|
|
1493
|
-
static readonly linkExternal: Codicon;
|
|
1494
|
-
static readonly link: Codicon;
|
|
1495
|
-
static readonly listOrdered: Codicon;
|
|
1496
|
-
static readonly listUnordered: Codicon;
|
|
1497
|
-
static readonly liveShare: Codicon;
|
|
1498
|
-
static readonly loading: Codicon;
|
|
1499
|
-
static readonly location: Codicon;
|
|
1500
|
-
static readonly mailRead: Codicon;
|
|
1501
|
-
static readonly mail: Codicon;
|
|
1502
|
-
static readonly markdown: Codicon;
|
|
1503
|
-
static readonly megaphone: Codicon;
|
|
1504
|
-
static readonly mention: Codicon;
|
|
1505
|
-
static readonly milestone: Codicon;
|
|
1506
|
-
static readonly mortarBoard: Codicon;
|
|
1507
|
-
static readonly move: Codicon;
|
|
1508
|
-
static readonly multipleWindows: Codicon;
|
|
1509
|
-
static readonly mute: Codicon;
|
|
1510
|
-
static readonly noNewline: Codicon;
|
|
1511
|
-
static readonly note: Codicon;
|
|
1512
|
-
static readonly octoface: Codicon;
|
|
1513
|
-
static readonly openPreview: Codicon;
|
|
1514
|
-
static readonly package_: Codicon;
|
|
1515
|
-
static readonly paintcan: Codicon;
|
|
1516
|
-
static readonly pin: Codicon;
|
|
1517
|
-
static readonly play: Codicon;
|
|
1518
|
-
static readonly run: Codicon;
|
|
1519
|
-
static readonly plug: Codicon;
|
|
1520
|
-
static readonly preserveCase: Codicon;
|
|
1521
|
-
static readonly preview: Codicon;
|
|
1522
|
-
static readonly project: Codicon;
|
|
1523
|
-
static readonly pulse: Codicon;
|
|
1524
|
-
static readonly question: Codicon;
|
|
1525
|
-
static readonly quote: Codicon;
|
|
1526
|
-
static readonly radioTower: Codicon;
|
|
1527
|
-
static readonly reactions: Codicon;
|
|
1528
|
-
static readonly references: Codicon;
|
|
1529
|
-
static readonly refresh: Codicon;
|
|
1530
|
-
static readonly regex: Codicon;
|
|
1531
|
-
static readonly remoteExplorer: Codicon;
|
|
1532
|
-
static readonly remote: Codicon;
|
|
1533
|
-
static readonly remove: Codicon;
|
|
1534
|
-
static readonly replaceAll: Codicon;
|
|
1535
|
-
static readonly replace: Codicon;
|
|
1536
|
-
static readonly repoClone: Codicon;
|
|
1537
|
-
static readonly repoForcePush: Codicon;
|
|
1538
|
-
static readonly repoPull: Codicon;
|
|
1539
|
-
static readonly repoPush: Codicon;
|
|
1540
|
-
static readonly report: Codicon;
|
|
1541
|
-
static readonly requestChanges: Codicon;
|
|
1542
|
-
static readonly rocket: Codicon;
|
|
1543
|
-
static readonly rootFolderOpened: Codicon;
|
|
1544
|
-
static readonly rootFolder: Codicon;
|
|
1545
|
-
static readonly rss: Codicon;
|
|
1546
|
-
static readonly ruby: Codicon;
|
|
1547
|
-
static readonly saveAll: Codicon;
|
|
1548
|
-
static readonly saveAs: Codicon;
|
|
1549
|
-
static readonly save: Codicon;
|
|
1550
|
-
static readonly screenFull: Codicon;
|
|
1551
|
-
static readonly screenNormal: Codicon;
|
|
1552
|
-
static readonly searchStop: Codicon;
|
|
1553
|
-
static readonly server: Codicon;
|
|
1554
|
-
static readonly settingsGear: Codicon;
|
|
1555
|
-
static readonly settings: Codicon;
|
|
1556
|
-
static readonly shield: Codicon;
|
|
1557
|
-
static readonly smiley: Codicon;
|
|
1558
|
-
static readonly sortPrecedence: Codicon;
|
|
1559
|
-
static readonly splitHorizontal: Codicon;
|
|
1560
|
-
static readonly splitVertical: Codicon;
|
|
1561
|
-
static readonly squirrel: Codicon;
|
|
1562
|
-
static readonly starFull: Codicon;
|
|
1563
|
-
static readonly starHalf: Codicon;
|
|
1564
|
-
static readonly symbolClass: Codicon;
|
|
1565
|
-
static readonly symbolColor: Codicon;
|
|
1566
|
-
static readonly symbolCustomColor: Codicon;
|
|
1567
|
-
static readonly symbolConstant: Codicon;
|
|
1568
|
-
static readonly symbolEnumMember: Codicon;
|
|
1569
|
-
static readonly symbolField: Codicon;
|
|
1570
|
-
static readonly symbolFile: Codicon;
|
|
1571
|
-
static readonly symbolInterface: Codicon;
|
|
1572
|
-
static readonly symbolKeyword: Codicon;
|
|
1573
|
-
static readonly symbolMisc: Codicon;
|
|
1574
|
-
static readonly symbolOperator: Codicon;
|
|
1575
|
-
static readonly symbolProperty: Codicon;
|
|
1576
|
-
static readonly wrench: Codicon;
|
|
1577
|
-
static readonly wrenchSubaction: Codicon;
|
|
1578
|
-
static readonly symbolSnippet: Codicon;
|
|
1579
|
-
static readonly tasklist: Codicon;
|
|
1580
|
-
static readonly telescope: Codicon;
|
|
1581
|
-
static readonly textSize: Codicon;
|
|
1582
|
-
static readonly threeBars: Codicon;
|
|
1583
|
-
static readonly thumbsdown: Codicon;
|
|
1584
|
-
static readonly thumbsup: Codicon;
|
|
1585
|
-
static readonly tools: Codicon;
|
|
1586
|
-
static readonly triangleDown: Codicon;
|
|
1587
|
-
static readonly triangleLeft: Codicon;
|
|
1588
|
-
static readonly triangleRight: Codicon;
|
|
1589
|
-
static readonly triangleUp: Codicon;
|
|
1590
|
-
static readonly twitter: Codicon;
|
|
1591
|
-
static readonly unfold: Codicon;
|
|
1592
|
-
static readonly unlock: Codicon;
|
|
1593
|
-
static readonly unmute: Codicon;
|
|
1594
|
-
static readonly unverified: Codicon;
|
|
1595
|
-
static readonly verified: Codicon;
|
|
1596
|
-
static readonly versions: Codicon;
|
|
1597
|
-
static readonly vmActive: Codicon;
|
|
1598
|
-
static readonly vmOutline: Codicon;
|
|
1599
|
-
static readonly vmRunning: Codicon;
|
|
1600
|
-
static readonly watch: Codicon;
|
|
1601
|
-
static readonly whitespace: Codicon;
|
|
1602
|
-
static readonly wholeWord: Codicon;
|
|
1603
|
-
static readonly window: Codicon;
|
|
1604
|
-
static readonly wordWrap: Codicon;
|
|
1605
|
-
static readonly zoomIn: Codicon;
|
|
1606
|
-
static readonly zoomOut: Codicon;
|
|
1607
|
-
static readonly listFilter: Codicon;
|
|
1608
|
-
static readonly listFlat: Codicon;
|
|
1609
|
-
static readonly listSelection: Codicon;
|
|
1610
|
-
static readonly selection: Codicon;
|
|
1611
|
-
static readonly listTree: Codicon;
|
|
1612
|
-
static readonly debugBreakpointFunctionUnverified: Codicon;
|
|
1613
|
-
static readonly debugBreakpointFunction: Codicon;
|
|
1614
|
-
static readonly debugBreakpointFunctionDisabled: Codicon;
|
|
1615
|
-
static readonly debugStackframeActive: Codicon;
|
|
1616
|
-
static readonly circleSmallFilled: Codicon;
|
|
1617
|
-
static readonly debugStackframeDot: Codicon;
|
|
1618
|
-
static readonly debugStackframe: Codicon;
|
|
1619
|
-
static readonly debugStackframeFocused: Codicon;
|
|
1620
|
-
static readonly debugBreakpointUnsupported: Codicon;
|
|
1621
|
-
static readonly symbolString: Codicon;
|
|
1622
|
-
static readonly debugReverseContinue: Codicon;
|
|
1623
|
-
static readonly debugStepBack: Codicon;
|
|
1624
|
-
static readonly debugRestartFrame: Codicon;
|
|
1625
|
-
static readonly callIncoming: Codicon;
|
|
1626
|
-
static readonly callOutgoing: Codicon;
|
|
1627
|
-
static readonly menu: Codicon;
|
|
1628
|
-
static readonly expandAll: Codicon;
|
|
1629
|
-
static readonly feedback: Codicon;
|
|
1630
|
-
static readonly groupByRefType: Codicon;
|
|
1631
|
-
static readonly ungroupByRefType: Codicon;
|
|
1632
|
-
static readonly account: Codicon;
|
|
1633
|
-
static readonly bellDot: Codicon;
|
|
1634
|
-
static readonly debugConsole: Codicon;
|
|
1635
|
-
static readonly library: Codicon;
|
|
1636
|
-
static readonly output: Codicon;
|
|
1637
|
-
static readonly runAll: Codicon;
|
|
1638
|
-
static readonly syncIgnored: Codicon;
|
|
1639
|
-
static readonly pinned: Codicon;
|
|
1640
|
-
static readonly githubInverted: Codicon;
|
|
1641
|
-
static readonly debugAlt: Codicon;
|
|
1642
|
-
static readonly serverProcess: Codicon;
|
|
1643
|
-
static readonly serverEnvironment: Codicon;
|
|
1644
|
-
static readonly pass: Codicon;
|
|
1645
|
-
static readonly stopCircle: Codicon;
|
|
1646
|
-
static readonly playCircle: Codicon;
|
|
1647
|
-
static readonly record: Codicon;
|
|
1648
|
-
static readonly debugAltSmall: Codicon;
|
|
1649
|
-
static readonly vmConnect: Codicon;
|
|
1650
|
-
static readonly cloud: Codicon;
|
|
1651
|
-
static readonly merge: Codicon;
|
|
1652
|
-
static readonly exportIcon: Codicon;
|
|
1653
|
-
static readonly graphLeft: Codicon;
|
|
1654
|
-
static readonly magnet: Codicon;
|
|
1655
|
-
static readonly notebook: Codicon;
|
|
1656
|
-
static readonly redo: Codicon;
|
|
1657
|
-
static readonly checkAll: Codicon;
|
|
1658
|
-
static readonly pinnedDirty: Codicon;
|
|
1659
|
-
static readonly passFilled: Codicon;
|
|
1660
|
-
static readonly circleLargeFilled: Codicon;
|
|
1661
|
-
static readonly circleLargeOutline: Codicon;
|
|
1662
|
-
static readonly combine: Codicon;
|
|
1663
|
-
static readonly gather: Codicon;
|
|
1664
|
-
static readonly table: Codicon;
|
|
1665
|
-
static readonly variableGroup: Codicon;
|
|
1666
|
-
static readonly typeHierarchy: Codicon;
|
|
1667
|
-
static readonly typeHierarchySub: Codicon;
|
|
1668
|
-
static readonly typeHierarchySuper: Codicon;
|
|
1669
|
-
static readonly gitPullRequestCreate: Codicon;
|
|
1670
|
-
static readonly runAbove: Codicon;
|
|
1671
|
-
static readonly runBelow: Codicon;
|
|
1672
|
-
static readonly notebookTemplate: Codicon;
|
|
1673
|
-
static readonly debugRerun: Codicon;
|
|
1674
|
-
static readonly workspaceTrusted: Codicon;
|
|
1675
|
-
static readonly workspaceUntrusted: Codicon;
|
|
1676
|
-
static readonly workspaceUnspecified: Codicon;
|
|
1677
|
-
static readonly terminalCmd: Codicon;
|
|
1678
|
-
static readonly terminalDebian: Codicon;
|
|
1679
|
-
static readonly terminalLinux: Codicon;
|
|
1680
|
-
static readonly terminalPowershell: Codicon;
|
|
1681
|
-
static readonly terminalTmux: Codicon;
|
|
1682
|
-
static readonly terminalUbuntu: Codicon;
|
|
1683
|
-
static readonly terminalBash: Codicon;
|
|
1684
|
-
static readonly arrowSwap: Codicon;
|
|
1685
|
-
static readonly copy: Codicon;
|
|
1686
|
-
static readonly personAdd: Codicon;
|
|
1687
|
-
static readonly filterFilled: Codicon;
|
|
1688
|
-
static readonly wand: Codicon;
|
|
1689
|
-
static readonly debugLineByLine: Codicon;
|
|
1690
|
-
static readonly inspect: Codicon;
|
|
1691
|
-
static readonly layers: Codicon;
|
|
1692
|
-
static readonly layersDot: Codicon;
|
|
1693
|
-
static readonly layersActive: Codicon;
|
|
1694
|
-
static readonly compass: Codicon;
|
|
1695
|
-
static readonly compassDot: Codicon;
|
|
1696
|
-
static readonly compassActive: Codicon;
|
|
1697
|
-
static readonly azure: Codicon;
|
|
1698
|
-
static readonly issueDraft: Codicon;
|
|
1699
|
-
static readonly gitPullRequestClosed: Codicon;
|
|
1700
|
-
static readonly gitPullRequestDraft: Codicon;
|
|
1701
|
-
static readonly debugAll: Codicon;
|
|
1702
|
-
static readonly debugCoverage: Codicon;
|
|
1703
|
-
static readonly runErrors: Codicon;
|
|
1704
|
-
static readonly folderLibrary: Codicon;
|
|
1705
|
-
static readonly debugContinueSmall: Codicon;
|
|
1706
|
-
static readonly beakerStop: Codicon;
|
|
1707
|
-
static readonly graphLine: Codicon;
|
|
1708
|
-
static readonly graphScatter: Codicon;
|
|
1709
|
-
static readonly pieChart: Codicon;
|
|
1710
|
-
static readonly bracket: Codicon;
|
|
1711
|
-
static readonly bracketDot: Codicon;
|
|
1712
|
-
static readonly bracketError: Codicon;
|
|
1713
|
-
static readonly lockSmall: Codicon;
|
|
1714
|
-
static readonly azureDevops: Codicon;
|
|
1715
|
-
static readonly verifiedFilled: Codicon;
|
|
1716
|
-
static readonly newLine: Codicon;
|
|
1717
|
-
static readonly layout: Codicon;
|
|
1718
|
-
static readonly layoutActivitybarLeft: Codicon;
|
|
1719
|
-
static readonly layoutActivitybarRight: Codicon;
|
|
1720
|
-
static readonly layoutPanelLeft: Codicon;
|
|
1721
|
-
static readonly layoutPanelCenter: Codicon;
|
|
1722
|
-
static readonly layoutPanelJustify: Codicon;
|
|
1723
|
-
static readonly layoutPanelRight: Codicon;
|
|
1724
|
-
static readonly layoutPanel: Codicon;
|
|
1725
|
-
static readonly layoutSidebarLeft: Codicon;
|
|
1726
|
-
static readonly layoutSidebarRight: Codicon;
|
|
1727
|
-
static readonly layoutStatusbar: Codicon;
|
|
1728
|
-
static readonly layoutMenubar: Codicon;
|
|
1729
|
-
static readonly layoutCentered: Codicon;
|
|
1730
|
-
static readonly layoutSidebarRightOff: Codicon;
|
|
1731
|
-
static readonly layoutPanelOff: Codicon;
|
|
1732
|
-
static readonly layoutSidebarLeftOff: Codicon;
|
|
1733
|
-
static readonly target: Codicon;
|
|
1734
|
-
static readonly indent: Codicon;
|
|
1735
|
-
static readonly recordSmall: Codicon;
|
|
1736
|
-
static readonly errorSmall: Codicon;
|
|
1737
|
-
static readonly arrowCircleDown: Codicon;
|
|
1738
|
-
static readonly arrowCircleLeft: Codicon;
|
|
1739
|
-
static readonly arrowCircleRight: Codicon;
|
|
1740
|
-
static readonly arrowCircleUp: Codicon;
|
|
1741
|
-
static readonly heartFilled: Codicon;
|
|
1742
|
-
static readonly map: Codicon;
|
|
1743
|
-
static readonly mapFilled: Codicon;
|
|
1744
|
-
static readonly circleSmall: Codicon;
|
|
1745
|
-
static readonly bellSlash: Codicon;
|
|
1746
|
-
static readonly bellSlashDot: Codicon;
|
|
1747
|
-
static readonly commentUnresolved: Codicon;
|
|
1748
|
-
static readonly gitPullRequestGoToChanges: Codicon;
|
|
1749
|
-
static readonly gitPullRequestNewChanges: Codicon;
|
|
1750
|
-
static readonly dialogError: Codicon;
|
|
1751
|
-
static readonly dialogWarning: Codicon;
|
|
1752
|
-
static readonly dialogInfo: Codicon;
|
|
1753
|
-
static readonly dialogClose: Codicon;
|
|
1754
|
-
static readonly treeItemExpanded: Codicon;
|
|
1755
|
-
static readonly treeFilterOnTypeOn: Codicon;
|
|
1756
|
-
static readonly treeFilterOnTypeOff: Codicon;
|
|
1757
|
-
static readonly treeFilterClear: Codicon;
|
|
1758
|
-
static readonly treeItemLoading: Codicon;
|
|
1759
|
-
static readonly menuSelection: Codicon;
|
|
1760
|
-
static readonly menuSubmenu: Codicon;
|
|
1761
|
-
static readonly menuBarMore: Codicon;
|
|
1762
|
-
static readonly scrollbarButtonLeft: Codicon;
|
|
1763
|
-
static readonly scrollbarButtonRight: Codicon;
|
|
1764
|
-
static readonly scrollbarButtonUp: Codicon;
|
|
1765
|
-
static readonly scrollbarButtonDown: Codicon;
|
|
1766
|
-
static readonly toolBarMore: Codicon;
|
|
1767
|
-
static readonly quickInputBack: Codicon;
|
|
1768
|
-
}
|
|
1769
|
-
interface CSSIcon {
|
|
1317
|
+
interface ThemeIcon {
|
|
1770
1318
|
readonly id: string;
|
|
1319
|
+
readonly color?: ThemeColor;
|
|
1771
1320
|
}
|
|
1772
|
-
declare namespace
|
|
1321
|
+
declare namespace ThemeIcon {
|
|
1773
1322
|
const iconNameSegment = "[A-Za-z0-9]+";
|
|
1774
1323
|
const iconNameExpression = "[A-Za-z0-9-]+";
|
|
1775
1324
|
const iconModifierExpression = "~[A-Za-z]+";
|
|
1776
1325
|
const iconNameCharacter = "[A-Za-z0-9~-]";
|
|
1777
|
-
function asClassNameArray(icon:
|
|
1778
|
-
function asClassName(icon:
|
|
1779
|
-
function asCSSSelector(icon:
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1326
|
+
function asClassNameArray(icon: ThemeIcon): string[];
|
|
1327
|
+
function asClassName(icon: ThemeIcon): string;
|
|
1328
|
+
function asCSSSelector(icon: ThemeIcon): string;
|
|
1329
|
+
function isThemeIcon(obj: any): obj is ThemeIcon;
|
|
1330
|
+
function fromString(str: string): ThemeIcon | undefined;
|
|
1331
|
+
function fromId(id: string): ThemeIcon;
|
|
1332
|
+
function modify(icon: ThemeIcon, modifier: 'disabled' | 'spin' | undefined): ThemeIcon;
|
|
1333
|
+
function getModifier(icon: ThemeIcon): string | undefined;
|
|
1334
|
+
function isEqual(ti1: ThemeIcon, ti2: ThemeIcon): boolean;
|
|
1783
1335
|
}
|
|
1784
1336
|
|
|
1785
1337
|
declare class RGBA {
|
|
@@ -1864,6 +1416,7 @@ declare class HSVA {
|
|
|
1864
1416
|
}
|
|
1865
1417
|
declare class Color {
|
|
1866
1418
|
static fromHex(hex: string): Color;
|
|
1419
|
+
static equals(a: Color | null, b: Color | null): boolean;
|
|
1867
1420
|
readonly rgba: RGBA;
|
|
1868
1421
|
private _hsla?;
|
|
1869
1422
|
get hsla(): HSLA;
|
|
@@ -1953,6 +1506,7 @@ interface IDataTransferFile {
|
|
|
1953
1506
|
data(): Promise<Uint8Array>;
|
|
1954
1507
|
}
|
|
1955
1508
|
interface IDataTransferItem {
|
|
1509
|
+
readonly id: string;
|
|
1956
1510
|
asString(): Thenable<string>;
|
|
1957
1511
|
asFile(): IDataTransferFile | undefined;
|
|
1958
1512
|
value: any;
|
|
@@ -2089,6 +1643,7 @@ interface IMarkerData {
|
|
|
2089
1643
|
startColumn: number;
|
|
2090
1644
|
endLineNumber: number;
|
|
2091
1645
|
endColumn: number;
|
|
1646
|
+
modelVersionId?: number;
|
|
2092
1647
|
relatedInformation?: IRelatedInformation[];
|
|
2093
1648
|
tags?: MarkerTag[];
|
|
2094
1649
|
}
|
|
@@ -2097,77 +1652,6 @@ declare namespace IMarkerData {
|
|
|
2097
1652
|
function makeKeyOptionalMessage(markerData: IMarkerData, useMessage: boolean): string;
|
|
2098
1653
|
}
|
|
2099
1654
|
|
|
2100
|
-
declare type ColorIdentifier = string;
|
|
2101
|
-
declare const enum ColorTransformType {
|
|
2102
|
-
Darken = 0,
|
|
2103
|
-
Lighten = 1,
|
|
2104
|
-
Transparent = 2,
|
|
2105
|
-
OneOf = 3,
|
|
2106
|
-
LessProminent = 4,
|
|
2107
|
-
IfDefinedThenElse = 5
|
|
2108
|
-
}
|
|
2109
|
-
declare type ColorTransform = {
|
|
2110
|
-
op: ColorTransformType.Darken;
|
|
2111
|
-
value: ColorValue;
|
|
2112
|
-
factor: number;
|
|
2113
|
-
} | {
|
|
2114
|
-
op: ColorTransformType.Lighten;
|
|
2115
|
-
value: ColorValue;
|
|
2116
|
-
factor: number;
|
|
2117
|
-
} | {
|
|
2118
|
-
op: ColorTransformType.Transparent;
|
|
2119
|
-
value: ColorValue;
|
|
2120
|
-
factor: number;
|
|
2121
|
-
} | {
|
|
2122
|
-
op: ColorTransformType.OneOf;
|
|
2123
|
-
values: readonly ColorValue[];
|
|
2124
|
-
} | {
|
|
2125
|
-
op: ColorTransformType.LessProminent;
|
|
2126
|
-
value: ColorValue;
|
|
2127
|
-
background: ColorValue;
|
|
2128
|
-
factor: number;
|
|
2129
|
-
transparency: number;
|
|
2130
|
-
} | {
|
|
2131
|
-
op: ColorTransformType.IfDefinedThenElse;
|
|
2132
|
-
if: ColorIdentifier;
|
|
2133
|
-
then: ColorValue;
|
|
2134
|
-
else: ColorValue;
|
|
2135
|
-
};
|
|
2136
|
-
interface ColorDefaults {
|
|
2137
|
-
light: ColorValue | null;
|
|
2138
|
-
dark: ColorValue | null;
|
|
2139
|
-
hcDark: ColorValue | null;
|
|
2140
|
-
hcLight: ColorValue | null;
|
|
2141
|
-
}
|
|
2142
|
-
/**
|
|
2143
|
-
* A Color Value is either a color literal, a reference to an other color or a derived color
|
|
2144
|
-
*/
|
|
2145
|
-
declare type ColorValue = Color | string | ColorIdentifier | ColorTransform;
|
|
2146
|
-
declare function registerColor(id: string, defaults: ColorDefaults | null, description: string, needsTransparency?: boolean, deprecationMessage?: string): ColorIdentifier;
|
|
2147
|
-
|
|
2148
|
-
interface ThemeColor {
|
|
2149
|
-
id: string;
|
|
2150
|
-
}
|
|
2151
|
-
declare namespace ThemeColor {
|
|
2152
|
-
function isThemeColor(obj: any): obj is ThemeColor;
|
|
2153
|
-
}
|
|
2154
|
-
interface ThemeIcon {
|
|
2155
|
-
readonly id: string;
|
|
2156
|
-
readonly color?: ThemeColor;
|
|
2157
|
-
}
|
|
2158
|
-
declare namespace ThemeIcon {
|
|
2159
|
-
function isThemeIcon(obj: any): obj is ThemeIcon;
|
|
2160
|
-
function fromString(str: string): ThemeIcon | undefined;
|
|
2161
|
-
function fromId(id: string): ThemeIcon;
|
|
2162
|
-
function modify(icon: ThemeIcon, modifier: 'disabled' | 'spin' | undefined): ThemeIcon;
|
|
2163
|
-
function getModifier(icon: ThemeIcon): string | undefined;
|
|
2164
|
-
function isEqual(ti1: ThemeIcon, ti2: ThemeIcon): boolean;
|
|
2165
|
-
function asThemeIcon(codicon: Codicon, color?: string): ThemeIcon;
|
|
2166
|
-
const asClassNameArray: (icon: ThemeIcon) => string[];
|
|
2167
|
-
const asClassName: (icon: ThemeIcon) => string;
|
|
2168
|
-
const asCSSSelector: (icon: ThemeIcon) => string;
|
|
2169
|
-
}
|
|
2170
|
-
|
|
2171
1655
|
/**
|
|
2172
1656
|
* @internal
|
|
2173
1657
|
*/
|
|
@@ -2181,7 +1665,7 @@ interface ILanguageIdCodec {
|
|
|
2181
1665
|
* to that type `T`. In addition, `null` and `undefined` can be returned - either directly or from a
|
|
2182
1666
|
* thenable.
|
|
2183
1667
|
*/
|
|
2184
|
-
|
|
1668
|
+
type ProviderResult<T> = T | undefined | null | Thenable<T | undefined | null>;
|
|
2185
1669
|
/**
|
|
2186
1670
|
* A hover represents additional information for a symbol or word. Hovers are
|
|
2187
1671
|
* rendered in a tooltip-like widget.
|
|
@@ -2282,7 +1766,7 @@ interface InlineValueExpression {
|
|
|
2282
1766
|
* The InlineValue types combines all inline value types into one type.
|
|
2283
1767
|
* @internal
|
|
2284
1768
|
*/
|
|
2285
|
-
|
|
1769
|
+
type InlineValue = InlineValueText | InlineValueVariableLookup | InlineValueExpression;
|
|
2286
1770
|
/**
|
|
2287
1771
|
* The inline values provider interface defines the contract between extensions and
|
|
2288
1772
|
* the debugger's inline values feature.
|
|
@@ -2338,6 +1822,7 @@ declare const enum CompletionItemTag {
|
|
|
2338
1822
|
Deprecated = 1
|
|
2339
1823
|
}
|
|
2340
1824
|
declare const enum CompletionItemInsertTextRule {
|
|
1825
|
+
None = 0,
|
|
2341
1826
|
/**
|
|
2342
1827
|
* Adjust whitespace/indentation of multiline insert texts to
|
|
2343
1828
|
* match the current line indentation.
|
|
@@ -2583,6 +2068,10 @@ interface InlineCompletionsProvider<T extends InlineCompletions = InlineCompleti
|
|
|
2583
2068
|
* Will be called when an item is shown.
|
|
2584
2069
|
*/
|
|
2585
2070
|
handleItemDidShow?(completions: T, item: T['items'][number]): void;
|
|
2071
|
+
/**
|
|
2072
|
+
* Will be called when an item is partially accepted.
|
|
2073
|
+
*/
|
|
2074
|
+
handlePartialAccept?(completions: T, item: T['items'][number], acceptedCharacters: number): void;
|
|
2586
2075
|
/**
|
|
2587
2076
|
* Will be called when a completions list is no longer in use and can be garbage-collected.
|
|
2588
2077
|
*/
|
|
@@ -2865,7 +2354,7 @@ interface LocationLink {
|
|
|
2865
2354
|
*/
|
|
2866
2355
|
targetSelectionRange?: IRange;
|
|
2867
2356
|
}
|
|
2868
|
-
|
|
2357
|
+
type Definition = Location | Location[] | LocationLink[];
|
|
2869
2358
|
/**
|
|
2870
2359
|
* The definition provider interface defines the contract between extensions and
|
|
2871
2360
|
* the [go to definition](https://code.visualstudio.com/docs/editor/editingevolved#_go-to-definition)
|
|
@@ -3136,6 +2625,10 @@ interface FoldingContext {
|
|
|
3136
2625
|
* A provider of folding ranges for editor models.
|
|
3137
2626
|
*/
|
|
3138
2627
|
interface FoldingRangeProvider {
|
|
2628
|
+
/**
|
|
2629
|
+
* @internal
|
|
2630
|
+
*/
|
|
2631
|
+
readonly id?: string;
|
|
3139
2632
|
/**
|
|
3140
2633
|
* An optional event to signal that the folding ranges from this provider have changed.
|
|
3141
2634
|
*/
|
|
@@ -3177,6 +2670,12 @@ declare class FoldingRangeKind {
|
|
|
3177
2670
|
* The value of the kind is 'region'.
|
|
3178
2671
|
*/
|
|
3179
2672
|
static readonly Region: FoldingRangeKind;
|
|
2673
|
+
/**
|
|
2674
|
+
* Returns a {@link FoldingRangeKind} for the given value.
|
|
2675
|
+
*
|
|
2676
|
+
* @param value of the kind.
|
|
2677
|
+
*/
|
|
2678
|
+
static fromValue(value: string): FoldingRangeKind;
|
|
3180
2679
|
/**
|
|
3181
2680
|
* Creates a new {@link FoldingRangeKind}.
|
|
3182
2681
|
*
|
|
@@ -3205,6 +2704,7 @@ interface WorkspaceFileEditOptions {
|
|
|
3205
2704
|
folder?: boolean;
|
|
3206
2705
|
skipTrashBin?: boolean;
|
|
3207
2706
|
maxSize?: number;
|
|
2707
|
+
contentsBase64?: string;
|
|
3208
2708
|
}
|
|
3209
2709
|
interface IWorkspaceFileEdit {
|
|
3210
2710
|
oldResource?: URI;
|
|
@@ -3570,7 +3070,7 @@ interface IDocComment {
|
|
|
3570
3070
|
* A tuple of two characters, like a pair of
|
|
3571
3071
|
* opening and closing brackets.
|
|
3572
3072
|
*/
|
|
3573
|
-
|
|
3073
|
+
type CharacterPair = [string, string];
|
|
3574
3074
|
interface IAutoClosingPair {
|
|
3575
3075
|
open: string;
|
|
3576
3076
|
close: string;
|
|
@@ -3676,7 +3176,7 @@ declare class LanguageBracketsConfiguration {
|
|
|
3676
3176
|
getClosingBracketInfo(bracketText: string): ClosingBracketKind | undefined;
|
|
3677
3177
|
getBracketInfo(bracketText: string): BracketKind | undefined;
|
|
3678
3178
|
}
|
|
3679
|
-
|
|
3179
|
+
type BracketKind = OpeningBracketKind | ClosingBracketKind;
|
|
3680
3180
|
declare class BracketKindBase {
|
|
3681
3181
|
protected readonly config: LanguageBracketsConfiguration;
|
|
3682
3182
|
readonly bracketText: string;
|
|
@@ -3692,31 +3192,34 @@ declare class ClosingBracketKind extends BracketKindBase {
|
|
|
3692
3192
|
/**
|
|
3693
3193
|
* Non empty array of all opening brackets this bracket closes.
|
|
3694
3194
|
*/
|
|
3695
|
-
readonly
|
|
3195
|
+
readonly openingBrackets: ReadonlySet<OpeningBracketKind>;
|
|
3196
|
+
private readonly openingColorizedBrackets;
|
|
3696
3197
|
readonly isOpeningBracket = false;
|
|
3697
3198
|
constructor(config: LanguageBracketsConfiguration, bracketText: string,
|
|
3698
3199
|
/**
|
|
3699
3200
|
* Non empty array of all opening brackets this bracket closes.
|
|
3700
3201
|
*/
|
|
3701
|
-
|
|
3202
|
+
openingBrackets: ReadonlySet<OpeningBracketKind>, openingColorizedBrackets: ReadonlySet<OpeningBracketKind>);
|
|
3702
3203
|
/**
|
|
3703
3204
|
* Checks if this bracket closes the given other bracket.
|
|
3704
|
-
*
|
|
3705
|
-
* If other is a bracket with the same language id, they have to be from the same configuration.
|
|
3205
|
+
* If the bracket infos come from different configurations, this method will return false.
|
|
3706
3206
|
*/
|
|
3707
3207
|
closes(other: OpeningBracketKind): boolean;
|
|
3708
|
-
|
|
3208
|
+
closesColorized(other: OpeningBracketKind): boolean;
|
|
3209
|
+
getOpeningBrackets(): readonly OpeningBracketKind[];
|
|
3709
3210
|
}
|
|
3710
3211
|
|
|
3711
3212
|
declare class CharacterPairSupport {
|
|
3712
|
-
static readonly
|
|
3213
|
+
static readonly DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_QUOTES = ";:.,=}])> \n\t";
|
|
3214
|
+
static readonly DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_BRACKETS = "'\"`;:.,=}])> \n\t";
|
|
3713
3215
|
static readonly DEFAULT_AUTOCLOSE_BEFORE_WHITESPACE = " \n\t";
|
|
3714
3216
|
private readonly _autoClosingPairs;
|
|
3715
3217
|
private readonly _surroundingPairs;
|
|
3716
|
-
private readonly
|
|
3218
|
+
private readonly _autoCloseBeforeForQuotes;
|
|
3219
|
+
private readonly _autoCloseBeforeForBrackets;
|
|
3717
3220
|
constructor(config: LanguageConfiguration);
|
|
3718
3221
|
getAutoClosingPairs(): StandardAutoClosingPairConditional[];
|
|
3719
|
-
getAutoCloseBeforeSet(): string;
|
|
3222
|
+
getAutoCloseBeforeSet(forQuotes: boolean): string;
|
|
3720
3223
|
getSurroundingPairs(): IAutoClosingPair[];
|
|
3721
3224
|
}
|
|
3722
3225
|
|
|
@@ -3899,7 +3402,7 @@ declare class ResolvedLanguageConfiguration {
|
|
|
3899
3402
|
get electricCharacter(): BracketElectricCharacterSupport | null;
|
|
3900
3403
|
onEnter(autoIndent: EditorAutoIndentStrategy, previousLineText: string, beforeEnterText: string, afterEnterText: string): EnterAction | null;
|
|
3901
3404
|
getAutoClosingPairs(): AutoClosingPairs;
|
|
3902
|
-
getAutoCloseBeforeSet(): string;
|
|
3405
|
+
getAutoCloseBeforeSet(forQuotes: boolean): string;
|
|
3903
3406
|
getSurroundingPairs(): IAutoClosingPair[];
|
|
3904
3407
|
private static _handleComments;
|
|
3905
3408
|
}
|
|
@@ -3969,6 +3472,11 @@ interface IModelDecorationOptions {
|
|
|
3969
3472
|
*/
|
|
3970
3473
|
className?: string | null;
|
|
3971
3474
|
blockClassName?: string | null;
|
|
3475
|
+
/**
|
|
3476
|
+
* Indicates if this block should be rendered after the last line.
|
|
3477
|
+
* In this case, the range must be empty and set to the last line.
|
|
3478
|
+
*/
|
|
3479
|
+
blockIsAfterEnd?: boolean | null;
|
|
3972
3480
|
/**
|
|
3973
3481
|
* Message to be rendered when hovering over the glyph margin decoration.
|
|
3974
3482
|
*/
|
|
@@ -4171,6 +3679,17 @@ declare const enum TrackedRangeStickiness {
|
|
|
4171
3679
|
*/
|
|
4172
3680
|
type ITextModel = monaco.editor.ITextModel
|
|
4173
3681
|
|
|
3682
|
+
/**
|
|
3683
|
+
* Configuration options for auto indentation in the editor
|
|
3684
|
+
*/
|
|
3685
|
+
declare const enum EditorAutoIndentStrategy {
|
|
3686
|
+
None = 0,
|
|
3687
|
+
Keep = 1,
|
|
3688
|
+
Brackets = 2,
|
|
3689
|
+
Advanced = 3,
|
|
3690
|
+
Full = 4
|
|
3691
|
+
}
|
|
3692
|
+
|
|
4174
3693
|
/**
|
|
4175
3694
|
* An editor contribution that gets created every time a new editor gets created and gets disposed when the editor gets disposed.
|
|
4176
3695
|
*/
|
|
@@ -4189,12 +3708,65 @@ interface IEditorContribution {
|
|
|
4189
3708
|
restoreViewState?(state: any): void;
|
|
4190
3709
|
}
|
|
4191
3710
|
|
|
3711
|
+
type ColorIdentifier = string;
|
|
3712
|
+
declare const enum ColorTransformType {
|
|
3713
|
+
Darken = 0,
|
|
3714
|
+
Lighten = 1,
|
|
3715
|
+
Transparent = 2,
|
|
3716
|
+
Opaque = 3,
|
|
3717
|
+
OneOf = 4,
|
|
3718
|
+
LessProminent = 5,
|
|
3719
|
+
IfDefinedThenElse = 6
|
|
3720
|
+
}
|
|
3721
|
+
type ColorTransform = {
|
|
3722
|
+
op: ColorTransformType.Darken;
|
|
3723
|
+
value: ColorValue;
|
|
3724
|
+
factor: number;
|
|
3725
|
+
} | {
|
|
3726
|
+
op: ColorTransformType.Lighten;
|
|
3727
|
+
value: ColorValue;
|
|
3728
|
+
factor: number;
|
|
3729
|
+
} | {
|
|
3730
|
+
op: ColorTransformType.Transparent;
|
|
3731
|
+
value: ColorValue;
|
|
3732
|
+
factor: number;
|
|
3733
|
+
} | {
|
|
3734
|
+
op: ColorTransformType.Opaque;
|
|
3735
|
+
value: ColorValue;
|
|
3736
|
+
background: ColorValue;
|
|
3737
|
+
} | {
|
|
3738
|
+
op: ColorTransformType.OneOf;
|
|
3739
|
+
values: readonly ColorValue[];
|
|
3740
|
+
} | {
|
|
3741
|
+
op: ColorTransformType.LessProminent;
|
|
3742
|
+
value: ColorValue;
|
|
3743
|
+
background: ColorValue;
|
|
3744
|
+
factor: number;
|
|
3745
|
+
transparency: number;
|
|
3746
|
+
} | {
|
|
3747
|
+
op: ColorTransformType.IfDefinedThenElse;
|
|
3748
|
+
if: ColorIdentifier;
|
|
3749
|
+
then: ColorValue;
|
|
3750
|
+
else: ColorValue;
|
|
3751
|
+
};
|
|
3752
|
+
interface ColorDefaults {
|
|
3753
|
+
light: ColorValue | null;
|
|
3754
|
+
dark: ColorValue | null;
|
|
3755
|
+
hcDark: ColorValue | null;
|
|
3756
|
+
hcLight: ColorValue | null;
|
|
3757
|
+
}
|
|
3758
|
+
/**
|
|
3759
|
+
* A Color Value is either a color literal, a reference to an other color or a derived color
|
|
3760
|
+
*/
|
|
3761
|
+
type ColorValue = Color | string | ColorIdentifier | ColorTransform;
|
|
3762
|
+
declare function registerColor(id: string, defaults: ColorDefaults | null, description: string, needsTransparency?: boolean, deprecationMessage?: string): ColorIdentifier;
|
|
3763
|
+
|
|
4192
3764
|
/**
|
|
4193
3765
|
* A rich code editor.
|
|
4194
3766
|
*/
|
|
4195
3767
|
type ICodeEditor = monaco.editor.ICodeEditor
|
|
4196
3768
|
|
|
4197
|
-
interface IAction
|
|
3769
|
+
interface IAction {
|
|
4198
3770
|
readonly id: string;
|
|
4199
3771
|
label: string;
|
|
4200
3772
|
tooltip: string;
|
|
@@ -4204,9 +3776,9 @@ interface IAction extends IDisposable {
|
|
|
4204
3776
|
run(event?: unknown): unknown;
|
|
4205
3777
|
}
|
|
4206
3778
|
|
|
4207
|
-
|
|
3779
|
+
type TypeConstraint = string | Function;
|
|
4208
3780
|
|
|
4209
|
-
|
|
3781
|
+
type ICommandsMap = Map<string, ICommand>;
|
|
4210
3782
|
interface ICommandHandler {
|
|
4211
3783
|
(accessor: ServicesAccessor, ...args: any[]): void;
|
|
4212
3784
|
}
|
|
@@ -4237,7 +3809,7 @@ interface ICommandRegistry {
|
|
|
4237
3809
|
declare const CommandsRegistry: ICommandRegistry;
|
|
4238
3810
|
|
|
4239
3811
|
type Severity = Severity$1;
|
|
4240
|
-
|
|
3812
|
+
type NotificationMessage = string | Error;
|
|
4241
3813
|
interface INotificationProperties {
|
|
4242
3814
|
/**
|
|
4243
3815
|
* Sticky notifications are not automatically removed after a certain timeout. By
|
|
@@ -4565,7 +4137,7 @@ interface LanguageFilter {
|
|
|
4565
4137
|
readonly hasAccessToAllModels?: boolean;
|
|
4566
4138
|
readonly exclusive?: boolean;
|
|
4567
4139
|
}
|
|
4568
|
-
|
|
4140
|
+
type LanguageSelector = string | LanguageFilter | ReadonlyArray<string | LanguageFilter>;
|
|
4569
4141
|
|
|
4570
4142
|
interface NotebookInfo {
|
|
4571
4143
|
readonly uri: URI;
|
|
@@ -4733,7 +4305,6 @@ declare class FoldingRegions {
|
|
|
4733
4305
|
contains(index: number, line: number): boolean;
|
|
4734
4306
|
private findIndex;
|
|
4735
4307
|
findRange(line: number): number;
|
|
4736
|
-
private readonly sourceAbbr;
|
|
4737
4308
|
toString(): string;
|
|
4738
4309
|
toFoldRange(index: number): FoldRange;
|
|
4739
4310
|
static fromFoldRanges(ranges: FoldRange[]): FoldingRegions;
|
|
@@ -4780,7 +4351,7 @@ interface ILineMemento extends ILineRange {
|
|
|
4780
4351
|
isCollapsed?: boolean;
|
|
4781
4352
|
source?: FoldSource;
|
|
4782
4353
|
}
|
|
4783
|
-
|
|
4354
|
+
type CollapseMemento = ILineMemento[];
|
|
4784
4355
|
declare class FoldingModel {
|
|
4785
4356
|
private readonly _textModel;
|
|
4786
4357
|
private readonly _decorationProvider;
|
|
@@ -4811,8 +4382,8 @@ declare class FoldingModel {
|
|
|
4811
4382
|
getRegionAtLine(lineNumber: number): FoldingRegion | null;
|
|
4812
4383
|
getRegionsInside(region: FoldingRegion | null, filter?: RegionFilter | RegionFilterWithLevel): FoldingRegion[];
|
|
4813
4384
|
}
|
|
4814
|
-
|
|
4815
|
-
|
|
4385
|
+
type RegionFilter = (r: FoldingRegion) => boolean;
|
|
4386
|
+
type RegionFilterWithLevel = (r: FoldingRegion, level: number) => boolean;
|
|
4816
4387
|
/**
|
|
4817
4388
|
* Folds all regions for which the lines start with a given regex
|
|
4818
4389
|
* @param foldingModel the folding model
|
|
@@ -4825,12 +4396,20 @@ interface FoldingStateMemento {
|
|
|
4825
4396
|
provider?: string;
|
|
4826
4397
|
foldedImports?: boolean;
|
|
4827
4398
|
}
|
|
4399
|
+
interface FoldingLimitReporter {
|
|
4400
|
+
readonly limit: number;
|
|
4401
|
+
update(computed: number, limited: number | false): void;
|
|
4402
|
+
}
|
|
4403
|
+
type FoldingRangeProviderSelector = (provider: FoldingRangeProvider[], document: ITextModel) => FoldingRangeProvider[] | undefined;
|
|
4828
4404
|
declare class FoldingController extends Disposable implements IEditorContribution {
|
|
4829
4405
|
private readonly contextKeyService;
|
|
4830
4406
|
private readonly languageConfigurationService;
|
|
4831
4407
|
private readonly languageFeaturesService;
|
|
4832
4408
|
static readonly ID = "editor.contrib.folding";
|
|
4833
4409
|
static get(editor: ICodeEditor): FoldingController | null;
|
|
4410
|
+
private static _foldingRangeSelector;
|
|
4411
|
+
static getFoldingRangeProviders(languageFeaturesService: ILanguageFeaturesService, model: ITextModel): FoldingRangeProvider[];
|
|
4412
|
+
static setFoldingRangeProviderSelector(foldingRangeSelector: FoldingRangeProviderSelector): IDisposable;
|
|
4834
4413
|
private readonly editor;
|
|
4835
4414
|
private _isEnabled;
|
|
4836
4415
|
private _useFoldingProviders;
|
|
@@ -4838,9 +4417,6 @@ declare class FoldingController extends Disposable implements IEditorContributio
|
|
|
4838
4417
|
private _restoringViewState;
|
|
4839
4418
|
private _foldingImportsByDefault;
|
|
4840
4419
|
private _currentModelHasFoldedImports;
|
|
4841
|
-
private _maxFoldingRegions;
|
|
4842
|
-
private _notifyTooManyRegions;
|
|
4843
|
-
private _tooManyRegionsNotified;
|
|
4844
4420
|
private readonly foldingDecorationProvider;
|
|
4845
4421
|
private foldingModel;
|
|
4846
4422
|
private hiddenRangeModel;
|
|
@@ -4853,7 +4429,9 @@ declare class FoldingController extends Disposable implements IEditorContributio
|
|
|
4853
4429
|
private cursorChangedScheduler;
|
|
4854
4430
|
private readonly localToDispose;
|
|
4855
4431
|
private mouseDownInfo;
|
|
4432
|
+
readonly _foldingLimitReporter: RangesLimitReporter;
|
|
4856
4433
|
constructor(editor: ICodeEditor, contextKeyService: IContextKeyService, languageConfigurationService: ILanguageConfigurationService, notificationService: INotificationService, languageFeatureDebounceService: ILanguageFeatureDebounceService, languageFeaturesService: ILanguageFeaturesService);
|
|
4434
|
+
get limitReporter(): RangesLimitReporter;
|
|
4857
4435
|
/**
|
|
4858
4436
|
* Store view state.
|
|
4859
4437
|
*/
|
|
@@ -4875,6 +4453,18 @@ declare class FoldingController extends Disposable implements IEditorContributio
|
|
|
4875
4453
|
private onEditorMouseUp;
|
|
4876
4454
|
reveal(position: IPosition): void;
|
|
4877
4455
|
}
|
|
4456
|
+
declare class RangesLimitReporter implements FoldingLimitReporter {
|
|
4457
|
+
private readonly editor;
|
|
4458
|
+
constructor(editor: ICodeEditor);
|
|
4459
|
+
get limit(): number;
|
|
4460
|
+
private _onDidChange;
|
|
4461
|
+
readonly onDidChange: Event<void>;
|
|
4462
|
+
private _computed;
|
|
4463
|
+
private _limited;
|
|
4464
|
+
get computed(): number;
|
|
4465
|
+
get limited(): number | false;
|
|
4466
|
+
update(computed: number, limited: number | false): void;
|
|
4467
|
+
}
|
|
4878
4468
|
|
|
4879
4469
|
interface IRegistry {
|
|
4880
4470
|
/**
|