@codingame/monaco-vscode-view-common-service-override 34.1.3 → 35.0.1
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/package.json +3 -3
- package/vscode/src/vs/sessions/common/theme.d.ts +2 -0
- package/vscode/src/vs/sessions/common/theme.js +40 -27
- package/vscode/src/vs/workbench/api/browser/viewsExtensionPoint.js +57 -57
- 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 +6 -6
- package/vscode/src/vs/workbench/browser/parts/editor/editor.contribution.js +190 -170
- package/vscode/src/vs/workbench/browser/parts/editor/editorConfiguration.d.ts +3 -1
- package/vscode/src/vs/workbench/browser/parts/editor/editorConfiguration.js +28 -13
- package/vscode/src/vs/workbench/browser/parts/titlebar/menubar.contribution.js +8 -8
- package/vscode/src/vs/workbench/browser/workbench.zenMode.contribution.js +15 -15
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchy.contribution.js +12 -12
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyPeek.js +3 -3
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyTree.js +3 -3
- package/vscode/src/vs/workbench/contrib/customEditor/common/contributedCustomEditors.js +4 -4
- package/vscode/src/vs/workbench/contrib/customEditor/common/customEditor.js +1 -1
- package/vscode/src/vs/workbench/contrib/customEditor/common/extensionPoint.d.ts +7 -7
- package/vscode/src/vs/workbench/contrib/customEditor/common/extensionPoint.js +26 -26
- 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 +29 -29
- 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/conflictActions.js +20 -20
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/baseCodeEditorView.js +3 -3
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/inputCodeEditorView.js +10 -10
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/resultCodeEditorView.js +3 -3
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/mergeEditor.js +1 -1
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/viewModel.js +1 -1
- package/vscode/src/vs/workbench/contrib/preferences/browser/keyboardLayoutPicker.js +12 -12
- package/vscode/src/vs/workbench/contrib/sash/browser/sash.contribution.js +2 -2
- package/vscode/src/vs/workbench/contrib/scrollLocking/browser/scrollLocking.js +7 -7
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchy.contribution.js +10 -10
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyPeek.js +3 -3
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyTree.js +3 -3
- package/vscode/src/vs/workbench/contrib/webview/browser/webviewElement.js +2 -2
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewCommands.js +5 -5
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewPanel.contribution.js +1 -1
- package/vscode/src/vs/workbench/contrib/webviewView/browser/webviewViewPane.js +8 -1
- package/vscode/src/vs/workbench/services/editor/browser/editorResolverService.js +8 -8
- package/vscode/src/vs/workbench/services/history/browser/historyService.d.ts +5 -0
- package/vscode/src/vs/workbench/services/history/browser/historyService.js +49 -18
- package/vscode/src/vs/workbench/services/progress/browser/progressService.js +7 -7
- package/vscode/src/vs/workbench/services/views/browser/viewDescriptorService.js +5 -5
- package/vscode/src/vs/workbench/services/views/browser/viewsService.js +9 -9
|
@@ -18,7 +18,7 @@ class ShowWebViewEditorFindWidgetAction extends Action2 {
|
|
|
18
18
|
this.ID = "editor.action.webvieweditor.showFind";
|
|
19
19
|
}
|
|
20
20
|
static {
|
|
21
|
-
this.LABEL = ( localize(
|
|
21
|
+
this.LABEL = ( localize(16682, "Show find"));
|
|
22
22
|
}
|
|
23
23
|
constructor() {
|
|
24
24
|
super({
|
|
@@ -43,7 +43,7 @@ class HideWebViewEditorFindCommand extends Action2 {
|
|
|
43
43
|
this.ID = "editor.action.webvieweditor.hideFind";
|
|
44
44
|
}
|
|
45
45
|
static {
|
|
46
|
-
this.LABEL = ( localize(
|
|
46
|
+
this.LABEL = ( localize(16683, "Stop find"));
|
|
47
47
|
}
|
|
48
48
|
constructor() {
|
|
49
49
|
super({
|
|
@@ -68,7 +68,7 @@ class WebViewEditorFindNextCommand extends Action2 {
|
|
|
68
68
|
this.ID = "editor.action.webvieweditor.findNext";
|
|
69
69
|
}
|
|
70
70
|
static {
|
|
71
|
-
this.LABEL = ( localize(
|
|
71
|
+
this.LABEL = ( localize(16684, "Find next"));
|
|
72
72
|
}
|
|
73
73
|
constructor() {
|
|
74
74
|
super({
|
|
@@ -93,7 +93,7 @@ class WebViewEditorFindPreviousCommand extends Action2 {
|
|
|
93
93
|
this.ID = "editor.action.webvieweditor.findPrevious";
|
|
94
94
|
}
|
|
95
95
|
static {
|
|
96
|
-
this.LABEL = ( localize(
|
|
96
|
+
this.LABEL = ( localize(16685, "Find previous"));
|
|
97
97
|
}
|
|
98
98
|
constructor() {
|
|
99
99
|
super({
|
|
@@ -118,7 +118,7 @@ class ReloadWebviewAction extends Action2 {
|
|
|
118
118
|
this.ID = "workbench.action.webview.reloadWebviewAction";
|
|
119
119
|
}
|
|
120
120
|
static {
|
|
121
|
-
this.LABEL = ( localize2(
|
|
121
|
+
this.LABEL = ( localize2(16686, "Reload Webviews"));
|
|
122
122
|
}
|
|
123
123
|
constructor() {
|
|
124
124
|
super({
|
|
@@ -19,7 +19,7 @@ import '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/ins
|
|
|
19
19
|
import { IEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
20
20
|
|
|
21
21
|
( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(
|
|
22
|
-
EditorPaneDescriptor.create(WebviewEditor, WebviewEditor.ID, ( localize(
|
|
22
|
+
EditorPaneDescriptor.create(WebviewEditor, WebviewEditor.ID, ( localize(16688, "webview editor"))),
|
|
23
23
|
[( new SyncDescriptor(WebviewInput))]
|
|
24
24
|
);
|
|
25
25
|
let WebviewPanelContribution = class WebviewPanelContribution extends Disposable {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
3
|
-
import { getWindow, EventType,
|
|
3
|
+
import { addDisposableListener, getWindow, EventType, findParentWithClass } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
|
|
4
4
|
import { CancellationTokenSource } from '@codingame/monaco-vscode-api/vscode/vs/base/common/cancellation';
|
|
5
5
|
import { Emitter } from '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
|
|
6
6
|
import { MutableDisposable, DisposableStore, toDisposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
@@ -103,6 +103,13 @@ let WebviewViewPane = class WebviewViewPane extends ViewPane {
|
|
|
103
103
|
super.renderBody(container);
|
|
104
104
|
this._container = container;
|
|
105
105
|
this._rootContainer = undefined;
|
|
106
|
+
container.tabIndex = 0;
|
|
107
|
+
container.setAttribute("role", "document");
|
|
108
|
+
this._register(addDisposableListener(container, "focus", e => {
|
|
109
|
+
if (e.target === container && this._webview.value) {
|
|
110
|
+
this._webview.value.focus();
|
|
111
|
+
}
|
|
112
|
+
}));
|
|
106
113
|
this.layoutWebview();
|
|
107
114
|
}
|
|
108
115
|
saveState() {
|
|
@@ -636,8 +636,8 @@ let EditorResolverService = class EditorResolverService extends Disposable {
|
|
|
636
636
|
if (storedChoices[globForResource]?.find(editorID => editorID === currentEditor.editorId)) {
|
|
637
637
|
return;
|
|
638
638
|
}
|
|
639
|
-
const handle = this.notificationService.prompt(Severity.Warning, ( localize(
|
|
640
|
-
label: ( localize(
|
|
639
|
+
const handle = this.notificationService.prompt(Severity.Warning, ( localize(17528, "There are multiple default editors available for the resource.")), [{
|
|
640
|
+
label: ( localize(17529, "Configure Default")),
|
|
641
641
|
run: async () => {
|
|
642
642
|
const picked = await this.doPickEditor(untypedInput, true);
|
|
643
643
|
if (!picked) {
|
|
@@ -655,7 +655,7 @@ let EditorResolverService = class EditorResolverService extends Disposable {
|
|
|
655
655
|
}]);
|
|
656
656
|
}
|
|
657
657
|
}, {
|
|
658
|
-
label: ( localize(
|
|
658
|
+
label: ( localize(17530, "Keep {0}", editorName)),
|
|
659
659
|
run: writeCurrentEditorsToStorage
|
|
660
660
|
}]);
|
|
661
661
|
const onCloseListener = handle.onDidClose(() => {
|
|
@@ -681,9 +681,9 @@ let EditorResolverService = class EditorResolverService extends Disposable {
|
|
|
681
681
|
}
|
|
682
682
|
});
|
|
683
683
|
const quickPickEntries = [];
|
|
684
|
-
const currentlyActiveLabel = ( localize(
|
|
685
|
-
const currentDefaultLabel = ( localize(
|
|
686
|
-
const currentDefaultAndActiveLabel = ( localize(
|
|
684
|
+
const currentlyActiveLabel = ( localize(17531, "Active"));
|
|
685
|
+
const currentDefaultLabel = ( localize(17532, "Default"));
|
|
686
|
+
const currentDefaultAndActiveLabel = ( localize(17533, "Active and Default"));
|
|
687
687
|
let defaultViewType = defaultSetting;
|
|
688
688
|
if (!defaultViewType && registeredEditors.length > 2 && this.getEffectivePriority(registeredEditors[1].editorInfo, associationType) !== RegisteredEditorPriority.option) {
|
|
689
689
|
defaultViewType = registeredEditors[1]?.editorInfo.id;
|
|
@@ -710,7 +710,7 @@ let EditorResolverService = class EditorResolverService extends Disposable {
|
|
|
710
710
|
quickPickEntries.push(separator);
|
|
711
711
|
const configureDefaultEntry = {
|
|
712
712
|
id: EditorResolverService_1.configureDefaultID,
|
|
713
|
-
label: ( localize(
|
|
713
|
+
label: ( localize(17534, "Configure default editor for '{0}'...", `*${extname(resource)}`))
|
|
714
714
|
};
|
|
715
715
|
quickPickEntries.push(configureDefaultEntry);
|
|
716
716
|
}
|
|
@@ -731,7 +731,7 @@ let EditorResolverService = class EditorResolverService extends Disposable {
|
|
|
731
731
|
const editorPicker = disposables.add(this.quickInputService.createQuickPick({
|
|
732
732
|
useSeparators: true
|
|
733
733
|
}));
|
|
734
|
-
const placeHolderMessage = showDefaultPicker ? ( localize(
|
|
734
|
+
const placeHolderMessage = showDefaultPicker ? ( localize(17535, "Select new default editor for '{0}'", `*${extname(resource)}`)) : ( localize(17536, "Select editor for '{0}'", basename(resource)));
|
|
735
735
|
editorPicker.placeholder = placeHolderMessage;
|
|
736
736
|
editorPicker.canAcceptInBackground = true;
|
|
737
737
|
editorPicker.items = editorPicks;
|
|
@@ -96,8 +96,13 @@ export declare class HistoryService extends Disposable implements IHistoryServic
|
|
|
96
96
|
private static readonly MAX_RECENTLY_CLOSED_EDITORS;
|
|
97
97
|
private recentlyClosedEditors;
|
|
98
98
|
private ignoreEditorCloseEvent;
|
|
99
|
+
private recentlyClosedEditorsBatchId;
|
|
100
|
+
private recentlyClosedEditorsBatchScheduled;
|
|
99
101
|
private handleEditorCloseEventInReopen;
|
|
102
|
+
private currentRecentlyClosedEditorsBatchId;
|
|
100
103
|
reopenLastClosedEditor(): Promise<void>;
|
|
104
|
+
private takeLastClosedEditorsBatch;
|
|
105
|
+
private doReopenLastClosedEditors;
|
|
101
106
|
private doReopenLastClosedEditor;
|
|
102
107
|
private removeFromRecentlyClosedEditors;
|
|
103
108
|
private static readonly MAX_HISTORY_ITEMS;
|
|
@@ -20,7 +20,7 @@ import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/pl
|
|
|
20
20
|
import { IWorkbenchLayoutService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/layout/browser/layoutService.service';
|
|
21
21
|
import { RawContextKey } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey';
|
|
22
22
|
import { IContextKeyService } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service';
|
|
23
|
-
import { coalesce
|
|
23
|
+
import { coalesce } from '@codingame/monaco-vscode-api/vscode/vs/base/common/arrays';
|
|
24
24
|
import { registerSingleton, InstantiationType } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/extensions';
|
|
25
25
|
import { WindowIdleValue, addDisposableListener, EventType, EventHelper } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
|
|
26
26
|
import { IWorkspacesService } from '@codingame/monaco-vscode-api/vscode/vs/platform/workspaces/common/workspaces.service';
|
|
@@ -87,6 +87,8 @@ let HistoryService = class HistoryService extends Disposable {
|
|
|
87
87
|
this.navigatingInRecentlyUsedEditorsInGroupStack = false;
|
|
88
88
|
this.recentlyClosedEditors = [];
|
|
89
89
|
this.ignoreEditorCloseEvent = false;
|
|
90
|
+
this.recentlyClosedEditorsBatchId = 0;
|
|
91
|
+
this.recentlyClosedEditorsBatchScheduled = false;
|
|
90
92
|
this.history = undefined;
|
|
91
93
|
this.editorHistoryListeners = this._register(( new DisposableMap()));
|
|
92
94
|
this.resourceExcludeMatcher = this._register(new WindowIdleValue(mainWindow, () => {
|
|
@@ -101,33 +103,33 @@ let HistoryService = class HistoryService extends Disposable {
|
|
|
101
103
|
return matcher;
|
|
102
104
|
}));
|
|
103
105
|
this.editorHelper = this.instantiationService.createInstance(EditorHelper);
|
|
104
|
-
this.canNavigateBackContextKey = ( new RawContextKey("canNavigateBack", false, ( localize(
|
|
105
|
-
this.canNavigateForwardContextKey = ( new RawContextKey("canNavigateForward", false, ( localize(
|
|
106
|
+
this.canNavigateBackContextKey = ( new RawContextKey("canNavigateBack", false, ( localize(17752, "Whether it is possible to navigate back in editor history")))).bindTo(this.contextKeyService);
|
|
107
|
+
this.canNavigateForwardContextKey = ( new RawContextKey("canNavigateForward", false, ( localize(17753, "Whether it is possible to navigate forward in editor history")))).bindTo(this.contextKeyService);
|
|
106
108
|
this.canNavigateBackInNavigationsContextKey = ( new RawContextKey("canNavigateBackInNavigationLocations", false, ( localize(
|
|
107
|
-
|
|
109
|
+
17754,
|
|
108
110
|
"Whether it is possible to navigate back in editor navigation locations history"
|
|
109
111
|
)))).bindTo(this.contextKeyService);
|
|
110
112
|
this.canNavigateForwardInNavigationsContextKey = ( new RawContextKey("canNavigateForwardInNavigationLocations", false, ( localize(
|
|
111
|
-
|
|
113
|
+
17755,
|
|
112
114
|
"Whether it is possible to navigate forward in editor navigation locations history"
|
|
113
115
|
)))).bindTo(this.contextKeyService);
|
|
114
116
|
this.canNavigateToLastNavigationLocationContextKey = ( new RawContextKey("canNavigateToLastNavigationLocation", false, ( localize(
|
|
115
|
-
|
|
117
|
+
17756,
|
|
116
118
|
"Whether it is possible to navigate to the last editor navigation location"
|
|
117
119
|
)))).bindTo(this.contextKeyService);
|
|
118
120
|
this.canNavigateBackInEditsContextKey = ( new RawContextKey("canNavigateBackInEditLocations", false, ( localize(
|
|
119
|
-
|
|
121
|
+
17757,
|
|
120
122
|
"Whether it is possible to navigate back in editor edit locations history"
|
|
121
123
|
)))).bindTo(this.contextKeyService);
|
|
122
124
|
this.canNavigateForwardInEditsContextKey = ( new RawContextKey("canNavigateForwardInEditLocations", false, ( localize(
|
|
123
|
-
|
|
125
|
+
17758,
|
|
124
126
|
"Whether it is possible to navigate forward in editor edit locations history"
|
|
125
127
|
)))).bindTo(this.contextKeyService);
|
|
126
128
|
this.canNavigateToLastEditLocationContextKey = ( new RawContextKey("canNavigateToLastEditLocation", false, ( localize(
|
|
127
|
-
|
|
129
|
+
17759,
|
|
128
130
|
"Whether it is possible to navigate to the last editor edit location"
|
|
129
131
|
)))).bindTo(this.contextKeyService);
|
|
130
|
-
this.canReopenClosedEditorContextKey = ( new RawContextKey("canReopenClosedEditor", false, ( localize(
|
|
132
|
+
this.canReopenClosedEditorContextKey = ( new RawContextKey("canReopenClosedEditor", false, ( localize(17760, "Whether it is possible to reopen the last closed editor")))).bindTo(this.contextKeyService);
|
|
131
133
|
this.registerListeners();
|
|
132
134
|
if (this.editorService.activeEditorPane) {
|
|
133
135
|
this.onDidActiveEditorChange();
|
|
@@ -565,22 +567,54 @@ let HistoryService = class HistoryService extends Disposable {
|
|
|
565
567
|
resource: EditorResourceAccessor.getOriginalUri(editor),
|
|
566
568
|
associatedResources,
|
|
567
569
|
index: event.index,
|
|
568
|
-
sticky: event.sticky
|
|
570
|
+
sticky: event.sticky,
|
|
571
|
+
batchId: this.currentRecentlyClosedEditorsBatchId()
|
|
569
572
|
});
|
|
570
573
|
if (this.recentlyClosedEditors.length > HistoryService_1.MAX_RECENTLY_CLOSED_EDITORS) {
|
|
571
574
|
this.recentlyClosedEditors.shift();
|
|
572
575
|
}
|
|
573
576
|
this.canReopenClosedEditorContextKey.set(true);
|
|
574
577
|
}
|
|
578
|
+
currentRecentlyClosedEditorsBatchId() {
|
|
579
|
+
if (!this.recentlyClosedEditorsBatchScheduled) {
|
|
580
|
+
this.recentlyClosedEditorsBatchScheduled = true;
|
|
581
|
+
this.recentlyClosedEditorsBatchId++;
|
|
582
|
+
queueMicrotask(() => this.recentlyClosedEditorsBatchScheduled = false);
|
|
583
|
+
}
|
|
584
|
+
return this.recentlyClosedEditorsBatchId;
|
|
585
|
+
}
|
|
575
586
|
async reopenLastClosedEditor() {
|
|
576
|
-
const
|
|
587
|
+
const lastClosedEditors = this.takeLastClosedEditorsBatch();
|
|
577
588
|
let reopenClosedEditorPromise = undefined;
|
|
578
|
-
if (
|
|
579
|
-
reopenClosedEditorPromise = this.
|
|
589
|
+
if (lastClosedEditors.length) {
|
|
590
|
+
reopenClosedEditorPromise = this.doReopenLastClosedEditors(lastClosedEditors);
|
|
580
591
|
}
|
|
581
592
|
this.canReopenClosedEditorContextKey.set(this.recentlyClosedEditors.length > 0);
|
|
582
593
|
return reopenClosedEditorPromise;
|
|
583
594
|
}
|
|
595
|
+
takeLastClosedEditorsBatch() {
|
|
596
|
+
const lastClosedEditor = this.recentlyClosedEditors.at(-1);
|
|
597
|
+
if (!lastClosedEditor) {
|
|
598
|
+
return [];
|
|
599
|
+
}
|
|
600
|
+
const batch = [];
|
|
601
|
+
while (this.recentlyClosedEditors.length && this.recentlyClosedEditors[this.recentlyClosedEditors.length - 1].batchId === lastClosedEditor.batchId) {
|
|
602
|
+
batch.unshift(this.recentlyClosedEditors.pop());
|
|
603
|
+
}
|
|
604
|
+
return batch;
|
|
605
|
+
}
|
|
606
|
+
async doReopenLastClosedEditors(lastClosedEditors) {
|
|
607
|
+
let anyReopened = false;
|
|
608
|
+
for (const lastClosedEditor of lastClosedEditors) {
|
|
609
|
+
const editorPane = await this.doReopenLastClosedEditor(lastClosedEditor);
|
|
610
|
+
if (editorPane) {
|
|
611
|
+
anyReopened = true;
|
|
612
|
+
}
|
|
613
|
+
}
|
|
614
|
+
if (!anyReopened && this.recentlyClosedEditors.length) {
|
|
615
|
+
return this.reopenLastClosedEditor();
|
|
616
|
+
}
|
|
617
|
+
}
|
|
584
618
|
async doReopenLastClosedEditor(lastClosedEditor) {
|
|
585
619
|
const options = {
|
|
586
620
|
pinned: true,
|
|
@@ -606,10 +640,7 @@ let HistoryService = class HistoryService extends Disposable {
|
|
|
606
640
|
this.ignoreEditorCloseEvent = false;
|
|
607
641
|
}
|
|
608
642
|
}
|
|
609
|
-
|
|
610
|
-
remove(this.recentlyClosedEditors, lastClosedEditor);
|
|
611
|
-
this.reopenLastClosedEditor();
|
|
612
|
-
}
|
|
643
|
+
return editorPane;
|
|
613
644
|
}
|
|
614
645
|
removeFromRecentlyClosedEditors(arg1) {
|
|
615
646
|
this.recentlyClosedEditors = this.recentlyClosedEditors.filter(recentlyClosedEditor => {
|
|
@@ -175,20 +175,20 @@ let ProgressService = class ProgressService extends Disposable {
|
|
|
175
175
|
let title;
|
|
176
176
|
const source = options.source && typeof options.source !== "string" ? options.source.label : options.source;
|
|
177
177
|
if (progressTitle && progressMessage) {
|
|
178
|
-
text = ( localize(
|
|
179
|
-
title = source ? ( localize(
|
|
178
|
+
text = ( localize(17890, "{0}: {1}", progressTitle, progressMessage));
|
|
179
|
+
title = source ? ( localize(17891, "[{0}] {1}: {2}", source, progressTitle, progressMessage)) : text;
|
|
180
180
|
} else if (progressTitle) {
|
|
181
181
|
text = progressTitle;
|
|
182
|
-
title = source ? ( localize(
|
|
182
|
+
title = source ? ( localize(17892, "[{0}]: {1}", source, progressTitle)) : text;
|
|
183
183
|
} else if (progressMessage) {
|
|
184
184
|
text = progressMessage;
|
|
185
|
-
title = source ? ( localize(
|
|
185
|
+
title = source ? ( localize(17892, "[{0}]: {1}", source, progressMessage)) : text;
|
|
186
186
|
} else {
|
|
187
187
|
this.updateWindowProgress(idx + 1);
|
|
188
188
|
return;
|
|
189
189
|
}
|
|
190
190
|
const statusEntryProperties = {
|
|
191
|
-
name: ( localize(
|
|
191
|
+
name: ( localize(17893, "Progress Message")),
|
|
192
192
|
text,
|
|
193
193
|
showProgress: options.type || true,
|
|
194
194
|
ariaLabel: text,
|
|
@@ -294,7 +294,7 @@ let ProgressService = class ProgressService extends Disposable {
|
|
|
294
294
|
constructor() {
|
|
295
295
|
super(
|
|
296
296
|
"progress.cancel",
|
|
297
|
-
typeof options.cancellable === "string" ? options.cancellable : ( localize(
|
|
297
|
+
typeof options.cancellable === "string" ? options.cancellable : ( localize(17894, "Cancel")),
|
|
298
298
|
undefined,
|
|
299
299
|
true
|
|
300
300
|
);
|
|
@@ -486,7 +486,7 @@ let ProgressService = class ProgressService extends Disposable {
|
|
|
486
486
|
const buttons = options.buttons || [];
|
|
487
487
|
if (!options.sticky) {
|
|
488
488
|
buttons.push(
|
|
489
|
-
options.cancellable ? (typeof options.cancellable === "boolean" ? ( localize(
|
|
489
|
+
options.cancellable ? (typeof options.cancellable === "boolean" ? ( localize(17894, "Cancel")) : options.cancellable) : ( localize(17895, "Dismiss"))
|
|
490
490
|
);
|
|
491
491
|
}
|
|
492
492
|
dialog = ( new Dialog(
|
|
@@ -500,7 +500,7 @@ let ViewDescriptorService = class ViewDescriptorService extends Disposable {
|
|
|
500
500
|
mergeViewWithContainerWhenSingleView: true
|
|
501
501
|
}])),
|
|
502
502
|
title: {
|
|
503
|
-
value: ( localize(
|
|
503
|
+
value: ( localize(18272, "User View Container")),
|
|
504
504
|
original: "User View Container"
|
|
505
505
|
},
|
|
506
506
|
icon: location === ViewContainerLocation.Sidebar ? defaultViewIcon : undefined,
|
|
@@ -813,7 +813,7 @@ let ViewDescriptorService = class ViewDescriptorService extends Disposable {
|
|
|
813
813
|
title: viewDescriptor.name,
|
|
814
814
|
metadata: {
|
|
815
815
|
description: ( localize2(
|
|
816
|
-
|
|
816
|
+
18273,
|
|
817
817
|
"Toggles the visibility of the {0} view if the view container it is located in is visible",
|
|
818
818
|
viewDescriptor.name.value
|
|
819
819
|
))
|
|
@@ -844,10 +844,10 @@ let ViewDescriptorService = class ViewDescriptorService extends Disposable {
|
|
|
844
844
|
super({
|
|
845
845
|
id: `${viewDescriptor.id}.removeView`,
|
|
846
846
|
viewPaneContainerId: viewContainerModel.viewContainer.id,
|
|
847
|
-
title: ( localize(
|
|
847
|
+
title: ( localize(18274, "Hide '{0}'", viewDescriptor.name.value)),
|
|
848
848
|
metadata: {
|
|
849
849
|
description: ( localize2(
|
|
850
|
-
|
|
850
|
+
18275,
|
|
851
851
|
"Hides the {0} view if it is visible and the view container it is located in is visible",
|
|
852
852
|
viewDescriptor.name.value
|
|
853
853
|
))
|
|
@@ -877,7 +877,7 @@ let ViewDescriptorService = class ViewDescriptorService extends Disposable {
|
|
|
877
877
|
constructor() {
|
|
878
878
|
super({
|
|
879
879
|
id: `${viewContainer.id}.resetViewContainerLocation`,
|
|
880
|
-
title: ( localize2(
|
|
880
|
+
title: ( localize2(18276, "Reset Location")),
|
|
881
881
|
menu: [{
|
|
882
882
|
id: MenuId.ViewContainerTitleContext,
|
|
883
883
|
group: "1_viewActions",
|
|
@@ -285,7 +285,7 @@ let ViewsService = class ViewsService extends Disposable {
|
|
|
285
285
|
return this.viewDescriptorService.getViewDescriptorById(( viewId.toString()));
|
|
286
286
|
}
|
|
287
287
|
getFocusedViewName() {
|
|
288
|
-
const textEditorFocused = this.editorService.activeTextEditorControl?.hasTextFocus() ? ( localize(
|
|
288
|
+
const textEditorFocused = this.editorService.activeTextEditorControl?.hasTextFocus() ? ( localize(18277, "Text Editor")) : undefined;
|
|
289
289
|
return this.getFocusedView()?.name?.value ?? textEditorFocused ?? "";
|
|
290
290
|
}
|
|
291
291
|
async openView(id, focus) {
|
|
@@ -391,12 +391,12 @@ let ViewsService = class ViewsService extends Disposable {
|
|
|
391
391
|
const originalTitle = typeof title === "string" ? title : title.original;
|
|
392
392
|
if (viewContainerLocation === ViewContainerLocation.Sidebar) {
|
|
393
393
|
return {
|
|
394
|
-
value: ( localize(
|
|
394
|
+
value: ( localize(18278, "Show {0}", localizedTitle)),
|
|
395
395
|
original: `Show ${originalTitle}`
|
|
396
396
|
};
|
|
397
397
|
} else {
|
|
398
398
|
return {
|
|
399
|
-
value: ( localize(
|
|
399
|
+
value: ( localize(18279, "Toggle {0}", localizedTitle)),
|
|
400
400
|
original: `Toggle ${originalTitle}`
|
|
401
401
|
};
|
|
402
402
|
}
|
|
@@ -468,12 +468,12 @@ let ViewsService = class ViewsService extends Disposable {
|
|
|
468
468
|
const originalTitle = typeof title === "string" ? title : title.original;
|
|
469
469
|
if (viewContainerLocation === ViewContainerLocation.Sidebar) {
|
|
470
470
|
return {
|
|
471
|
-
value: ( localize(
|
|
471
|
+
value: ( localize(18278, "Show {0}", localizedTitle)),
|
|
472
472
|
original: `Show ${originalTitle}`
|
|
473
473
|
};
|
|
474
474
|
} else {
|
|
475
475
|
return {
|
|
476
|
-
value: ( localize(
|
|
476
|
+
value: ( localize(18279, "Toggle {0}", localizedTitle)),
|
|
477
477
|
original: `Toggle ${originalTitle}`
|
|
478
478
|
};
|
|
479
479
|
}
|
|
@@ -486,7 +486,7 @@ let ViewsService = class ViewsService extends Disposable {
|
|
|
486
486
|
} : undefined,
|
|
487
487
|
f1: viewDescriptor.openCommandActionDescriptor ? true : undefined,
|
|
488
488
|
metadata: {
|
|
489
|
-
description: ( localize(
|
|
489
|
+
description: ( localize(18280, "Opens view {0}", viewDescriptor.name.value)),
|
|
490
490
|
args: [{
|
|
491
491
|
name: "options",
|
|
492
492
|
schema: {
|
|
@@ -495,7 +495,7 @@ let ViewsService = class ViewsService extends Disposable {
|
|
|
495
495
|
"preserveFocus": {
|
|
496
496
|
type: "boolean",
|
|
497
497
|
default: false,
|
|
498
|
-
description: ( localize(
|
|
498
|
+
description: ( localize(18281, "Whether to preserve the existing focus when opening the view."))
|
|
499
499
|
}
|
|
500
500
|
}
|
|
501
501
|
}
|
|
@@ -542,7 +542,7 @@ let ViewsService = class ViewsService extends Disposable {
|
|
|
542
542
|
registerFocusViewAction(viewDescriptor, category) {
|
|
543
543
|
return registerAction2(class FocusViewAction extends Action2 {
|
|
544
544
|
constructor() {
|
|
545
|
-
const title = ( localize2(
|
|
545
|
+
const title = ( localize2(18282, "Focus on {0} View", viewDescriptor.name.value));
|
|
546
546
|
super({
|
|
547
547
|
id: viewDescriptor.focusCommand ? viewDescriptor.focusCommand.id : `${viewDescriptor.id}.focus`,
|
|
548
548
|
title,
|
|
@@ -588,7 +588,7 @@ let ViewsService = class ViewsService extends Disposable {
|
|
|
588
588
|
constructor() {
|
|
589
589
|
super({
|
|
590
590
|
id: `${viewDescriptor.id}.resetViewLocation`,
|
|
591
|
-
title: ( localize2(
|
|
591
|
+
title: ( localize2(18283, "Reset Location")),
|
|
592
592
|
menu: [{
|
|
593
593
|
id: MenuId.ViewTitleContext,
|
|
594
594
|
when: ( ContextKeyExpr.or(( ContextKeyExpr.and(( ContextKeyExpr.equals("view", viewDescriptor.id)), ( ContextKeyExpr.equals(`${viewDescriptor.id}.defaultViewLocation`, false)))))),
|