@codingame/monaco-vscode-views-service-override 2.0.3 → 2.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.
Files changed (65) hide show
  1. package/index.d.ts +1 -1
  2. package/index.js +1 -1
  3. package/package.json +11 -11
  4. package/tools/editor.js +14 -0
  5. package/views.js +12 -5
  6. package/vscode/src/vs/base/common/codicons.d.ts +5 -0
  7. package/vscode/src/vs/workbench/api/browser/viewsExtensionPoint.js +2 -2
  8. package/vscode/src/vs/workbench/browser/actions/listCommands.js +160 -4
  9. package/vscode/src/vs/workbench/browser/parts/activitybar/activitybarPart.js +14 -19
  10. package/vscode/src/vs/workbench/browser/parts/auxiliarybar/media/auxiliaryBarPart.css.js +1 -1
  11. package/vscode/src/vs/workbench/browser/parts/editor/auxiliaryEditorPart.js +59 -21
  12. package/vscode/src/vs/workbench/browser/parts/editor/editor.contribution.js +77 -45
  13. package/vscode/src/vs/workbench/browser/parts/editor/editorConfiguration.js +23 -1
  14. package/vscode/src/vs/workbench/browser/parts/editor/editorPart.js +77 -45
  15. package/vscode/src/vs/workbench/browser/parts/editor/editorParts.js +131 -5
  16. package/vscode/src/vs/workbench/browser/parts/media/paneCompositePart.css.js +1 -1
  17. package/vscode/src/vs/workbench/browser/parts/paneCompositeBar.js +1 -1
  18. package/vscode/src/vs/workbench/browser/parts/paneCompositePart.js +2 -2
  19. package/vscode/src/vs/workbench/browser/parts/sidebar/media/sidebarpart.css.js +1 -1
  20. package/vscode/src/vs/workbench/browser/parts/sidebar/sidebarPart.d.ts +1 -3
  21. package/vscode/src/vs/workbench/browser/parts/sidebar/sidebarPart.js +8 -16
  22. package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchy.contribution.js +13 -13
  23. package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileEditor.js +8 -3
  24. package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileEditorTracker.js +1 -1
  25. package/vscode/src/vs/workbench/contrib/files/browser/explorerService.js +4 -0
  26. package/vscode/src/vs/workbench/contrib/files/browser/fileActions.contribution.js +2 -2
  27. package/vscode/src/vs/workbench/contrib/files/browser/fileCommands.js +3 -4
  28. package/vscode/src/vs/workbench/contrib/files/browser/files.contribution.js +1 -1
  29. package/vscode/src/vs/workbench/contrib/files/browser/workspaceWatcher.js +1 -1
  30. package/vscode/src/vs/workbench/contrib/files/common/dirtyFilesIndicator.js +1 -1
  31. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/commands/commands.js +17 -16
  32. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/commands/devCommands.js +4 -4
  33. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/codeEditorView.js +1 -1
  34. package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchy.contribution.js +13 -13
  35. package/vscode/src/vs/workbench/contrib/webview/browser/webviewElement.js +2 -2
  36. package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewPanel.contribution.js +1 -1
  37. package/vscode/src/vs/workbench/contrib/webviewView/browser/webviewViewPane.js +2 -1
  38. package/vscode/src/vs/workbench/services/activity/browser/activityService.js +1 -0
  39. package/vscode/src/vs/workbench/services/editor/browser/editorResolverService.js +18 -4
  40. package/vscode/src/vs/workbench/services/history/browser/historyService.js +2 -2
  41. package/vscode/src/vs/workbench/services/progress/browser/progressService.js +15 -4
  42. package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorHandler.js +2 -2
  43. package/vscode/src/vs/workbench/services/views/browser/viewDescriptorService.js +6 -2
  44. package/vscode/src/vs/base/browser/ui/breadcrumbs/breadcrumbsWidget.css.js +0 -6
  45. package/vscode/src/vs/base/browser/ui/breadcrumbs/breadcrumbsWidget.js +0 -290
  46. package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbsControl.js +0 -801
  47. package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbsModel.js +0 -142
  48. package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbsPicker.js +0 -412
  49. package/vscode/src/vs/workbench/browser/parts/editor/editorGroupView.js +0 -1315
  50. package/vscode/src/vs/workbench/browser/parts/editor/editorGroupWatermark.js +0 -186
  51. package/vscode/src/vs/workbench/browser/parts/editor/editorPanes.js +0 -346
  52. package/vscode/src/vs/workbench/browser/parts/editor/editorTitleControl.js +0 -154
  53. package/vscode/src/vs/workbench/browser/parts/editor/media/breadcrumbscontrol.css.js +0 -6
  54. package/vscode/src/vs/workbench/browser/parts/editor/media/editorgroupview.css.js +0 -6
  55. package/vscode/src/vs/workbench/browser/parts/editor/media/editortitlecontrol.css.js +0 -6
  56. package/vscode/src/vs/workbench/browser/parts/editor/media/multieditortabscontrol.css.js +0 -6
  57. package/vscode/src/vs/workbench/browser/parts/editor/media/singleeditortabscontrol.css.js +0 -6
  58. package/vscode/src/vs/workbench/browser/parts/editor/multiEditorTabsControl.js +0 -1623
  59. package/vscode/src/vs/workbench/browser/parts/editor/multiRowEditorTabsControl.js +0 -152
  60. package/vscode/src/vs/workbench/browser/parts/editor/noEditorTabsControl.js +0 -54
  61. package/vscode/src/vs/workbench/browser/parts/editor/singleEditorTabsControl.js +0 -259
  62. package/vscode/src/vs/workbench/common/editor/filteredEditorGroupModel.js +0 -109
  63. package/vscode/src/vs/workbench/services/hover/browser/hoverService.js +0 -195
  64. package/vscode/src/vs/workbench/services/hover/browser/hoverWidget.js +0 -528
  65. package/vscode/src/vs/workbench/services/hover/browser/media/hover.css.js +0 -6
@@ -1,4 +1,5 @@
1
1
  import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
