@codingame/monaco-vscode-view-common-service-override 17.2.0 → 18.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.js +2 -2
- package/package.json +43 -42
- package/service-override/vs/workbench/contrib/webview/browser/pre/service-worker.js +328 -444
- package/vscode/src/vs/workbench/api/browser/viewsExtensionPoint.js +59 -59
- package/vscode/src/vs/workbench/browser/actions/listCommands.js +3 -3
- package/vscode/src/vs/workbench/browser/actions/navigationActions.js +6 -6
- package/vscode/src/vs/workbench/browser/parts/editor/editor.contribution.js +170 -167
- package/vscode/src/vs/workbench/browser/parts/editor/editorConfiguration.js +10 -9
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchy.contribution.js +12 -12
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyPeek.js +5 -5
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyTree.js +3 -3
- package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditor.contribution.js +1 -1
- package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditorInputFactory.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditorInputFactory.js +2 -2
- 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/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.js +30 -30
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/commands/devCommands.js +14 -14
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditor.contribution.js +4 -4
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorAccessibilityHelp.js +5 -5
- 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 +3 -3
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editorGutter.js +8 -9
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/baseCodeEditorView.js +5 -5
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/codeEditorView.js +3 -3
- 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 +15 -14
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/resultCodeEditorView.js +10 -10
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/lineAlignment.js +3 -3
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/mergeEditor.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/mergeEditor.js +5 -4
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/scrollSynchronizer.js +3 -3
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/viewModel.d.ts +5 -5
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/viewModel.js +7 -9
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/viewZones.js +3 -3
- package/vscode/src/vs/workbench/contrib/preferences/browser/keyboardLayoutPicker.js +13 -13
- package/vscode/src/vs/workbench/contrib/sash/browser/sash.contribution.js +2 -2
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchy.contribution.js +10 -10
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyPeek.js +5 -5
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyTree.js +3 -3
- 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/themeing.js +1 -1
- package/vscode/src/vs/workbench/contrib/webview/browser/webviewElement.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/webview/browser/webviewElement.js +2 -2
- package/vscode/src/vs/workbench/contrib/webview/browser/webviewFindWidget.js +1 -1
- package/vscode/src/vs/workbench/contrib/webview/browser/webviewService.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewCommands.js +7 -7
- 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 +3 -3
- package/vscode/src/vs/workbench/contrib/webviewView/browser/webviewViewPane.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/webviewView/browser/webviewViewPane.js +5 -5
- 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 +15 -11
- package/vscode/src/vs/workbench/services/history/browser/historyService.js +10 -10
- 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/views/browser/viewDescriptorService.js +9 -9
- package/vscode/src/vs/workbench/services/views/common/viewContainerModel.js +4 -4
|
@@ -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-4372ad43-a220-5e78-83e6-95a9cfd64384-common/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
|
import { WebviewEditor } from '@codingame/monaco-vscode-7f39b6f1-3542-5430-8760-0f404d7a7cee-common/vscode/vs/workbench/contrib/webviewPanel/browser/webviewEditor';
|
|
12
|
-
import { WebviewInput } from '@codingame/monaco-vscode-
|
|
12
|
+
import { WebviewInput } from '@codingame/monaco-vscode-4372ad43-a220-5e78-83e6-95a9cfd64384-common/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(11742, "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(11743, "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(11744, '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(11745, '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(11746, "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,9 +1,9 @@
|
|
|
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-
|
|
4
|
+
import { WebviewContentOptions, WebviewExtensionDescription, WebviewOptions } from "@codingame/monaco-vscode-4372ad43-a220-5e78-83e6-95a9cfd64384-common/vscode/vs/workbench/contrib/webview/browser/webview";
|
|
5
5
|
import { WebviewIcons } from "@codingame/monaco-vscode-7f39b6f1-3542-5430-8760-0f404d7a7cee-common/vscode/vs/workbench/contrib/webviewPanel/browser/webviewIconManager";
|
|
6
|
-
import { WebviewInput } from "@codingame/monaco-vscode-
|
|
6
|
+
import { WebviewInput } from "@codingame/monaco-vscode-4372ad43-a220-5e78-83e6-95a9cfd64384-common/vscode/vs/workbench/contrib/webviewPanel/browser/webviewEditorInput";
|
|
7
7
|
import { IWebviewWorkbenchService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/webviewPanel/browser/webviewWorkbenchService.service";
|
|
8
8
|
export type SerializedWebviewOptions = WebviewOptions & WebviewContentOptions;
|
|
9
9
|
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-4372ad43-a220-5e78-83e6-95a9cfd64384-common/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-dcfc2191-2da1-54c7-8fb7-e92c5d11ecef-common/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
14
|
import { WebviewEditor } from '@codingame/monaco-vscode-7f39b6f1-3542-5430-8760-0f404d7a7cee-common/vscode/vs/workbench/contrib/webviewPanel/browser/webviewEditor';
|
|
15
|
-
import { WebviewInput } from '@codingame/monaco-vscode-
|
|
15
|
+
import { WebviewInput } from '@codingame/monaco-vscode-4372ad43-a220-5e78-83e6-95a9cfd64384-common/vscode/vs/workbench/contrib/webviewPanel/browser/webviewEditorInput';
|
|
16
16
|
import { WebviewEditorInputSerializer } from './webviewEditorInputSerializer.js';
|
|
17
17
|
import '@codingame/monaco-vscode-7f39b6f1-3542-5430-8760-0f404d7a7cee-common/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(11748, "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,7 +7,7 @@ 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-
|
|
10
|
+
import { ViewPane } from "@codingame/monaco-vscode-501b06ab-3f58-516b-8a1a-c29d375d3da4-common/vscode/vs/workbench/browser/parts/views/viewPane";
|
|
11
11
|
import { IViewletViewOptions } from "@codingame/monaco-vscode-2a94c04a-b85b-5669-b06b-89c1bfa11cb9-common/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";
|
|
@@ -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-501b06ab-3f58-516b-8a1a-c29d375d3da4-common/vscode/vs/workbench/browser/parts/views/viewPane';
|
|
19
|
+
import { Memento } from '@codingame/monaco-vscode-924e8f00-6faf-5059-b518-e43427d29ab3-common/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-4372ad43-a220-5e78-83e6-95a9cfd64384-common/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-4372ad43-a220-5e78-83e6-95a9cfd64384-common/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-937ecbdf-94c7-5b16-aefa-ad78ae557a93-common/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';
|
|
@@ -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-4372ad43-a220-5e78-83e6-95a9cfd64384-common/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
|
export interface WebviewView {
|
|
8
8
|
title?: string;
|
|
@@ -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-dcfc2191-2da1-54c7-8fb7-e92c5d11ecef-common/vscode/vs/workbench/browser/editor';
|
|
4
4
|
import '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/extensions';
|
|
5
5
|
|
|
6
6
|
class EditorPaneService {
|
|
@@ -330,9 +330,13 @@ let EditorResolverService = class EditorResolverService extends Disposable {
|
|
|
330
330
|
}
|
|
331
331
|
const selectedViewType = possibleEditors[0].editorInfo.priority === RegisteredEditorPriority.exclusive ?
|
|
332
332
|
possibleEditors[0].editorInfo.id :
|
|
333
|
-
associationsFromSetting[0]?.viewType ||
|
|
333
|
+
associationsFromSetting[0]?.viewType ||
|
|
334
|
+
(possibleEditors.find(editor => (!editor.options?.canSupportResource || editor.options.canSupportResource(resource)))?.editorInfo.id) ||
|
|
335
|
+
possibleEditors[0].editorInfo.id;
|
|
334
336
|
let conflictingDefault = false;
|
|
335
|
-
possibleEditors = possibleEditors
|
|
337
|
+
possibleEditors = possibleEditors
|
|
338
|
+
.filter(editor => editor.editorInfo.priority !== RegisteredEditorPriority.exclusive)
|
|
339
|
+
.filter(editor => !editor.options?.canSupportResource || editor.options.canSupportResource(resource));
|
|
336
340
|
if (associationsFromSetting.length === 0 && possibleEditors.length > 1) {
|
|
337
341
|
conflictingDefault = true;
|
|
338
342
|
}
|
|
@@ -446,8 +450,8 @@ let EditorResolverService = class EditorResolverService extends Disposable {
|
|
|
446
450
|
if (storedChoices[globForResource] && storedChoices[globForResource].find(editorID => editorID === currentEditor.editorId)) {
|
|
447
451
|
return;
|
|
448
452
|
}
|
|
449
|
-
const handle = this.notificationService.prompt(Severity.Warning, ( localize(
|
|
450
|
-
label: ( localize(
|
|
453
|
+
const handle = this.notificationService.prompt(Severity.Warning, ( localize(12461, 'There are multiple default editors available for the resource.')), [{
|
|
454
|
+
label: ( localize(12462, 'Configure Default')),
|
|
451
455
|
run: async () => {
|
|
452
456
|
const picked = await this.doPickEditor(untypedInput, true);
|
|
453
457
|
if (!picked) {
|
|
@@ -468,7 +472,7 @@ let EditorResolverService = class EditorResolverService extends Disposable {
|
|
|
468
472
|
}
|
|
469
473
|
},
|
|
470
474
|
{
|
|
471
|
-
label: ( localize(
|
|
475
|
+
label: ( localize(12463, 'Keep {0}', editorName)),
|
|
472
476
|
run: writeCurrentEditorsToStorage
|
|
473
477
|
}
|
|
474
478
|
]);
|
|
@@ -494,9 +498,9 @@ let EditorResolverService = class EditorResolverService extends Disposable {
|
|
|
494
498
|
}
|
|
495
499
|
});
|
|
496
500
|
const quickPickEntries = [];
|
|
497
|
-
const currentlyActiveLabel = ( localize(
|
|
498
|
-
const currentDefaultLabel = ( localize(
|
|
499
|
-
const currentDefaultAndActiveLabel = ( localize(
|
|
501
|
+
const currentlyActiveLabel = ( localize(12464, "Active"));
|
|
502
|
+
const currentDefaultLabel = ( localize(12465, "Default"));
|
|
503
|
+
const currentDefaultAndActiveLabel = ( localize(12466, "Active and Default"));
|
|
500
504
|
let defaultViewType = defaultSetting;
|
|
501
505
|
if (!defaultViewType && registeredEditors.length > 2 && registeredEditors[1]?.editorInfo.priority !== RegisteredEditorPriority.option) {
|
|
502
506
|
defaultViewType = registeredEditors[1]?.editorInfo.id;
|
|
@@ -521,7 +525,7 @@ let EditorResolverService = class EditorResolverService extends Disposable {
|
|
|
521
525
|
quickPickEntries.push(separator);
|
|
522
526
|
const configureDefaultEntry = {
|
|
523
527
|
id: EditorResolverService_1.configureDefaultID,
|
|
524
|
-
label: ( localize(
|
|
528
|
+
label: ( localize(12467, "Configure default editor for '{0}'...", `*${extname(resource)}`)),
|
|
525
529
|
};
|
|
526
530
|
quickPickEntries.push(configureDefaultEntry);
|
|
527
531
|
}
|
|
@@ -536,8 +540,8 @@ let EditorResolverService = class EditorResolverService extends Disposable {
|
|
|
536
540
|
const disposables = ( new DisposableStore());
|
|
537
541
|
const editorPicker = disposables.add(this.quickInputService.createQuickPick({ useSeparators: true }));
|
|
538
542
|
const placeHolderMessage = showDefaultPicker ?
|
|
539
|
-
( localize(
|
|
540
|
-
( localize(
|
|
543
|
+
( localize(12468, "Select new default editor for '{0}'", `*${extname(resource)}`)) :
|
|
544
|
+
( localize(12469, "Select editor for '{0}'", basename(resource)));
|
|
541
545
|
editorPicker.placeholder = placeHolderMessage;
|
|
542
546
|
editorPicker.canAcceptInBackground = true;
|
|
543
547
|
editorPicker.items = editorPicks;
|
|
@@ -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-a4683c2b-a0d2-5112-96ba-eedc605346d2-common/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';
|
|
@@ -77,33 +77,33 @@ let HistoryService = class HistoryService extends Disposable {
|
|
|
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(12679, "Whether it is possible to navigate back in editor history"))))).bindTo(this.contextKeyService);
|
|
81
|
+
this.canNavigateForwardContextKey = (( new RawContextKey('canNavigateForward', false, ( localize(12680, "Whether it is possible to navigate forward in editor history"))))).bindTo(this.contextKeyService);
|
|
82
82
|
this.canNavigateBackInNavigationsContextKey = (( new RawContextKey('canNavigateBackInNavigationLocations', false, ( localize(
|
|
83
|
-
|
|
83
|
+
12681,
|
|
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
|
+
12682,
|
|
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
|
+
12683,
|
|
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
|
+
12684,
|
|
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
|
+
12685,
|
|
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
|
+
12686,
|
|
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(12687, "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();
|
|
@@ -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-937ecbdf-94c7-5b16-aefa-ad78ae557a93-common/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';
|
|
@@ -48,7 +48,7 @@ let ProgressService = class ProgressService extends Disposable {
|
|
|
48
48
|
async withProgress(options, originalTask, onDidCancel) {
|
|
49
49
|
const { location } = options;
|
|
50
50
|
const task = async (progress) => {
|
|
51
|
-
const activeLock = this.userActivityService.markActive({ whenHeldFor: 15_000 });
|
|
51
|
+
const activeLock = this.userActivityService.markActive({ extendOnly: true, whenHeldFor: 15_000 });
|
|
52
52
|
try {
|
|
53
53
|
return await originalTask(progress);
|
|
54
54
|
}
|
|
@@ -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(12814, "{0}: {1}", progressTitle, progressMessage));
|
|
136
|
+
title = source ? ( localize(12815, "[{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(12816, "[{0}]: {1}", source, progressTitle)) : text;
|
|
141
141
|
}
|
|
142
142
|
else if (progressMessage) {
|
|
143
143
|
text = progressMessage;
|
|
144
|
-
title = source ? ( localize(
|
|
144
|
+
title = source ? ( localize(12816, "[{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(12817, "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(12818, "Cancel")), undefined, true);
|
|
248
248
|
}
|
|
249
249
|
async run() {
|
|
250
250
|
progressStateModel.cancel();
|
|
@@ -299,7 +299,7 @@ let ProgressService = class ProgressService extends Disposable {
|
|
|
299
299
|
}
|
|
300
300
|
if (!notificationHandle && titleAndMessage) {
|
|
301
301
|
if (typeof options.delay === 'number' && options.delay > 0) {
|
|
302
|
-
if (
|
|
302
|
+
if (notificationTimeout === undefined) {
|
|
303
303
|
notificationTimeout = setTimeout(() => notificationHandle = createNotification(titleAndMessage, options.priority, step?.increment), options.delay);
|
|
304
304
|
}
|
|
305
305
|
}
|
|
@@ -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(12818, "Cancel")) : options.cancellable)
|
|
426
|
+
: ( localize(12819, "Dismiss")));
|
|
427
427
|
}
|
|
428
428
|
dialog = ( new Dialog(
|
|
429
429
|
this.layoutService.activeContainer,
|
|
@@ -6,9 +6,9 @@ import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/pl
|
|
|
6
6
|
import { IWorkbenchEnvironmentService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/environment/common/environmentService.service";
|
|
7
7
|
import { IFilesConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/filesConfiguration/common/filesConfigurationService.service";
|
|
8
8
|
import { IPathService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/path/common/pathService.service";
|
|
9
|
-
import { UntitledTextEditorInput } from "@codingame/monaco-vscode-
|
|
9
|
+
import { UntitledTextEditorInput } from "@codingame/monaco-vscode-f5d4b045-44e8-55a8-b683-308656a412fa-common/vscode/vs/workbench/services/untitled/common/untitledTextEditorInput";
|
|
10
10
|
import { IWorkbenchContribution } from "@codingame/monaco-vscode-api/vscode/vs/workbench/common/contributions";
|
|
11
|
-
import { IWorkingCopyIdentifier } from "@codingame/monaco-vscode-
|
|
11
|
+
import { IWorkingCopyIdentifier } from "@codingame/monaco-vscode-a4683c2b-a0d2-5112-96ba-eedc605346d2-common/vscode/vs/workbench/services/workingCopy/common/workingCopy";
|
|
12
12
|
import { IWorkingCopyEditorHandler } from "@codingame/monaco-vscode-working-copy-service-override/vscode/vs/workbench/services/workingCopy/common/workingCopyEditorService";
|
|
13
13
|
import { IWorkingCopyEditorService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/workingCopy/common/workingCopyEditorService.service";
|
|
14
14
|
import { IUntitledTextEditorService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/untitled/common/untitledTextEditorService.service";
|
|
@@ -9,8 +9,8 @@ import { PLAINTEXT_LANGUAGE_ID } from '@codingame/monaco-vscode-api/vscode/vs/ed
|
|
|
9
9
|
import { IWorkbenchEnvironmentService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/environment/common/environmentService.service';
|
|
10
10
|
import { IFilesConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/filesConfiguration/common/filesConfigurationService.service';
|
|
11
11
|
import { IPathService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/path/common/pathService.service';
|
|
12
|
-
import { UntitledTextEditorInput } from '@codingame/monaco-vscode-
|
|
13
|
-
import { NO_TYPE_ID } from '@codingame/monaco-vscode-
|
|
12
|
+
import { UntitledTextEditorInput } from '@codingame/monaco-vscode-f5d4b045-44e8-55a8-b683-308656a412fa-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';
|
|
14
14
|
import { IWorkingCopyEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/workingCopy/common/workingCopyEditorService.service';
|
|
15
15
|
import { IUntitledTextEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/untitled/common/untitledTextEditorService.service';
|
|
16
16
|
|
|
@@ -9,7 +9,7 @@ import { IStorageService } from '@codingame/monaco-vscode-api/vscode/vs/platform
|
|
|
9
9
|
import { IExtensionService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensions/common/extensions.service';
|
|
10
10
|
import { Registry } from '@codingame/monaco-vscode-api/vscode/vs/platform/registry/common/platform';
|
|
11
11
|
import { Disposable, DisposableMap, DisposableStore, toDisposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
12
|
-
import { ViewPaneContainer, ViewPaneContainerAction, ViewsSubMenu } from '@codingame/monaco-vscode-
|
|
12
|
+
import { ViewPaneContainer, ViewPaneContainerAction, ViewsSubMenu } from '@codingame/monaco-vscode-a8d3bd74-e63e-5327-96e8-4f931661e329-common/vscode/vs/workbench/browser/parts/views/viewPaneContainer';
|
|
13
13
|
import { SyncDescriptor } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/descriptors';
|
|
14
14
|
import '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/extensions';
|
|
15
15
|
import { Emitter, Event } from '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
|
|
@@ -213,7 +213,7 @@ let ViewDescriptorService = class ViewDescriptorService extends Disposable {
|
|
|
213
213
|
return this.viewContainersRegistry.getDefaultViewContainer(location);
|
|
214
214
|
}
|
|
215
215
|
moveViewContainerToLocation(viewContainer, location, requestedIndex, reason) {
|
|
216
|
-
this.logger.value.
|
|
216
|
+
this.logger.value.trace(`moveViewContainerToLocation: viewContainer:${viewContainer.id} location:${location} reason:${reason}`);
|
|
217
217
|
this.moveViewContainerToLocationWithoutSaving(viewContainer, location, requestedIndex);
|
|
218
218
|
this.saveViewCustomizations();
|
|
219
219
|
}
|
|
@@ -225,7 +225,7 @@ let ViewDescriptorService = class ViewDescriptorService extends Disposable {
|
|
|
225
225
|
this.saveViewCustomizations();
|
|
226
226
|
}
|
|
227
227
|
moveViewToLocation(view, location, reason) {
|
|
228
|
-
this.logger.value.
|
|
228
|
+
this.logger.value.trace(`moveViewToLocation: view:${view.id} location:${location} reason:${reason}`);
|
|
229
229
|
const container = this.registerGeneratedViewContainer(location);
|
|
230
230
|
this.moveViewsToContainer([view], container);
|
|
231
231
|
}
|
|
@@ -233,7 +233,7 @@ let ViewDescriptorService = class ViewDescriptorService extends Disposable {
|
|
|
233
233
|
if (!views.length) {
|
|
234
234
|
return;
|
|
235
235
|
}
|
|
236
|
-
this.logger.value.
|
|
236
|
+
this.logger.value.trace(`moveViewsToContainer: views:${( views.map(view => view.id)).join(',')} viewContainer:${viewContainer.id} reason:${reason}`);
|
|
237
237
|
const from = this.getViewContainerByViewId(views[0].id);
|
|
238
238
|
const to = viewContainer;
|
|
239
239
|
if (from && to && from !== to) {
|
|
@@ -346,7 +346,7 @@ let ViewDescriptorService = class ViewDescriptorService extends Disposable {
|
|
|
346
346
|
const container = this.viewContainersRegistry.registerViewContainer({
|
|
347
347
|
id,
|
|
348
348
|
ctorDescriptor: ( new SyncDescriptor(ViewPaneContainer, [id, { mergeViewWithContainerWhenSingleView: true }])),
|
|
349
|
-
title: { value: ( localize(
|
|
349
|
+
title: { value: ( localize(13181, "User View Container")), original: 'User View Container' },
|
|
350
350
|
icon: location === ViewContainerLocation.Sidebar ? defaultViewIcon : undefined,
|
|
351
351
|
storageId: getViewContainerStorageId(id),
|
|
352
352
|
hideIfEmpty: true
|
|
@@ -560,7 +560,7 @@ let ViewDescriptorService = class ViewDescriptorService extends Disposable {
|
|
|
560
560
|
title: viewDescriptor.name,
|
|
561
561
|
metadata: {
|
|
562
562
|
description: ( localize2(
|
|
563
|
-
|
|
563
|
+
13182,
|
|
564
564
|
'Toggles the visibility of the {0} view if the view container it is located in is visible',
|
|
565
565
|
viewDescriptor.name.value
|
|
566
566
|
))
|
|
@@ -591,10 +591,10 @@ let ViewDescriptorService = class ViewDescriptorService extends Disposable {
|
|
|
591
591
|
super({
|
|
592
592
|
id: `${viewDescriptor.id}.removeView`,
|
|
593
593
|
viewPaneContainerId: viewContainerModel.viewContainer.id,
|
|
594
|
-
title: ( localize(
|
|
594
|
+
title: ( localize(13183, "Hide '{0}'", viewDescriptor.name.value)),
|
|
595
595
|
metadata: {
|
|
596
596
|
description: ( localize2(
|
|
597
|
-
|
|
597
|
+
13184,
|
|
598
598
|
'Hides the {0} view if it is visible and the view container it is located in is visible',
|
|
599
599
|
viewDescriptor.name.value
|
|
600
600
|
))
|
|
@@ -624,7 +624,7 @@ let ViewDescriptorService = class ViewDescriptorService extends Disposable {
|
|
|
624
624
|
constructor() {
|
|
625
625
|
super({
|
|
626
626
|
id: `${viewContainer.id}.resetViewContainerLocation`,
|
|
627
|
-
title: ( localize2(
|
|
627
|
+
title: ( localize2(13185, "Reset Location")),
|
|
628
628
|
menu: [{
|
|
629
629
|
id: MenuId.ViewContainerTitleContext,
|
|
630
630
|
group: '1_viewActions',
|
|
@@ -87,7 +87,7 @@ let ViewDescriptorsState = class ViewDescriptorsState extends Disposable {
|
|
|
87
87
|
if (state) {
|
|
88
88
|
if (state.visibleGlobal !== !storedState.isHidden) {
|
|
89
89
|
if (!storedState.isHidden) {
|
|
90
|
-
this.logger.value.
|
|
90
|
+
this.logger.value.trace(`View visibility state changed: ${id} is now visible`, this.viewContainerName);
|
|
91
91
|
}
|
|
92
92
|
changedStates.push({ id, visible: !storedState.isHidden });
|
|
93
93
|
}
|
|
@@ -341,7 +341,7 @@ let ViewContainerModel = class ViewContainerModel extends Disposable {
|
|
|
341
341
|
else {
|
|
342
342
|
viewDescriptorItem.state.visibleGlobal = visible;
|
|
343
343
|
if (visible) {
|
|
344
|
-
this.logger.value.
|
|
344
|
+
this.logger.value.trace(`Showing view ${viewDescriptorItem.viewDescriptor.id} in the container ${this.viewContainer.id}`);
|
|
345
345
|
}
|
|
346
346
|
}
|
|
347
347
|
return this.isViewDescriptorVisible(viewDescriptorItem) === visible;
|
|
@@ -397,7 +397,7 @@ let ViewContainerModel = class ViewContainerModel extends Disposable {
|
|
|
397
397
|
const isVisible = state.visibleGlobal;
|
|
398
398
|
state.visibleGlobal = isUndefinedOrNull(addedViewDescriptorState.visible) ? (isUndefinedOrNull(state.visibleGlobal) ? !viewDescriptor.hideByDefault : state.visibleGlobal) : addedViewDescriptorState.visible;
|
|
399
399
|
if (state.visibleGlobal && !isVisible) {
|
|
400
|
-
this.logger.value.
|
|
400
|
+
this.logger.value.trace(`Added view ${viewDescriptor.id} in the container ${this.viewContainer.id} and showing it.`, `${isVisible}`, `${viewDescriptor.hideByDefault}`, `${addedViewDescriptorState.visible}`);
|
|
401
401
|
}
|
|
402
402
|
}
|
|
403
403
|
state.collapsed = isUndefinedOrNull(addedViewDescriptorState.collapsed) ? (isUndefinedOrNull(state.collapsed) ? !!viewDescriptor.collapsed : state.collapsed) : addedViewDescriptorState.collapsed;
|
|
@@ -523,7 +523,7 @@ let ViewContainerModel = class ViewContainerModel extends Disposable {
|
|
|
523
523
|
this.updateState(`Moved view ${from.viewDescriptor.id} to ${to.viewDescriptor.id} in ${this.viewContainer.id}`);
|
|
524
524
|
}
|
|
525
525
|
updateState(reason) {
|
|
526
|
-
this.logger.value.
|
|
526
|
+
this.logger.value.trace(reason);
|
|
527
527
|
this.viewDescriptorsState.updateState(this.allViewDescriptors);
|
|
528
528
|
this.updateContainerInfo();
|
|
529
529
|
}
|