@codingame/monaco-vscode-api 1.79.7-next.1 → 1.79.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/editorBrowser.d.ts +1 -1
- package/dist/event.d.ts +1 -1
- package/dist/files.d.ts +1 -1
- package/dist/languageFeatures.d.ts +2 -2
- package/dist/monaco.d.ts +3 -5
- package/dist/monaco.js +0 -1
- package/dist/service-override/files.d.ts +15 -60
- package/dist/service-override/files.js +114 -124
- package/dist/service-override/output.js +1 -1
- package/dist/services.d.ts +198 -8
- package/dist/services.js +6 -1
- package/dist/vscode/vs/workbench/common/editor.js +11 -1
- package/dist/vscode/vs/workbench/services/editor/common/editorGroupsService.js +37 -1
- package/dist/vscode/vs/workbench/services/history/common/history.js +13 -1
- package/monaco-editor-treemending.patch +780 -780
- package/package.json +1 -1
- package/dist/typescript.js +0 -27
package/dist/services.d.ts
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
/// <reference path="./debugProtocol.d.ts" />
|
|
2
2
|
|
|
3
|
-
import { E as Event$1, a as IDisposable, C as CancellationToken, D as Disposable,
|
|
3
|
+
import { E as Event$1, a as IDisposable, C as CancellationToken, D as Disposable, c as Emitter } from './event.js';
|
|
4
4
|
import { i as IMarkdownString, l as IEditorModel, p as ITextBufferFactory, c as ITextModel, v as ITextModelCreationOptions, w as IEditor, q as IDiffEditor, t as IResourceEditorInput, u as ITextResourceEditorInput, I as IEditorOptions, x as IResourceEditorInputIdentifier, h as IRange, g as IPosition, P as Position$1, y as IDocumentDiffProviderOptions, z as IDocumentDiff, A as IChange, b as ICodeEditor, B as IBoundarySashes, O as Orientation, C as IDiffEditor$1, D as IDecorationRenderOptions, d as IModelDecorationOptions } from './editorBrowser.js';
|
|
5
|
-
export { F as ITextModelContentProvider, G as ITextModelService, M as MarkdownStringTrustedOptions } from './editorBrowser.js';
|
|
5
|
+
export { m as IDimension, H as ITextEditorOptions, F as ITextModelContentProvider, G as ITextModelService, M as MarkdownStringTrustedOptions } from './editorBrowser.js';
|
|
6
6
|
import { S as ServiceIdentifier, c as IConstructorSignature, I as IInstantiationService, B as BrandedService, a as ServicesAccessor } from './instantiation.js';
|
|
7
7
|
import { d as ILanguageIdCodec, S as SubmenuAction, e as IAction, f as ICommandService, g as IEditorCloseEvent, h as IVisibleEditorPane, E as EditorInput, i as EditorsOrder, j as IEditorIdentifier, k as IEditorGroup, G as GroupIdentifier, l as IEditorPane, m as IUntitledTextResourceEditorInput, n as IResourceDiffEditorInput, o as ITextDiffEditorPane, p as IUntypedEditorInput, q as ICloseEditorOptions, s as IFindEditorOptions, t as IRevertOptions, u as ISaveOptions, v as IGroupModelChangeEvent, w as ColorIdentifier, x as Color, y as LanguageSelector, z as Command, T as TextEdit, A as IInplaceReplaceSupportResult, W as WorkspaceEdit, B as WorkspaceEditMetadata, D as IActionRunner } from './languageFeatures.js';
|
|
8
|
-
export {
|
|
8
|
+
export { a3 as CloseDirection, av as DialogType, U as EditorGroupLayout, a2 as EditorInputWithOptions, M as GroupDirection, R as GroupLayoutArgument, O as GroupLocation, N as GroupOrientation, Q as GroupsArrangement, a0 as GroupsOrder, a9 as IActiveEditorChangeEvent, V as IAddGroupOptions, aB as IBaseDialogOptions, aC as ICheckbox, aD as ICheckboxResult, _ as ICloseAllEditorsOptions, Z as ICloseEditorsFilter, ay as IConfirmDialogArgs, aG as IConfirmation, aH as IConfirmationResult, aF as ICustomDialogMarkdown, aE as ICustomDialogOptions, au as IDialogArgs, ax as IDialogHandler, aw as IDialogResult, H as IDialogService, aa as IEditorControl, K as IEditorGroupsService, a4 as IEditorPartOptions, a5 as IEditorPartOptionsChangeEvent, $ as IEditorReplacement, a1 as IEditorSideGroup, a6 as IEditorWillMoveEvent, a7 as IEditorWillOpenEvent, P as IFindGroupScope, aI as IInput, az as IInputDialogArgs, aK as IInputElement, aJ as IInputResult, a as ILanguageConfigurationService, I as ILanguageFeaturesService, J as IMarkerService, a8 as IMatchEditorOptions, Y as IMergeGroupOptions, ai as INeverShowAgainOptions, aj as INotification, ak as INotificationActions, an as INotificationHandle, al as INotificationProgress, am as INotificationProgressProperties, ag as INotificationProperties, b as INotificationService, aL as IPrompt, aN as IPromptBaseButton, aO as IPromptButton, aP as IPromptCancelButton, ao as IPromptChoice, ap as IPromptChoiceWithMenu, aA as IPromptDialogArgs, aq as IPromptOptions, aM as IPromptResult, aQ as IPromptResultWithCancel, aR as IPromptWithCustomCancel, aS as IPromptWithDefaultCancel, ar as IStatusMessageOptions, ab as ITextFileService, ac as IWorkingCopyFileService, X as MergeGroupMode, ah as NeverShowAgainScope, as as NoOpNotification, at as NoOpProgress, ae as NotificationMessage, af as NotificationPriority, ad as NotificationsFilter } from './languageFeatures.js';
|
|
9
9
|
import { S as Severity } from './severity.js';
|
|
10
|
-
import {
|
|
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';
|
|
11
12
|
import { a as UriComponents, U as URI } from './uri.js';
|
|
12
13
|
import { b as IWorkspaceFolder, I as IAnyWorkspaceIdentifier, c as IWorkspaceContextService } from './workspace.js';
|
|
13
14
|
import { c as IStringDictionary, d as IExtensionInfo, C as ConfigurationScope, E as EditPresentationTypes } from './configurationRegistry.js';
|
|
@@ -15,13 +16,12 @@ import { P as PlatformName, O as OperatingSystem } from './platform.js';
|
|
|
15
16
|
import { I as ILogService } from './log.js';
|
|
16
17
|
export { a as ILoggerService, L as LogLevel } from './log.js';
|
|
17
18
|
import { R as ResolvedKeybinding, K as KeyCode, a as KeyCodeChord, b as IKeybindingService, c as ResolvedKeybindingItem } from './keybinding.js';
|
|
18
|
-
import { I as IconIdentifier, T as ThemeIcon } from './themables.js';
|
|
19
|
-
import { I as IJSONSchema, a as IJSONSchemaMap } from './jsonSchema.js';
|
|
20
19
|
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';
|
|
21
20
|
export { h as IViewsService } from './views.js';
|
|
21
|
+
import { I as IconIdentifier, T as ThemeIcon } from './themables.js';
|
|
22
|
+
import { I as IJSONSchema, a as IJSONSchemaMap } from './jsonSchema.js';
|
|
22
23
|
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';
|
|
23
24
|
import { b as IProgress, c as IProgressStep, I as IComposite, d as ICompositeControl, a as IProgressIndicator } from './composite.js';
|
|
24
|
-
import { a as IContextKeyService, C as ContextKeyExpression } from './contextkey.js';
|
|
25
25
|
import { a as IExtensionService } from './extensionsRegistry.js';
|
|
26
26
|
import { I as IEditorOverrideServices } from './standaloneServices.js';
|
|
27
27
|
export { S as StandaloneServices } from './standaloneServices.js';
|
|
@@ -3407,6 +3407,88 @@ interface ILanguageStatusService {
|
|
|
3407
3407
|
getLanguageStatus(model: ITextModel): ILanguageStatus[];
|
|
3408
3408
|
}
|
|
3409
3409
|
|
|
3410
|
+
declare const IOutputService: ServiceIdentifier<IOutputService>;
|
|
3411
|
+
/**
|
|
3412
|
+
* The output service to manage output from the various processes running.
|
|
3413
|
+
*/
|
|
3414
|
+
interface IOutputService {
|
|
3415
|
+
readonly _serviceBrand: undefined;
|
|
3416
|
+
/**
|
|
3417
|
+
* Given the channel id returns the output channel instance.
|
|
3418
|
+
* Channel should be first registered via OutputChannelRegistry.
|
|
3419
|
+
*/
|
|
3420
|
+
getChannel(id: string): IOutputChannel | undefined;
|
|
3421
|
+
/**
|
|
3422
|
+
* Given the channel id returns the registered output channel descriptor.
|
|
3423
|
+
*/
|
|
3424
|
+
getChannelDescriptor(id: string): IOutputChannelDescriptor | undefined;
|
|
3425
|
+
/**
|
|
3426
|
+
* Returns an array of all known output channels descriptors.
|
|
3427
|
+
*/
|
|
3428
|
+
getChannelDescriptors(): IOutputChannelDescriptor[];
|
|
3429
|
+
/**
|
|
3430
|
+
* Returns the currently active channel.
|
|
3431
|
+
* Only one channel can be active at a given moment.
|
|
3432
|
+
*/
|
|
3433
|
+
getActiveChannel(): IOutputChannel | undefined;
|
|
3434
|
+
/**
|
|
3435
|
+
* Show the channel with the passed id.
|
|
3436
|
+
*/
|
|
3437
|
+
showChannel(id: string, preserveFocus?: boolean): Promise<void>;
|
|
3438
|
+
/**
|
|
3439
|
+
* Allows to register on active output channel change.
|
|
3440
|
+
*/
|
|
3441
|
+
onActiveOutputChannel: Event$1<string>;
|
|
3442
|
+
}
|
|
3443
|
+
declare enum OutputChannelUpdateMode {
|
|
3444
|
+
Append = 1,
|
|
3445
|
+
Replace = 2,
|
|
3446
|
+
Clear = 3
|
|
3447
|
+
}
|
|
3448
|
+
interface IOutputChannel {
|
|
3449
|
+
/**
|
|
3450
|
+
* Identifier of the output channel.
|
|
3451
|
+
*/
|
|
3452
|
+
id: string;
|
|
3453
|
+
/**
|
|
3454
|
+
* Label of the output channel to be displayed to the user.
|
|
3455
|
+
*/
|
|
3456
|
+
label: string;
|
|
3457
|
+
/**
|
|
3458
|
+
* URI of the output channel.
|
|
3459
|
+
*/
|
|
3460
|
+
uri: URI;
|
|
3461
|
+
/**
|
|
3462
|
+
* Appends output to the channel.
|
|
3463
|
+
*/
|
|
3464
|
+
append(output: string): void;
|
|
3465
|
+
/**
|
|
3466
|
+
* Clears all received output for this channel.
|
|
3467
|
+
*/
|
|
3468
|
+
clear(): void;
|
|
3469
|
+
/**
|
|
3470
|
+
* Replaces the content of the channel with given output
|
|
3471
|
+
*/
|
|
3472
|
+
replace(output: string): void;
|
|
3473
|
+
/**
|
|
3474
|
+
* Update the channel.
|
|
3475
|
+
*/
|
|
3476
|
+
update(mode: OutputChannelUpdateMode.Append): void;
|
|
3477
|
+
update(mode: OutputChannelUpdateMode, till: number): void;
|
|
3478
|
+
/**
|
|
3479
|
+
* Disposes the output channel.
|
|
3480
|
+
*/
|
|
3481
|
+
dispose(): void;
|
|
3482
|
+
}
|
|
3483
|
+
interface IOutputChannelDescriptor {
|
|
3484
|
+
id: string;
|
|
3485
|
+
label: string;
|
|
3486
|
+
log: boolean;
|
|
3487
|
+
languageId?: string;
|
|
3488
|
+
file?: URI;
|
|
3489
|
+
extensionId?: string;
|
|
3490
|
+
}
|
|
3491
|
+
|
|
3410
3492
|
declare const IWorkbenchEnvironmentService: ServiceIdentifier<IWorkbenchEnvironmentService>;
|
|
3411
3493
|
/**
|
|
3412
3494
|
* A workbench specific environment service that is only present in workbench
|
|
@@ -5335,6 +5417,114 @@ interface IKeybindingEditingService {
|
|
|
5335
5417
|
resetKeybinding(keybindingItem: ResolvedKeybindingItem): Promise<void>;
|
|
5336
5418
|
}
|
|
5337
5419
|
|
|
5420
|
+
/**
|
|
5421
|
+
* Limit editor navigation to certain kinds.
|
|
5422
|
+
*/
|
|
5423
|
+
declare const enum GoFilter {
|
|
5424
|
+
/**
|
|
5425
|
+
* Navigate between editor navigation history
|
|
5426
|
+
* entries from any kind of navigation source.
|
|
5427
|
+
*/
|
|
5428
|
+
NONE = 0,
|
|
5429
|
+
/**
|
|
5430
|
+
* Only navigate between editor navigation history
|
|
5431
|
+
* entries that were resulting from edits.
|
|
5432
|
+
*/
|
|
5433
|
+
EDITS = 1,
|
|
5434
|
+
/**
|
|
5435
|
+
* Only navigate between editor navigation history
|
|
5436
|
+
* entries that were resulting from navigations, such
|
|
5437
|
+
* as "Go to definition".
|
|
5438
|
+
*/
|
|
5439
|
+
NAVIGATION = 2
|
|
5440
|
+
}
|
|
5441
|
+
/**
|
|
5442
|
+
* Limit editor navigation to certain scopes.
|
|
5443
|
+
*/
|
|
5444
|
+
declare const enum GoScope {
|
|
5445
|
+
/**
|
|
5446
|
+
* Navigate across all editors and editor groups.
|
|
5447
|
+
*/
|
|
5448
|
+
DEFAULT = 0,
|
|
5449
|
+
/**
|
|
5450
|
+
* Navigate only in editors of the active editor group.
|
|
5451
|
+
*/
|
|
5452
|
+
EDITOR_GROUP = 1,
|
|
5453
|
+
/**
|
|
5454
|
+
* Navigate only in the active editor.
|
|
5455
|
+
*/
|
|
5456
|
+
EDITOR = 2
|
|
5457
|
+
}
|
|
5458
|
+
|
|
5459
|
+
declare const IHistoryService: ServiceIdentifier<IHistoryService>;
|
|
5460
|
+
interface IHistoryService {
|
|
5461
|
+
readonly _serviceBrand: undefined;
|
|
5462
|
+
/**
|
|
5463
|
+
* Navigate forwards in editor navigation history.
|
|
5464
|
+
*/
|
|
5465
|
+
goForward(filter?: GoFilter): Promise<void>;
|
|
5466
|
+
/**
|
|
5467
|
+
* Navigate backwards in editor navigation history.
|
|
5468
|
+
*/
|
|
5469
|
+
goBack(filter?: GoFilter): Promise<void>;
|
|
5470
|
+
/**
|
|
5471
|
+
* Navigate between the current editor navigtion history entry
|
|
5472
|
+
* and the previous one that was navigated to. This commands is
|
|
5473
|
+
* like a toggle for `forward` and `back` to jump between 2 points
|
|
5474
|
+
* in editor navigation history.
|
|
5475
|
+
*/
|
|
5476
|
+
goPrevious(filter?: GoFilter): Promise<void>;
|
|
5477
|
+
/**
|
|
5478
|
+
* Navigate to the last entry in editor navigation history.
|
|
5479
|
+
*/
|
|
5480
|
+
goLast(filter?: GoFilter): Promise<void>;
|
|
5481
|
+
/**
|
|
5482
|
+
* Re-opens the last closed editor if any.
|
|
5483
|
+
*/
|
|
5484
|
+
reopenLastClosedEditor(): Promise<void>;
|
|
5485
|
+
/**
|
|
5486
|
+
* Get the entire history of editors that were opened.
|
|
5487
|
+
*/
|
|
5488
|
+
getHistory(): readonly (EditorInput | IResourceEditorInput)[];
|
|
5489
|
+
/**
|
|
5490
|
+
* Removes an entry from history.
|
|
5491
|
+
*/
|
|
5492
|
+
removeFromHistory(input: EditorInput | IResourceEditorInput): void;
|
|
5493
|
+
/**
|
|
5494
|
+
* Looking at the editor history, returns the workspace root of the last file that was
|
|
5495
|
+
* inside the workspace and part of the editor history.
|
|
5496
|
+
*
|
|
5497
|
+
* @param schemeFilter filter to restrict roots by scheme.
|
|
5498
|
+
*/
|
|
5499
|
+
getLastActiveWorkspaceRoot(schemeFilter?: string): URI | undefined;
|
|
5500
|
+
/**
|
|
5501
|
+
* Looking at the editor history, returns the resource of the last file that was opened.
|
|
5502
|
+
*
|
|
5503
|
+
* @param schemeFilter filter to restrict roots by scheme.
|
|
5504
|
+
*/
|
|
5505
|
+
getLastActiveFile(schemeFilter: string): URI | undefined;
|
|
5506
|
+
/**
|
|
5507
|
+
* Opens the next used editor if any.
|
|
5508
|
+
*
|
|
5509
|
+
* @param group optional indicator to scope to a specific group.
|
|
5510
|
+
*/
|
|
5511
|
+
openNextRecentlyUsedEditor(group?: GroupIdentifier): Promise<void>;
|
|
5512
|
+
/**
|
|
5513
|
+
* Opens the previously used editor if any.
|
|
5514
|
+
*
|
|
5515
|
+
* @param group optional indicator to scope to a specific group.
|
|
5516
|
+
*/
|
|
5517
|
+
openPreviouslyUsedEditor(group?: GroupIdentifier): Promise<void>;
|
|
5518
|
+
/**
|
|
5519
|
+
* Clears all history.
|
|
5520
|
+
*/
|
|
5521
|
+
clear(): void;
|
|
5522
|
+
/**
|
|
5523
|
+
* Clear list of recently opened editors.
|
|
5524
|
+
*/
|
|
5525
|
+
clearRecentlyOpened(): void;
|
|
5526
|
+
}
|
|
5527
|
+
|
|
5338
5528
|
interface ServiceInitializeParticipant {
|
|
5339
5529
|
(accessor: ServicesAccessor): Promise<void>;
|
|
5340
5530
|
}
|
|
@@ -5342,4 +5532,4 @@ declare function registerServiceInitializeParticipant(participant: ServiceInitia
|
|
|
5342
5532
|
declare const onRenderWorkbench: Event$1<ServicesAccessor>;
|
|
5343
5533
|
declare function initialize(overrides: IEditorOverrideServices): Promise<void>;
|
|
5344
5534
|
|
|
5345
|
-
export { IAction, IAudioCueService, IBulkEditService, IClipboardService, ICodeEditorService, IColorTheme, ICommandService, IConfigurationChangeEvent, IConfigurationService, IDebugService, IEditorService, IEditorWorkerService, IFileService, IHostService, IInstantiationService, IKeybindingEditingService, ILanguageService, ILanguageStatusService, ILayoutService, ILogService, IMarkdownString, IModelService, IOpenerService, IPaneCompositePartService, IPathService, IPreferencesSearchService, IPreferencesService, IProductService, IQuickInputService, ISnippetsService, IStorageService, ITelemetryService, IThemeService, IUriIdentityService, IWorkbenchEnvironmentService, IWorkspaceContextService, Severity, StorageScope, StorageTarget, initialize, onRenderWorkbench, registerServiceInitializeParticipant };
|
|
5535
|
+
export { EditorInput, EditorsOrder, GoFilter, GoScope, GroupIdentifier, IAction, IAudioCueService, IBulkEditService, IClipboardService, ICloseEditorOptions, ICodeEditorService, IColorTheme, ICommandService, IConfigurationChangeEvent, IConfigurationService, IContextKeyService, IDebugService, IEditorCloseEvent, IEditorGroup, IEditorOptions, IEditorPane, IEditorService, IEditorWorkerService, IFileService, IFindEditorOptions, IGroupModelChangeEvent, IHistoryService, IHostService, IInstantiationService, IKeybindingEditingService, ILanguageService, ILanguageStatusService, ILayoutService, ILogService, IMarkdownString, IModelService, IOpenerService, IOutputService, IPaneCompositePartService, IPathService, IPreferencesSearchService, IPreferencesService, IProductService, IQuickInputService, IResourceEditorInput, ISnippetsService, IStorageService, ITelemetryService, IThemeService, IUntypedEditorInput, IUriIdentityService, IVisibleEditorPane, IWorkbenchEnvironmentService, IWorkspaceContextService, Severity, StorageScope, StorageTarget, initialize, onRenderWorkbench, registerServiceInitializeParticipant };
|
package/dist/services.js
CHANGED
|
@@ -29,7 +29,9 @@ export { IProductService } from 'monaco-editor/esm/vs/platform/product/common/pr
|
|
|
29
29
|
export { IQuickInputService } from 'monaco-editor/esm/vs/platform/quickinput/common/quickInput.js';
|
|
30
30
|
export { ITelemetryService } from 'monaco-editor/esm/vs/platform/telemetry/common/telemetry.js';
|
|
31
31
|
export { IUriIdentityService } from 'monaco-editor/esm/vs/platform/uriIdentity/common/uriIdentity.js';
|
|
32
|
-
export { IEditorGroupsService } from './vscode/vs/workbench/services/editor/common/editorGroupsService.js';
|
|
32
|
+
export { GroupDirection, GroupLocation, GroupOrientation, GroupsArrangement, GroupsOrder, IEditorGroupsService, MergeGroupMode } from './vscode/vs/workbench/services/editor/common/editorGroupsService.js';
|
|
33
|
+
export { CloseDirection, EditorsOrder } from './vscode/vs/workbench/common/editor.js';
|
|
34
|
+
export { EditorInput } from './vscode/vs/workbench/common/editor/editorInput.js';
|
|
33
35
|
export { IEditorService } from './vscode/vs/workbench/services/editor/common/editorService.js';
|
|
34
36
|
export { IWorkbenchEnvironmentService } from './vscode/vs/workbench/services/environment/common/environmentService.js';
|
|
35
37
|
export { IHostService } from './vscode/vs/workbench/services/host/browser/host.js';
|
|
@@ -39,6 +41,7 @@ export { IPathService } from './vscode/vs/workbench/services/path/common/pathSer
|
|
|
39
41
|
export { ITextFileService } from './vscode/vs/workbench/services/textfile/common/textfiles.js';
|
|
40
42
|
export { IWorkingCopyFileService } from './vscode/vs/workbench/services/workingCopy/common/workingCopyFileService.js';
|
|
41
43
|
export { IConfigurationService } from 'monaco-editor/esm/vs/platform/configuration/common/configuration.js';
|
|
44
|
+
export { IContextKeyService } from 'monaco-editor/esm/vs/platform/contextkey/common/contextkey.js';
|
|
42
45
|
export { IThemeService } from 'monaco-editor/esm/vs/platform/theme/common/themeService.js';
|
|
43
46
|
export { ISnippetsService } from './vscode/vs/workbench/contrib/snippets/browser/snippets.js';
|
|
44
47
|
export { IWorkspaceContextService } from 'monaco-editor/esm/vs/platform/workspace/common/workspace.js';
|
|
@@ -51,6 +54,8 @@ export { ILayoutService } from 'monaco-editor/esm/vs/platform/layout/browser/lay
|
|
|
51
54
|
export { IPreferencesService } from './vscode/vs/workbench/services/preferences/common/preferences.js';
|
|
52
55
|
export { IPreferencesSearchService } from './vscode/vs/workbench/contrib/preferences/common/preferences.js';
|
|
53
56
|
export { IKeybindingEditingService } from './vscode/vs/workbench/services/keybinding/common/keybindingEditing.js';
|
|
57
|
+
export { IOutputService } from './vscode/vs/workbench/services/output/common/output.js';
|
|
58
|
+
export { GoFilter, GoScope, IHistoryService } from './vscode/vs/workbench/services/history/common/history.js';
|
|
54
59
|
const serviceInitializeParticipants = [];
|
|
55
60
|
function registerServiceInitializeParticipant(participant) {
|
|
56
61
|
serviceInitializeParticipants.push(participant);
|
|
@@ -243,6 +243,11 @@ class EditorResourceAccessorImpl {
|
|
|
243
243
|
}
|
|
244
244
|
}
|
|
245
245
|
const EditorResourceAccessor = ( new EditorResourceAccessorImpl());
|
|
246
|
+
var CloseDirection;
|
|
247
|
+
( (function(CloseDirection) {
|
|
248
|
+
CloseDirection[CloseDirection["LEFT"] = 0] = "LEFT";
|
|
249
|
+
CloseDirection[CloseDirection["RIGHT"] = 1] = "RIGHT";
|
|
250
|
+
})(CloseDirection || (CloseDirection = {})));
|
|
246
251
|
class EditorFactoryRegistry {
|
|
247
252
|
constructor() {
|
|
248
253
|
this.editorSerializerConstructors = ( new Map());
|
|
@@ -288,6 +293,11 @@ class EditorFactoryRegistry {
|
|
|
288
293
|
}
|
|
289
294
|
}
|
|
290
295
|
Registry.add(EditorExtensions.EditorFactory, ( new EditorFactoryRegistry()));
|
|
296
|
+
var EditorsOrder;
|
|
297
|
+
( (function(EditorsOrder) {
|
|
298
|
+
EditorsOrder[EditorsOrder["MOST_RECENTLY_ACTIVE"] = 0] = "MOST_RECENTLY_ACTIVE";
|
|
299
|
+
EditorsOrder[EditorsOrder["SEQUENTIAL"] = 1] = "SEQUENTIAL";
|
|
300
|
+
})(EditorsOrder || (EditorsOrder = {})));
|
|
291
301
|
function isTextEditorViewState(candidate) {
|
|
292
302
|
const viewState = candidate;
|
|
293
303
|
if (!viewState) {
|
|
@@ -310,4 +320,4 @@ function createEditorOpenError(messageOrError, actions, options) {
|
|
|
310
320
|
error.allowDialog = options?.allowDialog;
|
|
311
321
|
return error;
|
|
312
322
|
}
|
|
313
|
-
export { AbstractEditorInput, BINARY_DIFF_EDITOR_ID, DEFAULT_EDITOR_ASSOCIATION, EditorCloseContext, EditorExtensions, EditorResourceAccessor, SIDE_BY_SIDE_EDITOR_ID, SaveSourceRegistry, SideBySideEditor, TEXT_DIFF_EDITOR_ID, createEditorOpenError, createTooLargeFileError, findViewStateForEditor, isDiffEditorInput, isEditorIdentifier, isEditorInput, isEditorInputWithOptions, isEditorInputWithOptionsAndGroup, isEditorOpenError, isEditorPaneWithSelection, isResourceDiffEditorInput, isResourceEditorInput, isResourceMergeEditorInput, isResourceSideBySideEditorInput, isSideBySideEditorInput, isTextEditorViewState, isUntitledResourceEditorInput };
|
|
323
|
+
export { AbstractEditorInput, BINARY_DIFF_EDITOR_ID, CloseDirection, DEFAULT_EDITOR_ASSOCIATION, EditorCloseContext, EditorExtensions, EditorResourceAccessor, EditorsOrder, SIDE_BY_SIDE_EDITOR_ID, SaveSourceRegistry, SideBySideEditor, TEXT_DIFF_EDITOR_ID, createEditorOpenError, createTooLargeFileError, findViewStateForEditor, isDiffEditorInput, isEditorIdentifier, isEditorInput, isEditorInputWithOptions, isEditorInputWithOptionsAndGroup, isEditorOpenError, isEditorPaneWithSelection, isResourceDiffEditorInput, isResourceEditorInput, isResourceMergeEditorInput, isResourceSideBySideEditorInput, isSideBySideEditorInput, isTextEditorViewState, isUntitledResourceEditorInput };
|
|
@@ -1,10 +1,46 @@
|
|
|
1
1
|
import { createDecorator } from 'monaco-editor/esm/vs/platform/instantiation/common/instantiation.js';
|
|
2
2
|
import { isEditorInput } from '../../../common/editor.js';
|
|
3
3
|
const IEditorGroupsService = ( createDecorator('editorGroupsService'));
|
|
4
|
+
var GroupDirection;
|
|
5
|
+
( (function(GroupDirection) {
|
|
6
|
+
GroupDirection[GroupDirection["UP"] = 0] = "UP";
|
|
7
|
+
GroupDirection[GroupDirection["DOWN"] = 1] = "DOWN";
|
|
8
|
+
GroupDirection[GroupDirection["LEFT"] = 2] = "LEFT";
|
|
9
|
+
GroupDirection[GroupDirection["RIGHT"] = 3] = "RIGHT";
|
|
10
|
+
})(GroupDirection || (GroupDirection = {})));
|
|
11
|
+
var GroupOrientation;
|
|
12
|
+
( (function(GroupOrientation) {
|
|
13
|
+
GroupOrientation[GroupOrientation["HORIZONTAL"] = 0] = "HORIZONTAL";
|
|
14
|
+
GroupOrientation[GroupOrientation["VERTICAL"] = 1] = "VERTICAL";
|
|
15
|
+
})(GroupOrientation || (GroupOrientation = {})));
|
|
16
|
+
var GroupLocation;
|
|
17
|
+
( (function(GroupLocation) {
|
|
18
|
+
GroupLocation[GroupLocation["FIRST"] = 0] = "FIRST";
|
|
19
|
+
GroupLocation[GroupLocation["LAST"] = 1] = "LAST";
|
|
20
|
+
GroupLocation[GroupLocation["NEXT"] = 2] = "NEXT";
|
|
21
|
+
GroupLocation[GroupLocation["PREVIOUS"] = 3] = "PREVIOUS";
|
|
22
|
+
})(GroupLocation || (GroupLocation = {})));
|
|
23
|
+
var GroupsArrangement;
|
|
24
|
+
( (function(GroupsArrangement) {
|
|
25
|
+
GroupsArrangement[GroupsArrangement["MAXIMIZE"] = 0] = "MAXIMIZE";
|
|
26
|
+
GroupsArrangement[GroupsArrangement["EVEN"] = 1] = "EVEN";
|
|
27
|
+
GroupsArrangement[GroupsArrangement["TOGGLE"] = 2] = "TOGGLE";
|
|
28
|
+
})(GroupsArrangement || (GroupsArrangement = {})));
|
|
29
|
+
var MergeGroupMode;
|
|
30
|
+
( (function(MergeGroupMode) {
|
|
31
|
+
MergeGroupMode[MergeGroupMode["COPY_EDITORS"] = 0] = "COPY_EDITORS";
|
|
32
|
+
MergeGroupMode[MergeGroupMode["MOVE_EDITORS"] = 1] = "MOVE_EDITORS";
|
|
33
|
+
})(MergeGroupMode || (MergeGroupMode = {})));
|
|
4
34
|
function isEditorReplacement(replacement) {
|
|
5
35
|
const candidate = replacement;
|
|
6
36
|
return isEditorInput(candidate?.editor) && isEditorInput(candidate?.replacement);
|
|
7
37
|
}
|
|
38
|
+
var GroupsOrder;
|
|
39
|
+
( (function(GroupsOrder) {
|
|
40
|
+
GroupsOrder[GroupsOrder["CREATION_TIME"] = 0] = "CREATION_TIME";
|
|
41
|
+
GroupsOrder[GroupsOrder["MOST_RECENTLY_ACTIVE"] = 1] = "MOST_RECENTLY_ACTIVE";
|
|
42
|
+
GroupsOrder[GroupsOrder["GRID_APPEARANCE"] = 2] = "GRID_APPEARANCE";
|
|
43
|
+
})(GroupsOrder || (GroupsOrder = {})));
|
|
8
44
|
function isEditorGroup(obj) {
|
|
9
45
|
const group = obj;
|
|
10
46
|
return !!group && typeof group.id === 'number' && Array.isArray(group.editors);
|
|
@@ -16,4 +52,4 @@ function preferredSideBySideGroupDirection(configurationService) {
|
|
|
16
52
|
}
|
|
17
53
|
return 3 ;
|
|
18
54
|
}
|
|
19
|
-
export { IEditorGroupsService, isEditorGroup, isEditorReplacement, preferredSideBySideGroupDirection };
|
|
55
|
+
export { GroupDirection, GroupLocation, GroupOrientation, GroupsArrangement, GroupsOrder, IEditorGroupsService, MergeGroupMode, isEditorGroup, isEditorReplacement, preferredSideBySideGroupDirection };
|
|
@@ -1,3 +1,15 @@
|
|
|
1
1
|
import { createDecorator } from 'monaco-editor/esm/vs/platform/instantiation/common/instantiation.js';
|
|
2
2
|
const IHistoryService = ( createDecorator('historyService'));
|
|
3
|
-
|
|
3
|
+
var GoFilter;
|
|
4
|
+
( (function(GoFilter) {
|
|
5
|
+
GoFilter[GoFilter["NONE"] = 0] = "NONE";
|
|
6
|
+
GoFilter[GoFilter["EDITS"] = 1] = "EDITS";
|
|
7
|
+
GoFilter[GoFilter["NAVIGATION"] = 2] = "NAVIGATION";
|
|
8
|
+
})(GoFilter || (GoFilter = {})));
|
|
9
|
+
var GoScope;
|
|
10
|
+
( (function(GoScope) {
|
|
11
|
+
GoScope[GoScope["DEFAULT"] = 0] = "DEFAULT";
|
|
12
|
+
GoScope[GoScope["EDITOR_GROUP"] = 1] = "EDITOR_GROUP";
|
|
13
|
+
GoScope[GoScope["EDITOR"] = 2] = "EDITOR";
|
|
14
|
+
})(GoScope || (GoScope = {})));
|
|
15
|
+
export { GoFilter, GoScope, IHistoryService };
|