2
+ import { onDidChangeZoomLevel, onDidChangeFullscreen, isFullscreen } from 'vscode/vscode/vs/base/browser/browser';
2
3
  import { show, hide } from 'vscode/vscode/vs/base/browser/dom';
3
4
  import { Event, Emitter } from 'vscode/vscode/vs/base/common/event';
4
5
  import { DisposableStore } from 'vscode/vscode/vs/base/common/lifecycle';
@@ -9,7 +10,7 @@ import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/c
9
10
  import { ServiceCollection } from 'vscode/vscode/vs/platform/instantiation/common/serviceCollection';
10
11
  import { IStorageService } from 'vscode/vscode/vs/platform/storage/common/storage';
11
12
  import { IThemeService } from 'vscode/vscode/vs/platform/theme/common/themeService';
12
- import { getTitleBarStyle } from 'vscode/vscode/vs/platform/window/common/window';
13
+ import { hasNativeTitlebar } from 'vscode/vscode/vs/platform/window/common/window';
13
14
  import { EditorPart } from './editorPart.js';
14
15
  import { WindowTitle } from 'vscode/vscode/vs/workbench/browser/parts/titlebar/windowTitle';
15
16
  import { IAuxiliaryWindowService } from 'vscode/vscode/vs/workbench/services/auxiliaryWindow/browser/auxiliaryWindowService';
