@codingame/monaco-vscode-view-common-service-override 11.1.2 → 12.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +3 -1
- package/index.js +110 -1
- package/package.json +64 -10
- package/service-override/tools/editorAssets.d.ts +1 -0
- package/service-override/tools/editorAssets.js +5 -0
- package/vscode/src/vs/platform/actions/browser/actionViewItemService.d.ts +21 -0
- package/vscode/src/vs/platform/actions/browser/actionViewItemService.js +2 -0
- package/vscode/src/vs/platform/webview/common/mimeTypes.d.ts +2 -0
- package/vscode/src/vs/platform/webview/common/mimeTypes.js +1 -0
- package/vscode/src/vs/platform/webview/common/webviewPortMapping.d.ts +18 -0
- package/vscode/src/vs/platform/webview/common/webviewPortMapping.js +1 -0
- package/vscode/src/vs/workbench/api/browser/viewsExtensionPoint.d.ts +7 -0
- package/vscode/src/vs/workbench/api/browser/viewsExtensionPoint.js +116 -115
- package/vscode/src/vs/workbench/browser/actions/listCommands.d.ts +1 -0
- package/vscode/src/vs/workbench/browser/actions/listCommands.js +120 -125
- package/vscode/src/vs/workbench/browser/actions/navigationActions.d.ts +1 -0
- package/vscode/src/vs/workbench/browser/actions/navigationActions.js +81 -74
- package/vscode/src/vs/workbench/browser/parts/editor/editor.contribution.d.ts +1 -0
- package/vscode/src/vs/workbench/browser/parts/editor/editor.contribution.js +216 -250
- package/vscode/src/vs/workbench/browser/parts/editor/editorConfiguration.d.ts +21 -0
- package/vscode/src/vs/workbench/browser/parts/editor/editorConfiguration.js +26 -25
- package/vscode/src/vs/workbench/browser/parts/paneCompositePartService.d.ts +32 -0
- package/vscode/src/vs/workbench/browser/parts/paneCompositePartService.js +10 -8
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchy.contribution.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchy.contribution.js +58 -64
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyPeek.d.ts +50 -0
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyPeek.js +48 -38
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyTree.d.ts +54 -0
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyTree.js +19 -40
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/media/callHierarchy.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditor.contribution.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditor.contribution.js +7 -5
- package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditorInputFactory.d.ts +58 -0
- package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditorInputFactory.js +6 -4
- package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditors.d.ts +45 -0
- package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditors.js +6 -4
- package/vscode/src/vs/workbench/contrib/customEditor/browser/media/customEditor.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/customEditor/common/contributedCustomEditors.d.ts +18 -0
- package/vscode/src/vs/workbench/contrib/customEditor/common/contributedCustomEditors.js +16 -16
- package/vscode/src/vs/workbench/contrib/customEditor/common/customEditor.d.ts +65 -0
- package/vscode/src/vs/workbench/contrib/customEditor/common/customEditor.js +15 -10
- package/vscode/src/vs/workbench/contrib/customEditor/common/customEditorModelManager.d.ts +12 -0
- package/vscode/src/vs/workbench/contrib/customEditor/common/customEditorModelManager.js +1 -0
- package/vscode/src/vs/workbench/contrib/customEditor/common/extensionPoint.d.ts +15 -0
- package/vscode/src/vs/workbench/contrib/customEditor/common/extensionPoint.js +27 -25
- package/vscode/src/vs/workbench/contrib/externalUriOpener/common/externalUriOpener.contribution.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/externalUriOpener/common/externalUriOpener.contribution.js +4 -2
- package/vscode/src/vs/workbench/contrib/languageStatus/browser/languageStatus.contribution.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/languageStatus/browser/languageStatus.contribution.js +6 -386
- package/vscode/src/vs/workbench/contrib/languageStatus/browser/languageStatus.d.ts +15 -0
- package/vscode/src/vs/workbench/contrib/languageStatus/browser/languageStatus.js +385 -0
- package/vscode/src/vs/workbench/contrib/languageStatus/browser/media/languageStatus.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/limitIndicator/browser/limitIndicator.contribution.d.ts +13 -0
- package/vscode/src/vs/workbench/contrib/limitIndicator/browser/limitIndicator.contribution.js +20 -20
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/commands/commands.d.ts +105 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/commands/commands.js +50 -62
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/commands/devCommands.d.ts +18 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/commands/devCommands.js +16 -15
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditor.contribution.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditor.contribution.js +15 -13
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorSerializer.d.ts +27 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorSerializer.js +2 -1
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/colors.d.ts +13 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/colors.js +14 -13
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editorGutter.d.ts +31 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editorGutter.js +2 -1
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/baseCodeEditorView.d.ts +9 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/baseCodeEditorView.js +15 -14
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/codeEditorView.d.ts +45 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/codeEditorView.js +3 -2
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/inputCodeEditorView.d.ts +43 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/inputCodeEditorView.js +37 -39
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/resultCodeEditorView.d.ts +11 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/resultCodeEditorView.js +22 -21
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/lineAlignment.d.ts +7 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/lineAlignment.js +3 -2
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/media/mergeEditor.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/mergeEditor.d.ts +117 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/mergeEditor.js +57 -53
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/scrollSynchronizer.d.ts +22 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/scrollSynchronizer.js +27 -25
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/viewModel.d.ts +41 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/viewModel.js +15 -13
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/viewZones.d.ts +29 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/viewZones.js +4 -3
- package/vscode/src/vs/workbench/contrib/preferences/browser/keyboardLayoutPicker.d.ts +11 -0
- package/vscode/src/vs/workbench/contrib/preferences/browser/keyboardLayoutPicker.js +28 -28
- package/vscode/src/vs/workbench/contrib/sash/browser/sash.contribution.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/sash/browser/sash.contribution.js +7 -5
- package/vscode/src/vs/workbench/contrib/sash/browser/sash.d.ts +15 -0
- package/vscode/src/vs/workbench/contrib/sash/browser/sash.js +2 -1
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/media/typeHierarchy.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchy.contribution.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchy.contribution.js +54 -56
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyPeek.d.ts +50 -0
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyPeek.js +48 -38
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyTree.d.ts +52 -0
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyTree.js +19 -30
- package/vscode/src/vs/workbench/contrib/webview/browser/overlayWebview.d.ts +101 -0
- package/vscode/src/vs/workbench/contrib/webview/browser/overlayWebview.js +3 -2
- package/vscode/src/vs/workbench/contrib/webview/browser/resourceLoading.d.ts +38 -0
- package/vscode/src/vs/workbench/contrib/webview/browser/resourceLoading.js +7 -6
- package/vscode/src/vs/workbench/contrib/webview/browser/themeing.d.ts +23 -0
- package/vscode/src/vs/workbench/contrib/webview/browser/themeing.js +7 -6
- package/vscode/src/vs/workbench/contrib/webview/browser/webviewElement.d.ts +139 -0
- package/vscode/src/vs/workbench/contrib/webview/browser/webviewElement.js +58 -56
- package/vscode/src/vs/workbench/contrib/webview/browser/webviewFindWidget.d.ts +33 -0
- package/vscode/src/vs/workbench/contrib/webview/browser/webviewFindWidget.js +4 -3
- package/vscode/src/vs/workbench/contrib/webview/browser/webviewService.d.ts +21 -0
- package/vscode/src/vs/workbench/contrib/webview/browser/webviewService.js +2 -1
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewCommands.d.ts +33 -0
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewCommands.js +28 -28
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditorInputSerializer.d.ts +50 -0
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditorInputSerializer.js +3 -2
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewPanel.contribution.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewPanel.contribution.js +15 -13
- package/vscode/src/vs/workbench/contrib/webviewView/browser/webviewViewPane.d.ts +64 -0
- package/vscode/src/vs/workbench/contrib/webviewView/browser/webviewViewPane.js +10 -8
- package/vscode/src/vs/workbench/contrib/webviewView/browser/webviewViewService.d.ts +30 -0
- package/vscode/src/vs/workbench/contrib/webviewView/browser/webviewViewService.js +1 -0
- package/vscode/src/vs/workbench/services/editor/browser/editorPaneService.d.ts +6 -0
- package/vscode/src/vs/workbench/services/editor/browser/editorPaneService.js +3 -1
- package/vscode/src/vs/workbench/services/editor/browser/editorResolverService.d.ts +60 -0
- package/vscode/src/vs/workbench/services/editor/browser/editorResolverService.js +64 -63
- package/vscode/src/vs/workbench/services/history/browser/historyService.d.ts +184 -0
- package/vscode/src/vs/workbench/services/history/browser/historyService.js +154 -148
- package/vscode/src/vs/workbench/services/progress/browser/media/progressService.css.js +1 -1
- package/vscode/src/vs/workbench/services/progress/browser/progressService.d.ts +36 -0
- package/vscode/src/vs/workbench/services/progress/browser/progressService.js +59 -54
- package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorHandler.d.ts +34 -0
- package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorHandler.js +4 -3
- package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorService.d.ts +71 -0
- package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorService.js +4 -2
- package/vscode/src/vs/workbench/services/views/browser/viewDescriptorService.d.ts +122 -0
- package/vscode/src/vs/workbench/services/views/browser/viewDescriptorService.js +86 -90
- package/vscode/src/vs/workbench/services/views/common/viewContainerModel.d.ts +80 -0
- package/vscode/src/vs/workbench/services/views/common/viewContainerModel.js +58 -64
- package/override/vs/workbench/browser/parts/editor/textEditor.js +0 -5
- package/override/vs/workbench/browser/parts/editor/textEditor.weak.js +0 -11
- package/tools/editorAssets.js +0 -4
- package/tools/url.js +0 -10
- package/viewCommon.js +0 -109
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import n from 'vscode/external/rollup-plugin-styles/dist/runtime/inject-css
|
|
1
|
+
import n from 'vscode/external/rollup-plugin-styles/dist/runtime/inject-css';
|
|
2
2
|
|
|
3
3
|
var css = ".monaco-workbench .progress-badge>.badge-content:before{background-color:currentColor;background-repeat:no-repeat;bottom:0;content:\"\";height:14px;left:0;margin:auto;mask:url(\"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNCIgaGVpZ2h0PSIxNCIgdmlld0JveD0iMiAyIDE0IDE0Ij48cGF0aCBmaWxsPSIjZmZmIiBkPSJNOSAxNmMtMy44NiAwLTctMy4xNC03LTdzMy4xNC03IDctN2MzLjg1OSAwIDcgMy4xNDEgNyA3cy0zLjE0MSA3LTcgN3pNOSAzLjRDNS45MTIgMy40IDMuNCA1LjkxMyAzLjQgOXMyLjUxMiA1LjYgNS42IDUuNiA1LjYtMi41MTIgNS42LTUuNlMxMi4wODggMy40IDkgMy40em0zLjg2IDcuMUw5LjcgOC42MDRWNC44SDguM3Y0LjU5NmwzLjg0IDIuMzA1LjcyLTEuMjAxeiIvPjwvc3ZnPg==\") no-repeat;-webkit-mask:url(\"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNCIgaGVpZ2h0PSIxNCIgdmlld0JveD0iMiAyIDE0IDE0Ij48cGF0aCBmaWxsPSIjZmZmIiBkPSJNOSAxNmMtMy44NiAwLTctMy4xNC03LTdzMy4xNC03IDctN2MzLjg1OSAwIDcgMy4xNDEgNyA3cy0zLjE0MSA3LTcgN3pNOSAzLjRDNS45MTIgMy40IDMuNCA1LjkxMyAzLjQgOXMyLjUxMiA1LjYgNS42IDUuNiA1LjYtMi41MTIgNS42LTUuNlMxMi4wODggMy40IDkgMy40em0zLjg2IDcuMUw5LjcgOC42MDRWNC44SDguM3Y0LjU5NmwzLjg0IDIuMzA1LjcyLTEuMjAxeiIvPjwvc3ZnPg==\") no-repeat;position:absolute;right:0;top:0;width:14px}";
|
|
4
4
|
n(css,{});
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { Disposable } from "vscode/vscode/vs/base/common/lifecycle";
|
|
2
|
+
import { IProgressOptions, IProgressStep, IProgress } from "vscode/vscode/vs/platform/progress/common/progress";
|
|
3
|
+
import { IProgressService } from "vscode/vscode/vs/platform/progress/common/progress.service";
|
|
4
|
+
import { IStatusbarService } from "vscode/vscode/vs/workbench/services/statusbar/browser/statusbar.service";
|
|
5
|
+
import { IActivityService } from "vscode/vscode/vs/workbench/services/activity/common/activity.service";
|
|
6
|
+
import { INotificationService } from "vscode/vscode/vs/platform/notification/common/notification.service";
|
|
7
|
+
import { ILayoutService } from "vscode/vscode/vs/platform/layout/browser/layoutService.service";
|
|
8
|
+
import { IKeybindingService } from "vscode/vscode/vs/platform/keybinding/common/keybinding.service";
|
|
9
|
+
import { IViewDescriptorService } from "vscode/vscode/vs/workbench/common/views.service";
|
|
10
|
+
import { IViewsService } from "vscode/vscode/vs/workbench/services/views/common/viewsService.service";
|
|
11
|
+
import { IPaneCompositePartService } from "vscode/vscode/vs/workbench/services/panecomposite/browser/panecomposite.service";
|
|
12
|
+
import { IUserActivityService } from "vscode/vscode/vs/workbench/services/userActivity/common/userActivityService.service";
|
|
13
|
+
export declare class ProgressService extends Disposable implements IProgressService {
|
|
14
|
+
private readonly activityService;
|
|
15
|
+
private readonly paneCompositeService;
|
|
16
|
+
private readonly viewDescriptorService;
|
|
17
|
+
private readonly viewsService;
|
|
18
|
+
private readonly notificationService;
|
|
19
|
+
private readonly statusbarService;
|
|
20
|
+
private readonly layoutService;
|
|
21
|
+
private readonly keybindingService;
|
|
22
|
+
private readonly userActivityService;
|
|
23
|
+
readonly _serviceBrand: undefined;
|
|
24
|
+
constructor(activityService: IActivityService, paneCompositeService: IPaneCompositePartService, viewDescriptorService: IViewDescriptorService, viewsService: IViewsService, notificationService: INotificationService, statusbarService: IStatusbarService, layoutService: ILayoutService, keybindingService: IKeybindingService, userActivityService: IUserActivityService);
|
|
25
|
+
withProgress<R = unknown>(options: IProgressOptions, originalTask: (progress: IProgress<IProgressStep>) => Promise<R>, onDidCancel?: (choice?: number) => void): Promise<R>;
|
|
26
|
+
private readonly windowProgressStack;
|
|
27
|
+
private windowProgressStatusEntry;
|
|
28
|
+
private withWindowProgress;
|
|
29
|
+
private updateWindowProgress;
|
|
30
|
+
private withNotificationProgress;
|
|
31
|
+
private withPaneCompositeProgress;
|
|
32
|
+
private withViewProgress;
|
|
33
|
+
private showOnActivityBar;
|
|
34
|
+
private withCompositeProgress;
|
|
35
|
+
private withDialogProgress;
|
|
36
|
+
}
|
|
@@ -1,29 +1,34 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
|
+
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
|
|
2
3
|
import './media/progressService.css.js';
|
|
3
4
|
import { localize } from 'vscode/vscode/vs/nls';
|
|
4
5
|
import { Disposable, toDisposable, DisposableStore, dispose } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
5
|
-
import { Progress } from 'vscode/vscode/vs/platform/progress/common/progress';
|
|
6
|
+
import { ProgressLocation, Progress } from 'vscode/vscode/vs/platform/progress/common/progress';
|
|
6
7
|
import 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
8
|
+
import { StatusbarAlignment } from 'vscode/vscode/vs/workbench/services/statusbar/browser/statusbar';
|
|
7
9
|
import { IStatusbarService } from 'vscode/vscode/vs/workbench/services/statusbar/browser/statusbar.service';
|
|
8
10
|
import { timeout, DeferredPromise, RunOnceScheduler } from 'vscode/vscode/vs/base/common/async';
|
|
9
|
-
import { ProgressBadge } from 'vscode/vscode/vs/workbench/services/activity/common/activity';
|
|
11
|
+
import { ProgressBadge } from '@codingame/monaco-vscode-a7c9ae3c-16d2-5d17-86b2-981be7094566-common/vscode/vs/workbench/services/activity/common/activity';
|
|
10
12
|
import { IActivityService } from 'vscode/vscode/vs/workbench/services/activity/common/activity.service';
|
|
11
13
|
import { NotificationPriority, NotificationsFilter, isNotificationSource } from 'vscode/vscode/vs/platform/notification/common/notification';
|
|
12
14
|
import { INotificationService } from 'vscode/vscode/vs/platform/notification/common/notification.service';
|
|
13
15
|
import { Action } from 'vscode/vscode/vs/base/common/actions';
|
|
14
16
|
import { Emitter, Event } from 'vscode/vscode/vs/base/common/event';
|
|
17
|
+
import 'vscode/vscode/vs/platform/instantiation/common/extensions';
|
|
15
18
|
import { ILayoutService } from 'vscode/vscode/vs/platform/layout/browser/layoutService.service';
|
|
16
|
-
import { Dialog } from 'vscode/vscode/vs/base/browser/ui/dialog/dialog';
|
|
19
|
+
import { Dialog } from '@codingame/monaco-vscode-44b92f80-48ea-5562-a8d0-18a015f8d845-common/vscode/vs/base/browser/ui/dialog/dialog';
|
|
17
20
|
import { IKeybindingService } from 'vscode/vscode/vs/platform/keybinding/common/keybinding.service';
|
|
18
21
|
import { EventHelper } from 'vscode/vscode/vs/base/browser/dom';
|
|
19
22
|
import { parseLinkedText } from 'vscode/vscode/vs/base/common/linkedText';
|
|
23
|
+
import { ViewContainerLocation } from 'vscode/vscode/vs/workbench/common/views';
|
|
20
24
|
import { IViewDescriptorService } from 'vscode/vscode/vs/workbench/common/views.service';
|
|
21
25
|
import { IViewsService } from 'vscode/vscode/vs/workbench/services/views/common/viewsService.service';
|
|
22
26
|
import { IPaneCompositePartService } from 'vscode/vscode/vs/workbench/services/panecomposite/browser/panecomposite.service';
|
|
23
27
|
import { stripIcons } from 'vscode/vscode/vs/base/common/iconLabels';
|
|
24
28
|
import { defaultButtonStyles, defaultCheckboxStyles, defaultInputBoxStyles, defaultDialogStyles } from 'vscode/vscode/vs/platform/theme/browser/defaultStyles';
|
|
29
|
+
import { ResultKind } from 'vscode/vscode/vs/platform/keybinding/common/keybindingResolver';
|
|
25
30
|
import { IUserActivityService } from 'vscode/vscode/vs/workbench/services/userActivity/common/userActivityService.service';
|
|
26
|
-
import Severity
|
|
31
|
+
import Severity from 'vscode/vscode/vs/base/common/severity';
|
|
27
32
|
|
|
28
33
|
let ProgressService = class ProgressService extends Disposable {
|
|
29
34
|
constructor(activityService, paneCompositeService, viewDescriptorService, viewsService, notificationService, statusbarService, layoutService, keybindingService, userActivityService) {
|
|
@@ -62,13 +67,13 @@ let ProgressService = class ProgressService extends Disposable {
|
|
|
62
67
|
if (this.viewDescriptorService.getViewDescriptorById(location) !== null) {
|
|
63
68
|
return this.withViewProgress(location, task, { ...options, location });
|
|
64
69
|
}
|
|
65
|
-
throw (
|
|
70
|
+
throw ( new Error(`Bad progress location: ${location}`));
|
|
66
71
|
};
|
|
67
72
|
if (typeof location === 'string') {
|
|
68
73
|
return handleStringLocation(location);
|
|
69
74
|
}
|
|
70
75
|
switch (location) {
|
|
71
|
-
case
|
|
76
|
+
case ProgressLocation.Notification: {
|
|
72
77
|
let priority = options.priority;
|
|
73
78
|
if (priority !== NotificationPriority.URGENT) {
|
|
74
79
|
if (this.notificationService.getFilter() === NotificationsFilter.ERROR) {
|
|
@@ -80,27 +85,27 @@ let ProgressService = class ProgressService extends Disposable {
|
|
|
80
85
|
}
|
|
81
86
|
return this.withNotificationProgress({ ...options, location, priority }, task, onDidCancel);
|
|
82
87
|
}
|
|
83
|
-
case
|
|
88
|
+
case ProgressLocation.Window: {
|
|
84
89
|
const type = options.type;
|
|
85
90
|
if (options.command) {
|
|
86
91
|
return this.withWindowProgress({ ...options, location, type }, task);
|
|
87
92
|
}
|
|
88
|
-
return this.withNotificationProgress({ delay: 150 , ...options, priority: NotificationPriority.SILENT, location:
|
|
93
|
+
return this.withNotificationProgress({ delay: 150 , ...options, priority: NotificationPriority.SILENT, location: ProgressLocation.Notification, type }, task, onDidCancel);
|
|
89
94
|
}
|
|
90
|
-
case
|
|
91
|
-
return this.withPaneCompositeProgress('workbench.view.explorer',
|
|
92
|
-
case
|
|
95
|
+
case ProgressLocation.Explorer:
|
|
96
|
+
return this.withPaneCompositeProgress('workbench.view.explorer', ViewContainerLocation.Sidebar, task, { ...options, location });
|
|
97
|
+
case ProgressLocation.Scm:
|
|
93
98
|
return handleStringLocation('workbench.scm');
|
|
94
|
-
case
|
|
95
|
-
return this.withPaneCompositeProgress('workbench.view.extensions',
|
|
96
|
-
case
|
|
99
|
+
case ProgressLocation.Extensions:
|
|
100
|
+
return this.withPaneCompositeProgress('workbench.view.extensions', ViewContainerLocation.Sidebar, task, { ...options, location });
|
|
101
|
+
case ProgressLocation.Dialog:
|
|
97
102
|
return this.withDialogProgress(options, task, onDidCancel);
|
|
98
103
|
default:
|
|
99
|
-
throw (
|
|
104
|
+
throw ( new Error(`Bad progress location: ${location}`));
|
|
100
105
|
}
|
|
101
106
|
}
|
|
102
107
|
withWindowProgress(options, callback) {
|
|
103
|
-
const task = [options, (
|
|
108
|
+
const task = [options, ( new Progress(() => this.updateWindowProgress()))];
|
|
104
109
|
const promise = callback(task[1]);
|
|
105
110
|
let delayHandle = setTimeout(() => {
|
|
106
111
|
delayHandle = undefined;
|
|
@@ -127,23 +132,23 @@ let ProgressService = class ProgressService extends Disposable {
|
|
|
127
132
|
let title;
|
|
128
133
|
const source = options.source && typeof options.source !== 'string' ? options.source.label : options.source;
|
|
129
134
|
if (progressTitle && progressMessage) {
|
|
130
|
-
text = ( localize(
|
|
131
|
-
title = source ? ( localize(
|
|
135
|
+
text = ( localize(11708, "{0}: {1}", progressTitle, progressMessage));
|
|
136
|
+
title = source ? ( localize(11709, "[{0}] {1}: {2}", source, progressTitle, progressMessage)) : text;
|
|
132
137
|
}
|
|
133
138
|
else if (progressTitle) {
|
|
134
139
|
text = progressTitle;
|
|
135
|
-
title = source ? ( localize(
|
|
140
|
+
title = source ? ( localize(11710, "[{0}]: {1}", source, progressTitle)) : text;
|
|
136
141
|
}
|
|
137
142
|
else if (progressMessage) {
|
|
138
143
|
text = progressMessage;
|
|
139
|
-
title = source ? ( localize(
|
|
144
|
+
title = source ? ( localize(11710, "[{0}]: {1}", source, progressMessage)) : text;
|
|
140
145
|
}
|
|
141
146
|
else {
|
|
142
147
|
this.updateWindowProgress(idx + 1);
|
|
143
148
|
return;
|
|
144
149
|
}
|
|
145
150
|
const statusEntryProperties = {
|
|
146
|
-
name: ( localize(
|
|
151
|
+
name: ( localize(11711, "Progress Message")),
|
|
147
152
|
text,
|
|
148
153
|
showProgress: options.type || true,
|
|
149
154
|
ariaLabel: text,
|
|
@@ -154,7 +159,7 @@ let ProgressService = class ProgressService extends Disposable {
|
|
|
154
159
|
this.windowProgressStatusEntry.update(statusEntryProperties);
|
|
155
160
|
}
|
|
156
161
|
else {
|
|
157
|
-
this.windowProgressStatusEntry = this.statusbarService.addEntry(statusEntryProperties, 'status.progress',
|
|
162
|
+
this.windowProgressStatusEntry = this.statusbarService.addEntry(statusEntryProperties, 'status.progress', StatusbarAlignment.LEFT);
|
|
158
163
|
}
|
|
159
164
|
}
|
|
160
165
|
else {
|
|
@@ -168,9 +173,9 @@ let ProgressService = class ProgressService extends Disposable {
|
|
|
168
173
|
get done() { return this._done; }
|
|
169
174
|
constructor() {
|
|
170
175
|
super();
|
|
171
|
-
this._onDidReport = this._register((
|
|
176
|
+
this._onDidReport = this._register(( new Emitter()));
|
|
172
177
|
this.onDidReport = this._onDidReport.event;
|
|
173
|
-
this._onWillDispose = this._register((
|
|
178
|
+
this._onWillDispose = this._register(( new Emitter()));
|
|
174
179
|
this.onWillDispose = this._onWillDispose.event;
|
|
175
180
|
this._step = undefined;
|
|
176
181
|
this._done = false;
|
|
@@ -194,17 +199,17 @@ let ProgressService = class ProgressService extends Disposable {
|
|
|
194
199
|
}
|
|
195
200
|
});
|
|
196
201
|
const createWindowProgress = () => {
|
|
197
|
-
const promise = (
|
|
202
|
+
const promise = ( new DeferredPromise());
|
|
198
203
|
this.withWindowProgress({
|
|
199
|
-
location:
|
|
200
|
-
title: options.title ? (
|
|
204
|
+
location: ProgressLocation.Window,
|
|
205
|
+
title: options.title ? ( parseLinkedText(options.title).toString()) : undefined,
|
|
201
206
|
command: 'notifications.showList',
|
|
202
207
|
type: options.type
|
|
203
208
|
}, progress => {
|
|
204
209
|
function reportProgress(step) {
|
|
205
210
|
if (step.message) {
|
|
206
211
|
progress.report({
|
|
207
|
-
message: (
|
|
212
|
+
message: ( parseLinkedText(step.message).toString())
|
|
208
213
|
});
|
|
209
214
|
}
|
|
210
215
|
}
|
|
@@ -219,7 +224,7 @@ let ProgressService = class ProgressService extends Disposable {
|
|
|
219
224
|
return toDisposable(() => promise.complete());
|
|
220
225
|
};
|
|
221
226
|
const createNotification = (message, priority, increment) => {
|
|
222
|
-
const notificationDisposables = (
|
|
227
|
+
const notificationDisposables = ( new DisposableStore());
|
|
223
228
|
const primaryActions = options.primaryActions ? Array.from(options.primaryActions) : [];
|
|
224
229
|
const secondaryActions = options.secondaryActions ? Array.from(options.secondaryActions) : [];
|
|
225
230
|
if (options.buttons) {
|
|
@@ -239,7 +244,7 @@ let ProgressService = class ProgressService extends Disposable {
|
|
|
239
244
|
if (options.cancellable) {
|
|
240
245
|
const cancelAction = new (class extends Action {
|
|
241
246
|
constructor() {
|
|
242
|
-
super('progress.cancel', typeof options.cancellable === 'string' ? options.cancellable : ( localize(
|
|
247
|
+
super('progress.cancel', typeof options.cancellable === 'string' ? options.cancellable : ( localize(11712, "Cancel")), undefined, true);
|
|
243
248
|
}
|
|
244
249
|
async run() {
|
|
245
250
|
progressStateModel.cancel();
|
|
@@ -249,7 +254,7 @@ let ProgressService = class ProgressService extends Disposable {
|
|
|
249
254
|
primaryActions.push(cancelAction);
|
|
250
255
|
}
|
|
251
256
|
const notification = this.notificationService.notify({
|
|
252
|
-
severity: Severity
|
|
257
|
+
severity: Severity.Info,
|
|
253
258
|
message: stripIcons(message),
|
|
254
259
|
source: options.source,
|
|
255
260
|
actions: { primary: primaryActions, secondary: secondaryActions },
|
|
@@ -330,7 +335,7 @@ let ProgressService = class ProgressService extends Disposable {
|
|
|
330
335
|
withPaneCompositeProgress(paneCompositeId, viewContainerLocation, task, options) {
|
|
331
336
|
const progressIndicator = this.paneCompositeService.getProgressIndicator(paneCompositeId, viewContainerLocation);
|
|
332
337
|
const promise = progressIndicator ? this.withCompositeProgress(progressIndicator, task, options) : task({ report: () => { } });
|
|
333
|
-
if (viewContainerLocation ===
|
|
338
|
+
if (viewContainerLocation === ViewContainerLocation.Sidebar) {
|
|
334
339
|
this.showOnActivityBar(paneCompositeId, options, promise);
|
|
335
340
|
}
|
|
336
341
|
return promise;
|
|
@@ -339,7 +344,7 @@ let ProgressService = class ProgressService extends Disposable {
|
|
|
339
344
|
const progressIndicator = this.viewsService.getViewProgressIndicator(viewId);
|
|
340
345
|
const promise = progressIndicator ? this.withCompositeProgress(progressIndicator, task, options) : task({ report: () => { } });
|
|
341
346
|
const location = this.viewDescriptorService.getViewLocationById(viewId);
|
|
342
|
-
if (location !==
|
|
347
|
+
if (location !== ViewContainerLocation.Sidebar) {
|
|
343
348
|
return promise;
|
|
344
349
|
}
|
|
345
350
|
const viewletId = this.viewDescriptorService.getViewContainerByViewId(viewId)?.id;
|
|
@@ -353,7 +358,7 @@ let ProgressService = class ProgressService extends Disposable {
|
|
|
353
358
|
let activityProgress;
|
|
354
359
|
let delayHandle = setTimeout(() => {
|
|
355
360
|
delayHandle = undefined;
|
|
356
|
-
const handle = this.activityService.showViewContainerActivity(viewletId, { badge: (
|
|
361
|
+
const handle = this.activityService.showViewContainerActivity(viewletId, { badge: ( new ProgressBadge(() => '')), priority: 100 });
|
|
357
362
|
const startTimeVisible = Date.now();
|
|
358
363
|
const minTimeVisible = 300;
|
|
359
364
|
activityProgress = {
|
|
@@ -411,7 +416,7 @@ let ProgressService = class ProgressService extends Disposable {
|
|
|
411
416
|
return promise;
|
|
412
417
|
}
|
|
413
418
|
withDialogProgress(options, task, onDidCancel) {
|
|
414
|
-
const disposables = (
|
|
419
|
+
const disposables = ( new DisposableStore());
|
|
415
420
|
const allowableCommands = [
|
|
416
421
|
'workbench.action.quit',
|
|
417
422
|
'workbench.action.reloadWindow',
|
|
@@ -425,10 +430,10 @@ let ProgressService = class ProgressService extends Disposable {
|
|
|
425
430
|
const buttons = options.buttons || [];
|
|
426
431
|
if (!options.sticky) {
|
|
427
432
|
buttons.push(options.cancellable
|
|
428
|
-
? (typeof options.cancellable === 'boolean' ? ( localize(
|
|
429
|
-
: ( localize(
|
|
433
|
+
? (typeof options.cancellable === 'boolean' ? ( localize(11712, "Cancel")) : options.cancellable)
|
|
434
|
+
: ( localize(11713, "Dismiss")));
|
|
430
435
|
}
|
|
431
|
-
dialog = (
|
|
436
|
+
dialog = ( new Dialog(this.layoutService.activeContainer, message, buttons, {
|
|
432
437
|
type: 'pending',
|
|
433
438
|
detail: options.detail,
|
|
434
439
|
cancelId: buttons.length - 1,
|
|
@@ -436,7 +441,7 @@ let ProgressService = class ProgressService extends Disposable {
|
|
|
436
441
|
disableDefaultAction: options.sticky,
|
|
437
442
|
keyEventProcessor: (event) => {
|
|
438
443
|
const resolved = this.keybindingService.softDispatch(event, this.layoutService.activeContainer);
|
|
439
|
-
if (resolved.kind ===
|
|
444
|
+
if (resolved.kind === ResultKind.KbFound && resolved.commandId) {
|
|
440
445
|
if (!allowableCommands.includes(resolved.commandId)) {
|
|
441
446
|
EventHelper.stop(event, true);
|
|
442
447
|
}
|
|
@@ -446,7 +451,7 @@ let ProgressService = class ProgressService extends Disposable {
|
|
|
446
451
|
checkboxStyles: defaultCheckboxStyles,
|
|
447
452
|
inputBoxStyles: defaultInputBoxStyles,
|
|
448
453
|
dialogStyles: defaultDialogStyles
|
|
449
|
-
}))
|
|
454
|
+
}));
|
|
450
455
|
disposables.add(dialog);
|
|
451
456
|
dialog.show().then(dialogResult => {
|
|
452
457
|
onDidCancel?.(dialogResult.button);
|
|
@@ -456,7 +461,7 @@ let ProgressService = class ProgressService extends Disposable {
|
|
|
456
461
|
};
|
|
457
462
|
let delay = options.delay ?? 0;
|
|
458
463
|
let latestMessage = undefined;
|
|
459
|
-
const scheduler = disposables.add((
|
|
464
|
+
const scheduler = disposables.add(( new RunOnceScheduler(() => {
|
|
460
465
|
delay = 0;
|
|
461
466
|
if (latestMessage && !dialog) {
|
|
462
467
|
dialog = createDialog(latestMessage);
|
|
@@ -464,7 +469,7 @@ let ProgressService = class ProgressService extends Disposable {
|
|
|
464
469
|
else if (latestMessage) {
|
|
465
470
|
dialog.updateMessage(latestMessage);
|
|
466
471
|
}
|
|
467
|
-
}, 0)))
|
|
472
|
+
}, 0)));
|
|
468
473
|
const updateDialog = function (message) {
|
|
469
474
|
latestMessage = message;
|
|
470
475
|
if (!scheduler.isScheduled()) {
|
|
@@ -485,16 +490,16 @@ let ProgressService = class ProgressService extends Disposable {
|
|
|
485
490
|
return promise;
|
|
486
491
|
}
|
|
487
492
|
};
|
|
488
|
-
ProgressService = (
|
|
489
|
-
(
|
|
490
|
-
(
|
|
491
|
-
(
|
|
492
|
-
(
|
|
493
|
-
(
|
|
494
|
-
(
|
|
495
|
-
(
|
|
496
|
-
(
|
|
497
|
-
(
|
|
498
|
-
], ProgressService))
|
|
493
|
+
ProgressService = ( __decorate([
|
|
494
|
+
( __param(0, IActivityService)),
|
|
495
|
+
( __param(1, IPaneCompositePartService)),
|
|
496
|
+
( __param(2, IViewDescriptorService)),
|
|
497
|
+
( __param(3, IViewsService)),
|
|
498
|
+
( __param(4, INotificationService)),
|
|
499
|
+
( __param(5, IStatusbarService)),
|
|
500
|
+
( __param(6, ILayoutService)),
|
|
501
|
+
( __param(7, IKeybindingService)),
|
|
502
|
+
( __param(8, IUserActivityService))
|
|
503
|
+
], ProgressService));
|
|
499
504
|
|
|
500
505
|
export { ProgressService };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { Disposable } from "vscode/vscode/vs/base/common/lifecycle";
|
|
2
|
+
import { IEditorSerializer } from "vscode/vscode/vs/workbench/common/editor";
|
|
3
|
+
import { EditorInput } from "vscode/vscode/vs/workbench/common/editor/editorInput";
|
|
4
|
+
import { ITextEditorService } from "vscode/vscode/vs/workbench/services/textfile/common/textEditorService.service";
|
|
5
|
+
import { IInstantiationService } from "vscode/vscode/vs/platform/instantiation/common/instantiation";
|
|
6
|
+
import { IWorkbenchEnvironmentService } from "vscode/vscode/vs/workbench/services/environment/common/environmentService.service";
|
|
7
|
+
import { IFilesConfigurationService } from "vscode/vscode/vs/workbench/services/filesConfiguration/common/filesConfigurationService.service";
|
|
8
|
+
import { IPathService } from "vscode/vscode/vs/workbench/services/path/common/pathService.service";
|
|
9
|
+
import { UntitledTextEditorInput } from "@codingame/monaco-vscode-5945a5e2-a66c-5a82-bd2c-1965724b29eb-common/vscode/vs/workbench/services/untitled/common/untitledTextEditorInput";
|
|
10
|
+
import { IWorkbenchContribution } from "vscode/vscode/vs/workbench/common/contributions";
|
|
11
|
+
import { IWorkingCopyIdentifier } from "@codingame/monaco-vscode-a4683c2b-a0d2-5112-96ba-eedc605346d2-common/vscode/vs/workbench/services/workingCopy/common/workingCopy";
|
|
12
|
+
import { IWorkingCopyEditorHandler } from "@codingame/monaco-vscode-working-copy-service-override/vscode/vs/workbench/services/workingCopy/common/workingCopyEditorService";
|
|
13
|
+
import { IWorkingCopyEditorService } from "vscode/vscode/vs/workbench/services/workingCopy/common/workingCopyEditorService.service";
|
|
14
|
+
import { IUntitledTextEditorService } from "vscode/vscode/vs/workbench/services/untitled/common/untitledTextEditorService.service";
|
|
15
|
+
export declare class UntitledTextEditorInputSerializer implements IEditorSerializer {
|
|
16
|
+
private readonly filesConfigurationService;
|
|
17
|
+
private readonly environmentService;
|
|
18
|
+
private readonly pathService;
|
|
19
|
+
constructor(filesConfigurationService: IFilesConfigurationService, environmentService: IWorkbenchEnvironmentService, pathService: IPathService);
|
|
20
|
+
canSerialize(editorInput: EditorInput): boolean;
|
|
21
|
+
serialize(editorInput: EditorInput): string | undefined;
|
|
22
|
+
deserialize(instantiationService: IInstantiationService, serializedEditorInput: string): UntitledTextEditorInput;
|
|
23
|
+
}
|
|
24
|
+
export declare class UntitledTextEditorWorkingCopyEditorHandler extends Disposable implements IWorkbenchContribution, IWorkingCopyEditorHandler {
|
|
25
|
+
private readonly environmentService;
|
|
26
|
+
private readonly pathService;
|
|
27
|
+
private readonly textEditorService;
|
|
28
|
+
private readonly untitledTextEditorService;
|
|
29
|
+
static readonly ID = "workbench.contrib.untitledTextEditorWorkingCopyEditorHandler";
|
|
30
|
+
constructor(workingCopyEditorService: IWorkingCopyEditorService, environmentService: IWorkbenchEnvironmentService, pathService: IPathService, textEditorService: ITextEditorService, untitledTextEditorService: IUntitledTextEditorService);
|
|
31
|
+
handles(workingCopy: IWorkingCopyIdentifier): boolean;
|
|
32
|
+
isOpen(workingCopy: IWorkingCopyIdentifier, editor: EditorInput): boolean;
|
|
33
|
+
createEditor(workingCopy: IWorkingCopyIdentifier): EditorInput;
|
|
34
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
|
+
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
|
|
2
3
|
import { Schemas } from 'vscode/vscode/vs/base/common/network';
|
|
3
4
|
import { Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
4
5
|
import { URI } from 'vscode/vscode/vs/base/common/uri';
|
|
@@ -8,8 +9,8 @@ import { PLAINTEXT_LANGUAGE_ID } from 'vscode/vscode/vs/editor/common/languages/
|
|
|
8
9
|
import { IWorkbenchEnvironmentService } from 'vscode/vscode/vs/workbench/services/environment/common/environmentService.service';
|
|
9
10
|
import { IFilesConfigurationService } from 'vscode/vscode/vs/workbench/services/filesConfiguration/common/filesConfigurationService.service';
|
|
10
11
|
import { IPathService } from 'vscode/vscode/vs/workbench/services/path/common/pathService.service';
|
|
11
|
-
import { UntitledTextEditorInput } from 'vscode/vscode/vs/workbench/services/untitled/common/untitledTextEditorInput';
|
|
12
|
-
import { NO_TYPE_ID } from 'vscode/vscode/vs/workbench/services/workingCopy/common/workingCopy';
|
|
12
|
+
import { UntitledTextEditorInput } from '@codingame/monaco-vscode-5945a5e2-a66c-5a82-bd2c-1965724b29eb-common/vscode/vs/workbench/services/untitled/common/untitledTextEditorInput';
|
|
13
|
+
import { NO_TYPE_ID } from '@codingame/monaco-vscode-a4683c2b-a0d2-5112-96ba-eedc605346d2-common/vscode/vs/workbench/services/workingCopy/common/workingCopy';
|
|
13
14
|
import { IWorkingCopyEditorService } from 'vscode/vscode/vs/workbench/services/workingCopy/common/workingCopyEditorService.service';
|
|
14
15
|
import { IUntitledTextEditorService } from 'vscode/vscode/vs/workbench/services/untitled/common/untitledTextEditorService.service';
|
|
15
16
|
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { URI } from "vscode/vscode/vs/base/common/uri";
|
|
2
|
+
import { IInstantiationService } from "vscode/vscode/vs/platform/instantiation/common/instantiation";
|
|
3
|
+
import { UntitledTextEditorModel, IUntitledTextEditorModel } from "@codingame/monaco-vscode-0c06bfba-d24d-5c4d-90cd-b40cefb7f811-common/vscode/vs/workbench/services/untitled/common/untitledTextEditorModel";
|
|
4
|
+
import { IConfigurationService } from "vscode/vscode/vs/platform/configuration/common/configuration.service";
|
|
5
|
+
import { Event } from "vscode/vscode/vs/base/common/event";
|
|
6
|
+
import { Disposable } from "vscode/vscode/vs/base/common/lifecycle";
|
|
7
|
+
import { IUntitledTextEditorService } from "vscode/vscode/vs/workbench/services/untitled/common/untitledTextEditorService.service";
|
|
8
|
+
export interface INewUntitledTextEditorOptions {
|
|
9
|
+
initialValue?: string;
|
|
10
|
+
languageId?: string;
|
|
11
|
+
encoding?: string;
|
|
12
|
+
}
|
|
13
|
+
export interface IExistingUntitledTextEditorOptions extends INewUntitledTextEditorOptions {
|
|
14
|
+
untitledResource?: URI;
|
|
15
|
+
}
|
|
16
|
+
export interface INewUntitledTextEditorWithAssociatedResourceOptions extends INewUntitledTextEditorOptions {
|
|
17
|
+
associatedResource?: {
|
|
18
|
+
authority: string;
|
|
19
|
+
path: string;
|
|
20
|
+
query: string;
|
|
21
|
+
fragment: string;
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
type IInternalUntitledTextEditorOptions = IExistingUntitledTextEditorOptions & INewUntitledTextEditorWithAssociatedResourceOptions;
|
|
25
|
+
export interface IUntitledTextEditorModelManager {
|
|
26
|
+
readonly onDidChangeDirty: Event<IUntitledTextEditorModel>;
|
|
27
|
+
readonly onDidChangeEncoding: Event<IUntitledTextEditorModel>;
|
|
28
|
+
readonly onDidChangeLabel: Event<IUntitledTextEditorModel>;
|
|
29
|
+
readonly onDidCreate: Event<IUntitledTextEditorModel>;
|
|
30
|
+
readonly onWillDispose: Event<IUntitledTextEditorModel>;
|
|
31
|
+
create(options?: INewUntitledTextEditorOptions): IUntitledTextEditorModel;
|
|
32
|
+
create(options?: INewUntitledTextEditorWithAssociatedResourceOptions): IUntitledTextEditorModel;
|
|
33
|
+
create(options?: IExistingUntitledTextEditorOptions): IUntitledTextEditorModel;
|
|
34
|
+
get(resource: URI): IUntitledTextEditorModel | undefined;
|
|
35
|
+
getValue(resource: URI): string | undefined;
|
|
36
|
+
resolve(options?: INewUntitledTextEditorOptions): Promise<IUntitledTextEditorModel>;
|
|
37
|
+
resolve(options?: INewUntitledTextEditorWithAssociatedResourceOptions): Promise<IUntitledTextEditorModel>;
|
|
38
|
+
resolve(options?: IExistingUntitledTextEditorOptions): Promise<IUntitledTextEditorModel>;
|
|
39
|
+
isUntitledWithAssociatedResource(resource: URI): boolean;
|
|
40
|
+
canDispose(model: IUntitledTextEditorModel): true | Promise<true>;
|
|
41
|
+
}
|
|
42
|
+
export declare class UntitledTextEditorService extends Disposable implements IUntitledTextEditorService {
|
|
43
|
+
private readonly instantiationService;
|
|
44
|
+
private readonly configurationService;
|
|
45
|
+
readonly _serviceBrand: undefined;
|
|
46
|
+
private static readonly UNTITLED_WITHOUT_ASSOCIATED_RESOURCE_REGEX;
|
|
47
|
+
private readonly _onDidChangeDirty;
|
|
48
|
+
readonly onDidChangeDirty: Event<IUntitledTextEditorModel>;
|
|
49
|
+
private readonly _onDidChangeEncoding;
|
|
50
|
+
readonly onDidChangeEncoding: Event<IUntitledTextEditorModel>;
|
|
51
|
+
private readonly _onDidCreate;
|
|
52
|
+
readonly onDidCreate: Event<IUntitledTextEditorModel>;
|
|
53
|
+
private readonly _onWillDispose;
|
|
54
|
+
readonly onWillDispose: Event<IUntitledTextEditorModel>;
|
|
55
|
+
private readonly _onDidChangeLabel;
|
|
56
|
+
readonly onDidChangeLabel: Event<IUntitledTextEditorModel>;
|
|
57
|
+
private readonly mapResourceToModel;
|
|
58
|
+
constructor(instantiationService: IInstantiationService, configurationService: IConfigurationService);
|
|
59
|
+
get(resource: URI): UntitledTextEditorModel | undefined;
|
|
60
|
+
getValue(resource: URI): string | undefined;
|
|
61
|
+
resolve(options?: IInternalUntitledTextEditorOptions): Promise<UntitledTextEditorModel>;
|
|
62
|
+
create(options?: IInternalUntitledTextEditorOptions): UntitledTextEditorModel;
|
|
63
|
+
private doCreateOrGet;
|
|
64
|
+
private massageOptions;
|
|
65
|
+
private doCreate;
|
|
66
|
+
private registerModel;
|
|
67
|
+
isUntitledWithAssociatedResource(resource: URI): boolean;
|
|
68
|
+
canDispose(model: UntitledTextEditorModel): true | Promise<true>;
|
|
69
|
+
private doCanDispose;
|
|
70
|
+
}
|
|
71
|
+
export {};
|
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
|
+
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
|
|
2
3
|
import { URI } from 'vscode/vscode/vs/base/common/uri';
|
|
3
4
|
import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
4
|
-
import { UntitledTextEditorModel } from 'vscode/vscode/vs/workbench/services/untitled/common/untitledTextEditorModel';
|
|
5
|
+
import { UntitledTextEditorModel } from '@codingame/monaco-vscode-0c06bfba-d24d-5c4d-90cd-b40cefb7f811-common/vscode/vs/workbench/services/untitled/common/untitledTextEditorModel';
|
|
5
6
|
import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration.service';
|
|
6
7
|
import { Emitter, Event } from 'vscode/vscode/vs/base/common/event';
|
|
7
8
|
import { ResourceMap } from 'vscode/vscode/vs/base/common/map';
|
|
8
9
|
import { Schemas } from 'vscode/vscode/vs/base/common/network';
|
|
9
10
|
import { Disposable, DisposableStore } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
11
|
+
import 'vscode/vscode/vs/platform/instantiation/common/extensions';
|
|
10
12
|
|
|
11
13
|
var UntitledTextEditorService_1;
|
|
12
14
|
let UntitledTextEditorService = class UntitledTextEditorService extends Disposable {
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import { ViewContainerLocation, ViewContainer, IViewDescriptor, ViewVisibilityState } from "vscode/vscode/vs/workbench/common/views";
|
|
2
|
+
import { IViewDescriptorService } from "vscode/vscode/vs/workbench/common/views.service";
|
|
3
|
+
import { IContextKeyService } from "vscode/vscode/vs/platform/contextkey/common/contextkey.service";
|
|
4
|
+
import { IStorageService } from "vscode/vscode/vs/platform/storage/common/storage.service";
|
|
5
|
+
import { IExtensionService } from "vscode/vscode/vs/workbench/services/extensions/common/extensions.service";
|
|
6
|
+
import { Disposable } from "vscode/vscode/vs/base/common/lifecycle";
|
|
7
|
+
import { Event } from "vscode/vscode/vs/base/common/event";
|
|
8
|
+
import { ITelemetryService } from "vscode/vscode/vs/platform/telemetry/common/telemetry.service";
|
|
9
|
+
import { IInstantiationService } from "vscode/vscode/vs/platform/instantiation/common/instantiation";
|
|
10
|
+
import { ViewContainerModel } from "../common/viewContainerModel.js";
|
|
11
|
+
import { ILoggerService } from "vscode/vscode/vs/platform/log/common/log.service";
|
|
12
|
+
export declare class ViewDescriptorService extends Disposable implements IViewDescriptorService {
|
|
13
|
+
private readonly instantiationService;
|
|
14
|
+
private readonly contextKeyService;
|
|
15
|
+
private readonly storageService;
|
|
16
|
+
private readonly extensionService;
|
|
17
|
+
private readonly telemetryService;
|
|
18
|
+
readonly _serviceBrand: undefined;
|
|
19
|
+
private static readonly VIEWS_CUSTOMIZATIONS;
|
|
20
|
+
private static readonly COMMON_CONTAINER_ID_PREFIX;
|
|
21
|
+
private readonly _onDidChangeContainer;
|
|
22
|
+
readonly onDidChangeContainer: Event<{
|
|
23
|
+
views: IViewDescriptor[];
|
|
24
|
+
from: ViewContainer;
|
|
25
|
+
to: ViewContainer;
|
|
26
|
+
}>;
|
|
27
|
+
private readonly _onDidChangeLocation;
|
|
28
|
+
readonly onDidChangeLocation: Event<{
|
|
29
|
+
views: IViewDescriptor[];
|
|
30
|
+
from: ViewContainerLocation;
|
|
31
|
+
to: ViewContainerLocation;
|
|
32
|
+
}>;
|
|
33
|
+
private readonly _onDidChangeContainerLocation;
|
|
34
|
+
readonly onDidChangeContainerLocation: Event<{
|
|
35
|
+
viewContainer: ViewContainer;
|
|
36
|
+
from: ViewContainerLocation;
|
|
37
|
+
to: ViewContainerLocation;
|
|
38
|
+
}>;
|
|
39
|
+
private readonly viewContainerModels;
|
|
40
|
+
private readonly viewsVisibilityActionDisposables;
|
|
41
|
+
private canRegisterViewsVisibilityActions;
|
|
42
|
+
private readonly activeViewContextKeys;
|
|
43
|
+
private readonly movableViewContextKeys;
|
|
44
|
+
private readonly defaultViewLocationContextKeys;
|
|
45
|
+
private readonly defaultViewContainerLocationContextKeys;
|
|
46
|
+
private readonly viewsRegistry;
|
|
47
|
+
private readonly viewContainersRegistry;
|
|
48
|
+
private viewContainersCustomLocations;
|
|
49
|
+
private viewDescriptorsCustomLocations;
|
|
50
|
+
private viewContainerBadgeEnablementStates;
|
|
51
|
+
private readonly _onDidChangeViewContainers;
|
|
52
|
+
readonly onDidChangeViewContainers: Event<{
|
|
53
|
+
added: ReadonlyArray<{
|
|
54
|
+
container: ViewContainer;
|
|
55
|
+
location: ViewContainerLocation;
|
|
56
|
+
}>;
|
|
57
|
+
removed: ReadonlyArray<{
|
|
58
|
+
container: ViewContainer;
|
|
59
|
+
location: ViewContainerLocation;
|
|
60
|
+
}>;
|
|
61
|
+
}>;
|
|
62
|
+
get viewContainers(): ReadonlyArray<ViewContainer>;
|
|
63
|
+
private readonly logger;
|
|
64
|
+
constructor(instantiationService: IInstantiationService, contextKeyService: IContextKeyService, storageService: IStorageService, extensionService: IExtensionService, telemetryService: ITelemetryService, loggerService: ILoggerService);
|
|
65
|
+
private migrateToViewsCustomizationsStorage;
|
|
66
|
+
private registerGroupedViews;
|
|
67
|
+
private deregisterGroupedViews;
|
|
68
|
+
private moveOrphanViewsToDefaultLocation;
|
|
69
|
+
whenExtensionsRegistered(): void;
|
|
70
|
+
private onDidRegisterViews;
|
|
71
|
+
private isGeneratedContainerId;
|
|
72
|
+
private onDidDeregisterViews;
|
|
73
|
+
private regroupViews;
|
|
74
|
+
getViewDescriptorById(viewId: string): IViewDescriptor | null;
|
|
75
|
+
getViewLocationById(viewId: string): ViewContainerLocation | null;
|
|
76
|
+
getViewContainerByViewId(viewId: string): ViewContainer | null;
|
|
77
|
+
getViewContainerLocation(viewContainer: ViewContainer): ViewContainerLocation;
|
|
78
|
+
getDefaultViewContainerLocation(viewContainer: ViewContainer): ViewContainerLocation;
|
|
79
|
+
getDefaultContainerById(viewId: string): ViewContainer | null;
|
|
80
|
+
getViewContainerModel(container: ViewContainer): ViewContainerModel;
|
|
81
|
+
getViewContainerById(id: string): ViewContainer | null;
|
|
82
|
+
getViewContainersByLocation(location: ViewContainerLocation): ViewContainer[];
|
|
83
|
+
getDefaultViewContainer(location: ViewContainerLocation): ViewContainer | undefined;
|
|
84
|
+
moveViewContainerToLocation(viewContainer: ViewContainer, location: ViewContainerLocation, requestedIndex?: number, reason?: string): void;
|
|
85
|
+
getViewContainerBadgeEnablementState(id: string): boolean;
|
|
86
|
+
setViewContainerBadgeEnablementState(id: string, badgesEnabled: boolean): void;
|
|
87
|
+
moveViewToLocation(view: IViewDescriptor, location: ViewContainerLocation, reason?: string): void;
|
|
88
|
+
moveViewsToContainer(views: IViewDescriptor[], viewContainer: ViewContainer, visibilityState?: ViewVisibilityState, reason?: string): void;
|
|
89
|
+
reset(): void;
|
|
90
|
+
isViewContainerRemovedPermanently(viewContainerId: string): boolean;
|
|
91
|
+
private onDidChangeDefaultContainer;
|
|
92
|
+
private reportMovedViews;
|
|
93
|
+
private moveViewsWithoutSaving;
|
|
94
|
+
private moveViewContainerToLocationWithoutSaving;
|
|
95
|
+
private cleanUpGeneratedViewContainer;
|
|
96
|
+
private registerGeneratedViewContainer;
|
|
97
|
+
private onDidStorageChange;
|
|
98
|
+
private onDidViewCustomizationsStorageChange;
|
|
99
|
+
private generateContainerId;
|
|
100
|
+
private saveViewCustomizations;
|
|
101
|
+
private _viewCustomizations;
|
|
102
|
+
private get viewCustomizations();
|
|
103
|
+
private set viewCustomizations(value);
|
|
104
|
+
private getStoredViewCustomizationsValue;
|
|
105
|
+
private setStoredViewCustomizationsValue;
|
|
106
|
+
private getViewsByContainer;
|
|
107
|
+
private onDidRegisterViewContainer;
|
|
108
|
+
private getOrRegisterViewContainerModel;
|
|
109
|
+
private onDidDeregisterViewContainer;
|
|
110
|
+
private onDidChangeActiveViews;
|
|
111
|
+
private onDidChangeVisibleViews;
|
|
112
|
+
private registerViewsVisibilityActions;
|
|
113
|
+
private registerViewsVisibilityActionsForContainer;
|
|
114
|
+
private registerResetViewContainerAction;
|
|
115
|
+
private addViews;
|
|
116
|
+
private removeViews;
|
|
117
|
+
private getOrCreateActiveViewContextKey;
|
|
118
|
+
private getOrCreateVisibleViewContextKey;
|
|
119
|
+
private getOrCreateMovableViewContextKey;
|
|
120
|
+
private getOrCreateDefaultViewLocationContextKey;
|
|
121
|
+
private getOrCreateDefaultViewContainerLocationContextKey;
|
|
122
|
+
}
|