@codingame/monaco-vscode-api 1.79.11 → 1.79.13

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.
@@ -1,196 +1,44 @@
1
1
  /// <reference path="./debugProtocol.d.ts" />
2
2
 
3
- import { E as Event$1, a as IDisposable, C as CancellationToken, D as Disposable, b as Emitter } from './event.js';
4
- import { k as IMarkdownString, l as IEditorModel, A as ITextBufferFactory, q as ITextModel, B as ITextModelCreationOptions, d as IEditorOptions, v as IRange, u as IPosition, P as Position$1, C as IDocumentDiffProviderOptions, D as IDocumentDiff, F as IChange, b as ICodeEditor, G as IBoundarySashes, j as IComposite, n as ICompositeControl, O as Orientation, c as IDiffEditor, H as IDecorationRenderOptions, r as IModelDecorationOptions, f as ITextResourceEditorInput, e as IResourceEditorInput } from './editorBrowser.js';
5
- export { m as IDimension, K as ITextEditorOptions, J as ITextModelContentProvider, a as ITextModelService, M as MarkdownStringTrustedOptions } from './editorBrowser.js';
6
- import { S as ServiceIdentifier, c as IConstructorSignature, I as IInstantiationService, B as BrandedService, a as ServicesAccessor } from './instantiation.js';
7
- import { d as ILanguageIdCodec, S as SubmenuAction, e as IAction, f as ICommandService, g as ColorIdentifier, h as Color, i as LanguageSelector, j as Command, T as TextEdit, k as IInplaceReplaceSupportResult, W as WorkspaceEdit, l as WorkspaceEditMetadata, m as IActionRunner } from './languageFeatures.js';
8
- export { a as ILanguageConfigurationService, I as ILanguageFeaturesService, n as IMarkerService, v as INeverShowAgainOptions, w as INotification, x as INotificationActions, A as INotificationHandle, y as INotificationProgress, z as INotificationProgressProperties, t as INotificationProperties, b as INotificationService, B as IPromptChoice, D as IPromptChoiceWithMenu, E as IPromptOptions, G as IStatusMessageOptions, o as ITextFileService, p as IWorkingCopyFileService, u as NeverShowAgainScope, H as NoOpNotification, J as NoOpProgress, q as NotificationMessage, s as NotificationPriority, N as NotificationsFilter } from './languageFeatures.js';
3
+ import { E as Event, a as IDisposable, C as CancellationToken, D as Disposable, c as Emitter } from './event.js';
4
+ import { m as IMarkdownString, v as IEditorModel, B as ITextBufferFactory, j as ITextModel, G as ITextModelCreationOptions, k as IRange, d as IEditorOptions, l as IPosition, P as Position, H as IDocumentDiffProviderOptions, J as IDocumentDiff, K as IChange, b as ICodeEditor, y as IProgress, z as IProgressStep, c as IDiffEditor, L as IDecorationRenderOptions, o as IModelDecorationOptions, f as ITextResourceEditorInput, e as IResourceEditorInput, M as ProgressLocation } from './editorBrowser.js';
5
+ export { w as IDimension, O as ITextEditorOptions, N as ITextModelContentProvider, a as ITextModelService, Q as MarkdownStringTrustedOptions } from './editorBrowser.js';
6
+ import { S as ServiceIdentifier, a as ServicesAccessor } from './instantiation.js';
7
+ export { I as IInstantiationService, b as SyncDescriptor } from './instantiation.js';
8
+ import { a as ILanguageIdCodec, G as Command, J as TextEdit, K as IInplaceReplaceSupportResult, W as WorkspaceEdit, M as WorkspaceEditMetadata, N as IWorkspaceFileEdit, P as WorkspaceFileEditOptions, Q as AtLeastOne } from './colorRegistry.js';
9
+ export { A as IAction, B as ICommandService, U as IMarkerService, $ as INeverShowAgainOptions, a0 as INotification, a1 as INotificationActions, a4 as INotificationHandle, a2 as INotificationProgress, a3 as INotificationProgressProperties, Z as INotificationProperties, I as INotificationService, a5 as IPromptChoice, a6 as IPromptChoiceWithMenu, a7 as IPromptOptions, a8 as IStatusMessageOptions, _ as NeverShowAgainScope, a9 as NoOpNotification, aa as NoOpProgress, X as NotificationMessage, Y as NotificationPriority, V as NotificationsFilter } from './colorRegistry.js';
9
10
  import { S as Severity } from './severity.js';
10
- import { a as IContextKeyService, C as ContextKeyExpression } from './contextkey.js';
11
- import { c as FileType, V as VSBuffer, x as IFileService } from './files.js';
12
- import { a as UriComponents, U as URI } from './uri.js';
13
- import { b as IWorkspaceFolder, I as IAnyWorkspaceIdentifier, c as IWorkspaceContextService } from './workspace.js';
11
+ export { a as IContextKeyService } from './contextkey.js';
12
+ import { x as IBaseFileStat, V as VSBuffer, n as IRelativePattern, y as IFileService, z as IFileStat } from './files.js';
13
+ import { b as LanguageSelector } from './languageFeatures.js';
14
+ export { a as ILanguageConfigurationService, I as ILanguageFeaturesService } from './languageFeatures.js';
15
+ import { U as URI } from './uri.js';
16
+ import { w as IConfigurationService, R as ConfigurationTarget, T as ITelemetryEndpoint, U as IOpenEmptyWindowOptions, W as IWindowOpenable, X as IOpenWindowOptions, E as Dimension, Y as IEditableData } from './hover.js';
17
+ export { t as IActivityService, q as IBadge, _ as IColorTheme, Z as IConfigurationChangeEvent, y as IHoverService, a3 as ILayoutService, a1 as IOpenerService, u as IPaneCompositePartService, G as IStatusbarService, h as IStorageService, f as ITelemetryService, k as IThemeService, s as IViewDescriptorService, a2 as IViewsService, x as IWorkbenchEnvironmentService, $ as StorageScope, a0 as StorageTarget } from './hover.js';
14
18
  import { c as IStringDictionary, d as IExtensionInfo, C as ConfigurationScope, E as EditPresentationTypes } from './configurationRegistry.js';
15
19
  import { P as PlatformName, O as OperatingSystem } from './platform.js';
16
20
  import { I as ILogService } from './log.js';
17
21
  export { a as ILoggerService, L as LogLevel } from './log.js';
18
- import { R as ResolvedKeybinding, K as KeyCode, a as KeyCodeChord, b as IKeybindingService, c as ResolvedKeybindingItem } from './keybinding.js';
19
- import { d as IEditorPane, E as EditorInput, G as GroupIdentifier } from './editor.js';
20
- export { J as CloseDirection, U as DialogType, z as EditorGroupLayout, i as EditorInputWithOptions, b as EditorsOrder, t as GroupDirection, y as GroupLayoutArgument, v as GroupLocation, u as GroupOrientation, x as GroupsArrangement, F as GroupsOrder, Q as IActiveEditorChangeEvent, A as IAddGroupOptions, _ as IBaseDialogOptions, $ as ICheckbox, a0 as ICheckboxResult, D as ICloseAllEditorsOptions, n as ICloseEditorOptions, C as ICloseEditorsFilter, X as IConfirmDialogArgs, a3 as IConfirmation, a4 as IConfirmationResult, a2 as ICustomDialogMarkdown, a1 as ICustomDialogOptions, T as IDialogArgs, W as IDialogHandler, V as IDialogResult, r as IDialogService, I as IEditorCloseEvent, R as IEditorControl, k as IEditorGroup, s as IEditorGroupsService, K as IEditorPartOptions, L as IEditorPartOptionsChangeEvent, j as IEditorReplacement, H as IEditorSideGroup, N as IEditorWillMoveEvent, O as IEditorWillOpenEvent, l as IFindEditorOptions, w as IFindGroupScope, p as IGroupModelChangeEvent, a5 as IInput, Y as IInputDialogArgs, a7 as IInputElement, a6 as IInputResult, P as IMatchEditorOptions, B as IMergeGroupOptions, a8 as IPrompt, aa as IPromptBaseButton, ab as IPromptButton, ac as IPromptCancelButton, Z as IPromptDialogArgs, a9 as IPromptResult, ad as IPromptResultWithCancel, ae as IPromptWithCustomCancel, af as IPromptWithDefaultCancel, e as IUntypedEditorInput, a as IVisibleEditorPane, M as MergeGroupMode } from './editor.js';
21
- import { I as IView$3, a as IViewDescriptorService, b as IViewPaneContainer, c as ViewContainer, d as IViewContainerModel, e as IViewDescriptor, f as IAddedViewDescriptorRef, g as IPaneComposite, V as ViewContainerLocation } from './views.js';
22
- export { h as IViewsService } from './views.js';
23
- import { I as IEditorService } from './editorService.js';
24
- import { I as IconIdentifier, T as ThemeIcon } from './themables.js';
25
- import { I as IJSONSchema, a as IJSONSchemaMap } from './jsonSchema.js';
26
- import { e as ICommandAction, f as ICommandActionTitle, g as Icon, h as IEnvironmentService, E as ExtensionIdentifier, T as TargetPlatform, a as IExtensionDescription } from './extensions.d2.ts';
27
- import { a as IProgress, b as IProgressStep, I as IProgressIndicator } from './progress.js';
28
- import { a as IExtensionService } from './extensionsRegistry.js';
22
+ import { b as IWorkspaceFolder } from './workspace.js';
23
+ export { c as IWorkspaceContextService } from './workspace.js';
24
+ import { R as ResolvedKeybinding, b as ResolvedKeybindingItem } from './keybinding.js';
25
+ import { d as IEditorPane, E as EditorInput, G as GroupIdentifier, e as IUntypedEditorInput, r as EditorInputWithOptionsAndGroup, k as IEditorGroup, f as IUntitledTextResourceEditorInput, g as IResourceDiffEditorInput, s as IResourceMergeEditorInput, i as EditorInputWithOptions, t as IUntypedFileEditorInput, u as IFileEditorInput } from './editor.js';
26
+ export { O as CloseDirection, Z as DialogType, D as EditorGroupLayout, b as EditorsOrder, x as GroupDirection, C as GroupLayoutArgument, z as GroupLocation, y as GroupOrientation, B as GroupsArrangement, L as GroupsOrder, U as IActiveEditorChangeEvent, F as IAddGroupOptions, a3 as IBaseDialogOptions, a4 as ICheckbox, a5 as ICheckboxResult, K as ICloseAllEditorsOptions, n as ICloseEditorOptions, J as ICloseEditorsFilter, a0 as IConfirmDialogArgs, a8 as IConfirmation, a9 as IConfirmationResult, a7 as ICustomDialogMarkdown, a6 as ICustomDialogOptions, Y as IDialogArgs, $ as IDialogHandler, _ as IDialogResult, v as IDialogService, I as IEditorCloseEvent, V as IEditorControl, w as IEditorGroupsService, P as IEditorPartOptions, Q as IEditorPartOptionsChangeEvent, j as IEditorReplacement, N as IEditorSideGroup, R as IEditorWillMoveEvent, S as IEditorWillOpenEvent, l as IFindEditorOptions, A as IFindGroupScope, p as IGroupModelChangeEvent, aa as IInput, a1 as IInputDialogArgs, ac as IInputElement, ab as IInputResult, T as IMatchEditorOptions, H as IMergeGroupOptions, ad as IPrompt, af as IPromptBaseButton, ag as IPromptButton, ah as IPromptCancelButton, a2 as IPromptDialogArgs, ae as IPromptResult, ai as IPromptResultWithCancel, aj as IPromptWithCustomCancel, ak as IPromptWithDefaultCancel, W as ITextFileService, a as IVisibleEditorPane, X as IWorkingCopyFileService, M as MergeGroupMode } from './editor.js';
27
+ import { I as IEditorService, P as PreferredGroup } from './editorService.js';
29
28
  import { I as IEditorOverrideServices } from './standaloneServices.js';
30
29
  export { S as StandaloneServices } from './standaloneServices.js';
30
+ import { T as ThemeIcon } from './themables.js';
31
+ import { T as TargetPlatform, E as ExtensionIdentifier, a as IExtensionDescription } from './extensions.d2.ts';
32
+ import { a as IJSONSchemaMap, I as IJSONSchema } from './jsonSchema.js';
31
33
  import 'vscode';
32
34
  import 'monaco-editor';
35
+ import './extensionsRegistry.js';
33
36
 
34
37
  interface IAccessibilityInformation {
35
38
  label: string;
36
39
  role?: string;
37
40
  }
38
41
 