@@ -40,7 +41,7 @@ let AuxiliaryEditorPart = class AuxiliaryEditorPart {
40
41
  if (statusBarVisible) {
41
42
  editorPartHeightOffset += statusbarPart.height;
42
43
  }
43
- if (titlebarPart) {
44
+ if (titlebarPart && titlebarPartVisible) {
44
45
  editorPartHeightOffset += titlebarPart.height;
45
46
  }
46
47
  return editorPartHeightOffset;
@@ -67,14 +68,33 @@ let AuxiliaryEditorPart = class AuxiliaryEditorPart {
67
68
  editorPartContainer.setAttribute('role', 'main');
68
69
  editorPartContainer.style.position = 'relative';
69
70
  auxiliaryWindow.container.appendChild(editorPartContainer);
70
- const editorPart = disposables.add(this.instantiationService.createInstance(AuxiliaryEditorPartImpl, auxiliaryWindow.window.vscodeWindowId, this.editorPartsView, label));
71
+ const editorPart = disposables.add(this.instantiationService.createInstance(AuxiliaryEditorPartImpl, auxiliaryWindow.window.vscodeWindowId, this.editorPartsView, options?.state, label));
71
72
  disposables.add(this.editorPartsView.registerPart(editorPart));
72
- editorPart.create(editorPartContainer, { restorePreviousState: false });
73
+ editorPart.create(editorPartContainer);
73
74
  let titlebarPart = undefined;
74
- const useCustomTitle = isNative && getTitleBarStyle(this.configurationService) === 'custom';
75
+ let titlebarPartVisible = false;
76
+ const useCustomTitle = isNative && !hasNativeTitlebar(this.configurationService);
75
77
  if (useCustomTitle) {
76
78
  titlebarPart = disposables.add(this.titleService.createAuxiliaryTitlebarPart(auxiliaryWindow.container, editorPart));
79
+ titlebarPartVisible = true;
77
80
  disposables.add(titlebarPart.onDidChange(() => updateEditorPartHeight(true)));
81
+ disposables.add(onDidChangeZoomLevel(targetWindowId => {
82
+ if (auxiliaryWindow.window.vscodeWindowId === targetWindowId && titlebarPartVisible) {
83
+ updateEditorPartHeight(true);
84
+ }
85
+ }));
86
+ disposables.add(onDidChangeFullscreen(windowId => {
87
+ if (windowId !== auxiliaryWindow.window.vscodeWindowId) {
88
+ return;
89
+ }
90
+ const fullscreen = isFullscreen(auxiliaryWindow.window);
91
+ const oldTitlebarPartVisible = titlebarPartVisible;
92
+ titlebarPartVisible = !fullscreen;
93
+ if (titlebarPart && oldTitlebarPartVisible !== titlebarPartVisible) {
94
+ titlebarPart.container.style.display = titlebarPartVisible ? '' : 'none';
95
+ updateEditorPartHeight(true);
96
+ }
97
+ }));
78
98
  }
79
99
  else {
80
100
  disposables.add(this.instantiationService.createInstance(WindowTitle, auxiliaryWindow.window, editorPart));
@@ -89,7 +109,7 @@ let AuxiliaryEditorPart = class AuxiliaryEditorPart {
89
109
  }));
90
110
  updateStatusbarVisibility(false);
91
111
  const editorCloseListener = disposables.add(Event.once(editorPart.onWillClose)(() => auxiliaryWindow.window.close()));
92
- disposables.add(Event.once(auxiliaryWindow.onWillClose)(() => {
112
+ disposables.add(Event.once(auxiliaryWindow.onUnload)(() => {
93
113
  if (disposables.isDisposed) {
94
114
  return;
95
115
  }
@@ -100,9 +120,7 @@ let AuxiliaryEditorPart = class AuxiliaryEditorPart {
100
120
  disposables.add(Event.once(this.lifecycleService.onDidShutdown)(() => disposables.dispose()));
101
121
  disposables.add(auxiliaryWindow.onDidLayout(dimension => {
102
122
  const titlebarPartHeight = titlebarPart?.height ?? 0;
103
- if (titlebarPart) {
104
- titlebarPart.layout(dimension.width, titlebarPartHeight, 0, 0);
105
- }
123
+ titlebarPart?.layout(dimension.width, titlebarPartHeight, 0, 0);
106
124
  const editorPartHeight = dimension.height - computeEditorPartHeightOffset();
107
125
  editorPart.layout(dimension.width, editorPartHeight, titlebarPartHeight, 0);
108
126
  statusbarPart.layout(dimension.width, statusbarPart.height, dimension.height - statusbarPart.height, 0);
@@ -131,10 +149,10 @@ AuxiliaryEditorPart = AuxiliaryEditorPart_1 = ( __decorate([
131
149
  let AuxiliaryEditorPartImpl = class AuxiliaryEditorPartImpl extends EditorPart {
132
150
  static { AuxiliaryEditorPartImpl_1 = this; }
133
151
  static { this.COUNTER = 1; }
134
- constructor(windowId, editorPartsView, groupsLabel, instantiationService, themeService, configurationService, storageService, layoutService, hostService, contextKeyService) {
152
+ constructor(windowId, editorPartsView, state, groupsLabel, instantiationService, themeService, configurationService, storageService, layoutService, hostService, contextKeyService) {
135
153
  const id = AuxiliaryEditorPartImpl_1.COUNTER++;
136
- super(editorPartsView, `workbench.parts.auxiliaryEditor.${id}`, groupsLabel, true, instantiationService, themeService, configurationService, storageService, layoutService, hostService, contextKeyService);
137
- this.windowId = windowId;
154
+ super(editorPartsView, `workbench.parts.auxiliaryEditor.${id}`, groupsLabel, windowId, instantiationService, themeService, configurationService, storageService, layoutService, hostService, contextKeyService);
155
+ this.state = state;
138
156
  this._onWillClose = this._register(( new Emitter()));
139
157
  this.onWillClose = this._onWillClose.event;
140
158
  }
@@ -159,6 +177,9 @@ let AuxiliaryEditorPartImpl = class AuxiliaryEditorPartImpl extends EditorPart {
159
177
  }
160
178
  this.doClose(false );
161
179
  }
180
+ loadState() {
181
+ return this.state;
182
+ }
162
183
  saveState() {
163
184
  return;
164
185
  }
@@ -166,20 +187,37 @@ let AuxiliaryEditorPartImpl = class AuxiliaryEditorPartImpl extends EditorPart {
166
187
  this.doClose(true );
167
188
  }
168
189
  doClose(mergeGroupsToMainPart) {
169
- if (mergeGroupsToMainPart && ( this.groups.some(group => group.count > 0))) {
170
- this.mergeAllGroups(this.editorPartsView.mainPart.activeGroup);
190
+ if (mergeGroupsToMainPart) {
191
+ this.mergeGroupsToMainPart();
171
192
  }
172
193
  this._onWillClose.fire();
173
194
  }
195
+ mergeGroupsToMainPart() {
196
+ if (!( this.groups.some(group => group.count > 0))) {
197
+ return;
198
+ }
199
+ let targetGroup = undefined;
200
+ for (const group of this.editorPartsView.mainPart.getGroups(1 )) {
201
+ if (!group.isLocked) {
202
+ targetGroup = group;
203
+ break;
204
+ }
205
+ }
206
+ if (!targetGroup) {
207
+ targetGroup = this.editorPartsView.mainPart.addGroup(this.editorPartsView.mainPart.activeGroup, this.partOptions.openSideBySideDirection === 'right' ? 3 : 1 );
208
+ }
209
+ this.mergeAllGroups(targetGroup);
210
+ targetGroup.focus();
211
+ }
174
212
  };
175
213
  AuxiliaryEditorPartImpl = AuxiliaryEditorPartImpl_1 = ( __decorate([
176
- ( __param(3, IInstantiationService)),
177
- ( __param(4, IThemeService)),
178
- ( __param(5, IConfigurationService)),
179
- ( __param(6, IStorageService)),
180
- ( __param(7, IWorkbenchLayoutService)),
181
- ( __param(8, IHostService)),
182
- ( __param(9, IContextKeyService))
214
+ ( __param(4, IInstantiationService)),
215
+ ( __param(5, IThemeService)),
216
+ ( __param(6, IConfigurationService)),
217
+ ( __param(7, IStorageService)),
218
+ ( __param(8, IWorkbenchLayoutService)),
219
+ ( __param(9, IHostService)),
220
+ ( __param(10, IContextKeyService))
183
221
  ], AuxiliaryEditorPartImpl));
184
222
 
185
223
  export { AuxiliaryEditorPart };
@@ -1,8 +1,8 @@
1
1
  import { Registry } from 'vscode/vscode/vs/platform/registry/common/platform';
2
- import { localizeWithPath } from 'vscode/vscode/vs/nls';
2
+ import { localizeWithPath, localize2WithPath } from 'vscode/vscode/vs/nls';
3
3
  import { EditorPaneDescriptor } from 'vscode/vscode/vs/workbench/browser/editor';
4
4
  import { EditorExtensions } from 'vscode/vscode/vs/workbench/common/editor';
5
- import { IsAuxiliaryEditorPartContext, ActiveEditorGroupLockedContext, MultipleEditorGroupsContext, InEditorZenModeContext, EditorGroupEditorsCountContext, ActiveEditorLastInGroupContext, EditorTabsVisibleContext, ActiveEditorAvailableEditorIdsContext, ActiveEditorPinnedContext, ActiveEditorStickyContext, ActiveEditorCanSplitInGroupContext, SideBySideEditorActiveContext, EditorPartMaximizedEditorGroupContext, EditorPartMultipleEditorGroupsContext, ActiveEditorDirtyContext, TextCompareEditorActiveContext } from 'vscode/vscode/vs/workbench/common/contextkeys';
5
+ import { IsAuxiliaryEditorPartContext, ActiveEditorGroupLockedContext, EditorPartMultipleEditorGroupsContext, MultipleEditorGroupsContext, InEditorZenModeContext, EditorGroupEditorsCountContext, ActiveEditorLastInGroupContext, EditorTabsVisibleContext, ActiveEditorAvailableEditorIdsContext, ActiveEditorPinnedContext, ActiveEditorStickyContext, ActiveEditorCanSplitInGroupContext, SideBySideEditorActiveContext, EditorPartMaximizedEditorGroupContext, ActiveEditorDirtyContext, TextCompareEditorActiveContext, ActiveCompareEditorOriginalWriteableContext } from 'vscode/vscode/vs/workbench/common/contextkeys';
6
6
  import { SideBySideEditorInput, SideBySideEditorInputSerializer } from 'vscode/vscode/vs/workbench/common/editor/sideBySideEditorInput';
7
7
  import { TextResourceEditor } from 'vscode/vscode/vs/workbench/browser/parts/editor/textResourceEditor';
8
8
  import { SideBySideEditor } from 'vscode/vscode/vs/workbench/browser/parts/editor/sideBySideEditor';
@@ -16,7 +16,7 @@ import { Categories } from 'vscode/vscode/vs/platform/action/common/actionCommon
16
16
  import { registerAction2, MenuRegistry, MenuId } from 'vscode/vscode/vs/platform/actions/common/actions';
17
17
  import { SyncDescriptor } from 'vscode/vscode/vs/platform/instantiation/common/descriptors';
18
18
  import { ShowEditorsInActiveGroupByMostRecentlyUsedAction, ShowAllEditorsByAppearanceAction, ShowAllEditorsByMostRecentlyUsedAction, NavigateForwardAction, NavigateBackwardsAction, OpenNextEditor, OpenPreviousEditor, OpenNextEditorInGroup, OpenPreviousEditorInGroup, OpenFirstEditorInGroup, OpenLastEditorInGroup, OpenNextRecentlyUsedEditorAction, OpenPreviousRecentlyUsedEditorAction, OpenNextRecentlyUsedEditorInGroupAction, OpenPreviousRecentlyUsedEditorInGroupAction, ReopenClosedEditorAction, ClearRecentFilesAction, CloseAllEditorsAction, CloseAllEditorGroupsAction, CloseLeftEditorsInGroupAction, CloseEditorsInOtherGroupsAction, CloseEditorInAllGroupsAction, RevertAndCloseEditorAction, SplitEditorAction, SplitEditorOrthogonalAction, SplitEditorLeftAction, SplitEditorRightAction, SplitEditorUpAction, SplitEditorDownAction, JoinTwoGroupsAction, JoinAllGroupsAction, NavigateBetweenGroupsAction, ResetGroupSizesAction, ToggleGroupSizesAction, MaximizeGroupHideSidebarAction, ToggleMaximizeEditorGroupAction, MinimizeOtherGroupsAction, MinimizeOtherGroupsHideSidebarAction, MoveEditorLeftInGroupAction, MoveEditorRightInGroupAction, MoveGroupLeftAction, MoveGroupRightAction, MoveGroupUpAction, MoveGroupDownAction, DuplicateGroupLeftAction, DuplicateGroupRightAction, DuplicateGroupUpAction, DuplicateGroupDownAction, MoveEditorToPreviousGroupAction, MoveEditorToNextGroupAction, MoveEditorToFirstGroupAction, MoveEditorToLastGroupAction, MoveEditorToLeftGroupAction, MoveEditorToRightGroupAction, MoveEditorToAboveGroupAction, MoveEditorToBelowGroupAction, SplitEditorToPreviousGroupAction, SplitEditorToNextGroupAction, SplitEditorToFirstGroupAction, SplitEditorToLastGroupAction, SplitEditorToLeftGroupAction, SplitEditorToRightGroupAction, SplitEditorToAboveGroupAction, SplitEditorToBelowGroupAction, FocusActiveGroupAction, FocusFirstGroupAction, FocusLastGroupAction, FocusPreviousGroup, FocusNextGroup, FocusLeftGroup, FocusRightGroup, FocusAboveGroup, FocusBelowGroup, NewEditorGroupLeftAction, NewEditorGroupRightAction, NewEditorGroupAboveAction, NewEditorGroupBelowAction, NavigatePreviousAction, NavigateForwardInEditsAction, NavigateBackwardsInEditsAction, NavigatePreviousInEditsAction, NavigateToLastEditLocationAction, NavigateForwardInNavigationsAction, NavigateBackwardsInNavigationsAction, NavigatePreviousInNavigationsAction, NavigateToLastNavigationLocationAction, ClearEditorHistoryAction, EditorLayoutSingleAction, EditorLayoutTwoColumnsAction, EditorLayoutThreeColumnsAction, EditorLayoutTwoRowsAction, EditorLayoutThreeRowsAction, EditorLayoutTwoByTwoGridAction, EditorLayoutTwoRowsRightAction, EditorLayoutTwoColumnsBottomAction, ToggleEditorTypeAction, ReOpenInTextEditorAction, QuickAccessPreviousRecentlyUsedEditorAction, QuickAccessLeastRecentlyUsedEditorAction, QuickAccessPreviousRecentlyUsedEditorInGroupAction, QuickAccessLeastRecentlyUsedEditorInGroupAction, QuickAccessPreviousEditorFromHistoryAction, MoveEditorToNewWindowAction, CopyEditorToNewindowAction, MoveEditorGroupToNewWindowAction, CopyEditorGroupToNewWindowAction, RestoreEditorsToMainWindowAction, NewEmptyEditorWindowAction } from 'vscode/vscode/vs/workbench/browser/parts/editor/editorActions';
19
- import { setup, LOCK_GROUP_COMMAND_ID, UNLOCK_GROUP_COMMAND_ID, CLOSE_EDITOR_GROUP_COMMAND_ID, SPLIT_EDITOR_UP, SPLIT_EDITOR_DOWN, SPLIT_EDITOR_LEFT, SPLIT_EDITOR_RIGHT, NEW_EMPTY_EDITOR_WINDOW_COMMAND_ID, TOGGLE_LOCK_GROUP_COMMAND_ID, MOVE_EDITOR_GROUP_INTO_NEW_WINDOW_COMMAND_ID, COPY_EDITOR_GROUP_INTO_NEW_WINDOW_COMMAND_ID, CLOSE_EDITOR_COMMAND_ID, CLOSE_OTHER_EDITORS_IN_GROUP_COMMAND_ID, CLOSE_EDITORS_TO_THE_RIGHT_COMMAND_ID, CLOSE_SAVED_EDITORS_COMMAND_ID, CLOSE_EDITORS_IN_GROUP_COMMAND_ID, REOPEN_WITH_COMMAND_ID, KEEP_EDITOR_COMMAND_ID, PIN_EDITOR_COMMAND_ID, UNPIN_EDITOR_COMMAND_ID, SPLIT_EDITOR_IN_GROUP, JOIN_EDITOR_IN_GROUP, MOVE_EDITOR_INTO_NEW_WINDOW_COMMAND_ID, COPY_EDITOR_INTO_NEW_WINDOW_COMMAND_ID, TOGGLE_DIFF_SIDE_BY_SIDE, SHOW_EDITORS_IN_GROUP, TOGGLE_KEEP_EDITORS_COMMAND_ID, TOGGLE_MAXIMIZE_EDITOR_GROUP, SPLIT_EDITOR, TOGGLE_SPLIT_EDITOR_IN_GROUP_LAYOUT, GOTO_PREVIOUS_CHANGE, GOTO_NEXT_CHANGE, TOGGLE_DIFF_IGNORE_TRIM_WHITESPACE, CLOSE_PINNED_EDITOR_COMMAND_ID, CLOSE_EDITORS_AND_GROUP_COMMAND_ID, FOCUS_FIRST_SIDE_EDITOR, FOCUS_SECOND_SIDE_EDITOR } from 'vscode/vscode/vs/workbench/browser/parts/editor/editorCommands';
19
+ import { setup, LOCK_GROUP_COMMAND_ID, UNLOCK_GROUP_COMMAND_ID, CLOSE_EDITOR_GROUP_COMMAND_ID, SPLIT_EDITOR_UP, SPLIT_EDITOR_DOWN, SPLIT_EDITOR_LEFT, SPLIT_EDITOR_RIGHT, NEW_EMPTY_EDITOR_WINDOW_COMMAND_ID, TOGGLE_LOCK_GROUP_COMMAND_ID, MOVE_EDITOR_GROUP_INTO_NEW_WINDOW_COMMAND_ID, COPY_EDITOR_GROUP_INTO_NEW_WINDOW_COMMAND_ID, CLOSE_EDITOR_COMMAND_ID, CLOSE_OTHER_EDITORS_IN_GROUP_COMMAND_ID, CLOSE_EDITORS_TO_THE_RIGHT_COMMAND_ID, CLOSE_SAVED_EDITORS_COMMAND_ID, CLOSE_EDITORS_IN_GROUP_COMMAND_ID, REOPEN_WITH_COMMAND_ID, KEEP_EDITOR_COMMAND_ID, PIN_EDITOR_COMMAND_ID, UNPIN_EDITOR_COMMAND_ID, SPLIT_EDITOR_IN_GROUP, JOIN_EDITOR_IN_GROUP, MOVE_EDITOR_INTO_NEW_WINDOW_COMMAND_ID, COPY_EDITOR_INTO_NEW_WINDOW_COMMAND_ID, TOGGLE_DIFF_SIDE_BY_SIDE, SHOW_EDITORS_IN_GROUP, TOGGLE_KEEP_EDITORS_COMMAND_ID, TOGGLE_MAXIMIZE_EDITOR_GROUP, SPLIT_EDITOR, TOGGLE_SPLIT_EDITOR_IN_GROUP_LAYOUT, GOTO_PREVIOUS_CHANGE, GOTO_NEXT_CHANGE, DIFF_SWAP_SIDES, TOGGLE_DIFF_IGNORE_TRIM_WHITESPACE, CLOSE_PINNED_EDITOR_COMMAND_ID, CLOSE_EDITORS_AND_GROUP_COMMAND_ID, FOCUS_FIRST_SIDE_EDITOR, FOCUS_SECOND_SIDE_EDITOR } from 'vscode/vscode/vs/workbench/browser/parts/editor/editorCommands';
20
20
  import { inQuickPickContext, getQuickNavigateHandler } from 'vscode/vscode/vs/workbench/browser/quickaccess';
21
21
  import { KeybindingsRegistry } from 'vscode/vscode/vs/platform/keybinding/common/keybindingsRegistry';
22
22
  import { ContextKeyExpr } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
@@ -29,7 +29,7 @@ import { Codicon } from 'vscode/vscode/vs/base/common/codicons';
29
29
  import { registerIcon } from 'vscode/vscode/vs/platform/theme/common/iconRegistry';
30
30
  import { UntitledTextEditorInputSerializer, UntitledTextEditorWorkingCopyEditorHandler } from '../../../services/untitled/common/untitledTextEditorHandler.js';
31
31
  import { DynamicEditorConfigurations } from './editorConfiguration.js';
32
- import { ShowMultipleEditorTabsAction, ShowSingleEditorTabAction, HideEditorTabsAction, EditorActionsDefaultAction, EditorActionsTitleBarAction, HideEditorActionsAction } from 'vscode/vscode/vs/workbench/browser/actions/layoutActions';
32
+ import { ShowMultipleEditorTabsAction, ShowSingleEditorTabAction, HideEditorTabsAction, ZenShowMultipleEditorTabsAction, ZenShowSingleEditorTabAction, ZenHideEditorTabsAction, EditorActionsDefaultAction, EditorActionsTitleBarAction, HideEditorActionsAction } from 'vscode/vscode/vs/workbench/browser/actions/layoutActions';
33
33
  import { EditorContextKeys } from 'vscode/vscode/vs/editor/common/editorContextKeys';
34
34
  import 'vscode/vscode/vs/workbench/browser/parts/editor/editor.autosave.contribution';
35
35
 
@@ -261,7 +261,7 @@ MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroup, { command: { id: CLOSE_EDIT
261
261
  'vs/workbench/browser/parts/editor/editor.contribution',
262
262
  'closeGroupAction',
263
263
  "Close Group"
264
- )), icon: Codicon.close }, group: 'navigation', order: 20 });
264
+ )), icon: Codicon.close }, group: 'navigation', order: 20, when: ( ContextKeyExpr.or(IsAuxiliaryEditorPartContext, EditorPartMultipleEditorGroupsContext)) });
265
265
  MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroupContext, { command: { id: SPLIT_EDITOR_UP, title: ( localizeWithPath(
266
266
  'vs/workbench/browser/parts/editor/editor.contribution',
267
267
  'splitUp',
@@ -291,7 +291,7 @@ MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroupContext, { command: { id: TOG
291
291
  'vs/workbench/browser/parts/editor/editor.contribution',
292
292
  'toggleLockGroup',
293
293
  "Lock Group"
294
- )), toggled: ActiveEditorGroupLockedContext }, group: '4_lock', order: 10, when: ( ContextKeyExpr.and(MultipleEditorGroupsContext, ( IsAuxiliaryEditorPartContext.toNegated()))) });
294
+ )), toggled: ActiveEditorGroupLockedContext }, group: '4_lock', order: 10, when: ( IsAuxiliaryEditorPartContext.toNegated()) });
295
295
  MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroupContext, { command: { id: CLOSE_EDITOR_GROUP_COMMAND_ID, title: ( localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', 'close', "Close")) }, group: '5_close', order: 10, when: MultipleEditorGroupsContext });
296
296
  MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { command: { id: SPLIT_EDITOR_UP, title: ( localizeWithPath(
297
297
  'vs/workbench/browser/parts/editor/editor.contribution',
@@ -343,6 +343,26 @@ MenuRegistry.appendMenuItem(MenuId.EditorTabsBarShowTabsSubmenu, { command: { id
343
343
  'hideTabs',
344
344
  "Hidden"
345
345
  )), toggled: ( ContextKeyExpr.equals('config.workbench.editor.showTabs', 'none')) }, group: '1_config', order: 30 });
346
+ MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { submenu: MenuId.EditorTabsBarShowTabsZenModeSubmenu, title: ( localizeWithPath(
347
+ 'vs/workbench/browser/parts/editor/editor.contribution',
348
+ 'tabBar',
349
+ "Tab Bar"
350
+ )), group: '4_config', order: 10, when: InEditorZenModeContext });
351
+ MenuRegistry.appendMenuItem(MenuId.EditorTabsBarShowTabsZenModeSubmenu, { command: { id: ZenShowMultipleEditorTabsAction.ID, title: ( localizeWithPath(
352
+ 'vs/workbench/browser/parts/editor/editor.contribution',
353
+ 'multipleTabs',
354
+ "Multiple Tabs"
355
+ )), toggled: ( ContextKeyExpr.equals('config.zenMode.showTabs', 'multiple')) }, group: '1_config', order: 10 });
356
+ MenuRegistry.appendMenuItem(MenuId.EditorTabsBarShowTabsZenModeSubmenu, { command: { id: ZenShowSingleEditorTabAction.ID, title: ( localizeWithPath(
357
+ 'vs/workbench/browser/parts/editor/editor.contribution',
358
+ 'singleTab',
359
+ "Single Tab"
360
+ )), toggled: ( ContextKeyExpr.equals('config.zenMode.showTabs', 'single')) }, group: '1_config', order: 20 });
361
+ MenuRegistry.appendMenuItem(MenuId.EditorTabsBarShowTabsZenModeSubmenu, { command: { id: ZenHideEditorTabsAction.ID, title: ( localizeWithPath(
362
+ 'vs/workbench/browser/parts/editor/editor.contribution',
363
+ 'hideTabs',
364
+ "Hidden"
365
+ )), toggled: ( ContextKeyExpr.equals('config.zenMode.showTabs', 'none')) }, group: '1_config', order: 30 });
346
366
  MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { submenu: MenuId.EditorActionsPositionSubmenu, title: ( localizeWithPath(
347
367
  'vs/workbench/browser/parts/editor/editor.contribution',
348
368
  'editorActionsPosition',
@@ -357,12 +377,12 @@ MenuRegistry.appendMenuItem(MenuId.EditorActionsPositionSubmenu, { command: { id
357
377
  'vs/workbench/browser/parts/editor/editor.contribution',
358
378
  'titleBar',
359
379
  "Title Bar"
360
- )), toggled: ( ContextKeyExpr.or(( ContextKeyExpr.equals('config.workbench.editor.editorActionsLocation', 'titleBar')), ( ContextKeyExpr.and(( ContextKeyExpr.equals('config.workbench.editor.showTabs', 'none')), ( ContextKeyExpr.equals('config.workbench.editor.editorActionsLocation', 'default')))))) }, group: '1_config', order: 20, when: ( ( ContextKeyExpr.equals('config.window.titleBarStyle', 'native')).negate()) });
380
+ )), toggled: ( ContextKeyExpr.or(( ContextKeyExpr.equals('config.workbench.editor.editorActionsLocation', 'titleBar')), ( ContextKeyExpr.and(( ContextKeyExpr.equals('config.workbench.editor.showTabs', 'none')), ( ContextKeyExpr.equals('config.workbench.editor.editorActionsLocation', 'default')))))) }, group: '1_config', order: 20 });
361
381
  MenuRegistry.appendMenuItem(MenuId.EditorActionsPositionSubmenu, { command: { id: HideEditorActionsAction.ID, title: ( localizeWithPath(
362
382
  'vs/workbench/browser/parts/editor/editor.contribution',
363
383
  'hidden',
364
384
  "Hidden"
365
- )), toggled: ( ContextKeyExpr.or(( ContextKeyExpr.equals('config.workbench.editor.editorActionsLocation', 'hidden')), ( ContextKeyExpr.and(( ContextKeyExpr.equals('config.window.titleBarStyle', 'native')), ( ContextKeyExpr.equals('config.workbench.editor.editorActionsLocation', 'titleBar')))))) }, group: '1_config', order: 30 });
385
+ )), toggled: ( ContextKeyExpr.equals('config.workbench.editor.editorActionsLocation', 'hidden')) }, group: '1_config', order: 30 });
366
386
  MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: CLOSE_EDITOR_COMMAND_ID, title: ( localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', 'close', "Close")) }, group: '1_close', order: 10 });
367
387
  MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: CLOSE_OTHER_EDITORS_IN_GROUP_COMMAND_ID, title: ( localizeWithPath(
368
388
  'vs/workbench/browser/parts/editor/editor.contribution',
@@ -420,22 +440,22 @@ MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: SPLIT_ED
420
440
  'vs/workbench/browser/parts/editor/editor.contribution',
421
441
  'splitInGroup',
422
442
  "Split in Group"
423
- )) }, group: '5_split', order: 50, when: ActiveEditorCanSplitInGroupContext });
443
+ )) }, group: '6_split_in_group', order: 10, when: ActiveEditorCanSplitInGroupContext });
424
444
  MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: JOIN_EDITOR_IN_GROUP, title: ( localizeWithPath(
425
445
  'vs/workbench/browser/parts/editor/editor.contribution',
426
446
  'joinInGroup',
427
447
  "Join in Group"
428
- )) }, group: '5_split', order: 50, when: SideBySideEditorActiveContext });
448
+ )) }, group: '6_split_in_group', order: 10, when: SideBySideEditorActiveContext });
429
449
  MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: MOVE_EDITOR_INTO_NEW_WINDOW_COMMAND_ID, title: ( localizeWithPath(
430
450
  'vs/workbench/browser/parts/editor/editor.contribution',
431
451
  'moveToNewWindow',
432
452
  "Move into New Window"
433
- )) }, group: '6_new_window', order: 10 });
453
+ )) }, group: '7_new_window', order: 10 });
434
454
  MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: COPY_EDITOR_INTO_NEW_WINDOW_COMMAND_ID, title: ( localizeWithPath(
435
455
  'vs/workbench/browser/parts/editor/editor.contribution',
436
456
  'copyToNewWindow',
437
457
  "Copy into New Window"
438
- )) }, group: '6_new_window', order: 20 });
458
+ )) }, group: '7_new_window', order: 20 });
439
459
  MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: TOGGLE_DIFF_SIDE_BY_SIDE, title: ( localizeWithPath(
440
460
  'vs/workbench/browser/parts/editor/editor.contribution',
441
461
  'inlineView',
@@ -475,7 +495,7 @@ MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: TOGGLE_LOCK_GRO
475
495
  'vs/workbench/browser/parts/editor/editor.contribution',
476
496
  'lockGroup',
477
497
  "Lock Group"
478
- )), toggled: ActiveEditorGroupLockedContext }, group: '8_group_operations', order: 10, when: ( ContextKeyExpr.and(MultipleEditorGroupsContext, ( IsAuxiliaryEditorPartContext.toNegated()))) });
498
+ )), toggled: ActiveEditorGroupLockedContext }, group: '8_group_operations', order: 10, when: ( IsAuxiliaryEditorPartContext.toNegated()) });
479
499
  function appendEditorToolItem(primary, when, order, alternative, precondition) {
480
500
  const item = {
481
501
  command: {
@@ -639,6 +659,18 @@ appendEditorToolItem({
639
659
  )),
640
660
  icon: nextChangeIcon
641
661
  }, TextCompareEditorActiveContext, 11, undefined, EditorContextKeys.hasChanges);
662
+ appendEditorToolItem({
663
+ id: DIFF_SWAP_SIDES,
664
+ title: ( localizeWithPath(
665
+ 'vs/workbench/browser/parts/editor/editor.contribution',
666
+ 'swapDiffSides',
667
+ "Swap Left and Right Side"
668
+ )),
669
+ icon: Codicon.arrowSwap
670
+ }, ( ContextKeyExpr.and(
671
+ TextCompareEditorActiveContext,
672
+ ActiveCompareEditorOriginalWriteableContext
673
+ )), 15, undefined, undefined);
642
674
  MenuRegistry.appendMenuItem(MenuId.EditorTitle, {
643
675
  command: {
644
676
  id: TOGGLE_DIFF_IGNORE_TRIM_WHITESPACE,
@@ -655,61 +687,61 @@ MenuRegistry.appendMenuItem(MenuId.EditorTitle, {
655
687
  when: TextCompareEditorActiveContext,
656
688
  order: 20,
657
689
  });
658
- MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: KEEP_EDITOR_COMMAND_ID, title: { value: ( localizeWithPath(
690
+ MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: KEEP_EDITOR_COMMAND_ID, title: ( localize2WithPath(
659
691
  'vs/workbench/browser/parts/editor/editor.contribution',
660
692
  'keepEditor',
661
- "Keep Editor"
662
- )), original: 'Keep Editor' }, category: Categories.View }, when: ( ContextKeyExpr.has('config.workbench.editor.enablePreview')) });
663
- MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: PIN_EDITOR_COMMAND_ID, title: { value: ( localizeWithPath(
693
+ 'Keep Editor'
694
+ )), category: Categories.View }, when: ( ContextKeyExpr.has('config.workbench.editor.enablePreview')) });
695
+ MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: PIN_EDITOR_COMMAND_ID, title: ( localize2WithPath(
664
696
  'vs/workbench/browser/parts/editor/editor.contribution',
665
697
  'pinEditor',
666
- "Pin Editor"
667
- )), original: 'Pin Editor' }, category: Categories.View } });
668
- MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: UNPIN_EDITOR_COMMAND_ID, title: { value: ( localizeWithPath(
698
+ 'Pin Editor'
699
+ )), category: Categories.View } });
700
+ MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: UNPIN_EDITOR_COMMAND_ID, title: ( localize2WithPath(
669
701
  'vs/workbench/browser/parts/editor/editor.contribution',
670
702
  'unpinEditor',
671
- "Unpin Editor"
672
- )), original: 'Unpin Editor' }, category: Categories.View } });
673
- MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_EDITOR_COMMAND_ID, title: { value: ( localizeWithPath(
703
+ 'Unpin Editor'
704
+ )), category: Categories.View } });
705
+ MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_EDITOR_COMMAND_ID, title: ( localize2WithPath(
674
706
  'vs/workbench/browser/parts/editor/editor.contribution',
675
707
  'closeEditor',
676
- "Close Editor"
677
- )), original: 'Close Editor' }, category: Categories.View } });
678
- MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_PINNED_EDITOR_COMMAND_ID, title: { value: ( localizeWithPath(
708
+ 'Close Editor'
709
+ )), category: Categories.View } });
710
+ MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_PINNED_EDITOR_COMMAND_ID, title: ( localize2WithPath(
679
711
  'vs/workbench/browser/parts/editor/editor.contribution',
680
712
  'closePinnedEditor',
681
- "Close Pinned Editor"
682
- )), original: 'Close Pinned Editor' }, category: Categories.View } });
683
- MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_EDITORS_IN_GROUP_COMMAND_ID, title: { value: ( localizeWithPath(
713
+ 'Close Pinned Editor'
714
+ )), category: Categories.View } });
715
+ MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_EDITORS_IN_GROUP_COMMAND_ID, title: ( localize2WithPath(
684
716
  'vs/workbench/browser/parts/editor/editor.contribution',
685
717
  'closeEditorsInGroup',
686
- "Close All Editors in Group"
687
- )), original: 'Close All Editors in Group' }, category: Categories.View } });
688
- MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_SAVED_EDITORS_COMMAND_ID, title: { value: ( localizeWithPath(
718
+ 'Close All Editors in Group'
719
+ )), category: Categories.View } });
720
+ MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_SAVED_EDITORS_COMMAND_ID, title: ( localize2WithPath(
689
721
  'vs/workbench/browser/parts/editor/editor.contribution',
690
722
  'closeSavedEditors',
691
- "Close Saved Editors in Group"
692
- )), original: 'Close Saved Editors in Group' }, category: Categories.View } });
693
- MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_OTHER_EDITORS_IN_GROUP_COMMAND_ID, title: { value: ( localizeWithPath(
723
+ 'Close Saved Editors in Group'
724
+ )), category: Categories.View } });
725
+ MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_OTHER_EDITORS_IN_GROUP_COMMAND_ID, title: ( localize2WithPath(
694
726
  'vs/workbench/browser/parts/editor/editor.contribution',
695
727
  'closeOtherEditors',
696
- "Close Other Editors in Group"
697
- )), original: 'Close Other Editors in Group' }, category: Categories.View } });
698
- MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_EDITORS_TO_THE_RIGHT_COMMAND_ID, title: { value: ( localizeWithPath(
728
+ 'Close Other Editors in Group'
729
+ )), category: Categories.View } });
730
+ MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_EDITORS_TO_THE_RIGHT_COMMAND_ID, title: ( localize2WithPath(
699
731
  'vs/workbench/browser/parts/editor/editor.contribution',
700
732
  'closeRightEditors',
701
- "Close Editors to the Right in Group"
702
- )), original: 'Close Editors to the Right in Group' }, category: Categories.View }, when: ( ActiveEditorLastInGroupContext.toNegated()) });
703
- MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_EDITORS_AND_GROUP_COMMAND_ID, title: { value: ( localizeWithPath(
733
+ 'Close Editors to the Right in Group'
734
+ )), category: Categories.View }, when: ( ActiveEditorLastInGroupContext.toNegated()) });
735
+ MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_EDITORS_AND_GROUP_COMMAND_ID, title: ( localize2WithPath(
704
736
  'vs/workbench/browser/parts/editor/editor.contribution',
705
737
  'closeEditorGroup',
706
- "Close Editor Group"
707
- )), original: 'Close Editor Group' }, category: Categories.View }, when: MultipleEditorGroupsContext });
708
- MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: REOPEN_WITH_COMMAND_ID, title: { value: ( localizeWithPath(
738
+ 'Close Editor Group'
739
+ )), category: Categories.View }, when: MultipleEditorGroupsContext });
740
+ MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: REOPEN_WITH_COMMAND_ID, title: ( localize2WithPath(
709
741
  'vs/workbench/browser/parts/editor/editor.contribution',
710
742
  'reopenWith',
711
743
  "Reopen Editor With..."
712
- )), original: 'Reopen Editor With...' }, category: Categories.View }, when: ActiveEditorAvailableEditorIdsContext });
744
+ )), category: Categories.View }, when: ActiveEditorAvailableEditorIdsContext });
713
745
  MenuRegistry.appendMenuItem(MenuId.MenubarRecentMenu, {
714
746
  group: '1_editor',
715
747
  command: {
@@ -14,7 +14,11 @@ import { getLargeFileConfirmationLimit, ByteSize } from 'vscode/vscode/vs/platfo
14
14
  var DynamicEditorConfigurations_1;
15
15
  let DynamicEditorConfigurations = class DynamicEditorConfigurations extends Disposable {
16
16
  static { DynamicEditorConfigurations_1 = this; }
17
- static { this.AUTO_LOCK_DEFAULT_ENABLED = ( new Set(['terminalEditor'])); }
17
+ static { this.AUTO_LOCK_DEFAULT_ENABLED = ( new Set([
18
+ 'terminalEditor',
19
+ 'mainThreadWebview-simpleBrowser.view',
20
+ 'mainThreadWebview-browserPreview'
21
+ ])); }
18
22
  static { this.AUTO_LOCK_EXTRA_EDITORS = [
19
23
  {
20
24
  id: 'workbench.input.interactive',
@@ -33,6 +37,24 @@ let DynamicEditorConfigurations = class DynamicEditorConfigurations extends Disp
33
37
  "Markdown Preview"
34
38
  )),
35
39
  priority: RegisteredEditorPriority.builtin
40
+ },
41
+ {
42
+ id: 'mainThreadWebview-simpleBrowser.view',
43
+ label: ( localizeWithPath(
44
+ 'vs/workbench/browser/parts/editor/editorConfiguration',
45
+ 'simpleBrowser',
46
+ "Simple Browser"
47
+ )),
48
+ priority: RegisteredEditorPriority.builtin
49
+ },
50
+ {
51
+ id: 'mainThreadWebview-browserPreview',
52
+ label: ( localizeWithPath(
53
+ 'vs/workbench/browser/parts/editor/editorConfiguration',
54
+ 'livePreview',
55
+ "Live Preview"
56
+ )),
57
+ priority: RegisteredEditorPriority.builtin
36
58
  }
37
59
  ]; }
38
60
  static { this.AUTO_LOCK_REMOVE_EDITORS = ( new Set([