@codingame/monaco-vscode-view-common-service-override 23.3.0 → 24.1.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.js +22 -22
- package/package.json +3 -41
- package/service-override/tools/editorAssets.js +1 -1
- package/service-override/vs/workbench/contrib/webview/browser/pre/index.html +2 -2
- package/service-override/vs/workbench/contrib/webview/browser/pre/service-worker.js +1 -1
- package/vscode/src/vs/platform/webview/common/webviewPortMapping.d.ts +1 -1
- package/vscode/src/vs/workbench/api/browser/viewsExtensionPoint.js +68 -68
- package/vscode/src/vs/workbench/browser/actions/helpActions.js +20 -20
- package/vscode/src/vs/workbench/browser/actions/listCommands.js +3 -3
- package/vscode/src/vs/workbench/browser/actions/navigationActions.js +7 -7
- package/vscode/src/vs/workbench/browser/parts/editor/editor.contribution.js +181 -181
- package/vscode/src/vs/workbench/browser/parts/editor/editorConfiguration.js +8 -9
- package/vscode/src/vs/workbench/browser/parts/paneCompositePartService.d.ts +1 -1
- package/vscode/src/vs/workbench/browser/parts/paneCompositePartService.js +3 -3
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchy.contribution.js +13 -13
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyPeek.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyPeek.js +6 -6
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyTree.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyTree.js +4 -4
- package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditor.contribution.js +3 -3
- package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditorInputFactory.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditorInputFactory.js +3 -3
- package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditors.js +1 -1
- package/vscode/src/vs/workbench/contrib/customEditor/common/contributedCustomEditors.js +2 -2
- package/vscode/src/vs/workbench/contrib/customEditor/common/customEditor.js +1 -1
- package/vscode/src/vs/workbench/contrib/customEditor/common/extensionPoint.js +12 -12
- package/vscode/src/vs/workbench/contrib/externalUriOpener/common/externalUriOpener.contribution.js +2 -2
- package/vscode/src/vs/workbench/contrib/languageStatus/browser/languageStatus.js +7 -7
- package/vscode/src/vs/workbench/contrib/limitIndicator/browser/limitIndicator.contribution.js +8 -8
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/commands/commands.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/commands/commands.js +32 -32
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/commands/devCommands.js +15 -15
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditor.contribution.js +5 -5
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorAccessibilityHelp.js +5 -5
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorSerializer.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorSerializer.js +1 -1
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/colors.js +13 -13
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editorGutter.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editorGutter.js +1 -1
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/baseCodeEditorView.js +4 -4
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/codeEditorView.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/codeEditorView.js +1 -1
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/inputCodeEditorView.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/inputCodeEditorView.js +13 -13
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/resultCodeEditorView.js +8 -8
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/lineAlignment.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/lineAlignment.js +2 -2
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/mergeEditor.d.ts +4 -4
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/mergeEditor.js +7 -7
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/scrollSynchronizer.js +2 -2
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/viewModel.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/viewModel.js +2 -2
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/viewZones.js +3 -3
- package/vscode/src/vs/workbench/contrib/preferences/browser/keyboardLayoutPicker.js +14 -14
- package/vscode/src/vs/workbench/contrib/sash/browser/sash.contribution.js +2 -2
- package/vscode/src/vs/workbench/contrib/scrollLocking/browser/scrollLocking.js +9 -9
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchy.contribution.js +11 -11
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyPeek.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyPeek.js +6 -6
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyTree.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyTree.js +4 -4
- package/vscode/src/vs/workbench/contrib/webview/browser/overlayWebview.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/webview/browser/overlayWebview.js +1 -1
- package/vscode/src/vs/workbench/contrib/webview/browser/themeing.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/webview/browser/webviewElement.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/webview/browser/webviewElement.js +3 -3
- package/vscode/src/vs/workbench/contrib/webview/browser/webviewFindWidget.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/webview/browser/webviewFindWidget.js +2 -2
- package/vscode/src/vs/workbench/contrib/webview/browser/webviewService.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewCommands.js +8 -8
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditorInputSerializer.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditorInputSerializer.js +1 -1
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewPanel.contribution.js +5 -5
- package/vscode/src/vs/workbench/contrib/webviewView/browser/webviewViewPane.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/webviewView/browser/webviewViewPane.js +6 -6
- package/vscode/src/vs/workbench/contrib/webviewView/browser/webviewViewService.d.ts +1 -1
- package/vscode/src/vs/workbench/services/editor/browser/editorPaneService.js +1 -1
- package/vscode/src/vs/workbench/services/editor/browser/editorResolverService.js +10 -10
- package/vscode/src/vs/workbench/services/history/browser/historyService.js +23 -34
- package/vscode/src/vs/workbench/services/progress/browser/media/progressService.css +4 -4
- package/vscode/src/vs/workbench/services/progress/browser/progressService.js +11 -11
- package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorHandler.d.ts +2 -2
- package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorHandler.js +2 -2
- package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorService.d.ts +1 -1
- package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorService.js +1 -1
- package/vscode/src/vs/workbench/services/views/browser/viewDescriptorService.js +6 -6
|
@@ -6,7 +6,7 @@ import { URI } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri";
|
|
|
6
6
|
import { IContextKeyService } from "@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service";
|
|
7
7
|
import { ExtensionIdentifier } from "@codingame/monaco-vscode-api/vscode/vs/platform/extensions/common/extensions";
|
|
8
8
|
import { IWorkbenchLayoutService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/layout/browser/layoutService.service";
|
|
9
|
-
import { IOverlayWebview, WebviewContentOptions, WebviewExtensionDescription, WebviewInitInfo, WebviewMessageReceivedEvent, WebviewOptions } from "@codingame/monaco-vscode-
|
|
9
|
+
import { IOverlayWebview, WebviewContentOptions, WebviewExtensionDescription, WebviewInitInfo, WebviewMessageReceivedEvent, WebviewOptions } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/webview/browser/webview";
|
|
10
10
|
import { IWebviewService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/webview/browser/webview.service";
|
|
11
11
|
/**
|
|
12
12
|
* Webview that is absolutely positioned over another element and that can creates and destroys an underlying webview as needed.
|
|
@@ -8,7 +8,7 @@ import '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/in
|
|
|
8
8
|
import { generateUuid } from '@codingame/monaco-vscode-api/vscode/vs/base/common/uuid';
|
|
9
9
|
import { IContextKeyService } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service';
|
|
10
10
|
import { IWorkbenchLayoutService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/layout/browser/layoutService.service';
|
|
11
|
-
import { KEYBINDING_CONTEXT_WEBVIEW_FIND_WIDGET_VISIBLE, KEYBINDING_CONTEXT_WEBVIEW_FIND_WIDGET_ENABLED } from '@codingame/monaco-vscode-
|
|
11
|
+
import { KEYBINDING_CONTEXT_WEBVIEW_FIND_WIDGET_VISIBLE, KEYBINDING_CONTEXT_WEBVIEW_FIND_WIDGET_ENABLED } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/webview/browser/webview';
|
|
12
12
|
import { IWebviewService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/webview/browser/webview.service';
|
|
13
13
|
import { observableValue } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/observables/observableValue';
|
|
14
14
|
import { autorun } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/reactions/autorun';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
2
2
|
import { IConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service";
|
|
3
|
-
import { IWorkbenchColorTheme } from "@codingame/monaco-vscode-
|
|
3
|
+
import { IWorkbenchColorTheme } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/themes/common/workbenchThemeService";
|
|
4
4
|
import { IWorkbenchThemeService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/themes/common/workbenchThemeService.service";
|
|
5
|
-
import { WebviewStyles } from "@codingame/monaco-vscode-
|
|
5
|
+
import { WebviewStyles } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/webview/browser/webview";
|
|
6
6
|
interface WebviewThemeData {
|
|
7
7
|
readonly activeTheme: string;
|
|
8
8
|
readonly themeLabel: string;
|
|
@@ -17,7 +17,7 @@ import { IRemoteAuthorityResolverService } from "@codingame/monaco-vscode-api/vs
|
|
|
17
17
|
import { ITunnelService } from "@codingame/monaco-vscode-api/vscode/vs/platform/tunnel/common/tunnel.service";
|
|
18
18
|
import { IWorkbenchEnvironmentService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/environment/common/environmentService.service";
|
|
19
19
|
import { WebviewThemeDataProvider } from "./themeing.js";
|
|
20
|
-
import { IWebviewElement, WebviewContentOptions, WebviewExtensionDescription, WebviewInitInfo, WebviewMessageReceivedEvent } from "@codingame/monaco-vscode-
|
|
20
|
+
import { IWebviewElement, WebviewContentOptions, WebviewExtensionDescription, WebviewInitInfo, WebviewMessageReceivedEvent } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/webview/browser/webview";
|
|
21
21
|
import { WebviewFindDelegate, WebviewFindWidget } from "./webviewFindWidget.js";
|
|
22
22
|
export declare class WebviewElement extends Disposable implements IWebviewElement, WebviewFindDelegate {
|
|
23
23
|
protected readonly webviewThemeDataProvider: WebviewThemeDataProvider;
|
|
@@ -27,7 +27,7 @@ import { WebviewPortMappingManager } from '../../../../platform/webview/common/w
|
|
|
27
27
|
import { IWorkbenchEnvironmentService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/environment/common/environmentService.service';
|
|
28
28
|
import { decodeAuthority, webviewRootResourceAuthority, webviewGenericCspSource } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/webview/common/webview';
|
|
29
29
|
import { loadLocalResource, WebviewResourceResponse } from './resourceLoading.js';
|
|
30
|
-
import { areWebviewContentOptionsEqual } from '@codingame/monaco-vscode-
|
|
30
|
+
import { areWebviewContentOptionsEqual } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/webview/browser/webview';
|
|
31
31
|
import { WebviewFindWidget } from './webviewFindWidget.js';
|
|
32
32
|
import { observableValue } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/observables/observableValue';
|
|
33
33
|
|
|
@@ -159,7 +159,7 @@ let WebviewElement = class WebviewElement extends Disposable {
|
|
|
159
159
|
this._hasFindResult.fire(didFind);
|
|
160
160
|
}));
|
|
161
161
|
this._register(this.on('fatal-error', (e) => {
|
|
162
|
-
notificationService.error(( localize(
|
|
162
|
+
notificationService.error(( localize(13105, "Error loading webview: {0}", e.message)));
|
|
163
163
|
this._onFatalError.fire({ message: e.message });
|
|
164
164
|
}));
|
|
165
165
|
this._register(this.on('did-keydown', (data) => {
|
|
@@ -274,7 +274,7 @@ let WebviewElement = class WebviewElement extends Disposable {
|
|
|
274
274
|
element.name = this.id;
|
|
275
275
|
element.className = `webview ${options.customClasses || ''}`;
|
|
276
276
|
element.sandbox.add('allow-scripts', 'allow-same-origin', 'allow-forms', 'allow-pointer-lock', 'allow-downloads');
|
|
277
|
-
const allowRules = ['cross-origin-isolated', 'autoplay'];
|
|
277
|
+
const allowRules = ['cross-origin-isolated', 'autoplay', 'local-network-access'];
|
|
278
278
|
if (!isFirefox) {
|
|
279
279
|
allowRules.push('clipboard-read', 'clipboard-write');
|
|
280
280
|
}
|
|
@@ -4,7 +4,7 @@ import { IContextKeyService } from "@codingame/monaco-vscode-api/vscode/vs/platf
|
|
|
4
4
|
import { IContextViewService } from "@codingame/monaco-vscode-api/vscode/vs/platform/contextview/browser/contextView.service";
|
|
5
5
|
import { IHoverService } from "@codingame/monaco-vscode-api/vscode/vs/platform/hover/browser/hover.service";
|
|
6
6
|
import { IKeybindingService } from "@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/keybinding.service";
|
|
7
|
-
import { SimpleFindWidget } from "@codingame/monaco-vscode-
|
|
7
|
+
import { SimpleFindWidget } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/codeEditor/browser/find/simpleFindWidget";
|
|
8
8
|
export interface WebviewFindDelegate {
|
|
9
9
|
readonly hasFindResult: Event<boolean>;
|
|
10
10
|
readonly onDidStopFind: Event<void>;
|
|
@@ -4,8 +4,8 @@ import { IContextKeyService } from '@codingame/monaco-vscode-api/vscode/vs/platf
|
|
|
4
4
|
import { IContextViewService } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextview/browser/contextView.service';
|
|
5
5
|
import { IHoverService } from '@codingame/monaco-vscode-api/vscode/vs/platform/hover/browser/hover.service';
|
|
6
6
|
import { IKeybindingService } from '@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/keybinding.service';
|
|
7
|
-
import { SimpleFindWidget } from '@codingame/monaco-vscode-
|
|
8
|
-
import { KEYBINDING_CONTEXT_WEBVIEW_FIND_WIDGET_FOCUSED } from '@codingame/monaco-vscode-
|
|
7
|
+
import { SimpleFindWidget } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/codeEditor/browser/find/simpleFindWidget';
|
|
8
|
+
import { KEYBINDING_CONTEXT_WEBVIEW_FIND_WIDGET_FOCUSED } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/webview/browser/webview';
|
|
9
9
|
|
|
10
10
|
let WebviewFindWidget = class WebviewFindWidget extends SimpleFindWidget {
|
|
11
11
|
async _getResultCount(dataChanged) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
2
2
|
import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
|
|
3
3
|
import { WebviewThemeDataProvider } from "./themeing.js";
|
|
4
|
-
import { IOverlayWebview, IWebview, IWebviewElement, WebviewInitInfo } from "@codingame/monaco-vscode-
|
|
4
|
+
import { IOverlayWebview, IWebview, IWebviewElement, WebviewInitInfo } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/webview/browser/webview";
|
|
5
5
|
import { IWebviewService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/webview/browser/webview.service";
|
|
6
6
|
export declare class WebviewService extends Disposable implements IWebviewService {
|
|
7
7
|
protected readonly _instantiationService: IInstantiationService;
|
|
@@ -6,16 +6,16 @@ import { Action2, MenuId } from '@codingame/monaco-vscode-api/vscode/vs/platform
|
|
|
6
6
|
import { ContextKeyExpr } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey';
|
|
7
7
|
import { KeybindingWeight } from '@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/keybindingsRegistry';
|
|
8
8
|
import { Categories } from '@codingame/monaco-vscode-api/vscode/vs/platform/action/common/actionCommonCategories';
|
|
9
|
-
import { KEYBINDING_CONTEXT_WEBVIEW_FIND_WIDGET_ENABLED, KEYBINDING_CONTEXT_WEBVIEW_FIND_WIDGET_VISIBLE, KEYBINDING_CONTEXT_WEBVIEW_FIND_WIDGET_FOCUSED } from '@codingame/monaco-vscode-
|
|
9
|
+
import { KEYBINDING_CONTEXT_WEBVIEW_FIND_WIDGET_ENABLED, KEYBINDING_CONTEXT_WEBVIEW_FIND_WIDGET_VISIBLE, KEYBINDING_CONTEXT_WEBVIEW_FIND_WIDGET_FOCUSED } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/webview/browser/webview';
|
|
10
10
|
import { IWebviewService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/webview/browser/webview.service';
|
|
11
|
-
import { WebviewEditor } from '@codingame/monaco-vscode-
|
|
12
|
-
import { WebviewInput } from '@codingame/monaco-vscode-
|
|
11
|
+
import { WebviewEditor } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/webviewPanel/browser/webviewEditor';
|
|
12
|
+
import { WebviewInput } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/webviewPanel/browser/webviewEditorInput';
|
|
13
13
|
import { IEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
14
14
|
|
|
15
15
|
const webviewActiveContextKeyExpr = ( ContextKeyExpr.and(( ContextKeyExpr.equals('activeEditor', WebviewEditor.ID)), ( EditorContextKeys.focus.toNegated() )));
|
|
16
16
|
class ShowWebViewEditorFindWidgetAction extends Action2 {
|
|
17
17
|
static { this.ID = 'editor.action.webvieweditor.showFind'; }
|
|
18
|
-
static { this.LABEL = ( localize(
|
|
18
|
+
static { this.LABEL = ( localize(13106, "Show find")); }
|
|
19
19
|
constructor() {
|
|
20
20
|
super({
|
|
21
21
|
id: ShowWebViewEditorFindWidgetAction.ID,
|
|
@@ -36,7 +36,7 @@ class ShowWebViewEditorFindWidgetAction extends Action2 {
|
|
|
36
36
|
}
|
|
37
37
|
class HideWebViewEditorFindCommand extends Action2 {
|
|
38
38
|
static { this.ID = 'editor.action.webvieweditor.hideFind'; }
|
|
39
|
-
static { this.LABEL = ( localize(
|
|
39
|
+
static { this.LABEL = ( localize(13107, "Stop find")); }
|
|
40
40
|
constructor() {
|
|
41
41
|
super({
|
|
42
42
|
id: HideWebViewEditorFindCommand.ID,
|
|
@@ -57,7 +57,7 @@ class HideWebViewEditorFindCommand extends Action2 {
|
|
|
57
57
|
}
|
|
58
58
|
class WebViewEditorFindNextCommand extends Action2 {
|
|
59
59
|
static { this.ID = 'editor.action.webvieweditor.findNext'; }
|
|
60
|
-
static { this.LABEL = ( localize(
|
|
60
|
+
static { this.LABEL = ( localize(13108, 'Find next')); }
|
|
61
61
|
constructor() {
|
|
62
62
|
super({
|
|
63
63
|
id: WebViewEditorFindNextCommand.ID,
|
|
@@ -78,7 +78,7 @@ class WebViewEditorFindNextCommand extends Action2 {
|
|
|
78
78
|
}
|
|
79
79
|
class WebViewEditorFindPreviousCommand extends Action2 {
|
|
80
80
|
static { this.ID = 'editor.action.webvieweditor.findPrevious'; }
|
|
81
|
-
static { this.LABEL = ( localize(
|
|
81
|
+
static { this.LABEL = ( localize(13109, 'Find previous')); }
|
|
82
82
|
constructor() {
|
|
83
83
|
super({
|
|
84
84
|
id: WebViewEditorFindPreviousCommand.ID,
|
|
@@ -99,7 +99,7 @@ class WebViewEditorFindPreviousCommand extends Action2 {
|
|
|
99
99
|
}
|
|
100
100
|
class ReloadWebviewAction extends Action2 {
|
|
101
101
|
static { this.ID = 'workbench.action.webview.reloadWebviewAction'; }
|
|
102
|
-
static { this.LABEL = ( localize2(
|
|
102
|
+
static { this.LABEL = ( localize2(13110, "Reload Webviews")); }
|
|
103
103
|
constructor() {
|
|
104
104
|
super({
|
|
105
105
|
id: ReloadWebviewAction.ID,
|
package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditorInputSerializer.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { UriComponents } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri";
|
|
2
2
|
import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
|
|
3
3
|
import { IEditorSerializer } from "@codingame/monaco-vscode-api/vscode/vs/workbench/common/editor";
|
|
4
|
-
import { WebviewContentOptions, WebviewExtensionDescription, WebviewOptions } from "@codingame/monaco-vscode-
|
|
5
|
-
import { WebviewIcons, WebviewInput } from "@codingame/monaco-vscode-
|
|
4
|
+
import { WebviewContentOptions, WebviewExtensionDescription, WebviewOptions } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/webview/browser/webview";
|
|
5
|
+
import { WebviewIcons, WebviewInput } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/webviewPanel/browser/webviewEditorInput";
|
|
6
6
|
import { IWebviewWorkbenchService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/webviewPanel/browser/webviewWorkbenchService.service";
|
|
7
7
|
export type SerializedWebviewOptions = WebviewOptions & WebviewContentOptions;
|
|
8
8
|
interface SerializedIconPath {
|
package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditorInputSerializer.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
3
3
|
import { URI } from '@codingame/monaco-vscode-api/vscode/vs/base/common/uri';
|
|
4
4
|
import { ExtensionIdentifier } from '@codingame/monaco-vscode-api/vscode/vs/platform/extensions/common/extensions';
|
|
5
|
-
import { WebviewInput } from '@codingame/monaco-vscode-
|
|
5
|
+
import { WebviewInput } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/webviewPanel/browser/webviewEditorInput';
|
|
6
6
|
import { IWebviewWorkbenchService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/webviewPanel/browser/webviewWorkbenchService.service';
|
|
7
7
|
|
|
8
8
|
let WebviewEditorInputSerializer = class WebviewEditorInputSerializer {
|
|
@@ -6,19 +6,19 @@ import { registerAction2 } from '@codingame/monaco-vscode-api/vscode/vs/platform
|
|
|
6
6
|
import { SyncDescriptor } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/descriptors';
|
|
7
7
|
import '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/extensions';
|
|
8
8
|
import { Registry } from '@codingame/monaco-vscode-api/vscode/vs/platform/registry/common/platform';
|
|
9
|
-
import { EditorPaneDescriptor } from '@codingame/monaco-vscode-
|
|
9
|
+
import { EditorPaneDescriptor } from '@codingame/monaco-vscode-api/vscode/vs/workbench/browser/editor';
|
|
10
10
|
import { registerWorkbenchContribution2, WorkbenchPhase } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/contributions';
|
|
11
11
|
import { EditorExtensions } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/editor';
|
|
12
12
|
import { IEditorGroupsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorGroupsService.service';
|
|
13
13
|
import { ShowWebViewEditorFindWidgetAction, HideWebViewEditorFindCommand, WebViewEditorFindNextCommand, WebViewEditorFindPreviousCommand, ReloadWebviewAction } from './webviewCommands.js';
|
|
14
|
-
import { WebviewEditor } from '@codingame/monaco-vscode-
|
|
15
|
-
import { WebviewInput } from '@codingame/monaco-vscode-
|
|
14
|
+
import { WebviewEditor } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/webviewPanel/browser/webviewEditor';
|
|
15
|
+
import { WebviewInput } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/webviewPanel/browser/webviewEditorInput';
|
|
16
16
|
import { WebviewEditorInputSerializer } from './webviewEditorInputSerializer.js';
|
|
17
|
-
import '@codingame/monaco-vscode-
|
|
17
|
+
import '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/webviewPanel/browser/webviewWorkbenchService';
|
|
18
18
|
import '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
|
|
19
19
|
import { IEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
20
20
|
|
|
21
|
-
(( Registry.as(EditorExtensions.EditorPane))).registerEditorPane(EditorPaneDescriptor.create(WebviewEditor, WebviewEditor.ID, ( localize(
|
|
21
|
+
(( Registry.as(EditorExtensions.EditorPane))).registerEditorPane(EditorPaneDescriptor.create(WebviewEditor, WebviewEditor.ID, ( localize(13112, "webview editor"))), [( new SyncDescriptor(WebviewInput))]);
|
|
22
22
|
let WebviewPanelContribution = class WebviewPanelContribution extends Disposable {
|
|
23
23
|
static { this.ID = 'workbench.contrib.webviewPanel'; }
|
|
24
24
|
constructor(editorService, editorGroupService) {
|
|
@@ -7,8 +7,8 @@ import { IOpenerService } from "@codingame/monaco-vscode-api/vscode/vs/platform/
|
|
|
7
7
|
import { IProgressService } from "@codingame/monaco-vscode-api/vscode/vs/platform/progress/common/progress.service";
|
|
8
8
|
import { IStorageService } from "@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage.service";
|
|
9
9
|
import { IThemeService } from "@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/themeService.service";
|
|
10
|
-
import { ViewPane } from "@codingame/monaco-vscode-
|
|
11
|
-
import { IViewletViewOptions } from "@codingame/monaco-vscode-
|
|
10
|
+
import { ViewPane } from "@codingame/monaco-vscode-api/vscode/vs/workbench/browser/parts/views/viewPane";
|
|
11
|
+
import { IViewletViewOptions } from "@codingame/monaco-vscode-api/vscode/vs/workbench/browser/parts/views/viewsViewlet";
|
|
12
12
|
import { IViewBadge } from "@codingame/monaco-vscode-api/vscode/vs/workbench/common/views";
|
|
13
13
|
import { IViewDescriptorService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/common/views.service";
|
|
14
14
|
import { IViewsService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/views/common/viewsService.service";
|
|
@@ -15,15 +15,15 @@ import { IProgressService } from '@codingame/monaco-vscode-api/vscode/vs/platfor
|
|
|
15
15
|
import { StorageScope, StorageTarget } from '@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage';
|
|
16
16
|
import { IStorageService } from '@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage.service';
|
|
17
17
|
import { IThemeService } from '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/themeService.service';
|
|
18
|
-
import { ViewPane, ViewPaneShowActions } from '@codingame/monaco-vscode-
|
|
19
|
-
import { Memento } from '@codingame/monaco-vscode-
|
|
18
|
+
import { ViewPane, ViewPaneShowActions } from '@codingame/monaco-vscode-api/vscode/vs/workbench/browser/parts/views/viewPane';
|
|
19
|
+
import { Memento } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/memento';
|
|
20
20
|
import { IViewDescriptorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/views.service';
|
|
21
21
|
import { IViewsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/views/common/viewsService.service';
|
|
22
|
-
import { ExtensionKeyedWebviewOriginStore, WebviewContentPurpose } from '@codingame/monaco-vscode-
|
|
22
|
+
import { ExtensionKeyedWebviewOriginStore, WebviewContentPurpose } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/webview/browser/webview';
|
|
23
23
|
import { IWebviewService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/webview/browser/webview.service';
|
|
24
|
-
import { WebviewWindowDragMonitor } from '@codingame/monaco-vscode-
|
|
24
|
+
import { WebviewWindowDragMonitor } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/webview/browser/webviewWindowDragMonitor';
|
|
25
25
|
import { IWebviewViewService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/webviewView/browser/webviewViewService.service';
|
|
26
|
-
import { NumberBadge } from '@codingame/monaco-vscode-
|
|
26
|
+
import { NumberBadge } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/activity/common/activity';
|
|
27
27
|
import { IActivityService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/activity/common/activity.service';
|
|
28
28
|
import { IExtensionService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensions/common/extensions.service';
|
|
29
29
|
import { IHoverService } from '@codingame/monaco-vscode-api/vscode/vs/platform/hover/browser/hover.service';
|
|
@@ -87,7 +87,7 @@ let WebviewViewPane = class WebviewViewPane extends ViewPane {
|
|
|
87
87
|
}, 0);
|
|
88
88
|
}));
|
|
89
89
|
this._register(toDisposable(() => {
|
|
90
|
-
this._resizeObserver
|
|
90
|
+
this._resizeObserver?.disconnect();
|
|
91
91
|
}));
|
|
92
92
|
this._resizeObserver.observe(container);
|
|
93
93
|
}
|
|
@@ -2,7 +2,7 @@ import { CancellationToken } from "@codingame/monaco-vscode-api/vscode/vs/base/c
|
|
|
2
2
|
import { Event } from "@codingame/monaco-vscode-api/vscode/vs/base/common/event";
|
|
3
3
|
import { Disposable, IDisposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
4
4
|
import { IViewBadge } from "@codingame/monaco-vscode-api/vscode/vs/workbench/common/views";
|
|
5
|
-
import { IOverlayWebview } from "@codingame/monaco-vscode-
|
|
5
|
+
import { IOverlayWebview } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/webview/browser/webview";
|
|
6
6
|
import { IWebviewViewService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/webviewView/browser/webviewViewService.service";
|
|
7
7
|
/**
|
|
8
8
|
* A webview shown in a view pane.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
import '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
|
|
3
|
-
import { EditorPaneDescriptor } from '@codingame/monaco-vscode-
|
|
3
|
+
import { EditorPaneDescriptor } from '@codingame/monaco-vscode-api/vscode/vs/workbench/browser/editor';
|
|
4
4
|
import '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/extensions';
|
|
5
5
|
|
|
6
6
|
class EditorPaneService {
|
|
@@ -21,7 +21,7 @@ import { StorageScope, StorageTarget } from '@codingame/monaco-vscode-api/vscode
|
|
|
21
21
|
import { IStorageService } from '@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage.service';
|
|
22
22
|
import { IExtensionService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensions/common/extensions.service';
|
|
23
23
|
import { ILogService } from '@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service';
|
|
24
|
-
import { findGroup } from '@codingame/monaco-vscode-
|
|
24
|
+
import { findGroup } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorGroupFinder';
|
|
25
25
|
import { SideBySideEditorInput } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/editor/sideBySideEditorInput';
|
|
26
26
|
import { PauseableEmitter } from '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
|
|
27
27
|
import Severity from '@codingame/monaco-vscode-api/vscode/vs/base/common/severity';
|
|
@@ -450,8 +450,8 @@ let EditorResolverService = class EditorResolverService extends Disposable {
|
|
|
450
450
|
if (storedChoices[globForResource]?.find(editorID => editorID === currentEditor.editorId)) {
|
|
451
451
|
return;
|
|
452
452
|
}
|
|
453
|
-
const handle = this.notificationService.prompt(Severity.Warning, ( localize(
|
|
454
|
-
label: ( localize(
|
|
453
|
+
const handle = this.notificationService.prompt(Severity.Warning, ( localize(13827, 'There are multiple default editors available for the resource.')), [{
|
|
454
|
+
label: ( localize(13828, 'Configure Default')),
|
|
455
455
|
run: async () => {
|
|
456
456
|
const picked = await this.doPickEditor(untypedInput, true);
|
|
457
457
|
if (!picked) {
|
|
@@ -472,7 +472,7 @@ let EditorResolverService = class EditorResolverService extends Disposable {
|
|
|
472
472
|
}
|
|
473
473
|
},
|
|
474
474
|
{
|
|
475
|
-
label: ( localize(
|
|
475
|
+
label: ( localize(13829, 'Keep {0}', editorName)),
|
|
476
476
|
run: writeCurrentEditorsToStorage
|
|
477
477
|
}
|
|
478
478
|
]);
|
|
@@ -498,9 +498,9 @@ let EditorResolverService = class EditorResolverService extends Disposable {
|
|
|
498
498
|
}
|
|
499
499
|
});
|
|
500
500
|
const quickPickEntries = [];
|
|
501
|
-
const currentlyActiveLabel = ( localize(
|
|
502
|
-
const currentDefaultLabel = ( localize(
|
|
503
|
-
const currentDefaultAndActiveLabel = ( localize(
|
|
501
|
+
const currentlyActiveLabel = ( localize(13830, "Active"));
|
|
502
|
+
const currentDefaultLabel = ( localize(13831, "Default"));
|
|
503
|
+
const currentDefaultAndActiveLabel = ( localize(13832, "Active and Default"));
|
|
504
504
|
let defaultViewType = defaultSetting;
|
|
505
505
|
if (!defaultViewType && registeredEditors.length > 2 && registeredEditors[1]?.editorInfo.priority !== RegisteredEditorPriority.option) {
|
|
506
506
|
defaultViewType = registeredEditors[1]?.editorInfo.id;
|
|
@@ -525,7 +525,7 @@ let EditorResolverService = class EditorResolverService extends Disposable {
|
|
|
525
525
|
quickPickEntries.push(separator);
|
|
526
526
|
const configureDefaultEntry = {
|
|
527
527
|
id: EditorResolverService_1.configureDefaultID,
|
|
528
|
-
label: ( localize(
|
|
528
|
+
label: ( localize(13833, "Configure default editor for '{0}'...", `*${extname(resource)}`)),
|
|
529
529
|
};
|
|
530
530
|
quickPickEntries.push(configureDefaultEntry);
|
|
531
531
|
}
|
|
@@ -540,8 +540,8 @@ let EditorResolverService = class EditorResolverService extends Disposable {
|
|
|
540
540
|
const disposables = ( new DisposableStore());
|
|
541
541
|
const editorPicker = disposables.add(this.quickInputService.createQuickPick({ useSeparators: true }));
|
|
542
542
|
const placeHolderMessage = showDefaultPicker ?
|
|
543
|
-
( localize(
|
|
544
|
-
( localize(
|
|
543
|
+
( localize(13834, "Select new default editor for '{0}'", `*${extname(resource)}`)) :
|
|
544
|
+
( localize(13835, "Select editor for '{0}'", basename(resource)));
|
|
545
545
|
editorPicker.placeholder = placeHolderMessage;
|
|
546
546
|
editorPicker.canAcceptInBackground = true;
|
|
547
547
|
editorPicker.items = editorPicks;
|
|
@@ -9,7 +9,7 @@ import { IHistoryService } from '@codingame/monaco-vscode-api/vscode/vs/workbenc
|
|
|
9
9
|
import { FILES_EXCLUDE_CONFIG, FileChangesEvent, FileOperation, FileOperationEvent, FileChangeType } from '@codingame/monaco-vscode-api/vscode/vs/platform/files/common/files';
|
|
10
10
|
import { IFileService } from '@codingame/monaco-vscode-api/vscode/vs/platform/files/common/files.service';
|
|
11
11
|
import { IWorkspaceContextService } from '@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspace.service';
|
|
12
|
-
import { Disposable, DisposableStore,
|
|
12
|
+
import { Disposable, DisposableStore, DisposableMap } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
13
13
|
import { StorageScope, StorageTarget } from '@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage';
|
|
14
14
|
import { IStorageService } from '@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage.service';
|
|
15
15
|
import { Emitter, Event } from '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
|
|
@@ -26,7 +26,7 @@ import { WindowIdleValue, addDisposableListener, EventType, EventHelper } from '
|
|
|
26
26
|
import { IWorkspacesService } from '@codingame/monaco-vscode-api/vscode/vs/platform/workspaces/common/workspaces.service';
|
|
27
27
|
import { Schemas } from '@codingame/monaco-vscode-api/vscode/vs/base/common/network';
|
|
28
28
|
import { onUnexpectedError } from '@codingame/monaco-vscode-api/vscode/vs/base/common/errors';
|
|
29
|
-
import { ResourceGlobMatcher } from '@codingame/monaco-vscode-
|
|
29
|
+
import { ResourceGlobMatcher } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/resources';
|
|
30
30
|
import { IPathService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/path/common/pathService.service';
|
|
31
31
|
import { IUriIdentityService } from '@codingame/monaco-vscode-api/vscode/vs/platform/uriIdentity/common/uriIdentity.service';
|
|
32
32
|
import { LifecyclePhase } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/lifecycle/common/lifecycle';
|
|
@@ -70,40 +70,40 @@ let HistoryService = class HistoryService extends Disposable {
|
|
|
70
70
|
this.recentlyClosedEditors = [];
|
|
71
71
|
this.ignoreEditorCloseEvent = false;
|
|
72
72
|
this.history = undefined;
|
|
73
|
-
this.editorHistoryListeners = ( new
|
|
73
|
+
this.editorHistoryListeners = this._register(( new DisposableMap()));
|
|
74
74
|
this.resourceExcludeMatcher = this._register(( new WindowIdleValue(mainWindow, () => {
|
|
75
75
|
const matcher = this._register(this.instantiationService.createInstance(ResourceGlobMatcher, root => getExcludes(root ? this.configurationService.getValue({ resource: root }) : this.configurationService.getValue()) || Object.create(null), event => event.affectsConfiguration(FILES_EXCLUDE_CONFIG) || event.affectsConfiguration(SEARCH_EXCLUDE_CONFIG)));
|
|
76
76
|
this._register(matcher.onExpressionChange(() => this.removeExcludedFromHistory()));
|
|
77
77
|
return matcher;
|
|
78
78
|
})));
|
|
79
79
|
this.editorHelper = this.instantiationService.createInstance(EditorHelper);
|
|
80
|
-
this.canNavigateBackContextKey = (( new RawContextKey('canNavigateBack', false, ( localize(
|
|
81
|
-
this.canNavigateForwardContextKey = (( new RawContextKey('canNavigateForward', false, ( localize(
|
|
80
|
+
this.canNavigateBackContextKey = (( new RawContextKey('canNavigateBack', false, ( localize(14047, "Whether it is possible to navigate back in editor history"))))).bindTo(this.contextKeyService);
|
|
81
|
+
this.canNavigateForwardContextKey = (( new RawContextKey('canNavigateForward', false, ( localize(14048, "Whether it is possible to navigate forward in editor history"))))).bindTo(this.contextKeyService);
|
|
82
82
|
this.canNavigateBackInNavigationsContextKey = (( new RawContextKey('canNavigateBackInNavigationLocations', false, ( localize(
|
|
83
|
-
|
|
83
|
+
14049,
|
|
84
84
|
"Whether it is possible to navigate back in editor navigation locations history"
|
|
85
85
|
))))).bindTo(this.contextKeyService);
|
|
86
86
|
this.canNavigateForwardInNavigationsContextKey = (( new RawContextKey('canNavigateForwardInNavigationLocations', false, ( localize(
|
|
87
|
-
|
|
87
|
+
14050,
|
|
88
88
|
"Whether it is possible to navigate forward in editor navigation locations history"
|
|
89
89
|
))))).bindTo(this.contextKeyService);
|
|
90
90
|
this.canNavigateToLastNavigationLocationContextKey = (( new RawContextKey('canNavigateToLastNavigationLocation', false, ( localize(
|
|
91
|
-
|
|
91
|
+
14051,
|
|
92
92
|
"Whether it is possible to navigate to the last editor navigation location"
|
|
93
93
|
))))).bindTo(this.contextKeyService);
|
|
94
94
|
this.canNavigateBackInEditsContextKey = (( new RawContextKey('canNavigateBackInEditLocations', false, ( localize(
|
|
95
|
-
|
|
95
|
+
14052,
|
|
96
96
|
"Whether it is possible to navigate back in editor edit locations history"
|
|
97
97
|
))))).bindTo(this.contextKeyService);
|
|
98
98
|
this.canNavigateForwardInEditsContextKey = (( new RawContextKey('canNavigateForwardInEditLocations', false, ( localize(
|
|
99
|
-
|
|
99
|
+
14053,
|
|
100
100
|
"Whether it is possible to navigate forward in editor edit locations history"
|
|
101
101
|
))))).bindTo(this.contextKeyService);
|
|
102
102
|
this.canNavigateToLastEditLocationContextKey = (( new RawContextKey('canNavigateToLastEditLocation', false, ( localize(
|
|
103
|
-
|
|
103
|
+
14054,
|
|
104
104
|
"Whether it is possible to navigate to the last editor edit location"
|
|
105
105
|
))))).bindTo(this.contextKeyService);
|
|
106
|
-
this.canReopenClosedEditorContextKey = (( new RawContextKey('canReopenClosedEditor', false, ( localize(
|
|
106
|
+
this.canReopenClosedEditorContextKey = (( new RawContextKey('canReopenClosedEditor', false, ( localize(14055, "Whether it is possible to reopen the last closed editor"))))).bindTo(this.contextKeyService);
|
|
107
107
|
this.registerListeners();
|
|
108
108
|
if (this.editorService.activeEditorPane) {
|
|
109
109
|
this.onDidActiveEditorChange();
|
|
@@ -669,10 +669,7 @@ let HistoryService = class HistoryService extends Disposable {
|
|
|
669
669
|
}
|
|
670
670
|
clearRecentlyOpened() {
|
|
671
671
|
this.history = [];
|
|
672
|
-
|
|
673
|
-
dispose(disposable);
|
|
674
|
-
}
|
|
675
|
-
this.editorHistoryListeners.clear();
|
|
672
|
+
this.editorHistoryListeners.clearAndDisposeAll();
|
|
676
673
|
}
|
|
677
674
|
getHistory() {
|
|
678
675
|
this.ensureHistoryLoaded(this.history);
|
|
@@ -988,8 +985,8 @@ let EditorNavigationStack = class EditorNavigationStack extends Disposable {
|
|
|
988
985
|
this.logService = logService;
|
|
989
986
|
this._onDidChange = this._register(( new Emitter()));
|
|
990
987
|
this.onDidChange = this._onDidChange.event;
|
|
991
|
-
this.mapEditorToDisposable = ( new
|
|
992
|
-
this.mapGroupToDisposable = ( new
|
|
988
|
+
this.mapEditorToDisposable = this._register(( new DisposableMap()));
|
|
989
|
+
this.mapGroupToDisposable = this._register(( new DisposableMap()));
|
|
993
990
|
this.stack = [];
|
|
994
991
|
this.index = -1;
|
|
995
992
|
this.previousIndex = -1;
|
|
@@ -1001,6 +998,9 @@ let EditorNavigationStack = class EditorNavigationStack extends Disposable {
|
|
|
1001
998
|
registerListeners() {
|
|
1002
999
|
this._register(this.onDidChange(() => this.traceStack()));
|
|
1003
1000
|
this._register(this.logService.onDidChangeLogLevel(() => this.traceStack()));
|
|
1001
|
+
this._register(this.editorGroupService.onDidRemoveGroup(group => {
|
|
1002
|
+
this.mapGroupToDisposable.deleteAndDispose(group.id);
|
|
1003
|
+
}));
|
|
1004
1004
|
}
|
|
1005
1005
|
traceStack() {
|
|
1006
1006
|
if (this.logService.getLevel() !== LogLevel.Trace) {
|
|
@@ -1252,8 +1252,7 @@ ${entryLabels.join('\n')}
|
|
|
1252
1252
|
this.index = this.stack.length - 1;
|
|
1253
1253
|
this.previousIndex = -1;
|
|
1254
1254
|
if (typeof arg1 === 'number') {
|
|
1255
|
-
this.mapGroupToDisposable.
|
|
1256
|
-
this.mapGroupToDisposable.delete(arg1);
|
|
1255
|
+
this.mapGroupToDisposable.deleteAndDispose(arg1);
|
|
1257
1256
|
}
|
|
1258
1257
|
this._onDidChange.fire();
|
|
1259
1258
|
}
|
|
@@ -1273,18 +1272,12 @@ ${entryLabels.join('\n')}
|
|
|
1273
1272
|
this.index = -1;
|
|
1274
1273
|
this.previousIndex = -1;
|
|
1275
1274
|
this.stack.splice(0);
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
}
|
|
1279
|
-
this.mapEditorToDisposable.clear();
|
|
1280
|
-
for (const [, disposable] of this.mapGroupToDisposable) {
|
|
1281
|
-
dispose(disposable);
|
|
1282
|
-
}
|
|
1283
|
-
this.mapGroupToDisposable.clear();
|
|
1275
|
+
this.mapEditorToDisposable.clearAndDisposeAll();
|
|
1276
|
+
this.mapGroupToDisposable.clearAndDisposeAll();
|
|
1284
1277
|
}
|
|
1285
1278
|
dispose() {
|
|
1286
|
-
super.dispose();
|
|
1287
1279
|
this.clear();
|
|
1280
|
+
super.dispose();
|
|
1288
1281
|
}
|
|
1289
1282
|
canGoForward() {
|
|
1290
1283
|
return this.stack.length > this.index + 1;
|
|
@@ -1497,11 +1490,7 @@ let EditorHelper = class EditorHelper {
|
|
|
1497
1490
|
if (!isEditorInput(editor)) {
|
|
1498
1491
|
return;
|
|
1499
1492
|
}
|
|
1500
|
-
|
|
1501
|
-
if (disposables) {
|
|
1502
|
-
dispose(disposables);
|
|
1503
|
-
mapEditorToDispose.delete(editor);
|
|
1504
|
-
}
|
|
1493
|
+
mapEditorToDispose.deleteAndDispose(editor);
|
|
1505
1494
|
}
|
|
1506
1495
|
};
|
|
1507
1496
|
EditorHelper = ( __decorate([
|
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
*--------------------------------------------------------------------------------------------*/
|
|
5
5
|
|
|
6
6
|
.monaco-workbench .progress-badge > .badge-content::before {
|
|
7
|
-
mask: url("data:image/svg+xml;base64,
|
|
8
|
-
-webkit-mask: url("data:image/svg+xml;base64,
|
|
9
|
-
width:
|
|
10
|
-
height:
|
|
7
|
+
mask: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTMiIGhlaWdodD0iMTMiIHZpZXdCb3g9IjAgMCAxMyAxMyIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTQuNSA3QzQuNzc2IDcgNSA3LjIyNCA1IDcuNUM1IDcuNzc2IDQuNzc2IDggNC41IDhIMy45MDIzNEM0LjQzMTM2IDguOTEzOTEgNS40MTkwNiA5LjUgNi41IDkuNUM3LjQ4MSA5LjUgOC4zOTk5MSA5LjAxODg3IDguOTYxOTEgOC4yMTM4N0M5LjEyMDkyIDcuOTg1OTEgOS40MzMyMiA3LjkzMjg2IDkuNjU4MiA4LjA4OTg0QzkuODg1MTQgOC4yNDY4NSA5Ljk0MDE4IDguNTYwMTMgOS43ODIyMyA4Ljc4NzExQzkuMDM0MjMgOS44NTkxMSA3LjgwOCAxMC41IDYuNSAxMC41QzUuMDM0MTQgMTAuNSAzLjY5NzA2IDkuNjkzMjcgMyA4LjQzODQ4VjkuNUMzIDkuNzc2IDIuNzc2IDEwIDIuNSAxMEMyLjIyNCAxMCAyIDkuNzc2IDIgOS41VjcuNUMyIDcuMjI0IDIuMjI0IDcgMi41IDdINC41WiIgZmlsbD0id2hpdGUiLz4KPHBhdGggZD0iTTYuNSAyLjVDNy45NjU4NSAyLjUgOS4zMDI5NCAzLjMwNjc0IDEwIDQuNTYxNTJWMy41QzEwIDMuMjI0MDEgMTAuMjI0IDMuMDAwMDIgMTAuNSAzQzEwLjc3NiAzIDExIDMuMjIzMDIgMTEgMy40OTkwMlY1LjQ5OTAyQzExIDUuNzc1MDEgMTAuNzc2IDUuOTk5MDIgMTAuNSA1Ljk5OTAySDguNUM4LjIyNDAzIDUuOTk5IDguMDAwMDEgNS43NzUgOCA1LjQ5OTAyQzggNS4yMjMwNCA4LjIyNDAyIDQuOTk5MDUgOC41IDQuOTk5MDJIOS4wOTc2NkM4LjU2ODYzIDQuMDg1MTEgNy41ODA5NCAzLjQ5OTAyIDYuNSAzLjQ5OTAyQzUuNTE5MDIgMy40OTkwNCA0LjYwMDA4IDMuOTgwMTcgNC4wMzgwOSA0Ljc4NTE2QzMuODc5MDcgNS4wMTIwOCAzLjU2NTc3IDUuMDY1MTYgMy4zNDE4IDQuOTA5MThDMy4xMTQ4OCA0Ljc1MjE3IDMuMDU5ODQgNC40Mzk4NiAzLjIxNzc3IDQuMjEyODlDMy45NjU3NyAzLjE0MDkgNS4xOTIwMiAyLjUwMDAxIDYuNSAyLjVaIiBmaWxsPSJjdXJyZW50Q29sb3IiLz4KPC9zdmc+Cg==") no-repeat;
|
|
8
|
+
-webkit-mask: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTMiIGhlaWdodD0iMTMiIHZpZXdCb3g9IjAgMCAxMyAxMyIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTQuNSA3QzQuNzc2IDcgNSA3LjIyNCA1IDcuNUM1IDcuNzc2IDQuNzc2IDggNC41IDhIMy45MDIzNEM0LjQzMTM2IDguOTEzOTEgNS40MTkwNiA5LjUgNi41IDkuNUM3LjQ4MSA5LjUgOC4zOTk5MSA5LjAxODg3IDguOTYxOTEgOC4yMTM4N0M5LjEyMDkyIDcuOTg1OTEgOS40MzMyMiA3LjkzMjg2IDkuNjU4MiA4LjA4OTg0QzkuODg1MTQgOC4yNDY4NSA5Ljk0MDE4IDguNTYwMTMgOS43ODIyMyA4Ljc4NzExQzkuMDM0MjMgOS44NTkxMSA3LjgwOCAxMC41IDYuNSAxMC41QzUuMDM0MTQgMTAuNSAzLjY5NzA2IDkuNjkzMjcgMyA4LjQzODQ4VjkuNUMzIDkuNzc2IDIuNzc2IDEwIDIuNSAxMEMyLjIyNCAxMCAyIDkuNzc2IDIgOS41VjcuNUMyIDcuMjI0IDIuMjI0IDcgMi41IDdINC41WiIgZmlsbD0id2hpdGUiLz4KPHBhdGggZD0iTTYuNSAyLjVDNy45NjU4NSAyLjUgOS4zMDI5NCAzLjMwNjc0IDEwIDQuNTYxNTJWMy41QzEwIDMuMjI0MDEgMTAuMjI0IDMuMDAwMDIgMTAuNSAzQzEwLjc3NiAzIDExIDMuMjIzMDIgMTEgMy40OTkwMlY1LjQ5OTAyQzExIDUuNzc1MDEgMTAuNzc2IDUuOTk5MDIgMTAuNSA1Ljk5OTAySDguNUM4LjIyNDAzIDUuOTk5IDguMDAwMDEgNS43NzUgOCA1LjQ5OTAyQzggNS4yMjMwNCA4LjIyNDAyIDQuOTk5MDUgOC41IDQuOTk5MDJIOS4wOTc2NkM4LjU2ODYzIDQuMDg1MTEgNy41ODA5NCAzLjQ5OTAyIDYuNSAzLjQ5OTAyQzUuNTE5MDIgMy40OTkwNCA0LjYwMDA4IDMuOTgwMTcgNC4wMzgwOSA0Ljc4NTE2QzMuODc5MDcgNS4wMTIwOCAzLjU2NTc3IDUuMDY1MTYgMy4zNDE4IDQuOTA5MThDMy4xMTQ4OCA0Ljc1MjE3IDMuMDU5ODQgNC40Mzk4NiAzLjIxNzc3IDQuMjEyODlDMy45NjU3NyAzLjE0MDkgNS4xOTIwMiAyLjUwMDAxIDYuNSAyLjVaIiBmaWxsPSJjdXJyZW50Q29sb3IiLz4KPC9zdmc+Cg==") no-repeat;
|
|
9
|
+
width: 13px;
|
|
10
|
+
height: 13px;
|
|
11
11
|
position: absolute;
|
|
12
12
|
top: 0;
|
|
13
13
|
right: 0;
|
|
@@ -9,7 +9,7 @@ import '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/ins
|
|
|
9
9
|
import { StatusbarAlignment } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/statusbar/browser/statusbar';
|
|
10
10
|
import { IStatusbarService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/statusbar/browser/statusbar.service';
|
|
11
11
|
import { timeout, DeferredPromise, RunOnceScheduler } from '@codingame/monaco-vscode-api/vscode/vs/base/common/async';
|
|
12
|
-
import { ProgressBadge } from '@codingame/monaco-vscode-
|
|
12
|
+
import { ProgressBadge } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/activity/common/activity';
|
|
13
13
|
import { IActivityService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/activity/common/activity.service';
|
|
14
14
|
import { NotificationPriority, NotificationsFilter, isNotificationSource } from '@codingame/monaco-vscode-api/vscode/vs/platform/notification/common/notification';
|
|
15
15
|
import { INotificationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/notification/common/notification.service';
|
|
@@ -17,7 +17,7 @@ import { Action } from '@codingame/monaco-vscode-api/vscode/vs/base/common/actio
|
|
|
17
17
|
import { Emitter, Event } from '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
|
|
18
18
|
import '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/extensions';
|
|
19
19
|
import { ILayoutService } from '@codingame/monaco-vscode-api/vscode/vs/platform/layout/browser/layoutService.service';
|
|
20
|
-
import { Dialog } from '@codingame/monaco-vscode-
|
|
20
|
+
import { Dialog } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/dialog/dialog';
|
|
21
21
|
import { IKeybindingService } from '@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/keybinding.service';
|
|
22
22
|
import { parseLinkedText } from '@codingame/monaco-vscode-api/vscode/vs/base/common/linkedText';
|
|
23
23
|
import { ViewContainerLocation } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/views';
|
|
@@ -26,7 +26,7 @@ import { IViewsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/
|
|
|
26
26
|
import { IPaneCompositePartService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/panecomposite/browser/panecomposite.service';
|
|
27
27
|
import { stripIcons } from '@codingame/monaco-vscode-api/vscode/vs/base/common/iconLabels';
|
|
28
28
|
import { IUserActivityService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/userActivity/common/userActivityService.service';
|
|
29
|
-
import { createWorkbenchDialogOptions } from '@codingame/monaco-vscode-
|
|
29
|
+
import { createWorkbenchDialogOptions } from '@codingame/monaco-vscode-api/vscode/vs/platform/dialogs/browser/dialog';
|
|
30
30
|
import Severity from '@codingame/monaco-vscode-api/vscode/vs/base/common/severity';
|
|
31
31
|
|
|
32
32
|
registerCss(progressService);
|
|
@@ -132,23 +132,23 @@ let ProgressService = class ProgressService extends Disposable {
|
|
|
132
132
|
let title;
|
|
133
133
|
const source = options.source && typeof options.source !== 'string' ? options.source.label : options.source;
|
|
134
134
|
if (progressTitle && progressMessage) {
|
|
135
|
-
text = ( localize(
|
|
136
|
-
title = source ? ( localize(
|
|
135
|
+
text = ( localize(14182, "{0}: {1}", progressTitle, progressMessage));
|
|
136
|
+
title = source ? ( localize(14183, "[{0}] {1}: {2}", source, progressTitle, progressMessage)) : text;
|
|
137
137
|
}
|
|
138
138
|
else if (progressTitle) {
|
|
139
139
|
text = progressTitle;
|
|
140
|
-
title = source ? ( localize(
|
|
140
|
+
title = source ? ( localize(14184, "[{0}]: {1}", source, progressTitle)) : text;
|
|
141
141
|
}
|
|
142
142
|
else if (progressMessage) {
|
|
143
143
|
text = progressMessage;
|
|
144
|
-
title = source ? ( localize(
|
|
144
|
+
title = source ? ( localize(14184, "[{0}]: {1}", source, progressMessage)) : text;
|
|
145
145
|
}
|
|
146
146
|
else {
|
|
147
147
|
this.updateWindowProgress(idx + 1);
|
|
148
148
|
return;
|
|
149
149
|
}
|
|
150
150
|
const statusEntryProperties = {
|
|
151
|
-
name: ( localize(
|
|
151
|
+
name: ( localize(14185, "Progress Message")),
|
|
152
152
|
text,
|
|
153
153
|
showProgress: options.type || true,
|
|
154
154
|
ariaLabel: text,
|
|
@@ -244,7 +244,7 @@ let ProgressService = class ProgressService extends Disposable {
|
|
|
244
244
|
if (options.cancellable) {
|
|
245
245
|
const cancelAction = new (class extends Action {
|
|
246
246
|
constructor() {
|
|
247
|
-
super('progress.cancel', typeof options.cancellable === 'string' ? options.cancellable : ( localize(
|
|
247
|
+
super('progress.cancel', typeof options.cancellable === 'string' ? options.cancellable : ( localize(14186, "Cancel")), undefined, true);
|
|
248
248
|
}
|
|
249
249
|
async run() {
|
|
250
250
|
progressStateModel.cancel();
|
|
@@ -422,8 +422,8 @@ let ProgressService = class ProgressService extends Disposable {
|
|
|
422
422
|
const buttons = options.buttons || [];
|
|
423
423
|
if (!options.sticky) {
|
|
424
424
|
buttons.push(options.cancellable
|
|
425
|
-
? (typeof options.cancellable === 'boolean' ? ( localize(
|
|
426
|
-
: ( localize(
|
|
425
|
+
? (typeof options.cancellable === 'boolean' ? ( localize(14186, "Cancel")) : options.cancellable)
|
|
426
|
+
: ( localize(14187, "Dismiss")));
|
|
427
427
|
}
|
|
428
428
|
dialog = ( new Dialog(
|
|
429
429
|
this.layoutService.activeContainer,
|