@codingame/monaco-vscode-api 1.79.10 → 1.79.12
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/editor.d.ts +1182 -3
- package/dist/editorBrowser.d.ts +27 -1
- package/dist/event.d.ts +1 -1
- package/dist/files.d.ts +1 -1
- package/dist/languageFeatures.d.ts +11 -1102
- package/dist/monaco.d.ts +4 -5
- package/dist/service-override/bulkEdit.d.ts +7 -0
- package/dist/service-override/editor.d.ts +1 -0
- package/dist/service-override/views.d.ts +0 -1
- package/dist/services.d.ts +138 -11
- package/dist/services.js +2 -0
- package/dist/views.d.ts +1 -2
- package/monaco-editor-treemending.patch +531 -531
- package/package.json +8 -1
- package/dist/progress.d.ts +0 -27
package/dist/monaco.d.ts
CHANGED
|
@@ -1,20 +1,19 @@
|
|
|
1
1
|
import * as monaco from 'monaco-editor';
|
|
2
2
|
import { I as IEditorOverrideServices } from './standaloneServices.js';
|
|
3
3
|
import { E as Event, D as Disposable, a as IDisposable, I as IReference } from './event.js';
|
|
4
|
-
export {
|
|
5
|
-
import {
|
|
6
|
-
import { L as LanguageFeatureRegistry, I as ILanguageFeaturesService, F as FoldingRangeProvider, a as ILanguageConfigurationService, b as INotificationService
|
|
4
|
+
export { b as DisposableStore } from './event.js';
|
|
5
|
+
import { l as ITextModel, m as IModelDecorationOptions, n as IModelDecorationsChangeAccessor, o as IEditorContribution, b as ICodeEditor, p as IPosition } from './editorBrowser.js';
|
|
6
|
+
import { L as LanguageFeatureRegistry, I as ILanguageFeaturesService, F as FoldingRangeProvider, a as ILanguageConfigurationService, b as INotificationService } from './languageFeatures.js';
|
|
7
7
|
export { C as CommandsRegistry, r as registerColor } from './languageFeatures.js';
|
|
8
8
|
import { a as IContextKeyService } from './contextkey.js';
|
|
9
9
|
import { S as ServiceIdentifier } from './instantiation.js';
|
|
10
10
|
import { I as IJSONSchema } from './jsonSchema.js';
|
|
11
11
|
import { U as URI } from './uri.js';
|
|
12
12
|
import { f as IFileDeleteOptions } from './files.js';
|
|
13
|
+
import { q as ITextFileEditorModel } from './editor.js';
|
|
13
14
|
import 'vscode';
|
|
14
15
|
import './themables.js';
|
|
15
16
|
import './severity.js';
|
|
16
|
-
import './editor.js';
|
|
17
|
-
import './progress.js';
|
|
18
17
|
import './extensions.d2.ts';
|
|
19
18
|
|
|
20
19
|
interface ErrorListenerCallback {
|
package/dist/services.d.ts
CHANGED
|
@@ -1,14 +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,
|
|
4
|
-
import {
|
|
5
|
-
export {
|
|
3
|
+
import { E as Event$1, a as IDisposable, C as CancellationToken, D as Disposable, c as Emitter } from './event.js';
|
|
4
|
+
import { q as IMarkdownString, r as IEditorModel, x as ITextBufferFactory, l as ITextModel, F as ITextModelCreationOptions, d as IEditorOptions, B as IRange, p as IPosition, P as Position$1, G as IDocumentDiffProviderOptions, H as IDocumentDiff, J as IChange, b as ICodeEditor, u as IProgress, v as IProgressStep, K as IBoundarySashes, j as IComposite, y as ICompositeControl, O as Orientation, k as IProgressIndicator, c as IDiffEditor, L as IDecorationRenderOptions, m as IModelDecorationOptions, f as ITextResourceEditorInput, e as IResourceEditorInput } from './editorBrowser.js';
|
|
5
|
+
export { s as IDimension, N as ITextEditorOptions, M as ITextModelContentProvider, a as ITextModelService, Q 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
|
-
import {
|
|
8
|
-
export { a as ILanguageConfigurationService, I as ILanguageFeaturesService,
|
|
7
|
+
import { c as ILanguageIdCodec, S as SubmenuAction, d as IAction, e as ICommandService, f as ColorIdentifier, g as Color, h as LanguageSelector, i as Command, T as TextEdit, j as IInplaceReplaceSupportResult, W as WorkspaceEdit, k as WorkspaceEditMetadata, l as IActionRunner, A as AtLeastOne } from './languageFeatures.js';
|
|
8
|
+
export { a as ILanguageConfigurationService, I as ILanguageFeaturesService, m as IMarkerService, s as INeverShowAgainOptions, t as INotification, u as INotificationActions, x as INotificationHandle, v as INotificationProgress, w as INotificationProgressProperties, p as INotificationProperties, b as INotificationService, y as IPromptChoice, z as IPromptChoiceWithMenu, B as IPromptOptions, D as IStatusMessageOptions, q as NeverShowAgainScope, E as NoOpNotification, G as NoOpProgress, n as NotificationMessage, o as NotificationPriority, N as NotificationsFilter } from './languageFeatures.js';
|
|
9
9
|
import { S as Severity } from './severity.js';
|
|
10
10
|
import { a as IContextKeyService, C as ContextKeyExpression } from './contextkey.js';
|
|
11
|
-
import { c as FileType,
|
|
11
|
+
import { c as FileType, q as VSBuffer, w as IRelativePattern, x as IFileService } from './files.js';
|
|
12
12
|
import { a as UriComponents, U as URI } from './uri.js';
|
|
13
13
|
import { b as IWorkspaceFolder, I as IAnyWorkspaceIdentifier, c as IWorkspaceContextService } from './workspace.js';
|
|
14
14
|
import { c as IStringDictionary, d as IExtensionInfo, C as ConfigurationScope, E as EditPresentationTypes } from './configurationRegistry.js';
|
|
@@ -16,15 +16,14 @@ import { P as PlatformName, O as OperatingSystem } from './platform.js';
|
|
|
16
16
|
import { I as ILogService } from './log.js';
|
|
17
17
|
export { a as ILoggerService, L as LogLevel } from './log.js';
|
|
18
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 {
|
|
19
|
+
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';
|
|
20
|
+
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';
|
|
21
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
22
|
export { h as IViewsService } from './views.js';
|
|
23
|
-
import { I as IEditorService } from './editorService.js';
|
|
23
|
+
import { I as IEditorService, P as PreferredGroup } from './editorService.js';
|
|
24
24
|
import { I as IconIdentifier, T as ThemeIcon } from './themables.js';
|
|
25
25
|
import { I as IJSONSchema, a as IJSONSchemaMap } from './jsonSchema.js';
|
|
26
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
27
|
import { a as IExtensionService } from './extensionsRegistry.js';
|
|
29
28
|
import { I as IEditorOverrideServices } from './standaloneServices.js';
|
|
30
29
|
export { S as StandaloneServices } from './standaloneServices.js';
|
|
@@ -5063,6 +5062,134 @@ interface IBreadcrumbsService {
|
|
|
5063
5062
|
getWidget(group: GroupIdentifier): BreadcrumbsWidget | undefined;
|
|
5064
5063
|
}
|
|
5065
5064
|
|
|
5065
|
+
type EditorAssociation = {
|
|
5066
|
+
readonly viewType: string;
|
|
5067
|
+
readonly filenamePattern?: string;
|
|
5068
|
+
};
|
|
5069
|
+
type EditorAssociations = readonly EditorAssociation[];
|
|
5070
|
+
declare enum RegisteredEditorPriority {
|
|
5071
|
+
builtin = "builtin",
|
|
5072
|
+
option = "option",
|
|
5073
|
+
exclusive = "exclusive",
|
|
5074
|
+
default = "default"
|
|
5075
|
+
}
|
|
5076
|
+
/**
|
|
5077
|
+
* If we didn't resolve an editor dictates what to do with the opening state
|
|
5078
|
+
* ABORT = Do not continue with opening the editor
|
|
5079
|
+
* NONE = Continue as if the resolution has been disabled as the service could not resolve one
|
|
5080
|
+
*/
|
|
5081
|
+
declare const enum ResolvedStatus {
|
|
5082
|
+
ABORT = 1,
|
|
5083
|
+
NONE = 2
|
|
5084
|
+
}
|
|
5085
|
+
type ResolvedEditor = EditorInputWithOptionsAndGroup | ResolvedStatus;
|
|
5086
|
+
type RegisteredEditorOptions = {
|
|
5087
|
+
/**
|
|
5088
|
+
* If your editor cannot be opened in multiple groups for the same resource
|
|
5089
|
+
*/
|
|
5090
|
+
singlePerResource?: boolean | (() => boolean);
|
|
5091
|
+
/**
|
|
5092
|
+
* Whether or not you can support opening the given resource.
|
|
5093
|
+
* If omitted we assume you can open everything
|
|
5094
|
+
*/
|
|
5095
|
+
canSupportResource?: (resource: URI) => boolean;
|
|
5096
|
+
};
|
|
5097
|
+
type RegisteredEditorInfo = {
|
|
5098
|
+
id: string;
|
|
5099
|
+
label: string;
|
|
5100
|
+
detail?: string;
|
|
5101
|
+
priority: RegisteredEditorPriority;
|
|
5102
|
+
};
|
|
5103
|
+
type EditorInputFactoryResult = EditorInputWithOptions | Promise<EditorInputWithOptions>;
|
|
5104
|
+
type EditorInputFactoryFunction = (editorInput: IResourceEditorInput | ITextResourceEditorInput, group: IEditorGroup) => EditorInputFactoryResult;
|
|
5105
|
+
type UntitledEditorInputFactoryFunction = (untitledEditorInput: IUntitledTextResourceEditorInput, group: IEditorGroup) => EditorInputFactoryResult;
|
|
5106
|
+
type DiffEditorInputFactoryFunction = (diffEditorInput: IResourceDiffEditorInput, group: IEditorGroup) => EditorInputFactoryResult;
|
|
5107
|
+
type MergeEditorInputFactoryFunction = (mergeEditorInput: IResourceMergeEditorInput, group: IEditorGroup) => EditorInputFactoryResult;
|
|
5108
|
+
type EditorInputFactories = {
|
|
5109
|
+
createEditorInput?: EditorInputFactoryFunction;
|
|
5110
|
+
createUntitledEditorInput?: UntitledEditorInputFactoryFunction;
|
|
5111
|
+
createDiffEditorInput?: DiffEditorInputFactoryFunction;
|
|
5112
|
+
createMergeEditorInput?: MergeEditorInputFactoryFunction;
|
|
5113
|
+
};
|
|
5114
|
+
type EditorInputFactoryObject = AtLeastOne<EditorInputFactories>;
|
|
5115
|
+
|
|
5116
|
+
declare const IEditorResolverService: ServiceIdentifier<IEditorResolverService>;
|
|
5117
|
+
interface IEditorResolverService {
|
|
5118
|
+
readonly _serviceBrand: undefined;
|
|
5119
|
+
/**
|
|
5120
|
+
* Given a resource finds the editor associations that match it from the user's settings
|
|
5121
|
+
* @param resource The resource to match
|
|
5122
|
+
* @return The matching associations
|
|
5123
|
+
*/
|
|
5124
|
+
getAssociationsForResource(resource: URI): EditorAssociations;
|
|
5125
|
+
/**
|
|
5126
|
+
* Updates the user's association to include a specific editor ID as a default for the given glob pattern
|
|
5127
|
+
* @param globPattern The glob pattern (must be a string as settings don't support relative glob)
|
|
5128
|
+
* @param editorID The ID of the editor to make a user default
|
|
5129
|
+
*/
|
|
5130
|
+
updateUserAssociations(globPattern: string, editorID: string): void;
|
|
5131
|
+
/**
|
|
5132
|
+
* Emitted when an editor is registered or unregistered.
|
|
5133
|
+
*/
|
|
5134
|
+
readonly onDidChangeEditorRegistrations: Event$1<void>;
|
|
5135
|
+
/**
|
|
5136
|
+
* Given a callback, run the callback pausing the registration emitter
|
|
5137
|
+
*/
|
|
5138
|
+
bufferChangeEvents(callback: Function): void;
|
|
5139
|
+
/**
|
|
5140
|
+
* Registers a specific editor. Editors with the same glob pattern and ID will be grouped together by the resolver.
|
|
5141
|
+
* This allows for registration of the factories in different locations
|
|
5142
|
+
* @param globPattern The glob pattern for this registration
|
|
5143
|
+
* @param editorInfo Information about the registration
|
|
5144
|
+
* @param options Specific options which apply to this registration
|
|
5145
|
+
* @param editorFactoryObject The editor input factory functions
|
|
5146
|
+
*/
|
|
5147
|
+
registerEditor(globPattern: string | IRelativePattern, editorInfo: RegisteredEditorInfo, options: RegisteredEditorOptions, editorFactoryObject: EditorInputFactoryObject): IDisposable;
|
|
5148
|
+
/**
|
|
5149
|
+
* Given an editor resolves it to the suitable ResolvedEitor based on user extensions, settings, and built-in editors
|
|
5150
|
+
* @param editor The editor to resolve
|
|
5151
|
+
* @param preferredGroup The group you want to open the editor in
|
|
5152
|
+
* @returns An EditorInputWithOptionsAndGroup if there is an available editor or a status of how to proceed
|
|
5153
|
+
*/
|
|
5154
|
+
resolveEditor(editor: IUntypedEditorInput, preferredGroup: PreferredGroup | undefined): Promise<ResolvedEditor>;
|
|
5155
|
+
/**
|
|
5156
|
+
* Given a resource returns all the editor ids that match that resource. If there is exclusive editor we return an empty array
|
|
5157
|
+
* @param resource The resource
|
|
5158
|
+
* @returns A list of editor ids
|
|
5159
|
+
*/
|
|
5160
|
+
getEditors(resource: URI): RegisteredEditorInfo[];
|
|
5161
|
+
/**
|
|
5162
|
+
* A set of all the editors that are registered to the editor resolver.
|
|
5163
|
+
*/
|
|
5164
|
+
getEditors(): RegisteredEditorInfo[];
|
|
5165
|
+
}
|
|
5166
|
+
|
|
5167
|
+
declare const ITextEditorService: ServiceIdentifier<ITextEditorService>;
|
|
5168
|
+
interface ITextEditorService {
|
|
5169
|
+
readonly _serviceBrand: undefined;
|
|
5170
|
+
/**
|
|
5171
|
+
* @deprecated this method should not be used, rather consider using
|
|
5172
|
+
* `IEditorResolverService` instead with `DEFAULT_EDITOR_ASSOCIATION.id`.
|
|
5173
|
+
*/
|
|
5174
|
+
createTextEditor(input: IUntypedEditorInput): EditorInput;
|
|
5175
|
+
/**
|
|
5176
|
+
* @deprecated this method should not be used, rather consider using
|
|
5177
|
+
* `IEditorResolverService` instead with `DEFAULT_EDITOR_ASSOCIATION.id`.
|
|
5178
|
+
*/
|
|
5179
|
+
createTextEditor(input: IUntypedFileEditorInput): IFileEditorInput;
|
|
5180
|
+
/**
|
|
5181
|
+
* A way to create text editor inputs from an untyped editor input. Depending
|
|
5182
|
+
* on the passed in input this will be:
|
|
5183
|
+
* - a `IFileEditorInput` for file resources
|
|
5184
|
+
* - a `UntitledEditorInput` for untitled resources
|
|
5185
|
+
* - a `TextResourceEditorInput` for virtual resources
|
|
5186
|
+
*
|
|
5187
|
+
* @param input the untyped editor input to create a typed input from
|
|
5188
|
+
*/
|
|
5189
|
+
resolveTextEditor(input: IUntypedEditorInput): Promise<EditorInput>;
|
|
5190
|
+
resolveTextEditor(input: IUntypedFileEditorInput): Promise<IFileEditorInput>;
|
|
5191
|
+
}
|
|
5192
|
+
|
|
5066
5193
|
declare const IExtensionResourceLoaderService: ServiceIdentifier<IExtensionResourceLoaderService>;
|
|
5067
5194
|
/**
|
|
5068
5195
|
* A service useful for reading resources from within extensions.
|
|
@@ -5345,4 +5472,4 @@ declare function registerServiceInitializeParticipant(participant: ServiceInitia
|
|
|
5345
5472
|
declare const onRenderWorkbench: Event$1<ServicesAccessor>;
|
|
5346
5473
|
declare function initialize(overrides: IEditorOverrideServices): Promise<void>;
|
|
5347
5474
|
|
|
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 };
|
|
5475
|
+
export { EditorInput, EditorInputWithOptions, GoFilter, GoScope, GroupIdentifier, IAction, IAudioCueService, IBreadcrumbsService, IBulkEditService, IClipboardService, ICodeEditorService, IColorTheme, ICommandService, IConfigurationChangeEvent, IConfigurationService, IContextKeyService, IDebugService, IEditorGroup, IEditorOptions, IEditorPane, IEditorResolverService, 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, ITextEditorService, IThemeService, IUntypedEditorInput, IUriIdentityService, IWorkbenchEnvironmentService, IWorkspaceContextService, Severity, StorageScope, StorageTarget, initialize, onRenderWorkbench, registerServiceInitializeParticipant };
|
package/dist/services.js
CHANGED
|
@@ -34,6 +34,8 @@ export { GroupDirection, GroupLocation, GroupOrientation, GroupsArrangement, Gro
|
|
|
34
34
|
export { CloseDirection, EditorsOrder } from './vscode/vs/workbench/common/editor.js';
|
|
35
35
|
export { EditorInput } from './vscode/vs/workbench/common/editor/editorInput.js';
|
|
36
36
|
export { IEditorService } from './vscode/vs/workbench/services/editor/common/editorService.js';
|
|
37
|
+
export { IEditorResolverService } from './vscode/vs/workbench/services/editor/common/editorResolverService.js';
|
|
38
|
+
export { ITextEditorService } from './vscode/vs/workbench/services/textfile/common/textEditorService.js';
|
|
37
39
|
export { IWorkbenchEnvironmentService } from './vscode/vs/workbench/services/environment/common/environmentService.js';
|
|
38
40
|
export { IHostService } from './vscode/vs/workbench/services/host/browser/host.js';
|
|
39
41
|
export { ILanguageStatusService } from './vscode/vs/workbench/services/languageStatus/common/languageStatusService.js';
|
package/dist/views.d.ts
CHANGED
|
@@ -4,8 +4,7 @@ import { E as Event } from './event.js';
|
|
|
4
4
|
import { T as ThemeIcon } from './themables.js';
|
|
5
5
|
import { C as ContextKeyExpression } from './contextkey.js';
|
|
6
6
|
import { c as ILocalizedString, E as ExtensionIdentifier } from './extensions.d2.ts';
|
|
7
|
-
import {
|
|
8
|
-
import { j as IComposite } from './editorBrowser.js';
|
|
7
|
+
import { j as IComposite, k as IProgressIndicator } from './editorBrowser.js';
|
|
9
8
|
|
|
10
9
|
interface IKeybindings {
|
|
11
10
|
primary?: number;
|