39
- interface IConfigurationOverrides {
40
- overrideIdentifier?: string | null;
41
- resource?: URI | null;
42
- }
43
- type IConfigurationUpdateOverrides = Omit<IConfigurationOverrides, 'overrideIdentifier'> & {
44
- overrideIdentifiers?: string[] | null;
45
- };
46
- declare const enum ConfigurationTarget {
47
- APPLICATION = 1,
48
- USER = 2,
49
- USER_LOCAL = 3,
50
- USER_REMOTE = 4,
51
- WORKSPACE = 5,
52
- WORKSPACE_FOLDER = 6,
53
- DEFAULT = 7,
54
- MEMORY = 8
55
- }
56
- interface IConfigurationChange {
57
- keys: string[];
58
- overrides: [string, string[]][];
59
- }
60
- interface IConfigurationChangeEvent {
61
- readonly source: ConfigurationTarget;
62
- readonly affectedKeys: ReadonlySet<string>;
63
- readonly change: IConfigurationChange;
64
- affectsConfiguration(configuration: string, overrides?: IConfigurationOverrides): boolean;
65
- readonly sourceConfig: any;
66
- }
67
- interface IConfigurationValue<T> {
68
- readonly defaultValue?: T;
69
- readonly applicationValue?: T;
70
- readonly userValue?: T;
71
- readonly userLocalValue?: T;
72
- readonly userRemoteValue?: T;
73
- readonly workspaceValue?: T;
74
- readonly workspaceFolderValue?: T;
75
- readonly memoryValue?: T;
76
- readonly policyValue?: T;
77
- readonly value?: T;
78
- readonly default?: {
79
- value?: T;
80
- override?: T;
81
- };
82
- readonly application?: {
83
- value?: T;
84
- override?: T;
85
- };
86
- readonly user?: {
87
- value?: T;
88
- override?: T;
89
- };
90
- readonly userLocal?: {
91
- value?: T;
92
- override?: T;
93
- };
94
- readonly userRemote?: {
95
- value?: T;
96
- override?: T;
97
- };
98
- readonly workspace?: {
99
- value?: T;
100
- override?: T;
101
- };
102
- readonly workspaceFolder?: {
103
- value?: T;
104
- override?: T;
105
- };
106
- readonly memory?: {
107
- value?: T;
108
- override?: T;
109
- };
110
- readonly policy?: {
111
- value?: T;
112
- };
113
- readonly overrideIdentifiers?: string[];
114
- }
115
- interface IConfigurationUpdateOptions {
116
- /**
117
- * If `true`, do not notifies the error to user by showing the message box. Default is `false`.
118
- */
119
- donotNotifyError?: boolean;
120
- /**
121
- * How to handle dirty file when updating the configuration.
122
- */
123
- handleDirtyFile?: 'save' | 'revert';
124
- }
125
-
126
- declare const IConfigurationService: ServiceIdentifier<IConfigurationService>;
127
- interface IConfigurationService {
128
- readonly _serviceBrand: undefined;
129
- onDidChangeConfiguration: Event$1<IConfigurationChangeEvent>;
130
- getConfigurationData(): IConfigurationData | null;
131
- /**
132
- * Fetches the value of the section for the given overrides.
133
- * Value can be of native type or an object keyed off the section name.
134
- *
135
- * @param section - Section of the configuration. Can be `null` or `undefined`.
136
- * @param overrides - Overrides that has to be applied while fetching
137
- *
138
- */
139
- getValue<T>(): T;
140
- getValue<T>(section: string): T;
141
- getValue<T>(overrides: IConfigurationOverrides): T;
142
- getValue<T>(section: string, overrides: IConfigurationOverrides): T;
143
- /**
144
- * Update a configuration value.
145
- *
146
- * Use `target` to update the configuration in a specific `ConfigurationTarget`.
147
- *
148
- * Use `overrides` to update the configuration for a resource or for override identifiers or both.
149
- *
150
- * Passing a resource through overrides will update the configuration in the workspace folder containing that resource.
151
- *
152
- * *Note 1:* Updating configuration to a default value will remove the configuration from the requested target. If not target is passed, it will be removed from all writeable targets.
153
- *
154
- * *Note 2:* Use `undefined` value to remove the configuration from the given target. If not target is passed, it will be removed from all writeable targets.
155
- *
156
- * Use `donotNotifyError` and set it to `true` to surpresss errors.
157
- *
158
- * @param key setting to be updated
159
- * @param value The new value
160
- */
161
- updateValue(key: string, value: any): Promise<void>;
162
- updateValue(key: string, value: any, target: ConfigurationTarget): Promise<void>;
163
- updateValue(key: string, value: any, overrides: IConfigurationOverrides | IConfigurationUpdateOverrides): Promise<void>;
164
- updateValue(key: string, value: any, overrides: IConfigurationOverrides | IConfigurationUpdateOverrides, target: ConfigurationTarget, options?: IConfigurationUpdateOptions): Promise<void>;
165
- inspect<T>(key: string, overrides?: IConfigurationOverrides): IConfigurationValue<Readonly<T>>;
166
- reloadConfiguration(target?: ConfigurationTarget | IWorkspaceFolder): Promise<void>;
167
- keys(): {
168
- default: string[];
169
- user: string[];
170
- workspace: string[];
171
- workspaceFolder: string[];
172
- memory?: string[];
173
- };
174
- }
175
- interface IConfigurationModel {
176
- contents: any;
177
- keys: string[];
178
- overrides: IOverrides[];
179
- }
180
- interface IOverrides {
181
- keys: string[];
182
- contents: any;
183
- identifiers: string[];
184
- }
185
- interface IConfigurationData {
186
- defaults: IConfigurationModel;
187
- policy: IConfigurationModel;
188
- application: IConfigurationModel;
189
- user: IConfigurationModel;
190
- workspace: IConfigurationModel;
191
- folders: [UriComponents, IConfigurationModel][];
192
- }
193
-
194
42
  interface ILanguageExtensionPoint {
195
43
  id: string;
196
44
  extensions?: string[];
@@ -207,7 +55,7 @@ interface ILanguageExtensionPoint {
207
55
  }
208
56
  interface ILanguageSelection {
209
57
  readonly languageId: string;
210
- readonly onDidChange: Event$1<string>;
58
+ readonly onDidChange: Event<string>;
211
59
  }
212
60
  interface ILanguageNameIdPair {
213
61
  readonly languageName: string;
@@ -233,7 +81,7 @@ interface ILanguageService {
233
81
  * **Note**: Basic language features refers to language configuration related features.
234
82
  * **Note**: This event is a superset of `onDidRequestRichLanguageFeatures`
235
83
  */
236
- onDidRequestBasicLanguageFeatures: Event$1<string>;
84
+ onDidRequestBasicLanguageFeatures: Event<string>;
237
85
  /**
238
86
  * An event emitted when rich language features are requested for the first time.
239
87
  * This event is emitted when a language is associated to a text model.
@@ -241,11 +89,11 @@ interface ILanguageService {
241
89
  * **Note**: Rich language features refers to tokenizers, language features based on providers, etc.
242
90
  * **Note**: This event is a subset of `onDidRequestRichLanguageFeatures`
243
91
  */
244
- onDidRequestRichLanguageFeatures: Event$1<string>;
92
+ onDidRequestRichLanguageFeatures: Event<string>;
245
93
  /**
246
94
  * An event emitted when languages have changed.
247
95
  */
248
- onDidChange: Event$1<void>;
96
+ onDidChange: Event<void>;
249
97
  /**
250
98
  * Register a language.
251
99
  */
@@ -331,233 +179,6 @@ declare class UndoRedoSource {
331
179
  static None: UndoRedoSource;
332
180
  }
333
181
 
334
- interface ISubmenuItem {
335
- title: string | ICommandActionTitle;
336
- submenu: MenuId;
337
- icon?: Icon;
338
- when?: ContextKeyExpression;
339
- group?: 'navigation' | string;
340
- order?: number;
341
- isSelection?: boolean;
342
- rememberDefaultAction?: boolean;
343
- }
344
- declare class MenuId {
345
- private static readonly _instances;
346
- static readonly CommandPalette: MenuId;
347
- static readonly DebugBreakpointsContext: MenuId;
348
- static readonly DebugCallStackContext: MenuId;
349
- static readonly DebugConsoleContext: MenuId;
350
- static readonly DebugVariablesContext: MenuId;
351
- static readonly DebugWatchContext: MenuId;
352
- static readonly DebugToolBar: MenuId;
353
- static readonly DebugToolBarStop: MenuId;
354
- static readonly EditorContext: MenuId;
355
- static readonly SimpleEditorContext: MenuId;
356
- static readonly EditorContent: MenuId;
357
- static readonly EditorLineNumberContext: MenuId;
358
- static readonly EditorContextCopy: MenuId;
359
- static readonly EditorContextPeek: MenuId;
360
- static readonly EditorContextShare: MenuId;
361
- static readonly EditorTitle: MenuId;
362
- static readonly EditorTitleRun: MenuId;
363
- static readonly EditorTitleContext: MenuId;
364
- static readonly EditorTitleContextShare: MenuId;
365
- static readonly EmptyEditorGroup: MenuId;
366
- static readonly EmptyEditorGroupContext: MenuId;
367
- static readonly EditorTabsBarContext: MenuId;
368
- static readonly ExplorerContext: MenuId;
369
- static readonly ExplorerContextShare: MenuId;
370
- static readonly ExtensionContext: MenuId;
371
- static readonly GlobalActivity: MenuId;
372
- static readonly CommandCenter: MenuId;
373
- static readonly LayoutControlMenuSubmenu: MenuId;
374
- static readonly LayoutControlMenu: MenuId;
375
- static readonly MenubarMainMenu: MenuId;
376
- static readonly MenubarAppearanceMenu: MenuId;
377
- static readonly MenubarDebugMenu: MenuId;
378
- static readonly MenubarEditMenu: MenuId;
379
- static readonly MenubarCopy: MenuId;
380
- static readonly MenubarFileMenu: MenuId;
381
- static readonly MenubarGoMenu: MenuId;
382
- static readonly MenubarHelpMenu: MenuId;
383
- static readonly MenubarLayoutMenu: MenuId;
384
- static readonly MenubarNewBreakpointMenu: MenuId;
385
- static readonly PanelAlignmentMenu: MenuId;
386
- static readonly PanelPositionMenu: MenuId;
387
- static readonly MenubarPreferencesMenu: MenuId;
388
- static readonly MenubarRecentMenu: MenuId;
389
- static readonly MenubarSelectionMenu: MenuId;
390
- static readonly MenubarShare: MenuId;
391
- static readonly MenubarSwitchEditorMenu: MenuId;
392
- static readonly MenubarSwitchGroupMenu: MenuId;
393
- static readonly MenubarTerminalMenu: MenuId;
394
- static readonly MenubarViewMenu: MenuId;
395
- static readonly MenubarHomeMenu: MenuId;
396
- static readonly OpenEditorsContext: MenuId;
397
- static readonly OpenEditorsContextShare: MenuId;
398
- static readonly ProblemsPanelContext: MenuId;
399
- static readonly SCMChangeContext: MenuId;
400
- static readonly SCMResourceContext: MenuId;
401
- static readonly SCMResourceContextShare: MenuId;
402
- static readonly SCMResourceFolderContext: MenuId;
403
- static readonly SCMResourceGroupContext: MenuId;
404
- static readonly SCMSourceControl: MenuId;
405
- static readonly SCMTitle: MenuId;
406
- static readonly SearchContext: MenuId;
407
- static readonly SearchActionMenu: MenuId;
408
- static readonly StatusBarWindowIndicatorMenu: MenuId;
409
- static readonly StatusBarRemoteIndicatorMenu: MenuId;
410
- static readonly StickyScrollContext: MenuId;
411
- static readonly TestItem: MenuId;
412
- static readonly TestItemGutter: MenuId;
413
- static readonly TestPeekElement: MenuId;
414
- static readonly TestPeekTitle: MenuId;
415
- static readonly TouchBarContext: MenuId;
416
- static readonly TitleBarContext: MenuId;
417
- static readonly TitleBarTitleContext: MenuId;
418
- static readonly TunnelContext: MenuId;
419
- static readonly TunnelPrivacy: MenuId;
420
- static readonly TunnelProtocol: MenuId;
421
- static readonly TunnelPortInline: MenuId;
422
- static readonly TunnelTitle: MenuId;
423
- static readonly TunnelLocalAddressInline: MenuId;
424
- static readonly TunnelOriginInline: MenuId;
425
- static readonly ViewItemContext: MenuId;
426
- static readonly ViewContainerTitle: MenuId;
427
- static readonly ViewContainerTitleContext: MenuId;
428
- static readonly ViewTitle: MenuId;
429
- static readonly ViewTitleContext: MenuId;
430
- static readonly CommentEditorActions: MenuId;
431
- static readonly CommentThreadTitle: MenuId;
432
- static readonly CommentThreadActions: MenuId;
433
- static readonly CommentThreadAdditionalActions: MenuId;
434
- static readonly CommentThreadTitleContext: MenuId;
435
- static readonly CommentThreadCommentContext: MenuId;
436
- static readonly CommentTitle: MenuId;
437
- static readonly CommentActions: MenuId;
438
- static readonly InteractiveToolbar: MenuId;
439
- static readonly InteractiveCellTitle: MenuId;
440
- static readonly InteractiveCellDelete: MenuId;
441
- static readonly InteractiveCellExecute: MenuId;
442
- static readonly InteractiveInputExecute: MenuId;
443
- static readonly NotebookToolbar: MenuId;
444
- static readonly NotebookCellTitle: MenuId;
445
- static readonly NotebookCellDelete: MenuId;
446
- static readonly NotebookCellInsert: MenuId;
447
- static readonly NotebookCellBetween: MenuId;
448
- static readonly NotebookCellListTop: MenuId;
449
- static readonly NotebookCellExecute: MenuId;
450
- static readonly NotebookCellExecutePrimary: MenuId;
451
- static readonly NotebookDiffCellInputTitle: MenuId;
452
- static readonly NotebookDiffCellMetadataTitle: MenuId;
453
- static readonly NotebookDiffCellOutputsTitle: MenuId;
454
- static readonly NotebookOutputToolbar: MenuId;
455
- static readonly NotebookEditorLayoutConfigure: MenuId;
456
- static readonly NotebookKernelSource: MenuId;
457
- static readonly BulkEditTitle: MenuId;
458
- static readonly BulkEditContext: MenuId;
459
- static readonly TimelineItemContext: MenuId;
460
- static readonly TimelineTitle: MenuId;
461
- static readonly TimelineTitleContext: MenuId;
462
- static readonly TimelineFilterSubMenu: MenuId;
463
- static readonly AccountsContext: MenuId;
464
- static readonly PanelTitle: MenuId;
465
- static readonly AuxiliaryBarTitle: MenuId;
466
- static readonly TerminalInstanceContext: MenuId;
467
- static readonly TerminalEditorInstanceContext: MenuId;
468
- static readonly TerminalNewDropdownContext: MenuId;
469
- static readonly TerminalTabContext: MenuId;
470
- static readonly TerminalTabEmptyAreaContext: MenuId;
471
- static readonly TerminalInlineTabContext: MenuId;
472
- static readonly WebviewContext: MenuId;
473
- static readonly InlineCompletionsActions: MenuId;
474
- static readonly NewFile: MenuId;
475
- static readonly MergeInput1Toolbar: MenuId;
476
- static readonly MergeInput2Toolbar: MenuId;
477
- static readonly MergeBaseToolbar: MenuId;
478
- static readonly MergeInputResultToolbar: MenuId;
479
- static readonly InlineSuggestionToolbar: MenuId;
480
- static readonly ChatContext: MenuId;
481
- static readonly ChatCodeBlock: MenuId;
482
- static readonly ChatMessageTitle: MenuId;
483
- static readonly ChatExecute: MenuId;
484
- /**
485
- * Create or reuse a `MenuId` with the given identifier
486
- */
487
- static for(identifier: string): MenuId;
488
- readonly id: string;
489
- /**
490
- * Create a new `MenuId` with the unique identifier. Will throw if a menu
491
- * with the identifier already exists, use `MenuId.for(ident)` or a unique
492
- * identifier
493
- */
494
- constructor(identifier: string);
495
- }
496
- interface IMenuActionOptions {
497
- arg?: any;
498
- shouldForwardArgs?: boolean;
499
- renderShortTitle?: boolean;
500
- }
501
- interface IMenuChangeEvent {
502
- readonly menu: IMenu;
503
- readonly isStructuralChange: boolean;
504
- readonly isToggleChange: boolean;
505
- readonly isEnablementChange: boolean;
506
- }
507
- interface IMenu extends IDisposable {
508
- readonly onDidChange: Event$1<IMenuChangeEvent>;
509
- getActions(options?: IMenuActionOptions): [string, Array<MenuItemAction | SubmenuItemAction>][];
510
- }
511
- interface IMenuCreateOptions {
512
- emitEventsForSubmenuChanges?: boolean;
513
- eventDebounceDelay?: number;
514
- }
515
- declare const IMenuService: ServiceIdentifier<IMenuService>;
516
- interface IMenuService {
517
- readonly _serviceBrand: undefined;
518
- /**
519
- * Create a new menu for the given menu identifier. A menu sends events when it's entries
520
- * have changed (placement, enablement, checked-state). By default it does not send events for
521
- * submenu entries. That is more expensive and must be explicitly enabled with the
522
- * `emitEventsForSubmenuChanges` flag.
523
- */
524
- createMenu(id: MenuId, contextKeyService: IContextKeyService, options?: IMenuCreateOptions): IMenu;
525
- /**
526
- * Reset **all** menu item hidden states.
527
- */
528
- resetHiddenStates(): void;
529
- /**
530
- * Reset the menu's hidden states.
531
- */
532
- resetHiddenStates(menuIds: readonly MenuId[] | undefined): void;
533
- }
534
- declare class SubmenuItemAction extends SubmenuAction {
535
- readonly item: ISubmenuItem;
536
- readonly hideActions: IMenuItemHide | undefined;
537
- constructor(item: ISubmenuItem, hideActions: IMenuItemHide | undefined, actions: IAction[]);
538
- }
539
- interface IMenuItemHide {
540
- readonly isHidden: boolean;
541
- readonly hide: IAction;
542
- readonly toggle: IAction;
543
- }
544
- declare class MenuItemAction implements IAction {
545
- readonly hideActions: IMenuItemHide | undefined;
546
- private _commandService;
547
- static label(action: ICommandAction, options?: IMenuActionOptions): string;
548
- readonly item: ICommandAction;
549
- readonly alt: MenuItemAction | undefined;
550
- private readonly _options;
551
- readonly id: string;
552
- readonly label: string;
553
- readonly tooltip: string;
554
- readonly class: string | undefined;
555
- readonly enabled: boolean;
556
- readonly checked?: boolean;
557
- constructor(item: ICommandAction, alt: ICommandAction | undefined, options: IMenuActionOptions | undefined, hideActions: IMenuItemHide | undefined, contextKeyService: IContextKeyService, _commandService: ICommandService);
558
- run(...args: any[]): Promise<void>;
559
- }
560
-
561
182
  interface IExtUri {
562
183
  /**
563
184
  * Compares two uris.
@@ -695,225 +316,6 @@ interface IUriIdentityService {
695
316
  asCanonicalUri(uri: URI): URI;
696
317
  }
697
318
 
698
- /**
699
- * Flags to indicate whether to use the default profile or not.
700
- */
701
- type UseDefaultProfileFlags = {
702
- settings?: boolean;
703
- keybindings?: boolean;
704
- tasks?: boolean;
705
- snippets?: boolean;
706
- extensions?: boolean;
707
- uiState?: boolean;
708
- };
709
- interface IUserDataProfile {
710
- readonly id: string;
711
- readonly isDefault: boolean;
712
- readonly name: string;
713
- readonly shortName?: string;
714
- readonly location: URI;
715
- readonly globalStorageHome: URI;
716
- readonly settingsResource: URI;
717
- readonly keybindingsResource: URI;
718
- readonly tasksResource: URI;
719
- readonly snippetsHome: URI;
720
- readonly extensionsResource: URI;
721
- readonly cacheHome: URI;
722
- readonly useDefaultFlags?: UseDefaultProfileFlags;
723
- readonly isTransient?: boolean;
724
- }
725
-
726
- declare enum WillSaveStateReason {
727
- /**
728
- * No specific reason to save state.
729
- */
730
- NONE = 0,
731
- /**
732
- * A hint that the workbench is about to shutdown.
733
- */
734
- SHUTDOWN = 1
735
- }
736
- interface IWillSaveStateEvent {
737
- readonly reason: WillSaveStateReason;
738
- }
739
- declare const IStorageService: ServiceIdentifier<IStorageService>;
740
- interface IStorageService {
741
- readonly _serviceBrand: undefined;
742
- /**
743
- * Emitted whenever data is updated or deleted.
744
- */
745
- readonly onDidChangeValue: Event$1<IStorageValueChangeEvent>;
746
- /**
747
- * Emitted whenever target of a storage entry changes.
748
- */
749
- readonly onDidChangeTarget: Event$1<IStorageTargetChangeEvent>;
750
- /**
751
- * Emitted when the storage is about to persist. This is the right time
752
- * to persist data to ensure it is stored before the application shuts
753
- * down.
754
- *
755
- * The will save state event allows to optionally ask for the reason of
756
- * saving the state, e.g. to find out if the state is saved due to a
757
- * shutdown.
758
- *
759
- * Note: this event may be fired many times, not only on shutdown to prevent
760
- * loss of state in situations where the shutdown is not sufficient to
761
- * persist the data properly.
762
- */
763
- readonly onWillSaveState: Event$1<IWillSaveStateEvent>;
764
- /**
765
- * Retrieve an element stored with the given key from storage. Use
766
- * the provided `defaultValue` if the element is `null` or `undefined`.
767
- *
768
- * @param scope allows to define the scope of the storage operation
769
- * to either the current workspace only, all workspaces or all profiles.
770
- */
771
- get(key: string, scope: StorageScope, fallbackValue: string): string;
772
- get(key: string, scope: StorageScope, fallbackValue?: string): string | undefined;
773
- /**
774
- * Retrieve an element stored with the given key from storage. Use
775
- * the provided `defaultValue` if the element is `null` or `undefined`.
776
- * The element will be converted to a `boolean`.
777
- *
778
- * @param scope allows to define the scope of the storage operation
779
- * to either the current workspace only, all workspaces or all profiles.
780
- */
781
- getBoolean(key: string, scope: StorageScope, fallbackValue: boolean): boolean;
782
- getBoolean(key: string, scope: StorageScope, fallbackValue?: boolean): boolean | undefined;
783
- /**
784
- * Retrieve an element stored with the given key from storage. Use
785
- * the provided `defaultValue` if the element is `null` or `undefined`.
786
- * The element will be converted to a `number` using `parseInt` with a
787
- * base of `10`.
788
- *
789
- * @param scope allows to define the scope of the storage operation
790
- * to either the current workspace only, all workspaces or all profiles.
791
- */
792
- getNumber(key: string, scope: StorageScope, fallbackValue: number): number;
793
- getNumber(key: string, scope: StorageScope, fallbackValue?: number): number | undefined;
794
- /**
795
- * Retrieve an element stored with the given key from storage. Use
796
- * the provided `defaultValue` if the element is `null` or `undefined`.
797
- * The element will be converted to a `object` using `JSON.parse`.
798
- *
799
- * @param scope allows to define the scope of the storage operation
800
- * to either the current workspace only, all workspaces or all profiles.
801
- */
802
- getObject<T extends object>(key: string, scope: StorageScope, fallbackValue: T): T;
803
- getObject<T extends object>(key: string, scope: StorageScope, fallbackValue?: T): T | undefined;
804
- /**
805
- * Store a value under the given key to storage. The value will be
806
- * converted to a `string`. Storing either `undefined` or `null` will
807
- * remove the entry under the key.
808
- *
809
- * @param scope allows to define the scope of the storage operation
810
- * to either the current workspace only, all workspaces or all profiles.
811
- *
812
- * @param target allows to define the target of the storage operation
813
- * to either the current machine or user.
814
- */
815
- store(key: string, value: string | boolean | number | undefined | null | object, scope: StorageScope, target: StorageTarget): void;
816
- /**
817
- * Delete an element stored under the provided key from storage.
818
- *
819
- * The scope argument allows to define the scope of the storage
820
- * operation to either the current workspace only, all workspaces
821
- * or all profiles.
822
- */
823
- remove(key: string, scope: StorageScope): void;
824
- /**
825
- * Returns all the keys used in the storage for the provided `scope`
826
- * and `target`.
827
- *
828
- * Note: this will NOT return all keys stored in the storage layer.
829
- * Some keys may not have an associated `StorageTarget` and thus
830
- * will be excluded from the results.
831
- *
832
- * @param scope allows to define the scope for the keys
833
- * to either the current workspace only, all workspaces or all profiles.
834
- *
835
- * @param target allows to define the target for the keys
836
- * to either the current machine or user.
837
- */
838
- keys(scope: StorageScope, target: StorageTarget): string[];
839
- /**
840
- * Log the contents of the storage to the console.
841
- */
842
- log(): void;
843
- /**
844
- * Returns true if the storage service handles the provided scope.
845
- */
846
- hasScope(scope: IAnyWorkspaceIdentifier | IUserDataProfile): boolean;
847
- /**
848
- * Switch storage to another workspace or profile. Optionally preserve the
849
- * current data to the new storage.
850
- */
851
- switch(to: IAnyWorkspaceIdentifier | IUserDataProfile, preserveData: boolean): Promise<void>;
852
- /**
853
- * Whether the storage for the given scope was created during this session or
854
- * existed before.
855
- */
856
- isNew(scope: StorageScope): boolean;
857
- /**
858
- * Allows to flush state, e.g. in cases where a shutdown is
859
- * imminent. This will send out the `onWillSaveState` to ask
860
- * everyone for latest state.
861
- *
862
- * @returns a `Promise` that can be awaited on when all updates
863
- * to the underlying storage have been flushed.
864
- */
865
- flush(reason?: WillSaveStateReason): Promise<void>;
866
- }
867
- declare const enum StorageScope {
868
- /**
869
- * The stored data will be scoped to all workspaces across all profiles.
870
- */
871
- APPLICATION = -1,
872
- /**
873
- * The stored data will be scoped to all workspaces of the same profile.
874
- */
875
- PROFILE = 0,
876
- /**
877
- * The stored data will be scoped to the current workspace.
878
- */
879
- WORKSPACE = 1
880
- }
881
- declare const enum StorageTarget {
882
- /**
883
- * The stored data is user specific and applies across machines.
884
- */
885
- USER = 0,
886
- /**
887
- * The stored data is machine specific.
888
- */
889
- MACHINE = 1
890
- }
891
- interface IStorageValueChangeEvent {
892
- /**
893
- * The scope for the storage entry that changed
894
- * or was removed.
895
- */
896
- readonly scope: StorageScope;
897
- /**
898
- * The `key` of the storage entry that was changed
899
- * or was removed.
900
- */
901
- readonly key: string;
902
- /**
903
- * The `target` can be `undefined` if a key is being
904
- * removed.
905
- */
906
- readonly target: StorageTarget | undefined;
907
- }
908
- interface IStorageTargetChangeEvent {
909
- /**
910
- * The scope for the target that changed. Listeners
911
- * should use `keys(scope, target)` to get an updated
912
- * list of keys for the given `scope` and `target`.
913
- */
914
- readonly scope: StorageScope;
915
- }
916
-
917
319
  interface IBuiltInExtension {
918
320
  readonly name: string;
919
321
  readonly version: string;
@@ -1393,8 +795,8 @@ interface IQuickInputHideEvent {
1393
795
  reason: QuickInputHideReason;
1394
796
  }
1395
797
  interface IQuickInput extends IDisposable {
1396
- readonly onDidHide: Event$1<IQuickInputHideEvent>;
1397
- readonly onDispose: Event$1<void>;
798
+ readonly onDidHide: Event<IQuickInputHideEvent>;
799
+ readonly onDispose: Event<void>;
1398
800
  title: string | undefined;
1399
801
  description: string | undefined;
1400
802
  /**
@@ -1440,9 +842,9 @@ interface IQuickPick<T extends IQuickPickItem> extends IQuickInput {
1440
842
  filterValue: (value: string) => string;
1441
843
  ariaLabel: string | undefined;
1442
844
  placeholder: string | undefined;
1443
- readonly onDidChangeValue: Event$1<string>;
1444
- readonly onWillAccept: Event$1<IQuickPickWillAcceptEvent>;
1445
- readonly onDidAccept: Event$1<IQuickPickDidAcceptEvent>;
845
+ readonly onDidChangeValue: Event<string>;
846
+ readonly onWillAccept: Event<IQuickPickWillAcceptEvent>;
847
+ readonly onDidAccept: Event<IQuickPickDidAcceptEvent>;
1446
848
  /**
1447
849
  * If enabled, will fire the `onDidAccept` event when
1448
850
  * pressing the arrow-right key with the idea of accepting
@@ -1450,14 +852,14 @@ interface IQuickPick<T extends IQuickPickItem> extends IQuickInput {
1450
852
  */
1451
853
  canAcceptInBackground: boolean;
1452
854
  ok: boolean | 'default';
1453
- readonly onDidCustom: Event$1<void>;
855
+ readonly onDidCustom: Event<void>;
1454
856
  customButton: boolean;
1455
857
  customLabel: string | undefined;
1456
858
  customHover: string | undefined;
1457
859
  buttons: ReadonlyArray<IQuickInputButton>;
1458
- readonly onDidTriggerButton: Event$1<IQuickInputButton>;
1459
- readonly onDidTriggerItemButton: Event$1<IQuickPickItemButtonEvent<T>>;
1460
- readonly onDidTriggerSeparatorButton: Event$1<IQuickPickSeparatorButtonEvent>;
860
+ readonly onDidTriggerButton: Event<IQuickInputButton>;
861
+ readonly onDidTriggerItemButton: Event<IQuickPickItemButtonEvent<T>>;
862
+ readonly onDidTriggerSeparatorButton: Event<IQuickPickSeparatorButtonEvent>;
1461
863
  items: ReadonlyArray<T | IQuickPickSeparator>;
1462
864
  scrollTop: number;
1463
865
  canSelectMany: boolean;
@@ -1475,13 +877,13 @@ interface IQuickPick<T extends IQuickPickItem> extends IQuickInput {
1475
877
  keepScrollPosition: boolean;
1476
878
  quickNavigate: IQuickNavigateConfiguration | undefined;
1477
879
  activeItems: ReadonlyArray<T>;
1478
- readonly onDidChangeActive: Event$1<T[]>;
880
+ readonly onDidChangeActive: Event<T[]>;
1479
881
  /**
1480
882
  * Allows to control which entry should be activated by default.
1481
883
  */
1482
884
  itemActivation: ItemActivation;
1483
885
  selectedItems: ReadonlyArray<T>;
1484
- readonly onDidChangeSelection: Event$1<T[]>;
886
+ readonly onDidChangeSelection: Event<T[]>;
1485
887
  readonly keyMods: IKeyMods;
1486
888
  valueSelection: Readonly<[number, number]> | undefined;
1487
889
  validationMessage: string | undefined;
@@ -1500,7 +902,7 @@ interface IQuickPick<T extends IQuickPickItem> extends IQuickInput {
1500
902
  toggles: IQuickInputToggle[] | undefined;
1501
903
  }
1502
904
  interface IQuickInputToggle {
1503
- onChange: Event$1<boolean>;
905
+ onChange: Event<boolean>;
1504
906
  }
1505
907
  interface IInputBox extends IQuickInput {
1506
908
  /**
@@ -1522,11 +924,11 @@ interface IInputBox extends IQuickInput {
1522
924
  /**
1523
925
  * Event called when the input value changes.
1524
926
  */
1525
- readonly onDidChangeValue: Event$1<string>;
927
+ readonly onDidChangeValue: Event<string>;
1526
928
  /**
1527
929
  * Event called when the user submits the input.
1528
930
  */
1529
- readonly onDidAccept: Event$1<void>;
931
+ readonly onDidAccept: Event<void>;
1530
932
  /**
1531
933
  * Buttons to show in addition to user input submission.
1532
934
  */
@@ -1534,7 +936,7 @@ interface IInputBox extends IQuickInput {
1534
936
  /**
1535
937
  * Event called when a button is selected.
1536
938
  */
1537
- readonly onDidTriggerButton: Event$1<IQuickInputButton>;
939
+ readonly onDidTriggerButton: Event<IQuickInputButton>;
1538
940
  /**
1539
941
  * Text show below the input box.
1540
942
  */
@@ -1591,11 +993,11 @@ interface IQuickInputService {
1591
993
  /**
1592
994
  * Allows to register on the event that quick input is showing.
1593
995
  */
1594
- readonly onShow: Event$1<void>;
996
+ readonly onShow: Event<void>;
1595
997
  /**
1596
998
  * Allows to register on the event that quick input is hiding.
1597
999
  */
1598
- readonly onHide: Event$1<void>;
1000
+ readonly onHide: Event<void>;
1599
1001
  /**
1600
1002
  * Opens the quick input box for selecting items and returns a promise
1601
1003
  * with the user selected item(s) if any.
@@ -1648,77 +1050,6 @@ interface IQuickInputService {
1648
1050
  cancel(): Promise<void>;
1649
1051
  }
1650
1052
 
1651
- interface IPropertyData {
1652
- classification: 'SystemMetaData' | 'CallstackOrException' | 'CustomerContent' | 'PublicNonPersonalData' | 'EndUserPseudonymizedInformation';
1653
- purpose: 'PerformanceAndHealth' | 'FeatureInsight' | 'BusinessInsight';
1654
- comment: string;
1655
- expiration?: string;
1656
- endpoint?: string;
1657
- isMeasurement?: boolean;
1658
- }
1659
- interface IGDPRProperty {
1660
- owner: string;
1661
- comment: string;
1662
- expiration?: string;
1663
- readonly [name: string]: IPropertyData | undefined | IGDPRProperty | string;
1664
- }
1665
- type IGDPRPropertyWithoutMetadata = Omit<IGDPRProperty, 'owner' | 'comment' | 'expiration'>;
1666
- type OmitMetadata<T> = Omit<T, 'owner' | 'comment' | 'expiration'>;
1667
- type ClassifiedEvent<T extends IGDPRPropertyWithoutMetadata> = {
1668
- [k in keyof T]: any;
1669
- };
1670
- type StrictPropertyChecker<TEvent, TClassification, TError> = keyof TEvent extends keyof OmitMetadata<TClassification> ? keyof OmitMetadata<TClassification> extends keyof TEvent ? TEvent : TError : TError;
1671
- type StrictPropertyCheckError = {
1672
- error: 'Type of classified event does not match event properties';
1673
- };
1674
- type StrictPropertyCheck<T extends IGDPRProperty, E> = StrictPropertyChecker<E, ClassifiedEvent<OmitMetadata<T>>, StrictPropertyCheckError>;
1675
-
1676
- interface ITelemetryData {
1677
- from?: string;
1678
- target?: string;
1679
- [key: string]: any;
1680
- }
1681
-
1682
- declare const ITelemetryService: ServiceIdentifier<ITelemetryService>;
1683
- interface ITelemetryService {
1684
- readonly _serviceBrand: undefined;
1685
- readonly telemetryLevel: TelemetryLevel;
1686
- readonly sessionId: string;
1687
- readonly machineId: string;
1688
- readonly firstSessionDate: string;
1689
- readonly msftInternal?: boolean;
1690
- /**
1691
- * Whether error telemetry will get sent. If false, `publicLogError` will no-op.
1692
- */
1693
- readonly sendErrorTelemetry: boolean;
1694
- /**
1695
- * @deprecated Use publicLog2 and the typescript GDPR annotation where possible
1696
- */
1697
- publicLog(eventName: string, data?: ITelemetryData): void;
1698
- /**
1699
- * Sends a telemetry event that has been privacy approved.
1700
- * Do not call this unless you have been given approval.
1701
- */
1702
- publicLog2<E extends ClassifiedEvent<OmitMetadata<T>> = never, T extends IGDPRProperty = never>(eventName: string, data?: StrictPropertyCheck<T, E>): void;
1703
- /**
1704
- * @deprecated Use publicLogError2 and the typescript GDPR annotation where possible
1705
- */
1706
- publicLogError(errorEventName: string, data?: ITelemetryData): void;
1707
- publicLogError2<E extends ClassifiedEvent<OmitMetadata<T>> = never, T extends IGDPRProperty = never>(eventName: string, data?: StrictPropertyCheck<T, E>): void;
1708
- setExperimentProperty(name: string, value: string): void;
1709
- }
1710
- interface ITelemetryEndpoint {
1711
- id: string;
1712
- aiKey: string;
1713
- sendErrorTelemetry: boolean;
1714
- }
1715
- declare const enum TelemetryLevel {
1716
- NONE = 0,
1717
- CRASH = 1,
1718
- ERROR = 2,
1719
- USAGE = 3
1720
- }
1721
-
1722
1053
  /**
1723
1054
  * The editor model is the heavyweight counterpart of editor input. Depending on the editor input, it
1724
1055
  * resolves from a file system retrieve content and may allow for saving it back or reverting it.
@@ -1726,7 +1057,7 @@ declare const enum TelemetryLevel {
1726
1057
  */
1727
1058
  declare class EditorModel extends Disposable implements IEditorModel {
1728
1059
  private readonly _onWillDispose;
1729
- readonly onWillDispose: Event$1<void>;
1060
+ readonly onWillDispose: Event<void>;
1730
1061
  private disposed;
1731
1062
  private resolved;
1732
1063
  /**
@@ -1756,243 +1087,40 @@ interface IModelService {
1756
1087
  getModels(): ITextModel[];
1757
1088
  getCreationOptions(language: string, resource: URI, isForSimpleWidget: boolean): ITextModelCreationOptions;
1758
1089
  getModel(resource: URI): ITextModel | null;
1759
- onModelAdded: Event$1<ITextModel>;
1760
- onModelRemoved: Event$1<ITextModel>;
1761
- onModelLanguageChanged: Event$1<{
1090
+ onModelAdded: Event<ITextModel>;
1091
+ onModelRemoved: Event<ITextModel>;
1092
+ onModelLanguageChanged: Event<{
1762
1093
  model: ITextModel;
1763
1094
  oldLanguageId: string;
1764
1095
  }>;
1765
1096
  }
1766
1097
 
1767
- type IconDefaults = ThemeIcon | IconDefinition;
1768
- interface IconDefinition {
1769
- font?: IconFontContribution;
1770
- fontCharacter: string;
1771
- }
1772
- interface IconContribution {
1773
- readonly id: string;
1774
- description: string | undefined;
1775
- deprecationMessage?: string;
1776
- readonly defaults: IconDefaults;
1777
- }
1778
- declare namespace IconContribution {
1779
- function getDefinition(contribution: IconContribution, registry: IIconRegistry): IconDefinition | undefined;
1780
- }
1781
- interface IconFontContribution {
1782
- readonly id: string;
1783
- readonly definition: IconFontDefinition;
1784
- }
1785
- interface IconFontDefinition {
1786
- readonly weight?: string;
1787
- readonly style?: string;
1788
- readonly src: IconFontSource[];
1789
- }
1790
- declare namespace IconFontDefinition {
1791
- function toJSONObject(iconFont: IconFontDefinition): any;
1792
- function fromJSONObject(json: any): IconFontDefinition | undefined;
1793
- }
1794
- interface IconFontSource {
1795
- readonly location: URI;
1796
- readonly format: string;
1797
- }
1798
- interface IIconRegistry {
1799
- readonly onDidChange: Event$1<void>;
1800
- /**
1801
- * Register a icon to the registry.
1802
- * @param id The icon id
1803
- * @param defaults The default values
1804
- * @param description The description
1805
- */
1806
- registerIcon(id: IconIdentifier, defaults: IconDefaults, description?: string): ThemeIcon;
1807
- /**
1808
- * Deregister a icon from the registry.
1809
- */
1810
- deregisterIcon(id: IconIdentifier): void;
1811
- /**
1812
- * Get all icon contributions
1813
- */
1814
- getIcons(): IconContribution[];
1815
- /**
1816
- * Get the icon for the given id
1817
- */
1818
- getIcon(id: IconIdentifier): IconContribution | undefined;
1819
- /**
1820
- * JSON schema for an object to assign icon values to one of the icon contributions.
1821
- */
1822
- getIconSchema(): IJSONSchema;
1823
- /**
1824
- * JSON schema to for a reference to a icon contribution.
1825
- */
1826
- getIconReferenceSchema(): IJSONSchema;
1827
- /**
1828
- * Register a icon font to the registry.
1829
- * @param id The icon font id
1830
- * @param definition The icon font definition
1831
- */
1832
- registerIconFont(id: string, definition: IconFontDefinition): IconFontDefinition;
1833
- /**
1834
- * Deregister an icon font to the registry.
1835
- */
1836
- deregisterIconFont(id: string): void;
1837
- /**
1838
- * Get the icon font for the given id
1839
- */
1840
- getIconFont(id: string): IconFontDefinition | undefined;
1841
- }
1842
-
1843
- /**
1844
- * Color scheme used by the OS and by color themes.
1845
- */
1846
- declare enum ColorScheme {
1847
- DARK = "dark",
1848
- LIGHT = "light",
1849
- HIGH_CONTRAST_DARK = "hcDark",
1850
- HIGH_CONTRAST_LIGHT = "hcLight"
1851
- }
1852
-
1853
- interface ITokenStyle {
1854
- readonly foreground: number | undefined;
1855
- readonly bold: boolean | undefined;
1856
- readonly underline: boolean | undefined;
1857
- readonly strikethrough: boolean | undefined;
1858
- readonly italic: boolean | undefined;
1859
- }
1860
- interface IColorTheme {
1861
- readonly type: ColorScheme;
1862
- readonly label: string;
1863
- /**
1864
- * Resolves the color of the given color identifier. If the theme does not
1865
- * specify the color, the default color is returned unless <code>useDefault</code> is set to false.
1866
- * @param color the id of the color
1867
- * @param useDefault specifies if the default color should be used. If not set, the default is used.
1868
- */
1869
- getColor(color: ColorIdentifier, useDefault?: boolean): Color | undefined;
1870
- /**
1871
- * Returns whether the theme defines a value for the color. If not, that means the
1872
- * default color will be used.
1873
- */
1874
- defines(color: ColorIdentifier): boolean;
1875
- /**
1876
- * Returns the token style for a given classification. The result uses the <code>MetadataConsts</code> format
1877
- */
1878
- getTokenStyleMetadata(type: string, modifiers: string[], modelLanguage: string): ITokenStyle | undefined;
1879
- /**
1880
- * List of all colors used with tokens. <code>getTokenStyleMetadata</code> references the colors by index into this list.
1881
- */
1882
- readonly tokenColorMap: string[];
1883
- /**
1884
- * Defines whether semantic highlighting should be enabled for the theme.
1885
- */
1886
- readonly semanticHighlighting: boolean;
1887
- }
1888
- interface IFileIconTheme {
1889
- readonly hasFileIcons: boolean;
1890
- readonly hasFolderIcons: boolean;
1891
- readonly hidesExplorerArrows: boolean;
1098
+ interface IAutoSaveConfiguration {
1099
+ autoSaveDelay?: number;
1100
+ autoSaveFocusChange: boolean;
1101
+ autoSaveApplicationChange: boolean;
1892
1102
  }
1893
- interface IProductIconTheme {
1894
- /**
1895
- * Resolves the definition for the given icon as defined by the theme.
1896
- *
1897
- * @param iconContribution The icon
1898
- */
1899
- getIcon(iconContribution: IconContribution): IconDefinition | undefined;
1103
+ declare const enum AutoSaveMode {
1104
+ OFF = 0,
1105
+ AFTER_SHORT_DELAY = 1,
1106
+ AFTER_LONG_DELAY = 2,
1107
+ ON_FOCUS_CHANGE = 3,
1108
+ ON_WINDOW_CHANGE = 4
1900
1109
  }
1901
-
1902
- declare const IThemeService: ServiceIdentifier<IThemeService>;
1903
- interface IThemeService {
1110
+ declare const IFilesConfigurationService: ServiceIdentifier<IFilesConfigurationService>;
1111
+ interface IFilesConfigurationService {
1904
1112
  readonly _serviceBrand: undefined;
1905
- getColorTheme(): IColorTheme;
1906
- readonly onDidColorThemeChange: Event$1<IColorTheme>;
1907
- getFileIconTheme(): IFileIconTheme;
1908
- readonly onDidFileIconThemeChange: Event$1<IFileIconTheme>;
1909
- getProductIconTheme(): IProductIconTheme;
1910
- readonly onDidProductIconThemeChange: Event$1<IProductIconTheme>;
1911
- }
1912
- /**
1913
- * Utility base class for all themable components.
1914
- */
1915
- declare class Themable extends Disposable {
1916
- protected themeService: IThemeService;
1917
- protected theme: IColorTheme;
1918
- constructor(themeService: IThemeService);
1919
- protected onThemeChange(theme: IColorTheme): void;
1920
- updateStyles(): void;
1921
- protected getColor(id: string, modify?: (color: Color, theme: IColorTheme) => Color): string | null;
1922
- }
1923
-
1924
- interface IBaseOpenWindowsOptions {
1925
- /**
1926
- * Whether to reuse the window or open a new one.
1927
- */
1928
- readonly forceReuseWindow?: boolean;
1929
- /**
1930
- * The remote authority to use when windows are opened with either
1931
- * - no workspace (empty window)
1932
- * - a workspace that is neither `file://` nor `vscode-remote://`
1933
- * Use 'null' for a local window.
1934
- * If not set, defaults to the remote authority of the current window.
1935
- */
1936
- readonly remoteAuthority?: string | null;
1937
- }
1938
- interface IOpenWindowOptions extends IBaseOpenWindowsOptions {
1939
- readonly forceNewWindow?: boolean;
1940
- readonly preferNewWindow?: boolean;
1941
- readonly noRecentEntry?: boolean;
1942
- readonly addMode?: boolean;
1943
- readonly diffMode?: boolean;
1944
- readonly mergeMode?: boolean;
1945
- readonly gotoLineMode?: boolean;
1946
- readonly waitMarkerFileURI?: URI;
1947
- readonly forceProfile?: string;
1948
- readonly forceTempProfile?: boolean;
1949
- }
1950
- interface IOpenEmptyWindowOptions extends IBaseOpenWindowsOptions {
1951
- }
1952
- type IWindowOpenable = IWorkspaceToOpen | IFolderToOpen | IFileToOpen;
1953
- interface IBaseWindowOpenable {
1954
- label?: string;
1955
- }
1956
- interface IWorkspaceToOpen extends IBaseWindowOpenable {
1957
- readonly workspaceUri: URI;
1958
- }
1959
- interface IFolderToOpen extends IBaseWindowOpenable {
1960
- readonly folderUri: URI;
1961
- }
1962
- interface IFileToOpen extends IBaseWindowOpenable {
1963
- readonly fileUri: URI;
1964
- }
1965
- interface IPath$1<T = IEditorOptions> extends IPathData<T> {
1966
- /**
1967
- * The file path to open within the instance
1968
- */
1969
- fileUri?: URI;
1970
- }
1971
- interface IPathData<T = IEditorOptions> {
1972
- /**
1973
- * The file path to open within the instance
1974
- */
1975
- readonly fileUri?: UriComponents;
1976
- /**
1977
- * Optional editor options to apply in the file
1978
- */
1979
- readonly options?: T;
1980
- /**
1981
- * A hint that the file exists. if true, the
1982
- * file exists, if false it does not. with
1983
- * `undefined` the state is unknown.
1984
- */
1985
- readonly exists?: boolean;
1986
- /**
1987
- * A hint about the file type of this path.
1988
- * with `undefined` the type is unknown.
1989
- */
1990
- readonly type?: FileType;
1991
- /**
1992
- * Specifies if the file should be only be opened
1993
- * if it exists.
1994
- */
1995
- readonly openOnlyIfExists?: boolean;
1113
+ readonly onAutoSaveConfigurationChange: Event<IAutoSaveConfiguration>;
1114
+ getAutoSaveConfiguration(): IAutoSaveConfiguration;
1115
+ getAutoSaveMode(): AutoSaveMode;
1116
+ toggleAutoSave(): Promise<void>;
1117
+ readonly onReadonlyChange: Event<void>;
1118
+ isReadonly(resource: URI, stat?: IBaseFileStat): boolean;
1119
+ updateReadonly(resource: URI, readonly: true | false | 'toggle' | 'reset'): Promise<void>;
1120
+ readonly onFilesAssociationChange: Event<void>;
1121
+ readonly isHotExitEnabled: boolean;
1122
+ readonly hotExitConfiguration: string | undefined;
1123
+ preventSaveConflicts(resource: URI, language?: string): boolean;
1996
1124
  }
1997
1125
 
1998
1126
  declare abstract class AbstractSettingsModel extends EditorModel {
@@ -2014,7 +1142,7 @@ declare abstract class AbstractSettingsModel extends EditorModel {
2014
1142
  declare class Settings2EditorModel extends AbstractSettingsModel implements ISettingsEditorModel {
2015
1143
  private _defaultSettings;
2016
1144
  private readonly _onDidChangeGroups;
2017
- readonly onDidChangeGroups: Event$1<void>;
1145
+ readonly onDidChangeGroups: Event<void>;
2018
1146
  private additionalGroups;
2019
1147
  private dirty;
2020
1148
  constructor(_defaultSettings: DefaultSettings, configurationService: IConfigurationService);
@@ -2034,7 +1162,7 @@ declare class DefaultSettings extends Disposable {
2034
1162
  private _contentWithoutMostCommonlyUsed;
2035
1163
  private _settingsByName;
2036
1164
  readonly _onDidChange: Emitter<void>;
2037
- readonly onDidChange: Event$1<void>;
1165
+ readonly onDidChange: Event<void>;
2038
1166
  constructor(_mostCommonlyUsedSettingsKeys: string[], target: ConfigurationTarget);
2039
1167
  getContent(forceUpdate?: boolean): string;
2040
1168
  getContentWithoutMostCommonlyUsed(forceUpdate?: boolean): string;
@@ -2181,7 +1309,7 @@ type ISettingMatcher = (setting: ISetting, group: ISettingsGroup) => {
2181
1309
  score: number;
2182
1310
  } | null;
2183
1311
  interface ISettingsEditorModel extends IPreferencesEditorModel<ISetting> {
2184
- readonly onDidChangeGroups: Event$1<void>;
1312
+ readonly onDidChangeGroups: Event<void>;
2185
1313
  settingsGroups: ISettingsGroup[];
2186
1314
  filterSettings(filter: string, groupFilter: IGroupFilter, settingMatcher: ISettingMatcher): ISettingMatch[];
2187
1315
  findValueMatches(filter: string, setting: ISetting): IRange[];
@@ -2232,7 +1360,7 @@ interface IPreferencesService {
2232
1360
  declare class DebugCompoundRoot {
2233
1361
  private stopped;
2234
1362
  private stopEmitter;
2235
- onDidSessionStop: Event$1<void>;
1363
+ onDidSessionStop: Event<void>;
2236
1364
  sessionStopped(): void;
2237
1365
  }
2238
1366
 
@@ -2406,7 +1534,7 @@ interface IMemoryRegion extends IDisposable {
2406
1534
  * Event that fires when memory changes. Can be a result of memory events or
2407
1535
  * `write` requests.
2408
1536
  */
2409
- readonly onDidInvalidate: Event$1<IMemoryInvalidationEvent>;
1537
+ readonly onDidInvalidate: Event<IMemoryInvalidationEvent>;
2410
1538
  /**
2411
1539
  * Whether writes are supported on this memory region.
2412
1540
  */
@@ -2461,7 +1589,7 @@ interface IDebugSession extends ITreeElement {
2461
1589
  setSubId(subId: string | undefined): void;
2462
1590
  getMemory(memoryReference: string): IMemoryRegion;
2463
1591
  setName(name: string): void;
2464
- readonly onDidChangeName: Event$1<string>;
1592
+ readonly onDidChangeName: Event<string>;
2465
1593
  getLabel(): string;
2466
1594
  getSourceForUri(modelUri: URI): Source | undefined;
2467
1595
  getSource(raw?: DebugProtocol.Source): Source;
@@ -2479,16 +1607,16 @@ interface IDebugSession extends ITreeElement {
2479
1607
  removeReplExpressions(): void;
2480
1608
  addReplExpression(stackFrame: IStackFrame | undefined, name: string): Promise<void>;
2481
1609
  appendToRepl(data: INewReplElementData): void;
2482
- readonly onDidEndAdapter: Event$1<AdapterEndEvent | undefined>;
2483
- readonly onDidChangeState: Event$1<void>;
2484
- readonly onDidChangeReplElements: Event$1<void>;
1610
+ readonly onDidEndAdapter: Event<AdapterEndEvent | undefined>;
1611
+ readonly onDidChangeState: Event<void>;
1612
+ readonly onDidChangeReplElements: Event<void>;
2485
1613
  readonly capabilities: DebugProtocol.Capabilities;
2486
- readonly onDidLoadedSource: Event$1<LoadedSourceEvent>;
2487
- readonly onDidCustomEvent: Event$1<DebugProtocol.Event>;
2488
- readonly onDidProgressStart: Event$1<DebugProtocol.ProgressStartEvent>;
2489
- readonly onDidProgressUpdate: Event$1<DebugProtocol.ProgressUpdateEvent>;
2490
- readonly onDidProgressEnd: Event$1<DebugProtocol.ProgressEndEvent>;
2491
- readonly onDidInvalidateMemory: Event$1<DebugProtocol.MemoryEvent>;
1614
+ readonly onDidLoadedSource: Event<LoadedSourceEvent>;
1615
+ readonly onDidCustomEvent: Event<DebugProtocol.Event>;
1616
+ readonly onDidProgressStart: Event<DebugProtocol.ProgressStartEvent>;
1617
+ readonly onDidProgressUpdate: Event<DebugProtocol.ProgressUpdateEvent>;
1618
+ readonly onDidProgressEnd: Event<DebugProtocol.ProgressEndEvent>;
1619
+ readonly onDidInvalidateMemory: Event<DebugProtocol.MemoryEvent>;
2492
1620
  initialize(dbgr: IDebugger): Promise<void>;
2493
1621
  launchOrAttach(config: IConfig): Promise<void>;
2494
1622
  restart(): Promise<void>;
@@ -2522,7 +1650,7 @@ interface IDebugSession extends ITreeElement {
2522
1650
  reverseContinue(threadId: number): Promise<void>;
2523
1651
  pause(threadId: number): Promise<void>;
2524
1652
  terminateThreads(threadIds: number[]): Promise<void>;
2525
- completions(frameId: number | undefined, threadId: number, text: string, position: Position$1, overwriteBefore: number, token: CancellationToken): Promise<DebugProtocol.CompletionsResponse | undefined>;
1653
+ completions(frameId: number | undefined, threadId: number, text: string, position: Position, overwriteBefore: number, token: CancellationToken): Promise<DebugProtocol.CompletionsResponse | undefined>;
2526
1654
  setVariable(variablesReference: number | undefined, name: string, value: string): Promise<DebugProtocol.SetVariableResponse | undefined>;
2527
1655
  setExpression(frameId: number, expression: string, value: string): Promise<DebugProtocol.SetExpressionResponse | undefined>;
2528
1656
  loadSource(resource: URI): Promise<DebugProtocol.SourceResponse | undefined>;
@@ -2690,23 +1818,23 @@ interface IViewModel extends ITreeElement {
2690
1818
  setSelectedExpression(expression: IExpression | undefined, settingWatch: boolean): void;
2691
1819
  updateViews(): void;
2692
1820
  isMultiSessionView(): boolean;
2693
- onDidFocusSession: Event$1<IDebugSession | undefined>;
2694
- onDidFocusThread: Event$1<{
1821
+ onDidFocusSession: Event<IDebugSession | undefined>;
1822
+ onDidFocusThread: Event<{
2695
1823
  thread: IThread | undefined;
2696
1824
  explicit: boolean;
2697
1825
  session: IDebugSession | undefined;
2698
1826
  }>;
2699
- onDidFocusStackFrame: Event$1<{
1827
+ onDidFocusStackFrame: Event<{
2700
1828
  stackFrame: IStackFrame | undefined;
2701
1829
  explicit: boolean;
2702
1830
  session: IDebugSession | undefined;
2703
1831
  }>;
2704
- onDidSelectExpression: Event$1<{
1832
+ onDidSelectExpression: Event<{
2705
1833
  expression: IExpression;
2706
1834
  settingWatch: boolean;
2707
1835
  } | undefined>;
2708
- onDidEvaluateLazyExpression: Event$1<IExpressionContainer>;
2709
- onWillUpdateViews: Event$1<void>;
1836
+ onDidEvaluateLazyExpression: Event<IExpressionContainer>;
1837
+ onWillUpdateViews: Event<void>;
2710
1838
  evaluateLazyExpression(expression: IExpressionContainer): void;
2711
1839
  }
2712
1840
  interface IEvaluate {
@@ -2736,9 +1864,9 @@ interface IDebugModel extends ITreeElement {
2736
1864
  getExceptionBreakpointsForSession(sessionId?: string): ReadonlyArray<IExceptionBreakpoint>;
2737
1865
  getInstructionBreakpoints(): ReadonlyArray<IInstructionBreakpoint>;
2738
1866
  getWatchExpressions(): ReadonlyArray<IExpression & IEvaluate>;
2739
- onDidChangeBreakpoints: Event$1<IBreakpointsChangeEvent | undefined>;
2740
- onDidChangeCallStack: Event$1<void>;
2741
- onDidChangeWatchExpressions: Event$1<IExpression | undefined>;
1867
+ onDidChangeBreakpoints: Event<IBreakpointsChangeEvent | undefined>;
1868
+ onDidChangeCallStack: Event<void>;
1869
+ onDidChangeWatchExpressions: Event<IExpression | undefined>;
2742
1870
  fetchCallstack(thread: IThread, levels?: number): Promise<void>;
2743
1871
  }
2744
1872
  /**
@@ -2790,8 +1918,8 @@ interface ICompound {
2790
1918
  presentation?: IConfigPresentation;
2791
1919
  }
2792
1920
  interface IDebugAdapter extends IDisposable {
2793
- readonly onError: Event$1<Error>;
2794
- readonly onExit: Event$1<number | null>;
1921
+ readonly onError: Event<Error>;
1922
+ readonly onExit: Event<number | null>;
2795
1923
  onRequest(callback: (request: DebugProtocol.Request) => void): void;
2796
1924
  onEvent(callback: (event: DebugProtocol.Event) => void): void;
2797
1925
  startSession(): Promise<void>;
@@ -2826,7 +1954,7 @@ interface IDebugAdapterNamedPipeServer {
2826
1954
  readonly path: string;
2827
1955
  }
2828
1956
  interface IDebugAdapterInlineImpl extends IDisposable {
2829
- readonly onDidSendMessage: Event$1<DebugProtocol.Message>;
1957
+ readonly onDidSendMessage: Event<DebugProtocol.Message>;
2830
1958
  handleMessage(message: DebugProtocol.Message): void;
2831
1959
  }
2832
1960
  interface IDebugAdapterImpl {
@@ -2886,7 +2014,7 @@ interface IConfigurationManager {
2886
2014
  /**
2887
2015
  * Allows to register on change of selected debug configuration.
2888
2016
  */
2889
- onDidSelectConfiguration: Event$1<void>;
2017
+ onDidSelectConfiguration: Event<void>;
2890
2018
  hasDebugConfigurationProvider(debugType: string): boolean;
2891
2019
  getDynamicProviders(): Promise<{
2892
2020
  label: string;
@@ -2904,7 +2032,7 @@ declare enum DebuggerString {
2904
2032
  UnverifiedBreakpoints = "unverifiedBreakpoints"
2905
2033
  }
2906
2034
  interface IAdapterManager {
2907
- onDidRegisterDebugger: Event$1<void>;
2035
+ onDidRegisterDebugger: Event<void>;
2908
2036
  hasEnabledDebuggers(): boolean;
2909
2037
  getDebugAdapterDescriptor(session: IDebugSession): Promise<IAdapterDescriptor | undefined>;
2910
2038
  getDebuggerLabel(type: string): string | undefined;
@@ -2919,7 +2047,7 @@ interface IAdapterManager {
2919
2047
  runInTerminal(debugType: string, args: DebugProtocol.RunInTerminalRequestArguments, sessionId: string): Promise<number | undefined>;
2920
2048
  getEnabledDebugger(type: string): (IDebugger & IDebuggerMetadata) | undefined;
2921
2049
  guessDebugger(gettingConfigurations: boolean): Promise<(IDebugger & IDebuggerMetadata) | undefined>;
2922
- get onDidDebuggersExtPointRead(): Event$1<void>;
2050
+ get onDidDebuggersExtPointRead(): Event<void>;
2923
2051
  }
2924
2052
  interface ILaunch {
2925
2053
  /**
@@ -2976,19 +2104,19 @@ interface IDebugService {
2976
2104
  /**
2977
2105
  * Allows to register on debug state changes.
2978
2106
  */
2979
- onDidChangeState: Event$1<State>;
2107
+ onDidChangeState: Event<State>;
2980
2108
  /**
2981
2109
  * Allows to register on new session events.
2982
2110
  */
2983
- onDidNewSession: Event$1<IDebugSession>;
2111
+ onDidNewSession: Event<IDebugSession>;
2984
2112
  /**
2985
2113
  * Allows to register on sessions about to be created (not yet fully initialised)
2986
2114
  */
2987
- onWillNewSession: Event$1<IDebugSession>;
2115
+ onWillNewSession: Event<IDebugSession>;
2988
2116
  /**
2989
2117
  * Allows to register on end session events.
2990
2118
  */
2991
- onDidEndSession: Event$1<IDebugSession>;
2119
+ onDidEndSession: Event<IDebugSession>;
2992
2120
  /**
2993
2121
  * Gets the configuration manager.
2994
2122
  */
@@ -3143,7 +2271,7 @@ interface ILanguageStatus {
3143
2271
  declare const ILanguageStatusService: ServiceIdentifier<ILanguageStatusService>;
3144
2272
  interface ILanguageStatusService {
3145
2273
  _serviceBrand: undefined;
3146
- onDidChange: Event$1<void>;
2274
+ onDidChange: Event<void>;
3147
2275
  addStatus(status: ILanguageStatus): IDisposable;
3148
2276
  getLanguageStatus(model: ITextModel): ILanguageStatus[];
3149
2277
  }
@@ -3179,7 +2307,7 @@ interface IOutputService {
3179
2307
  /**
3180
2308
  * Allows to register on active output channel change.
3181
2309
  */
3182
- onActiveOutputChannel: Event$1<string>;
2310
+ onActiveOutputChannel: Event<string>;
3183
2311
  }
3184
2312
  declare enum OutputChannelUpdateMode {
3185
2313
  Append = 1,
@@ -3230,31 +2358,6 @@ interface IOutputChannelDescriptor {
3230
2358
  extensionId?: string;
3231
2359
  }
3232
2360
 
3233
- declare const IWorkbenchEnvironmentService: ServiceIdentifier<IWorkbenchEnvironmentService>;
3234
- /**
3235
- * A workbench specific environment service that is only present in workbench
3236
- * layer.
3237
- */
3238
- interface IWorkbenchEnvironmentService extends IEnvironmentService {
3239
- readonly logFile: URI;
3240
- readonly windowLogsPath: URI;
3241
- readonly extHostLogsPath: URI;
3242
- readonly extHostTelemetryLogFile: URI;
3243
- readonly extensionEnabledProposedApi?: string[];
3244
- readonly remoteAuthority?: string;
3245
- readonly skipReleaseNotes: boolean;
3246
- readonly skipWelcome: boolean;
3247
- readonly disableWorkspaceTrust: boolean;
3248
- readonly webviewExternalEndpoint: string;
3249
- readonly debugRenderer: boolean;
3250
- readonly logExtensionHostCommunication?: boolean;
3251
- readonly enableSmokeTestDriver?: boolean;
3252
- readonly profDurationMarkers?: string[];
3253
- readonly filesToOpenOrCreate?: IPath$1[] | undefined;
3254
- readonly filesToDiff?: IPath$1[] | undefined;
3255
- readonly filesToMerge?: IPath$1[] | undefined;
3256
- }
3257
-
3258
2361
  interface ParsedPath {
3259
2362
  root: string;
3260
2363
  dir: string;
@@ -3339,100 +2442,6 @@ interface IPathService {
3339
2442
  readonly resolvedUserHome: URI | undefined;
3340
2443
  }
3341
2444
 
3342
- type OpenInternalOptions = {
3343
- /**
3344
- * Signals that the intent is to open an editor to the side
3345
- * of the currently active editor.
3346
- */
3347
- readonly openToSide?: boolean;
3348
- /**
3349
- * Extra editor options to apply in case an editor is used to open.
3350
- */
3351
- readonly editorOptions?: IEditorOptions;
3352
- /**
3353
- * Signals that the editor to open was triggered through a user
3354
- * action, such as keyboard or mouse usage.
3355
- */
3356
- readonly fromUserGesture?: boolean;
3357
- /**
3358
- * Allow command links to be handled.
3359
- *
3360
- * If this is an array, then only the commands included in the array can be run.
3361
- */
3362
- readonly allowCommands?: boolean | readonly string[];
3363
- };
3364
- type OpenExternalOptions = {
3365
- readonly openExternal?: boolean;
3366
- readonly allowTunneling?: boolean;
3367
- readonly allowContributedOpeners?: boolean | string;
3368
- readonly fromWorkspace?: boolean;
3369
- };
3370
- type OpenOptions = OpenInternalOptions & OpenExternalOptions;
3371
- type ResolveExternalUriOptions = {
3372
- readonly allowTunneling?: boolean;
3373
- };
3374
- interface IResolvedExternalUri extends IDisposable {
3375
- resolved: URI;
3376
- }
3377
- interface IOpener {
3378
- open(resource: URI | string, options?: OpenInternalOptions | OpenExternalOptions): Promise<boolean>;
3379
- }
3380
- interface IExternalOpener {
3381
- openExternal(href: string, ctx: {
3382
- sourceUri: URI;
3383
- preferredOpenerId?: string;
3384
- }, token: CancellationToken): Promise<boolean>;
3385
- dispose?(): void;
3386
- }
3387
- interface IValidator {
3388
- shouldOpen(resource: URI | string, openOptions?: OpenOptions): Promise<boolean>;
3389
- }
3390
- interface IExternalUriResolver {
3391
- resolveExternalUri(resource: URI, options?: OpenOptions): Promise<{
3392
- resolved: URI;
3393
- dispose(): void;
3394
- } | undefined>;
3395
- }
3396
-
3397
- declare const IOpenerService: ServiceIdentifier<IOpenerService>;
3398
- interface IOpenerService {
3399
- readonly _serviceBrand: undefined;
3400
- /**
3401
- * Register a participant that can handle the open() call.
3402
- */
3403
- registerOpener(opener: IOpener): IDisposable;
3404
- /**
3405
- * Register a participant that can validate if the URI resource be opened.
3406
- * Validators are run before openers.
3407
- */
3408
- registerValidator(validator: IValidator): IDisposable;
3409
- /**
3410
- * Register a participant that can resolve an external URI resource to be opened.
3411
- */
3412
- registerExternalUriResolver(resolver: IExternalUriResolver): IDisposable;
3413
- /**
3414
- * Sets the handler for opening externally. If not provided,
3415
- * a default handler will be used.
3416
- */
3417
- setDefaultExternalOpener(opener: IExternalOpener): void;
3418
- /**
3419
- * Registers a new opener external resources openers.
3420
- */
3421
- registerExternalOpener(opener: IExternalOpener): IDisposable;
3422
- /**
3423
- * Opens a resource, like a webaddress, a document uri, or executes command.
3424
- *
3425
- * @param resource A resource
3426
- * @return A promise that resolves when the opening is done.
3427
- */
3428
- open(resource: URI | string, options?: OpenInternalOptions | OpenExternalOptions): Promise<boolean>;
3429
- /**
3430
- * Resolve a resource to its external form.
3431
- * @throws whenever resolvers couldn't resolve this resource externally.
3432
- */
3433
- resolveExternalUri(resource: URI, options?: ResolveExternalUriOptions): Promise<IResolvedExternalUri>;
3434
- }
3435
-
3436
2445
  declare const IHostService: ServiceIdentifier<IHostService>;
3437
2446
  /**
3438
2447
  * A set of methods supported in both web and native environments.
@@ -3445,7 +2454,7 @@ interface IHostService {
3445
2454
  /**
3446
2455
  * Emitted when the window focus changes.
3447
2456
  */
3448
- readonly onDidChangeFocus: Event$1<boolean>;
2457
+ readonly onDidChangeFocus: Event<boolean>;
3449
2458
  /**
3450
2459
  * Find out if the window has focus or not.
3451
2460
  */
@@ -3533,50 +2542,19 @@ interface IUnicodeHighlightsResult {
3533
2542
  ambiguousCharacterCount: number;
3534
2543
  }
3535
2544
 
3536
- interface IKeyboardEvent {
3537
- readonly _standardKeyboardEventBrand: true;
3538
- readonly browserEvent: KeyboardEvent;
3539
- readonly target: HTMLElement;
3540
- readonly ctrlKey: boolean;
3541
- readonly shiftKey: boolean;
3542
- readonly altKey: boolean;
3543
- readonly metaKey: boolean;
3544
- readonly altGraphKey: boolean;
3545
- readonly keyCode: KeyCode;
3546
- readonly code: string;
3547
- /**
3548
- * @internal
3549
- */
3550
- toKeyCodeChord(): KeyCodeChord;
3551
- equals(keybinding: number): boolean;
3552
- preventDefault(): void;
3553
- stopPropagation(): void;
3554
- }
3555
-
3556
- interface IMouseEvent {
3557
- readonly browserEvent: MouseEvent;
3558
- readonly leftButton: boolean;
3559
- readonly middleButton: boolean;
3560
- readonly rightButton: boolean;
3561
- readonly buttons: number;
3562
- readonly target: HTMLElement;
3563
- readonly detail: number;
3564
- readonly posx: number;
3565
- readonly posy: number;
3566
- readonly ctrlKey: boolean;
3567
- readonly shiftKey: boolean;
3568
- readonly altKey: boolean;
3569
- readonly metaKey: boolean;
3570
- readonly timestamp: number;
3571
- preventDefault(): void;
3572
- stopPropagation(): void;
3573
- }
3574
-
3575
2545
  declare class ResourceEdit {
3576
2546
  readonly metadata?: WorkspaceEditMetadata | undefined;
3577
2547
  protected constructor(metadata?: WorkspaceEditMetadata | undefined);
3578
2548
  static convert(edit: WorkspaceEdit): ResourceEdit[];
3579
2549
  }
2550
+ declare class ResourceFileEdit extends ResourceEdit implements IWorkspaceFileEdit {
2551
+ readonly oldResource: URI | undefined;
2552
+ readonly newResource: URI | undefined;
2553
+ readonly options: WorkspaceFileEditOptions;
2554
+ static is(candidate: any): candidate is IWorkspaceFileEdit;
2555
+ static lift(edit: IWorkspaceFileEdit): ResourceFileEdit;
2556
+ constructor(oldResource: URI | undefined, newResource: URI | undefined, options?: WorkspaceFileEditOptions, metadata?: WorkspaceEditMetadata);
2557
+ }
3580
2558
  interface IBulkEditOptions {
3581
2559
  editor?: ICodeEditor;
3582
2560
  progress?: IProgress<IProgressStep>;
@@ -3637,1330 +2615,17 @@ interface IClipboardService {
3637
2615
  hasResources(): Promise<boolean>;
3638
2616
  }
3639
2617
 
3640
- interface IDimension {
3641
- readonly width: number;
3642
- readonly height: number;
3643
- }
3644
- declare class Dimension implements IDimension {
3645
- readonly width: number;
3646
- readonly height: number;
3647
- static readonly None: Dimension;
3648
- constructor(width: number, height: number);
3649
- with(width?: number, height?: number): Dimension;
3650
- static is(obj: unknown): obj is IDimension;
3651
- static lift(obj: IDimension): Dimension;
3652
- static equals(a: Dimension | undefined, b: Dimension | undefined): boolean;
3653
- }
3654
- interface IDomPosition {
3655
- readonly left: number;
3656
- readonly top: number;
3657
- }
3658
-
3659
- interface ILayoutOffsetInfo {
3660
- /**
3661
- * Generic top offset
3662
- */
3663
- readonly top: number;
3664
- /**
3665
- * Quick pick specific top offset.
3666
- */
3667
- readonly quickPickTop: number;
3668
- }
3669
-
3670
- declare const ILayoutService: ServiceIdentifier<ILayoutService>;
3671
- interface ILayoutService {
3672
- readonly _serviceBrand: undefined;
3673
- /**
3674
- * The dimensions of the container.
3675
- */
3676
- readonly dimension: IDimension;
3677
- /**
3678
- * Does the application have a single container?
3679
- */
3680
- readonly hasContainer: boolean;
3681
- /**
3682
- * Container of the application.
3683
- *
3684
- * **NOTE**: In the standalone editor case, multiple editors can be created on a page.
3685
- * Therefore, in the standalone editor case, there are multiple containers, not just
3686
- * a single one. If you ship code that needs a "container" for the standalone editor,
3687
- * please use `ICodeEditorService` to get the current focused code editor and use its
3688
- * container if necessary. You can also instantiate `EditorScopedLayoutService`
3689
- * which implements `ILayoutService` but is not a part of the service collection because
3690
- * it is code editor instance specific.
3691
- *
3692
- */
3693
- readonly container: HTMLElement;
3694
- /**
3695
- * An offset to use for positioning elements inside the container.
3696
- */
3697
- readonly offset: ILayoutOffsetInfo;
3698
- /**
3699
- * An event that is emitted when the container is layed out. The
3700
- * event carries the dimensions of the container as part of it.
3701
- */
3702
- readonly onDidLayout: Event$1<IDimension>;
3703
- /**
3704
- * Focus the primary component of the container.
3705
- */
3706
- focus(): void;
3707
- }
3708
-
3709
- type MementoObject = {
3710
- [key: string]: any;
3711
- };
3712
-
3713
- declare class Component extends Themable {
3714
- private readonly id;
3715
- private readonly memento;
3716
- constructor(id: string, themeService: IThemeService, storageService: IStorageService);
3717
- getId(): string;
3718
- protected getMemento(scope: StorageScope, target: StorageTarget): MementoObject;
3719
- protected saveState(): void;
3720
- }
3721
-
3722
- declare const enum LayoutPriority {
3723
- Normal = 0,
3724
- Low = 1,
3725
- High = 2
3726
- }
3727
- /**
3728
- * The interface to implement for views within a {@link SplitView}.
3729
- *
3730
- * An optional {@link TLayoutContext layout context type} may be used in order to
3731
- * pass along layout contextual data from the {@link SplitView.layout} method down
3732
- * to each view's {@link IView.layout} calls.
3733
- */
3734
- interface IView$2<TLayoutContext = undefined> {
3735
- /**
3736
- * The DOM element for this view.
3737
- */
3738
- readonly element: HTMLElement;
3739
- /**
3740
- * A minimum size for this view.
3741
- *
3742
- * @remarks If none, set it to `0`.
3743
- */
3744
- readonly minimumSize: number;
3745
- /**
3746
- * A maximum size for this view.
3747
- *
3748
- * @remarks If none, set it to `Number.POSITIVE_INFINITY`.
3749
- */
3750
- readonly maximumSize: number;
3751
- /**
3752
- * The priority of the view when the {@link SplitView.resize layout} algorithm
3753
- * runs. Views with higher priority will be resized first.
3754
- *
3755
- * @remarks Only used when `proportionalLayout` is false.
3756
- */
3757
- readonly priority?: LayoutPriority;
3758
- /**
3759
- * If the {@link SplitView} supports {@link ISplitViewOptions.proportionalLayout proportional layout},
3760
- * this property allows for finer control over the proportional layout algorithm, per view.
3761
- *
3762
- * @defaultValue `true`
3763
- */
3764
- readonly proportionalLayout?: boolean;
3765
- /**
3766
- * Whether the view will snap whenever the user reaches its minimum size or
3767
- * attempts to grow it beyond the minimum size.
3768
- *
3769
- * @defaultValue `false`
3770
- */
3771
- readonly snap?: boolean;
3772
- /**
3773
- * View instances are supposed to fire the {@link IView.onDidChange} event whenever
3774
- * any of the constraint properties have changed:
3775
- *
3776
- * - {@link IView.minimumSize}
3777
- * - {@link IView.maximumSize}
3778
- * - {@link IView.priority}
3779
- * - {@link IView.snap}
3780
- *
3781
- * The SplitView will relayout whenever that happens. The event can optionally emit
3782
- * the view's preferred size for that relayout.
3783
- */
3784
- readonly onDidChange: Event$1<number | undefined>;
3785
- /**
3786
- * This will be called by the {@link SplitView} during layout. A view meant to
3787
- * pass along the layout information down to its descendants.
3788
- *
3789
- * @param size The size of this view, in pixels.
3790
- * @param offset The offset of this view, relative to the start of the {@link SplitView}.
3791
- * @param context The optional {@link IView layout context} passed to {@link SplitView.layout}.
3792
- */
3793
- layout(size: number, offset: number, context: TLayoutContext | undefined): void;
3794
- /**
3795
- * This will be called by the {@link SplitView} whenever this view is made
3796
- * visible or hidden.
3797
- *
3798
- * @param visible Whether the view becomes visible.
3799
- */
3800
- setVisible?(visible: boolean): void;
3801
- }
3802
-
3803
- interface IViewSize {
3804
- readonly width: number;
3805
- readonly height: number;
3806
- }
3807
- /**
3808
- * The interface to implement for views within a {@link GridView}.
3809
- */
3810
- interface IView$1 {
3811
- /**
3812
- * The DOM element for this view.
3813
- */
3814
- readonly element: HTMLElement;
3815
- /**
3816
- * A minimum width for this view.
3817
- *
3818
- * @remarks If none, set it to `0`.
3819
- */
3820
- readonly minimumWidth: number;
3821
- /**
3822
- * A minimum width for this view.
3823
- *
3824
- * @remarks If none, set it to `Number.POSITIVE_INFINITY`.
3825
- */
3826
- readonly maximumWidth: number;
3827
- /**
3828
- * A minimum height for this view.
3829
- *
3830
- * @remarks If none, set it to `0`.
3831
- */
3832
- readonly minimumHeight: number;
3833
- /**
3834
- * A minimum height for this view.
3835
- *
3836
- * @remarks If none, set it to `Number.POSITIVE_INFINITY`.
3837
- */
3838
- readonly maximumHeight: number;
3839
- /**
3840
- * The priority of the view when the {@link GridView} layout algorithm
3841
- * runs. Views with higher priority will be resized first.
3842
- *
3843
- * @remarks Only used when `proportionalLayout` is false.
3844
- */
3845
- readonly priority?: LayoutPriority;
3846
- /**
3847
- * If the {@link GridView} supports proportional layout,
3848
- * this property allows for finer control over the proportional layout algorithm, per view.
3849
- *
3850
- * @defaultValue `true`
3851
- */
3852
- readonly proportionalLayout?: boolean;
3853
- /**
3854
- * Whether the view will snap whenever the user reaches its minimum size or
3855
- * attempts to grow it beyond the minimum size.
3856
- *
3857
- * @defaultValue `false`
3858
- */
3859
- readonly snap?: boolean;
3860
- /**
3861
- * View instances are supposed to fire this event whenever any of the constraint
3862
- * properties have changed:
3863
- *
3864
- * - {@link IView.minimumWidth}
3865
- * - {@link IView.maximumWidth}
3866
- * - {@link IView.minimumHeight}
3867
- * - {@link IView.maximumHeight}
3868
- * - {@link IView.priority}
3869
- * - {@link IView.snap}
3870
- *
3871
- * The {@link GridView} will relayout whenever that happens. The event can
3872
- * optionally emit the view's preferred size for that relayout.
3873
- */
3874
- readonly onDidChange: Event$1<IViewSize | undefined>;
3875
- /**
3876
- * This will be called by the {@link GridView} during layout. A view meant to
3877
- * pass along the layout information down to its descendants.
3878
- */
3879
- layout(width: number, height: number, top: number, left: number): void;
3880
- /**
3881
- * This will be called by the {@link GridView} whenever this view is made
3882
- * visible or hidden.
3883
- *
3884
- * @param visible Whether the view becomes visible.
3885
- */
3886
- setVisible?(visible: boolean): void;
3887
- /**
3888
- * This will be called by the {@link GridView} whenever this view is on
3889
- * an edge of the grid and the grid's
3890
- * {@link GridView.boundarySashes boundary sashes} change.
3891
- */
3892
- setBoundarySashes?(sashes: IBoundarySashes): void;
3893
- }
3894
-
3895
- declare const enum Direction {
3896
- Up = 0,
3897
- Down = 1,
3898
- Left = 2,
3899
- Right = 3
3900
- }
3901
- /**
3902
- * The interface to implement for views within a {@link Grid}.
3903
- */
3904
- interface IView extends IView$1 {
3905
- /**
3906
- * The preferred width for when the user double clicks a sash
3907
- * adjacent to this view.
3908
- */
3909
- readonly preferredWidth?: number;
3910
- /**
3911
- * The preferred height for when the user double clicks a sash
3912
- * adjacent to this view.
3913
- */
3914
- readonly preferredHeight?: number;
3915
- }
3916
- interface ISerializableView extends IView {
3917
- toJSON(): object;
3918
- }
3919
-
3920
- interface IPartOptions {
3921
- readonly hasTitle?: boolean;
3922
- readonly borderWidth?: () => number;
3923
- }
3924
- interface ILayoutContentResult {
3925
- readonly titleSize: IDimension;
3926
- readonly contentSize: IDimension;
3927
- }
3928
- /**
3929
- * Parts are layed out in the workbench and have their own layout that
3930
- * arranges an optional title and mandatory content area to show content.
3931
- */
3932
- declare abstract class Part extends Component implements ISerializableView {
3933
- private options;
3934
- protected readonly layoutService: IWorkbenchLayoutService;
3935
- private _dimension;
3936
- get dimension(): Dimension | undefined;
3937
- protected _onDidVisibilityChange: Emitter<boolean>;
3938
- readonly onDidVisibilityChange: Event$1<boolean>;
3939
- private parent;
3940
- private titleArea;
3941
- private contentArea;
3942
- private partLayout;
3943
- constructor(id: string, options: IPartOptions, themeService: IThemeService, storageService: IStorageService, layoutService: IWorkbenchLayoutService);
3944
- protected onThemeChange(theme: IColorTheme): void;
3945
- updateStyles(): void;
3946
- /**
3947
- * Note: Clients should not call this method, the workbench calls this
3948
- * method. Calling it otherwise may result in unexpected behavior.
3949
- *
3950
- * Called to create title and content area of the part.
3951
- */
3952
- create(parent: HTMLElement, options?: object): void;
3953
- /**
3954
- * Returns the overall part container.
3955
- */
3956
- getContainer(): HTMLElement | undefined;
3957
- /**
3958
- * Subclasses override to provide a title area implementation.
3959
- */
3960
- protected createTitleArea(parent: HTMLElement, options?: object): HTMLElement | undefined;
3961
- /**
3962
- * Returns the title area container.
3963
- */
3964
- protected getTitleArea(): HTMLElement | undefined;
3965
- /**
3966
- * Subclasses override to provide a content area implementation.
3967
- */
3968
- protected createContentArea(parent: HTMLElement, options?: object): HTMLElement | undefined;
3969
- /**
3970
- * Returns the content area container.
3971
- */
3972
- protected getContentArea(): HTMLElement | undefined;
3973
- /**
3974
- * Layout title and content area in the given dimension.
3975
- */
3976
- protected layoutContents(width: number, height: number): ILayoutContentResult;
3977
- protected _onDidChange: Emitter<IViewSize | undefined>;
3978
- get onDidChange(): Event$1<IViewSize | undefined>;
3979
- element: HTMLElement;
3980
- abstract minimumWidth: number;
3981
- abstract maximumWidth: number;
3982
- abstract minimumHeight: number;
3983
- abstract maximumHeight: number;
3984
- layout(width: number, height: number, _top: number, _left: number): void;
3985
- setVisible(visible: boolean): void;
3986
- abstract toJSON(): object;
3987
- }
3988
-
3989
- declare const enum Parts {
3990
- TITLEBAR_PART = "workbench.parts.titlebar",
3991
- BANNER_PART = "workbench.parts.banner",
3992
- ACTIVITYBAR_PART = "workbench.parts.activitybar",
3993
- SIDEBAR_PART = "workbench.parts.sidebar",
3994
- PANEL_PART = "workbench.parts.panel",
3995
- AUXILIARYBAR_PART = "workbench.parts.auxiliarybar",
3996
- EDITOR_PART = "workbench.parts.editor",
3997
- STATUSBAR_PART = "workbench.parts.statusbar"
3998
- }
3999
- declare const enum Position {
4000
- LEFT = 0,
4001
- RIGHT = 1,
4002
- BOTTOM = 2
4003
- }
4004
- type PanelAlignment = 'left' | 'center' | 'right' | 'justify';
4005
-
4006
- declare const IWorkbenchLayoutService: ServiceIdentifier<IWorkbenchLayoutService>;
4007
- interface IWorkbenchLayoutService extends ILayoutService {
4008
- readonly _serviceBrand: undefined;
4009
- /**
4010
- * Emits when the zen mode is enabled or disabled.
4011
- */
4012
- readonly onDidChangeZenMode: Event$1<boolean>;
4013
- /**
4014
- * Emits when fullscreen is enabled or disabled.
4015
- */
4016
- readonly onDidChangeFullscreen: Event$1<boolean>;
4017
- /**
4018
- * Emits when the window is maximized or unmaximized.
4019
- */
4020
- readonly onDidChangeWindowMaximized: Event$1<boolean>;
4021
- /**
4022
- * Emits when centered layout is enabled or disabled.
4023
- */
4024
- readonly onDidChangeCenteredLayout: Event$1<boolean>;
4025
- readonly onDidChangePanelPosition: Event$1<string>;
4026
- /**
4027
- * Emit when panel alignment changes.
4028
- */
4029
- readonly onDidChangePanelAlignment: Event$1<PanelAlignment>;
4030
- /**
4031
- * Emit when part visibility changes
4032
- */
4033
- readonly onDidChangePartVisibility: Event$1<void>;
4034
- /**
4035
- * Emit when notifications (toasts or center) visibility changes.
4036
- */
4037
- readonly onDidChangeNotificationsVisibility: Event$1<boolean>;
4038
- /**
4039
- * True if a default layout with default editors was applied at startup
4040
- */
4041
- readonly openedDefaultEditors: boolean;
4042
- /**
4043
- * Run a layout of the workbench.
4044
- */
4045
- layout(): void;
4046
- /**
4047
- * Asks the part service if all parts have been fully restored. For editor part
4048
- * this means that the contents of visible editors have loaded.
4049
- */
4050
- isRestored(): boolean;
4051
- /**
4052
- * A promise for to await the `isRestored()` condition to be `true`.
4053
- */
4054
- readonly whenRestored: Promise<void>;
4055
- /**
4056
- * Returns whether the given part has the keyboard focus or not.
4057
- */
4058
- hasFocus(part: Parts): boolean;
4059
- /**
4060
- * Focuses the part. If the part is not visible this is a noop.
4061
- */
4062
- focusPart(part: Parts): void;
4063
- /**
4064
- * Returns the parts HTML element, if there is one.
4065
- */
4066
- getContainer(part: Parts): HTMLElement | undefined;
4067
- /**
4068
- * Returns if the part is visible.
4069
- */
4070
- isVisible(part: Parts): boolean;
4071
- /**
4072
- * Returns if the part is visible.
4073
- */
4074
- getDimension(part: Parts): Dimension | undefined;
4075
- /**
4076
- * Set part hidden or not
4077
- */
4078
- setPartHidden(hidden: boolean, part: Exclude<Parts, Parts.STATUSBAR_PART | Parts.TITLEBAR_PART>): void;
4079
- /**
4080
- * Maximizes the panel height if the panel is not already maximized.
4081
- * Shrinks the panel to the default starting size if the panel is maximized.
4082
- */
4083
- toggleMaximizedPanel(): void;
4084
- /**
4085
- * Returns true if the window has a border.
4086
- */
4087
- hasWindowBorder(): boolean;
4088
- /**
4089
- * Returns the window border width.
4090
- */
4091
- getWindowBorderWidth(): number;
4092
- /**
4093
- * Returns the window border radius if any.
4094
- */
4095
- getWindowBorderRadius(): string | undefined;
4096
- /**
4097
- * Returns true if the panel is maximized.
4098
- */
4099
- isPanelMaximized(): boolean;
4100
- /**
4101
- * Gets the current side bar position. Note that the sidebar can be hidden too.
4102
- */
4103
- getSideBarPosition(): Position;
4104
- /**
4105
- * Toggles the menu bar visibility.
4106
- */
4107
- toggleMenuBar(): void;
4108
- getPanelPosition(): Position;
4109
- /**
4110
- * Sets the panel position.
4111
- */
4112
- setPanelPosition(position: Position): void;
4113
- /**
4114
- * Gets the panel alignement.
4115
- */
4116
- getPanelAlignment(): PanelAlignment;
4117
- /**
4118
- * Sets the panel alignment.
4119
- */
4120
- setPanelAlignment(alignment: PanelAlignment): void;
4121
- /**
4122
- * Gets the maximum possible size for editor.
4123
- */
4124
- getMaximumEditorDimensions(): Dimension;
4125
- /**
4126
- * Toggles the workbench in and out of zen mode - parts get hidden and window goes fullscreen.
4127
- */
4128
- toggleZenMode(): void;
4129
- /**
4130
- * Returns whether the centered editor layout is active.
4131
- */
4132
- isEditorLayoutCentered(): boolean;
4133
- /**
4134
- * Sets the workbench in and out of centered editor layout.
4135
- */
4136
- centerEditorLayout(active: boolean): void;
4137
- /**
4138
- * Resizes currently focused part on main access
4139
- */
4140
- resizePart(part: Parts, sizeChangeWidth: number, sizeChangeHeight: number): void;
4141
- /**
4142
- * Register a part to participate in the layout.
4143
- */
4144
- registerPart(part: Part): void;
4145
- /**
4146
- * Returns whether the window is maximized.
4147
- */
4148
- isWindowMaximized(): boolean;
4149
- /**
4150
- * Updates the maximized state of the window.
4151
- */
4152
- updateWindowMaximizedState(maximized: boolean): void;
4153
- /**
4154
- * Returns the next visible view part in a given direction
4155
- */
4156
- getVisibleNeighborPart(part: Parts, direction: Direction): Parts | undefined;
4157
- }
4158
-
4159
- interface IAnchor {
4160
- x: number;
4161
- y: number;
4162
- width?: number;
4163
- height?: number;
4164
- }
4165
- declare const enum AnchorAlignment {
4166
- LEFT = 0,
4167
- RIGHT = 1
4168
- }
4169
- declare const enum AnchorPosition {
4170
- BELOW = 0,
4171
- ABOVE = 1
4172
- }
4173
- declare const enum AnchorAxisAlignment {
4174
- VERTICAL = 0,
4175
- HORIZONTAL = 1
4176
- }
4177
- interface IDelegate {
4178
- getAnchor(): HTMLElement | IAnchor;
4179
- render(container: HTMLElement): IDisposable | null;
4180
- focus?(): void;
4181
- layout?(): void;
4182
- anchorAlignment?: AnchorAlignment;
4183
- anchorPosition?: AnchorPosition;
4184
- anchorAxisAlignment?: AnchorAxisAlignment;
4185
- canRelayout?: boolean;
4186
- onDOMEvent?(e: Event, activeElement: HTMLElement): void;
4187
- onHide?(data?: unknown): void;
4188
- }
4189
- interface IContextViewProvider {
4190
- showContextView(delegate: IDelegate, container?: HTMLElement): void;
4191
- hideContextView(): void;
4192
- layout(): void;
4193
- }
4194
-
4195
- declare abstract class Widget extends Disposable {
4196
- protected onclick(domNode: HTMLElement, listener: (e: IMouseEvent) => void): void;
4197
- protected onmousedown(domNode: HTMLElement, listener: (e: IMouseEvent) => void): void;
4198
- protected onmouseover(domNode: HTMLElement, listener: (e: IMouseEvent) => void): void;
4199
- protected onmouseleave(domNode: HTMLElement, listener: (e: IMouseEvent) => void): void;
4200
- protected onkeydown(domNode: HTMLElement, listener: (e: IKeyboardEvent) => void): void;
4201
- protected onkeyup(domNode: HTMLElement, listener: (e: IKeyboardEvent) => void): void;
4202
- protected oninput(domNode: HTMLElement, listener: (e: Event) => void): void;
4203
- protected onblur(domNode: HTMLElement, listener: (e: Event) => void): void;
4204
- protected onfocus(domNode: HTMLElement, listener: (e: Event) => void): void;
4205
- protected onchange(domNode: HTMLElement, listener: (e: Event) => void): void;
4206
- protected ignoreGesture(domNode: HTMLElement): IDisposable;
4207
- }
4208
-
4209
- declare const enum HoverPosition {
4210
- LEFT = 0,
4211
- RIGHT = 1,
4212
- BELOW = 2,
4213
- ABOVE = 3
4214
- }
4215
-
4216
- /**
4217
- * Copied from src\vs\workbench\services\hover\browser\hover.ts
4218
- * @deprecated Use IHoverService
4219
- */
4220
- interface IHoverAction {
4221
- label: string;
4222
- commandId: string;
4223
- iconClass?: string;
4224
- run(target: HTMLElement): void;
4225
- }
4226
- interface IUpdatableHoverOptions {
4227
- actions?: IHoverAction[];
4228
- linkHandler?(url: string): void;
4229
- }
4230
-
4231
- interface IHoverDelegateTarget extends IDisposable {
4232
- readonly targetElements: readonly HTMLElement[];
4233
- x?: number;
4234
- }
4235
- interface IHoverDelegateOptions extends IUpdatableHoverOptions {
4236
- /**
4237
- * The content to display in the primary section of the hover. The type of text determines the
4238
- * default `hideOnHover` behavior.
4239
- */
4240
- content: IMarkdownString | string | HTMLElement;
4241
- /**
4242
- * The target for the hover. This determines the position of the hover and it will only be
4243
- * hidden when the mouse leaves both the hover and the target. A HTMLElement can be used for
4244
- * simple cases and a IHoverDelegateTarget for more complex cases where multiple elements and/or a
4245
- * dispose method is required.
4246
- */
4247
- target: IHoverDelegateTarget | HTMLElement;
4248
- /**
4249
- * Position of the hover. The default is to show above the target. This option will be ignored
4250
- * if there is not enough room to layout the hover in the specified position, unless the
4251
- * forcePosition option is set.
4252
- */
4253
- hoverPosition?: HoverPosition;
4254
- /**
4255
- * Whether to show the hover pointer
4256
- */
4257
- showPointer?: boolean;
4258
- /**
4259
- * Whether to skip the fade in animation, this should be used when hovering from one hover to
4260
- * another in the same group so it looks like the hover is moving from one element to the other.
4261
- */
4262
- skipFadeInAnimation?: boolean;
4263
- /**
4264
- * The container to pass to {@link IContextViewProvider.showContextView} which renders the hover
4265
- * in. This is particularly useful for more natural tab focusing behavior, where the hover is
4266
- * created as the next tab index after the element being hovered and/or to workaround the
4267
- * element's container hiding on `focusout`.
4268
- */
4269
- container?: HTMLElement;
4270
- }
4271
- interface IHoverDelegate {
4272
- showHover(options: IHoverDelegateOptions, focus?: boolean): IHoverWidget | undefined;
4273
- onDidHideHover?: () => void;
4274
- delay: number;
4275
- placement?: 'mouse' | 'element';
4276
- }
4277
- interface IHoverWidget extends IDisposable {
4278
- readonly isDisposed: boolean;
4279
- }
4280
-
4281
- interface IToggleStyles {
4282
- readonly inputActiveOptionBorder: string | undefined;
4283
- readonly inputActiveOptionForeground: string | undefined;
4284
- readonly inputActiveOptionBackground: string | undefined;
4285
- }
4286
-
4287
- interface IBaseActionViewItemOptions {
4288
- draggable?: boolean;
4289
- isMenu?: boolean;
4290
- useEventAsContext?: boolean;
4291
- hoverDelegate?: IHoverDelegate;
4292
- }
4293
- interface IActionViewItemOptions extends IBaseActionViewItemOptions {
4294
- icon?: boolean;
4295
- label?: boolean;
4296
- keybinding?: string | null;
4297
- toggleStyles?: IToggleStyles;
4298
- }
4299
-
4300
- interface IActionViewItem extends IDisposable {
4301
- action: IAction;
4302
- actionRunner: IActionRunner;
4303
- setActionContext(context: unknown): void;
4304
- render(element: HTMLElement): void;
4305
- isEnabled(): boolean;
4306
- focus(fromRight?: boolean): void;
4307
- blur(): void;
4308
- }
4309
- interface IActionViewItemProvider {
4310
- (action: IAction, options: IActionViewItemOptions): IActionViewItem | undefined;
4311
- }
4312
-
4313
- /**
4314
- * Composites are layed out in the sidebar and panel part of the workbench. At a time only one composite
4315
- * can be open in the sidebar, and only one composite can be open in the panel.
4316
- *
4317
- * Each composite has a minimized representation that is good enough to provide some
4318
- * information about the state of the composite data.
4319
- *
4320
- * The workbench will keep a composite alive after it has been created and show/hide it based on
4321
- * user interaction. The lifecycle of a composite goes in the order create(), setVisible(true|false),
4322
- * layout(), focus(), dispose(). During use of the workbench, a composite will often receive a setVisible,
4323
- * layout and focus call, but only one create and dispose call.
4324
- */
4325
- declare abstract class Composite extends Component implements IComposite {
4326
- private readonly _onTitleAreaUpdate;
4327
- readonly onTitleAreaUpdate: Event$1<void>;
4328
- private _onDidFocus;
4329
- get onDidFocus(): Event$1<void>;
4330
- protected fireOnDidFocus(): void;
4331
- private _onDidBlur;
4332
- get onDidBlur(): Event$1<void>;
4333
- private _hasFocus;
4334
- hasFocus(): boolean;
4335
- private registerFocusTrackEvents;
4336
- protected actionRunner: IActionRunner | undefined;
4337
- private _telemetryService;
4338
- protected get telemetryService(): ITelemetryService;
4339
- private visible;
4340
- private parent;
4341
- constructor(id: string, telemetryService: ITelemetryService, themeService: IThemeService, storageService: IStorageService);
4342
- getTitle(): string | undefined;
4343
- /**
4344
- * Note: Clients should not call this method, the workbench calls this
4345
- * method. Calling it otherwise may result in unexpected behavior.
4346
- *
4347
- * Called to create this composite on the provided parent. This method is only
4348
- * called once during the lifetime of the workbench.
4349
- * Note that DOM-dependent calculations should be performed from the setVisible()
4350
- * call. Only then the composite will be part of the DOM.
4351
- */
4352
- create(parent: HTMLElement): void;
4353
- /**
4354
- * Returns the container this composite is being build in.
4355
- */
4356
- getContainer(): HTMLElement | undefined;
4357
- /**
4358
- * Note: Clients should not call this method, the workbench calls this
4359
- * method. Calling it otherwise may result in unexpected behavior.
4360
- *
4361
- * Called to indicate that the composite has become visible or hidden. This method
4362
- * is called more than once during workbench lifecycle depending on the user interaction.
4363
- * The composite will be on-DOM if visible is set to true and off-DOM otherwise.
4364
- *
4365
- * Typically this operation should be fast though because setVisible might be called many times during a session.
4366
- * If there is a long running operation it is fine to have it running in the background asyncly and return before.
4367
- */
4368
- setVisible(visible: boolean): void;
4369
- /**
4370
- * Called when this composite should receive keyboard focus.
4371
- */
4372
- focus(): void;
4373
- /**
4374
- * Layout the contents of this composite using the provided dimensions.
4375
- */
4376
- abstract layout(dimension: Dimension, position?: IDomPosition): void;
4377
- /**
4378
- * Set boundary sashes for this composite. These are used to create
4379
- * draggable corner areas with inner sashes.
4380
- */
4381
- abstract setBoundarySashes(sashes: IBoundarySashes): void;
4382
- /**
4383
- * Update the styles of the contents of this composite.
4384
- */
4385
- updateStyles(): void;
4386
- /**
4387
- *
4388
- * @returns the action runner for this composite
4389
- */
4390
- getMenuIds(): readonly MenuId[];
4391
- /**
4392
- * Returns an array of actions to show in the action bar of the composite.
4393
- */
4394
- getActions(): readonly IAction[];
4395
- /**
4396
- * Returns an array of actions to show in the action bar of the composite
4397
- * in a less prominent way then action from getActions.
4398
- */
4399
- getSecondaryActions(): readonly IAction[];
4400
- /**
4401
- * Returns an array of actions to show in the context menu of the composite
4402
- */
4403
- getContextMenuActions(): readonly IAction[];
4404
- /**
4405
- * For any of the actions returned by this composite, provide an IActionViewItem in
4406
- * cases where the implementor of the composite wants to override the presentation
4407
- * of an action. Returns undefined to indicate that the action is not rendered through
4408
- * an action item.
4409
- */
4410
- getActionViewItem(action: IAction): IActionViewItem | undefined;
4411
- /**
4412
- * Provide a context to be passed to the toolbar.
4413
- */
4414
- getActionsContext(): unknown;
4415
- /**
4416
- * Returns the instance of IActionRunner to use with this composite for the
4417
- * composite tool bar.
4418
- */
4419
- getActionRunner(): IActionRunner;
4420
- /**
4421
- * Method for composite implementors to indicate to the composite container that the title or the actions
4422
- * of the composite have changed. Calling this method will cause the container to ask for title (getTitle())
4423
- * and actions (getActions(), getSecondaryActions()) if the composite is visible or the next time the composite
4424
- * gets visible.
4425
- */
4426
- protected updateTitleArea(): void;
4427
- /**
4428
- * Returns true if this composite is currently visible and false otherwise.
4429
- */
4430
- isVisible(): boolean;
4431
- /**
4432
- * Returns the underlying composite control or `undefined` if it is not accessible.
4433
- */
4434
- getControl(): ICompositeControl | undefined;
4435
- }
4436
- /**
4437
- * A composite descriptor is a lightweight descriptor of a composite in the workbench.
4438
- */
4439
- declare abstract class CompositeDescriptor<T extends Composite> {
4440
- private readonly ctor;
4441
- readonly id: string;
4442
- readonly name: string;
4443
- readonly cssClass?: string | undefined;
4444
- readonly order?: number | undefined;
4445
- readonly requestedIndex?: number | undefined;
4446
- constructor(ctor: IConstructorSignature<T>, id: string, name: string, cssClass?: string | undefined, order?: number | undefined, requestedIndex?: number | undefined);
4447
- instantiate(instantiationService: IInstantiationService): T;
4448
- }
4449
-
4450
- interface IContextMenuEvent {
4451
- readonly shiftKey?: boolean;
4452
- readonly ctrlKey?: boolean;
4453
- readonly altKey?: boolean;
4454
- readonly metaKey?: boolean;
4455
- }
4456
- interface IContextMenuDelegate {
4457
- getAnchor(): HTMLElement | {
4458
- x: number;
4459
- y: number;
4460
- width?: number;
4461
- height?: number;
4462
- };
4463
- getActions(): readonly IAction[];
4464
- getCheckedActionsRepresentation?(action: IAction): 'radio' | 'checkbox';
4465
- getActionViewItem?(action: IAction, options: IActionViewItemOptions): IActionViewItem | undefined;
4466
- getActionsContext?(event?: IContextMenuEvent): unknown;
4467
- getKeyBinding?(action: IAction): ResolvedKeybinding | undefined;
4468
- getMenuClassName?(): string;
4469
- onHide?(didCancel: boolean): void;
4470
- actionRunner?: IActionRunner;
4471
- skipTelemetry?: boolean;
4472
- autoSelectFirstItem?: boolean;
4473
- anchorAlignment?: AnchorAlignment;
4474
- anchorAxisAlignment?: AnchorAxisAlignment;
4475
- domForShadowRoot?: HTMLElement;
4476
- }
4477
-
4478
- declare const IContextViewService: ServiceIdentifier<IContextViewService>;
4479
- interface IContextViewService extends IContextViewProvider {
4480
- readonly _serviceBrand: undefined;
4481
- showContextView(delegate: IContextViewDelegate, container?: HTMLElement, shadowRoot?: boolean): IDisposable;
4482
- hideContextView(data?: any): void;
4483
- getContextViewElement(): HTMLElement;
4484
- layout(): void;
4485
- anchorAlignment?: AnchorAlignment;
4486
- }
4487
- interface IContextViewDelegate {
4488
- canRelayout?: boolean;
4489
- getAnchor(): HTMLElement | {
4490
- x: number;
4491
- y: number;
4492
- width?: number;
4493
- height?: number;
4494
- };
4495
- render(container: HTMLElement): IDisposable;
4496
- onDOMEvent?(e: any, activeElement: HTMLElement): void;
4497
- onHide?(data?: any): void;
4498
- focus?(): void;
4499
- anchorAlignment?: AnchorAlignment;
4500
- anchorAxisAlignment?: AnchorAxisAlignment;
4501
- }
4502
- declare const IContextMenuService: ServiceIdentifier<IContextMenuService>;
4503
- interface IContextMenuService {
4504
- readonly _serviceBrand: undefined;
4505
- readonly onDidShowContextMenu: Event$1<void>;
4506
- readonly onDidHideContextMenu: Event$1<void>;
4507
- showContextMenu(delegate: IContextMenuDelegate | IContextMenuMenuDelegate): void;
4508
- }
4509
- type IContextMenuMenuDelegate = {
4510
- /**
4511
- * The MenuId that should be used to populate the context menu.
4512
- */
4513
- menuId?: MenuId;
4514
- /**
4515
- * Optional options how menu actions are invoked
4516
- */
4517
- menuActionOptions?: IMenuActionOptions;
4518
- /**
4519
- * Optional context key service which drives the given menu
4520
- */
4521
- contextKeyService?: IContextKeyService;
4522
- /**
4523
- * Optional getter for extra actions. They will be prepended to the menu actions.
4524
- */
4525
- getActions?(): IAction[];
4526
- } & Omit<IContextMenuDelegate, 'getActions'>;
4527
-
4528
- interface IPaneOptions {
4529
- minimumBodySize?: number;
4530
- maximumBodySize?: number;
4531
- expanded?: boolean;
4532
- orientation?: Orientation;
4533
- title: string;
4534
- titleDescription?: string;
4535
- }
4536
- interface IPaneStyles {
4537
- readonly dropBackground: string | undefined;
4538
- readonly headerForeground: string | undefined;
4539
- readonly headerBackground: string | undefined;
4540
- readonly headerBorder: string | undefined;
4541
- readonly leftBorder: string | undefined;
4542
- }
4543
- /**
4544
- * A Pane is a structured SplitView view.
4545
- *
4546
- * WARNING: You must call `render()` after you construct it.
4547
- * It can't be done automatically at the end of the ctor
4548
- * because of the order of property initialization in TypeScript.
4549
- * Subclasses wouldn't be able to set own properties
4550
- * before the `render()` call, thus forbidding their use.
4551
- */
4552
- declare abstract class Pane extends Disposable implements IView$2 {
4553
- private static readonly HEADER_SIZE;
4554
- readonly element: HTMLElement;
4555
- private header;
4556
- private body;
4557
- protected _expanded: boolean;
4558
- protected _orientation: Orientation;
4559
- private expandedSize;
4560
- private _headerVisible;
4561
- private _bodyRendered;
4562
- private _minimumBodySize;
4563
- private _maximumBodySize;
4564
- private _ariaHeaderLabel;
4565
- private styles;
4566
- private animationTimer;
4567
- private readonly _onDidChange;
4568
- readonly onDidChange: Event$1<number | undefined>;
4569
- private readonly _onDidChangeExpansionState;
4570
- readonly onDidChangeExpansionState: Event$1<boolean>;
4571
- get ariaHeaderLabel(): string;
4572
- set ariaHeaderLabel(newLabel: string);
4573
- get draggableElement(): HTMLElement;
4574
- get dropTargetElement(): HTMLElement;
4575
- get dropBackground(): string | undefined;
4576
- get minimumBodySize(): number;
4577
- set minimumBodySize(size: number);
4578
- get maximumBodySize(): number;
4579
- set maximumBodySize(size: number);
4580
- private get headerSize();
4581
- get minimumSize(): number;
4582
- get maximumSize(): number;
4583
- orthogonalSize: number;
4584
- constructor(options: IPaneOptions);
4585
- isExpanded(): boolean;
4586
- setExpanded(expanded: boolean): boolean;
4587
- get headerVisible(): boolean;
4588
- set headerVisible(visible: boolean);
4589
- get orientation(): Orientation;
4590
- set orientation(orientation: Orientation);
4591
- render(): void;
4592
- layout(size: number): void;
4593
- style(styles: IPaneStyles): void;
4594
- protected updateHeader(): void;
4595
- protected abstract renderHeader(container: HTMLElement): void;
4596
- protected abstract renderBody(container: HTMLElement): void;
4597
- protected abstract layoutBody(height: number, width: number): void;
4598
- }
4599
- interface IPaneDndController {
4600
- canDrag(pane: Pane): boolean;
4601
- canDrop(pane: Pane, overPane: Pane): boolean;
4602
- }
4603
- interface IPaneViewOptions {
4604
- dnd?: IPaneDndController;
4605
- orientation?: Orientation;
4606
- }
4607
-
4608
- declare class CompositeMenuActions extends Disposable {
4609
- readonly menuId: MenuId;
4610
- private readonly contextMenuId;
4611
- private readonly options;
4612
- private readonly contextKeyService;
4613
- private readonly menuService;
4614
- private readonly menuActions;
4615
- private _onDidChange;
4616
- readonly onDidChange: Event$1<void>;
4617
- constructor(menuId: MenuId, contextMenuId: MenuId | undefined, options: IMenuActionOptions | undefined, contextKeyService: IContextKeyService, menuService: IMenuService);
4618
- getPrimaryActions(): IAction[];
4619
- getSecondaryActions(): IAction[];
4620
- getContextMenuActions(): IAction[];
4621
- }
4622
-
4623
- interface IKeybindingProvider {
4624
- (action: IAction): ResolvedKeybinding | undefined;
4625
- }
4626
- interface IAnchorAlignmentProvider {
4627
- (): AnchorAlignment;
4628
- }
4629
- interface IDropdownMenuActionViewItemOptions extends IBaseActionViewItemOptions {
4630
- readonly actionViewItemProvider?: IActionViewItemProvider;
4631
- readonly keybindingProvider?: IKeybindingProvider;
4632
- readonly actionRunner?: IActionRunner;
4633
- readonly classNames?: string[] | string;
4634
- readonly anchorAlignmentProvider?: IAnchorAlignmentProvider;
4635
- readonly menuAsChild?: boolean;
4636
- }
4637
-
4638
- interface IFilterWidgetOptions {
4639
- readonly text?: string;
4640
- readonly placeholder?: string;
4641
- readonly ariaLabel?: string;
4642
- readonly history?: string[];
4643
- readonly focusContextKey?: string;
4644
- }
4645
- declare class FilterWidget extends Widget {
4646
- private readonly options;
4647
- private readonly instantiationService;
4648
- private readonly contextViewService;
4649
- private readonly keybindingService;
4650
- readonly element: HTMLElement;
4651
- private readonly delayedFilterUpdate;
4652
- private readonly filterInputBox;
4653
- private readonly filterBadge;
4654
- private readonly toolbar;
4655
- private readonly focusContextKey;
4656
- private readonly _onDidChangeFilterText;
4657
- readonly onDidChangeFilterText: Event$1<string>;
4658
- private moreFiltersActionViewItem;
4659
- private isMoreFiltersChecked;
4660
- constructor(options: IFilterWidgetOptions, instantiationService: IInstantiationService, contextViewService: IContextViewService, contextKeyService: IContextKeyService, keybindingService: IKeybindingService);
4661
- focus(): void;
4662
- blur(): void;
4663
- updateBadge(message: string | undefined): void;
4664
- setFilterText(filterText: string): void;
4665
- getFilterText(): string;
4666
- getHistory(): string[];
4667
- layout(width: number): void;
4668
- checkMoreFilters(checked: boolean): void;
4669
- private createInput;
4670
- private createBadge;
4671
- private createToolBar;
4672
- private onDidInputChange;
4673
- private adjustInputBox;
4674
- private handleKeyboardEvent;
4675
- private onInputKeyDown;
4676
- }
4677
-
4678
- interface IViewPaneOptions extends IPaneOptions {
4679
- id: string;
4680
- showActionsAlways?: boolean;
4681
- titleMenuId?: MenuId;
4682
- donotForwardArgs?: boolean;
4683
- }
4684
- declare abstract class ViewPane extends Pane implements IView$3 {
4685
- protected keybindingService: IKeybindingService;
4686
- protected contextMenuService: IContextMenuService;
4687
- protected readonly configurationService: IConfigurationService;
4688
- protected contextKeyService: IContextKeyService;
4689
- protected viewDescriptorService: IViewDescriptorService;
4690
- protected instantiationService: IInstantiationService;
4691
- protected openerService: IOpenerService;
4692
- protected themeService: IThemeService;
4693
- protected telemetryService: ITelemetryService;
4694
- private static readonly AlwaysShowActionsConfig;
4695
- private _onDidFocus;
4696
- readonly onDidFocus: Event$1<void>;
4697
- private _onDidBlur;
4698
- readonly onDidBlur: Event$1<void>;
4699
- private _onDidChangeBodyVisibility;
4700
- readonly onDidChangeBodyVisibility: Event$1<boolean>;
4701
- protected _onDidChangeTitleArea: Emitter<void>;
4702
- readonly onDidChangeTitleArea: Event$1<void>;
4703
- protected _onDidChangeViewWelcomeState: Emitter<void>;
4704
- readonly onDidChangeViewWelcomeState: Event$1<void>;
4705
- private _isVisible;
4706
- readonly id: string;
4707
- private _title;
4708
- get title(): string;
4709
- private _titleDescription;
4710
- get titleDescription(): string | undefined;
4711
- readonly menuActions: CompositeMenuActions;
4712
- private progressBar;
4713
- private progressIndicator;
4714
- private toolbar?;
4715
- private readonly showActionsAlways;
4716
- private headerContainer?;
4717
- private titleContainer?;
4718
- private titleDescriptionContainer?;
4719
- private iconContainer?;
4720
- protected twistiesContainer?: HTMLElement;
4721
- private bodyContainer;
4722
- private viewWelcomeContainer;
4723
- private viewWelcomeDisposable;
4724
- private viewWelcomeController;
4725
- protected readonly scopedContextKeyService: IContextKeyService;
4726
- constructor(options: IViewPaneOptions, keybindingService: IKeybindingService, contextMenuService: IContextMenuService, configurationService: IConfigurationService, contextKeyService: IContextKeyService, viewDescriptorService: IViewDescriptorService, instantiationService: IInstantiationService, openerService: IOpenerService, themeService: IThemeService, telemetryService: ITelemetryService);
4727
- get headerVisible(): boolean;
4728
- set headerVisible(visible: boolean);
4729
- setVisible(visible: boolean): void;
4730
- isVisible(): boolean;
4731
- isBodyVisible(): boolean;
4732
- setExpanded(expanded: boolean): boolean;
4733
- render(): void;
4734
- protected renderHeader(container: HTMLElement): void;
4735
- protected getTwistyIcon(expanded: boolean): ThemeIcon;
4736
- style(styles: IPaneStyles): void;
4737
- private getIcon;
4738
- protected renderHeaderTitle(container: HTMLElement, title: string): void;
4739
- protected updateTitle(title: string): void;
4740
- private setTitleDescription;
4741
- protected updateTitleDescription(description?: string | undefined): void;
4742
- private calculateTitle;
4743
- private scrollableElement;
4744
- protected renderBody(container: HTMLElement): void;
4745
- protected layoutBody(height: number, width: number): void;
4746
- onDidScrollRoot(): void;
4747
- getProgressIndicator(): IProgressIndicator;
4748
- protected getProgressLocation(): string;
4749
- protected getBackgroundColor(): string;
4750
- focus(): void;
4751
- private setActions;
4752
- private updateActionsVisibility;
4753
- protected updateActions(): void;
4754
- getActionViewItem(action: IAction, options?: IDropdownMenuActionViewItemOptions): IActionViewItem | undefined;
4755
- getActionsContext(): unknown;
4756
- getActionRunner(): IActionRunner | undefined;
4757
- getOptimalWidth(): number;
4758
- saveState(): void;
4759
- private updateViewWelcome;
4760
- shouldShowWelcome(): boolean;
4761
- getFilterWidget(): FilterWidget | undefined;
4762
- shouldShowFilterInHeader(): boolean;
4763
- }
4764
-
4765
- interface IViewletViewOptions extends IViewPaneOptions {
4766
- readonly fromExtensionId?: ExtensionIdentifier;
4767
- }
4768
-
4769
- interface IViewPaneContainerOptions extends IPaneViewOptions {
4770
- mergeViewWithContainerWhenSingleView: boolean;
4771
- }
4772
- declare class ViewPaneContainer extends Component implements IViewPaneContainer {
4773
- private options;
4774
- protected instantiationService: IInstantiationService;
4775
- protected configurationService: IConfigurationService;
4776
- protected layoutService: IWorkbenchLayoutService;
4777
- protected contextMenuService: IContextMenuService;
4778
- protected telemetryService: ITelemetryService;
4779
- protected extensionService: IExtensionService;
4780
- protected storageService: IStorageService;
4781
- protected contextService: IWorkspaceContextService;
4782
- protected viewDescriptorService: IViewDescriptorService;
4783
- readonly viewContainer: ViewContainer;
4784
- private lastFocusedPane;
4785
- private lastMergedCollapsedPane;
4786
- private paneItems;
4787
- private paneview?;
4788
- private visible;
4789
- private areExtensionsReady;
4790
- private didLayout;
4791
- private dimension;
4792
- private _boundarySashes;
4793
- private readonly visibleViewsCountFromCache;
4794
- private readonly visibleViewsStorageId;
4795
- protected readonly viewContainerModel: IViewContainerModel;
4796
- private viewDisposables;
4797
- private readonly _onTitleAreaUpdate;
4798
- readonly onTitleAreaUpdate: Event$1<void>;
4799
- private readonly _onDidChangeVisibility;
4800
- readonly onDidChangeVisibility: Event$1<boolean>;
4801
- private readonly _onDidAddViews;
4802
- readonly onDidAddViews: Event$1<IView$3[]>;
4803
- private readonly _onDidRemoveViews;
4804
- readonly onDidRemoveViews: Event$1<IView$3[]>;
4805
- private readonly _onDidChangeViewVisibility;
4806
- readonly onDidChangeViewVisibility: Event$1<IView$3>;
4807
- private readonly _onDidFocusView;
4808
- readonly onDidFocusView: Event$1<IView$3>;
4809
- private readonly _onDidBlurView;
4810
- readonly onDidBlurView: Event$1<IView$3>;
4811
- get onDidSashChange(): Event$1<number>;
4812
- get panes(): ViewPane[];
4813
- get views(): IView$3[];
4814
- get length(): number;
4815
- private _menuActions?;
4816
- get menuActions(): CompositeMenuActions | undefined;
4817
- constructor(id: string, options: IViewPaneContainerOptions, instantiationService: IInstantiationService, configurationService: IConfigurationService, layoutService: IWorkbenchLayoutService, contextMenuService: IContextMenuService, telemetryService: ITelemetryService, extensionService: IExtensionService, themeService: IThemeService, storageService: IStorageService, contextService: IWorkspaceContextService, viewDescriptorService: IViewDescriptorService);
4818
- create(parent: HTMLElement): void;
4819
- getTitle(): string;
4820
- private showContextMenu;
4821
- getActionsContext(): unknown;
4822
- getActionViewItem(action: IAction): IActionViewItem | undefined;
4823
- focus(): void;
4824
- private get orientation();
4825
- layout(dimension: Dimension): void;
4826
- setBoundarySashes(sashes: IBoundarySashes): void;
4827
- getOptimalWidth(): number;
4828
- addPanes(panes: {
4829
- pane: ViewPane;
4830
- size: number;
4831
- index?: number;
4832
- }[]): void;
4833
- setVisible(visible: boolean): void;
4834
- isVisible(): boolean;
4835
- protected updateTitleArea(): void;
4836
- protected createView(viewDescriptor: IViewDescriptor, options: IViewletViewOptions): ViewPane;
4837
- getView(id: string): ViewPane | undefined;
4838
- private saveViewSizes;
4839
- private restoreViewSizes;
4840
- private computeInitialSizes;
4841
- protected saveState(): void;
4842
- private onContextMenu;
4843
- openView(id: string, focus?: boolean): IView$3 | undefined;
4844
- protected onDidAddViewDescriptors(added: IAddedViewDescriptorRef[]): ViewPane[];
4845
- private onDidRemoveViewDescriptors;
4846
- toggleViewVisibility(viewId: string): void;
4847
- private addPane;
4848
- removePanes(panes: ViewPane[]): void;
4849
- private removePane;
4850
- movePane(from: ViewPane, to: ViewPane): void;
4851
- resizePane(pane: ViewPane, size: number): void;
4852
- getPaneSize(pane: ViewPane): number;
4853
- private updateViewHeaders;
4854
- isViewMergedWithContainer(): boolean;
4855
- private onDidScrollPane;
4856
- private onDidSashReset;
4857
- dispose(): void;
4858
- }
4859
-
4860
- declare abstract class PaneComposite extends Composite implements IPaneComposite {
4861
- protected storageService: IStorageService;
4862
- protected instantiationService: IInstantiationService;
4863
- protected contextMenuService: IContextMenuService;
4864
- protected extensionService: IExtensionService;
4865
- protected contextService: IWorkspaceContextService;
4866
- private viewPaneContainer?;
4867
- constructor(id: string, telemetryService: ITelemetryService, storageService: IStorageService, instantiationService: IInstantiationService, themeService: IThemeService, contextMenuService: IContextMenuService, extensionService: IExtensionService, contextService: IWorkspaceContextService);
4868
- create(parent: HTMLElement): void;
4869
- setVisible(visible: boolean): void;
4870
- layout(dimension: Dimension): void;
4871
- setBoundarySashes(sashes: IBoundarySashes): void;
4872
- getOptimalWidth(): number;
4873
- openView<T extends IView$3>(id: string, focus?: boolean): T | undefined;
4874
- getViewPaneContainer(): ViewPaneContainer | undefined;
4875
- getActionsContext(): unknown;
4876
- getContextMenuActions(): readonly IAction[];
4877
- getMenuIds(): MenuId[];
4878
- getActions(): readonly IAction[];
4879
- getSecondaryActions(): readonly IAction[];
4880
- getActionViewItem(action: IAction): IActionViewItem | undefined;
4881
- getTitle(): string;
4882
- focus(): void;
4883
- protected abstract createViewPaneContainer(parent: HTMLElement): ViewPaneContainer;
4884
- }
4885
- /**
4886
- * A Pane Composite descriptor is a lightweight descriptor of a Pane Composite in the workbench.
4887
- */
4888
- declare class PaneCompositeDescriptor extends CompositeDescriptor<PaneComposite> {
4889
- readonly iconUrl?: URI | undefined;
4890
- static create<Services extends BrandedService[]>(ctor: {
4891
- new (...services: Services): PaneComposite;
4892
- }, id: string, name: string, cssClass?: string, order?: number, requestedIndex?: number, iconUrl?: URI): PaneCompositeDescriptor;
4893
- private constructor();
4894
- }
4895
-
4896
- interface IBadge {
4897
- getDescription(): string;
4898
- }
4899
-
4900
- declare const IPaneCompositePartService: ServiceIdentifier<IPaneCompositePartService>;
4901
- interface IPaneCompositePartService {
4902
- readonly _serviceBrand: undefined;
4903
- readonly onDidPaneCompositeOpen: Event$1<{
4904
- composite: IPaneComposite;
4905
- viewContainerLocation: ViewContainerLocation;
4906
- }>;
4907
- readonly onDidPaneCompositeClose: Event$1<{
4908
- composite: IPaneComposite;
4909
- viewContainerLocation: ViewContainerLocation;
4910
- }>;
4911
- /**
4912
- * Opens a viewlet with the given identifier and pass keyboard focus to it if specified.
4913
- */
4914
- openPaneComposite(id: string | undefined, viewContainerLocation: ViewContainerLocation, focus?: boolean): Promise<IPaneComposite | undefined>;
4915
- /**
4916
- * Returns the current active viewlet if any.
4917
- */
4918
- getActivePaneComposite(viewContainerLocation: ViewContainerLocation): IPaneComposite | undefined;
4919
- /**
4920
- * Returns the viewlet by id.
4921
- */
4922
- getPaneComposite(id: string, viewContainerLocation: ViewContainerLocation): PaneCompositeDescriptor | undefined;
4923
- /**
4924
- * Returns all enabled viewlets
4925
- */
4926
- getPaneComposites(viewContainerLocation: ViewContainerLocation): PaneCompositeDescriptor[];
4927
- /**
4928
- * Returns id of pinned view containers following the visual order.
4929
- */
4930
- getPinnedPaneCompositeIds(viewContainerLocation: ViewContainerLocation): string[];
4931
- /**
4932
- * Returns id of visible view containers following the visual order.
4933
- */
4934
- getVisiblePaneCompositeIds(viewContainerLocation: ViewContainerLocation): string[];
4935
- /**
4936
- * Returns the progress indicator for the side bar.
4937
- */
4938
- getProgressIndicator(id: string, viewContainerLocation: ViewContainerLocation): IProgressIndicator | undefined;
4939
- /**
4940
- * Hide the active viewlet.
4941
- */
4942
- hideActivePaneComposite(viewContainerLocation: ViewContainerLocation): void;
4943
- /**
4944
- * Return the last active viewlet id.
4945
- */
4946
- getLastActivePaneCompositeId(viewContainerLocation: ViewContainerLocation): string;
4947
- /**
4948
- * Show an activity in a viewlet.
4949
- */
4950
- showActivity(id: string, viewContainerLocation: ViewContainerLocation, badge: IBadge, clazz?: string, priority?: number): IDisposable;
4951
- }
4952
-
4953
2618
  declare const ICodeEditorService: ServiceIdentifier<ICodeEditorService>;
4954
2619
  interface ICodeEditorService {
4955
2620
  readonly _serviceBrand: undefined;
4956
- readonly onWillCreateCodeEditor: Event$1<void>;
4957
- readonly onCodeEditorAdd: Event$1<ICodeEditor>;
4958
- readonly onCodeEditorRemove: Event$1<ICodeEditor>;
4959
- readonly onWillCreateDiffEditor: Event$1<void>;
4960
- readonly onDiffEditorAdd: Event$1<IDiffEditor>;
4961
- readonly onDiffEditorRemove: Event$1<IDiffEditor>;
4962
- readonly onDidChangeTransientModelProperty: Event$1<ITextModel>;
4963
- readonly onDecorationTypeRegistered: Event$1<string>;
2621
+ readonly onWillCreateCodeEditor: Event<void>;
2622
+ readonly onCodeEditorAdd: Event<ICodeEditor>;
2623
+ readonly onCodeEditorRemove: Event<ICodeEditor>;
2624
+ readonly onWillCreateDiffEditor: Event<void>;
2625
+ readonly onDiffEditorAdd: Event<IDiffEditor>;
2626
+ readonly onDiffEditorRemove: Event<IDiffEditor>;
2627
+ readonly onDidChangeTransientModelProperty: Event<ITextModel>;
2628
+ readonly onDecorationTypeRegistered: Event<string>;
4964
2629
  willCreateCodeEditor(): void;
4965
2630
  addCodeEditor(editor: ICodeEditor): void;
4966
2631
  removeCodeEditor(editor: ICodeEditor): void;
@@ -5016,9 +2681,9 @@ declare class BreadcrumbsWidget {
5016
2681
  private readonly _onDidSelectItem;
5017
2682
  private readonly _onDidFocusItem;
5018
2683
  private readonly _onDidChangeFocus;
5019
- readonly onDidSelectItem: Event$1<IBreadcrumbsItemEvent>;
5020
- readonly onDidFocusItem: Event$1<IBreadcrumbsItemEvent>;
5021
- readonly onDidChangeFocus: Event$1<boolean>;
2684
+ readonly onDidSelectItem: Event<IBreadcrumbsItemEvent>;
2685
+ readonly onDidFocusItem: Event<IBreadcrumbsItemEvent>;
2686
+ readonly onDidChangeFocus: Event<boolean>;
5022
2687
  private readonly _items;
5023
2688
  private readonly _nodes;
5024
2689
  private readonly _freeNodes;
@@ -5063,6 +2728,134 @@ interface IBreadcrumbsService {
5063
2728
  getWidget(group: GroupIdentifier): BreadcrumbsWidget | undefined;
5064
2729
  }
5065
2730
 
2731
+ type EditorAssociation = {
2732
+ readonly viewType: string;
2733
+ readonly filenamePattern?: string;
2734
+ };
2735
+ type EditorAssociations = readonly EditorAssociation[];
2736
+ declare enum RegisteredEditorPriority {
2737
+ builtin = "builtin",
2738
+ option = "option",
2739
+ exclusive = "exclusive",
2740
+ default = "default"
2741
+ }
2742
+ /**
2743
+ * If we didn't resolve an editor dictates what to do with the opening state
2744
+ * ABORT = Do not continue with opening the editor
2745
+ * NONE = Continue as if the resolution has been disabled as the service could not resolve one
2746
+ */
2747
+ declare const enum ResolvedStatus {
2748
+ ABORT = 1,
2749
+ NONE = 2
2750
+ }
2751
+ type ResolvedEditor = EditorInputWithOptionsAndGroup | ResolvedStatus;
2752
+ type RegisteredEditorOptions = {
2753
+ /**
2754
+ * If your editor cannot be opened in multiple groups for the same resource
2755
+ */
2756
+ singlePerResource?: boolean | (() => boolean);
2757
+ /**
2758
+ * Whether or not you can support opening the given resource.
2759
+ * If omitted we assume you can open everything
2760
+ */
2761
+ canSupportResource?: (resource: URI) => boolean;
2762
+ };
2763
+ type RegisteredEditorInfo = {
2764
+ id: string;
2765
+ label: string;
2766
+ detail?: string;
2767
+ priority: RegisteredEditorPriority;
2768
+ };
2769
+ type EditorInputFactoryResult = EditorInputWithOptions | Promise<EditorInputWithOptions>;
2770
+ type EditorInputFactoryFunction = (editorInput: IResourceEditorInput | ITextResourceEditorInput, group: IEditorGroup) => EditorInputFactoryResult;
2771
+ type UntitledEditorInputFactoryFunction = (untitledEditorInput: IUntitledTextResourceEditorInput, group: IEditorGroup) => EditorInputFactoryResult;
2772
+ type DiffEditorInputFactoryFunction = (diffEditorInput: IResourceDiffEditorInput, group: IEditorGroup) => EditorInputFactoryResult;
2773
+ type MergeEditorInputFactoryFunction = (mergeEditorInput: IResourceMergeEditorInput, group: IEditorGroup) => EditorInputFactoryResult;
2774
+ type EditorInputFactories = {
2775
+ createEditorInput?: EditorInputFactoryFunction;
2776
+ createUntitledEditorInput?: UntitledEditorInputFactoryFunction;
2777
+ createDiffEditorInput?: DiffEditorInputFactoryFunction;
2778
+ createMergeEditorInput?: MergeEditorInputFactoryFunction;
2779
+ };
2780
+ type EditorInputFactoryObject = AtLeastOne<EditorInputFactories>;
2781
+
2782
+ declare const IEditorResolverService: ServiceIdentifier<IEditorResolverService>;
2783
+ interface IEditorResolverService {
2784
+ readonly _serviceBrand: undefined;
2785
+ /**
2786
+ * Given a resource finds the editor associations that match it from the user's settings
2787
+ * @param resource The resource to match
2788
+ * @return The matching associations
2789
+ */
2790
+ getAssociationsForResource(resource: URI): EditorAssociations;
2791
+ /**
2792
+ * Updates the user's association to include a specific editor ID as a default for the given glob pattern
2793
+ * @param globPattern The glob pattern (must be a string as settings don't support relative glob)
2794
+ * @param editorID The ID of the editor to make a user default
2795
+ */
2796
+ updateUserAssociations(globPattern: string, editorID: string): void;
2797
+ /**
2798
+ * Emitted when an editor is registered or unregistered.
2799
+ */
2800
+ readonly onDidChangeEditorRegistrations: Event<void>;
2801
+ /**
2802
+ * Given a callback, run the callback pausing the registration emitter
2803
+ */
2804
+ bufferChangeEvents(callback: Function): void;
2805
+ /**
2806
+ * Registers a specific editor. Editors with the same glob pattern and ID will be grouped together by the resolver.
2807
+ * This allows for registration of the factories in different locations
2808
+ * @param globPattern The glob pattern for this registration
2809
+ * @param editorInfo Information about the registration
2810
+ * @param options Specific options which apply to this registration
2811
+ * @param editorFactoryObject The editor input factory functions
2812
+ */
2813
+ registerEditor(globPattern: string | IRelativePattern, editorInfo: RegisteredEditorInfo, options: RegisteredEditorOptions, editorFactoryObject: EditorInputFactoryObject): IDisposable;
2814
+ /**
2815
+ * Given an editor resolves it to the suitable ResolvedEitor based on user extensions, settings, and built-in editors
2816
+ * @param editor The editor to resolve
2817
+ * @param preferredGroup The group you want to open the editor in
2818
+ * @returns An EditorInputWithOptionsAndGroup if there is an available editor or a status of how to proceed
2819
+ */
2820
+ resolveEditor(editor: IUntypedEditorInput, preferredGroup: PreferredGroup | undefined): Promise<ResolvedEditor>;
2821
+ /**
2822
+ * Given a resource returns all the editor ids that match that resource. If there is exclusive editor we return an empty array
2823
+ * @param resource The resource
2824
+ * @returns A list of editor ids
2825
+ */
2826
+ getEditors(resource: URI): RegisteredEditorInfo[];
2827
+ /**
2828
+ * A set of all the editors that are registered to the editor resolver.
2829
+ */
2830
+ getEditors(): RegisteredEditorInfo[];
2831
+ }
2832
+
2833
+ declare const ITextEditorService: ServiceIdentifier<ITextEditorService>;
2834
+ interface ITextEditorService {
2835
+ readonly _serviceBrand: undefined;
2836
+ /**
2837
+ * @deprecated this method should not be used, rather consider using
2838
+ * `IEditorResolverService` instead with `DEFAULT_EDITOR_ASSOCIATION.id`.
2839
+ */
2840
+ createTextEditor(input: IUntypedEditorInput): EditorInput;
2841
+ /**
2842
+ * @deprecated this method should not be used, rather consider using
2843
+ * `IEditorResolverService` instead with `DEFAULT_EDITOR_ASSOCIATION.id`.
2844
+ */
2845
+ createTextEditor(input: IUntypedFileEditorInput): IFileEditorInput;
2846
+ /**
2847
+ * A way to create text editor inputs from an untyped editor input. Depending
2848
+ * on the passed in input this will be:
2849
+ * - a `IFileEditorInput` for file resources
2850
+ * - a `UntitledEditorInput` for untitled resources
2851
+ * - a `TextResourceEditorInput` for virtual resources
2852
+ *
2853
+ * @param input the untyped editor input to create a typed input from
2854
+ */
2855
+ resolveTextEditor(input: IUntypedEditorInput): Promise<EditorInput>;
2856
+ resolveTextEditor(input: IUntypedFileEditorInput): Promise<IFileEditorInput>;
2857
+ }
2858
+
5066
2859
  declare const IExtensionResourceLoaderService: ServiceIdentifier<IExtensionResourceLoaderService>;
5067
2860
  /**
5068
2861
  * A service useful for reading resources from within extensions.
@@ -5162,7 +2955,7 @@ interface IAudioCueService {
5162
2955
  playAudioCue(cue: AudioCue, allowManyInParallel?: boolean): Promise<void>;
5163
2956
  playAudioCues(cues: AudioCue[]): Promise<void>;
5164
2957
  isEnabled(cue: AudioCue): boolean;
5165
- onEnabledChanged(cue: AudioCue): Event$1<void>;
2958
+ onEnabledChanged(cue: AudioCue): Event<void>;
5166
2959
  playSound(cue: Sound, allowManyInParallel?: boolean): Promise<void>;
5167
2960
  }
5168
2961
  /**
@@ -5338,11 +3131,153 @@ interface IHistoryService {
5338
3131
  clearRecentlyOpened(): void;
5339
3132
  }
5340
3133
 
3134
+ declare const enum SortOrder {
3135
+ Default = "default",
3136
+ Mixed = "mixed",
3137
+ FilesFirst = "filesFirst",
3138
+ Type = "type",
3139
+ Modified = "modified",
3140
+ FoldersNestsFiles = "foldersNestsFiles"
3141
+ }
3142
+ declare const enum LexicographicOptions {
3143
+ Default = "default",
3144
+ Upper = "upper",
3145
+ Lower = "lower",
3146
+ Unicode = "unicode"
3147
+ }
3148
+ interface ISortOrderConfiguration {
3149
+ sortOrder: SortOrder;
3150
+ lexicographicOptions: LexicographicOptions;
3151
+ }
3152
+
3153
+ declare class ExplorerItem {
3154
+ resource: URI;
3155
+ private readonly fileService;
3156
+ private readonly configService;
3157
+ private readonly filesConfigService;
3158
+ private _parent;
3159
+ private _isDirectory?;
3160
+ private _isSymbolicLink?;
3161
+ private _readonly?;
3162
+ private _locked?;
3163
+ private _name;
3164
+ private _mtime?;
3165
+ private _unknown;
3166
+ _isDirectoryResolved: boolean;
3167
+ error: Error | undefined;
3168
+ private _isExcluded;
3169
+ nestedParent: ExplorerItem | undefined;
3170
+ nestedChildren: ExplorerItem[] | undefined;
3171
+ constructor(resource: URI, fileService: IFileService, configService: IConfigurationService, filesConfigService: IFilesConfigurationService, _parent: ExplorerItem | undefined, _isDirectory?: boolean | undefined, _isSymbolicLink?: boolean | undefined, _readonly?: boolean | undefined, _locked?: boolean | undefined, _name?: string, _mtime?: number | undefined, _unknown?: boolean);
3172
+ get isExcluded(): boolean;
3173
+ set isExcluded(value: boolean);
3174
+ hasChildren(filter: (stat: ExplorerItem) => boolean): boolean;
3175
+ get hasNests(): boolean;
3176
+ get isDirectoryResolved(): boolean;
3177
+ get isSymbolicLink(): boolean;
3178
+ get isDirectory(): boolean;
3179
+ get isReadonly(): boolean;
3180
+ get mtime(): number | undefined;
3181
+ get name(): string;
3182
+ get isUnknown(): boolean;
3183
+ get parent(): ExplorerItem | undefined;
3184
+ get root(): ExplorerItem;
3185
+ get children(): Map<string, ExplorerItem>;
3186
+ private updateName;
3187
+ getId(): string;
3188
+ toString(): string;
3189
+ get isRoot(): boolean;
3190
+ static create(fileService: IFileService, configService: IConfigurationService, filesConfigService: IFilesConfigurationService, raw: IFileStat, parent: ExplorerItem | undefined, resolveTo?: readonly URI[]): ExplorerItem;
3191
+ /**
3192
+ * Merges the stat which was resolved from the disk with the local stat by copying over properties
3193
+ * and children. The merge will only consider resolved stat elements to avoid overwriting data which
3194
+ * exists locally.
3195
+ */
3196
+ static mergeLocalWithDisk(disk: ExplorerItem, local: ExplorerItem): void;
3197
+ /**
3198
+ * Adds a child element to this folder.
3199
+ */
3200
+ addChild(child: ExplorerItem): void;
3201
+ getChild(name: string): ExplorerItem | undefined;
3202
+ fetchChildren(sortOrder: SortOrder): ExplorerItem[] | Promise<ExplorerItem[]>;
3203
+ private _fileNester;
3204
+ private get fileNester();
3205
+ /**
3206
+ * Removes a child element from this folder.
3207
+ */
3208
+ removeChild(child: ExplorerItem): void;
3209
+ forgetChildren(): void;
3210
+ private getPlatformAwareName;
3211
+ /**
3212
+ * Moves this element under a new parent element.
3213
+ */
3214
+ move(newParent: ExplorerItem): void;
3215
+ private updateResource;
3216
+ /**
3217
+ * Tells this stat that it was renamed. This requires changes to all children of this stat (if any)
3218
+ * so that the path property can be updated properly.
3219
+ */
3220
+ rename(renamedStat: {
3221
+ name: string;
3222
+ mtime?: number;
3223
+ }): void;
3224
+ /**
3225
+ * Returns a child stat from this stat that matches with the provided path.
3226
+ * Will return "null" in case the child does not exist.
3227
+ */
3228
+ find(resource: URI): ExplorerItem | null;
3229
+ private findByPath;
3230
+ }
3231
+
3232
+ interface IExplorerService {
3233
+ readonly _serviceBrand: undefined;
3234
+ readonly roots: ExplorerItem[];
3235
+ readonly sortOrderConfiguration: ISortOrderConfiguration;
3236
+ getContext(respectMultiSelection: boolean, ignoreNestedChildren?: boolean): ExplorerItem[];
3237
+ hasViewFocus(): boolean;
3238
+ setEditable(stat: ExplorerItem, data: IEditableData | null): Promise<void>;
3239
+ getEditable(): {
3240
+ stat: ExplorerItem;
3241
+ data: IEditableData;
3242
+ } | undefined;
3243
+ getEditableData(stat: ExplorerItem): IEditableData | undefined;
3244
+ isEditable(stat: ExplorerItem | undefined): boolean;
3245
+ findClosest(resource: URI): ExplorerItem | null;
3246
+ findClosestRoot(resource: URI): ExplorerItem | null;
3247
+ refresh(): Promise<void>;
3248
+ setToCopy(stats: ExplorerItem[], cut: boolean): Promise<void>;
3249
+ isCut(stat: ExplorerItem): boolean;
3250
+ applyBulkEdit(edit: ResourceFileEdit[], options: {
3251
+ undoLabel: string;
3252
+ progressLabel: string;
3253
+ confirmBeforeUndo?: boolean;
3254
+ progressLocation?: ProgressLocation.Explorer | ProgressLocation.Window;
3255
+ }): Promise<void>;
3256
+ /**
3257
+ * Selects and reveal the file element provided by the given resource if its found in the explorer.
3258
+ * Will try to resolve the path in case the explorer is not yet expanded to the file yet.
3259
+ */
3260
+ select(resource: URI, reveal?: boolean | string): Promise<void>;
3261
+ registerView(contextAndRefreshProvider: IExplorerView): void;
3262
+ }
3263
+ declare const IExplorerService: ServiceIdentifier<IExplorerService>;
3264
+ interface IExplorerView {
3265
+ getContext(respectMultiSelection: boolean): ExplorerItem[];
3266
+ refresh(recursive: boolean, item?: ExplorerItem): Promise<void>;
3267
+ selectResource(resource: URI | undefined, reveal?: boolean | string): Promise<void>;
3268
+ setTreeInput(): Promise<void>;
3269
+ itemsCopied(tats: ExplorerItem[], cut: boolean, previousCut: ExplorerItem[] | undefined): void;
3270
+ setEditable(stat: ExplorerItem, isEditing: boolean): Promise<void>;
3271
+ isItemVisible(item: ExplorerItem): boolean;
3272
+ isItemCollapsed(item: ExplorerItem): boolean;
3273
+ hasFocus(): boolean;
3274
+ }
3275
+
5341
3276
  interface ServiceInitializeParticipant {
5342
3277
  (accessor: ServicesAccessor): Promise<void>;
5343
3278
  }
5344
3279
  declare function registerServiceInitializeParticipant(participant: ServiceInitializeParticipant): void;
5345
- declare const onRenderWorkbench: Event$1<ServicesAccessor>;
3280
+ declare const onRenderWorkbench: Event<ServicesAccessor>;
5346
3281
  declare function initialize(overrides: IEditorOverrideServices): Promise<void>;
5347
3282
 
5348
- export { EditorInput, GoFilter, GoScope, GroupIdentifier, IAction, IAudioCueService, IBreadcrumbsService, IBulkEditService, IClipboardService, ICodeEditorService, IColorTheme, ICommandService, IConfigurationChangeEvent, IConfigurationService, IContextKeyService, IDebugService, IEditorOptions, IEditorPane, IEditorService, IEditorWorkerService, IFileService, IHistoryService, IHostService, IInstantiationService, IKeybindingEditingService, ILanguageService, ILanguageStatusService, ILayoutService, ILogService, IMarkdownString, IModelService, IOpenerService, IOutputService, IPaneCompositePartService, IPathService, IPreferencesSearchService, IPreferencesService, IProductService, IQuickInputService, IResourceEditorInput, ISnippetsService, IStorageService, ITelemetryService, IThemeService, IUriIdentityService, IWorkbenchEnvironmentService, IWorkspaceContextService, Severity, StorageScope, StorageTarget, initialize, onRenderWorkbench, registerServiceInitializeParticipant };
3283
+ export { EditorInput, EditorInputWithOptions, GoFilter, GoScope, GroupIdentifier, IAudioCueService, IBreadcrumbsService, IBulkEditService, IClipboardService, ICodeEditorService, IConfigurationService, IDebugService, IEditorGroup, IEditorOptions, IEditorPane, IEditorResolverService, IEditorService, IEditorWorkerService, IExplorerService, IFileService, IHistoryService, IHostService, IKeybindingEditingService, ILanguageService, ILanguageStatusService, ILogService, IMarkdownString, IModelService, IOutputService, IPathService, IPreferencesSearchService, IPreferencesService, IProductService, IQuickInputService, IResourceEditorInput, ISnippetsService, ITextEditorService, IUntypedEditorInput, IUriIdentityService, Severity, initialize, onRenderWorkbench, registerServiceInitializeParticipant };