@codingame/monaco-vscode-api 1.83.4 → 1.83.6

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 (212) hide show
  1. package/lifecycle.js +3 -1
  2. package/missing-services.js +32 -28
  3. package/monaco-editor-treemending.patch +786 -760
  4. package/monaco.js +1 -0
  5. package/package.json +1 -1
  6. package/service-override/extensions.js +5 -5
  7. package/service-override/files.js +37 -13
  8. package/service-override/keybindings.js +10 -4
  9. package/service-override/layout.js +1 -3
  10. package/services.d.ts +13 -2
  11. package/services.js +35 -5
  12. package/vscode/src/vs/base/browser/broadcast.js +52 -0
  13. package/vscode/src/vs/base/browser/ui/menu/menubar.js +1 -1
  14. package/vscode/src/vs/base/browser/ui/splitview/paneview.js +6 -1
  15. package/vscode/src/vs/base/common/date.js +244 -54
  16. package/vscode/src/vs/base/common/jsonErrorMessages.js +45 -9
  17. package/vscode/src/vs/editor/common/services/textResourceConfiguration.d.ts +65 -0
  18. package/vscode/src/vs/editor/contrib/quickAccess/browser/gotoLineQuickAccess.js +33 -5
  19. package/vscode/src/vs/editor/contrib/quickAccess/browser/gotoSymbolQuickAccess.js +165 -32
  20. package/vscode/src/vs/platform/dialogs/common/dialogs.js +30 -9
  21. package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.js +0 -3
  22. package/vscode/src/vs/platform/extensionManagement/common/extensionNls.js +6 -1
  23. package/vscode/src/vs/platform/files/browser/indexedDBFileSystemProvider.js +404 -0
  24. package/vscode/src/vs/platform/files/common/fileService.js +13 -2
  25. package/vscode/src/vs/platform/files/common/files.js +25 -5
  26. package/vscode/src/vs/platform/keyboardLayout/common/keyboardConfig.js +15 -3
  27. package/vscode/src/vs/platform/quickinput/browser/commandsQuickAccess.js +38 -7
  28. package/vscode/src/vs/platform/quickinput/browser/helpQuickAccess.js +7 -1
  29. package/vscode/src/vs/platform/request/common/request.js +1 -1
  30. package/vscode/src/vs/platform/theme/common/tokenClassificationRegistry.js +210 -42
  31. package/vscode/src/vs/workbench/api/browser/mainThreadAuthentication.js +73 -13
  32. package/vscode/src/vs/workbench/api/browser/mainThreadComments.js +5 -1
  33. package/vscode/src/vs/workbench/api/browser/mainThreadCustomEditors.js +11 -2
  34. package/vscode/src/vs/workbench/api/browser/mainThreadEditSessionIdentityParticipant.js +5 -3
  35. package/vscode/src/vs/workbench/api/browser/mainThreadExtensionService.js +70 -35
  36. package/vscode/src/vs/workbench/api/browser/mainThreadFileSystemEventService.js +108 -20
  37. package/vscode/src/vs/workbench/api/browser/mainThreadMessageService.js +17 -4
  38. package/vscode/src/vs/workbench/api/browser/mainThreadNotebookSaveParticipant.js +5 -3
  39. package/vscode/src/vs/workbench/api/browser/mainThreadProgress.js +5 -5
  40. package/vscode/src/vs/workbench/api/browser/mainThreadSaveParticipant.js +5 -3
  41. package/vscode/src/vs/workbench/api/browser/mainThreadTask.js +7 -1
  42. package/vscode/src/vs/workbench/api/browser/mainThreadTunnelService.js +14 -2
  43. package/vscode/src/vs/workbench/api/browser/mainThreadUriOpeners.js +12 -14
  44. package/vscode/src/vs/workbench/api/browser/mainThreadWebviews.js +6 -1
  45. package/vscode/src/vs/workbench/api/browser/mainThreadWorkspace.js +32 -5
  46. package/vscode/src/vs/workbench/api/browser/statusBarExtensionPoint.js +0 -60
  47. package/vscode/src/vs/workbench/api/common/extHostChat.js +11 -2
  48. package/vscode/src/vs/workbench/api/common/extHostDiagnostics.js +6 -1
  49. package/vscode/src/vs/workbench/api/common/extHostLanguageFeatures.js +12 -2
  50. package/vscode/src/vs/workbench/api/common/extHostLogService.js +9 -1
  51. package/vscode/src/vs/workbench/api/common/extHostProgress.js +6 -1
  52. package/vscode/src/vs/workbench/api/common/extHostStatusBar.js +11 -2
  53. package/vscode/src/vs/workbench/api/common/extHostTelemetry.js +6 -1
  54. package/vscode/src/vs/workbench/api/common/extHostTerminalService.js +6 -1
  55. package/vscode/src/vs/workbench/api/common/extHostTunnelService.js +10 -2
  56. package/vscode/src/vs/workbench/api/common/extHostWorkspace.js +7 -1
  57. package/vscode/src/vs/workbench/api/common/jsonValidationExtensionPoint.js +49 -9
  58. package/vscode/src/vs/workbench/browser/actions/layoutActions.js +397 -274
  59. package/vscode/src/vs/workbench/browser/actions/quickAccessActions.js +30 -6
  60. package/vscode/src/vs/workbench/browser/actions/windowActions.js +85 -31
  61. package/vscode/src/vs/workbench/browser/actions/workspaceActions.js +56 -102
  62. package/vscode/src/vs/workbench/browser/actions/workspaceCommands.js +5 -1
  63. package/vscode/src/vs/workbench/browser/editor.js +2 -2
  64. package/vscode/src/vs/workbench/browser/parts/auxiliarybar/auxiliaryBarActions.js +55 -11
  65. package/vscode/src/vs/workbench/browser/parts/compositeBarActions.js +63 -11
  66. package/vscode/src/vs/workbench/browser/parts/editor/binaryDiffEditor.js +7 -1
  67. package/vscode/src/vs/workbench/browser/parts/editor/binaryEditor.js +15 -3
  68. package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbs.js +205 -41
  69. package/vscode/src/vs/workbench/browser/parts/editor/editor.contribution.js +617 -139
  70. package/vscode/src/vs/workbench/browser/parts/editor/editorActions.js +578 -114
  71. package/vscode/src/vs/workbench/browser/parts/editor/editorCommands.js +96 -20
  72. package/vscode/src/vs/workbench/browser/parts/editor/editorConfiguration.js +30 -6
  73. package/vscode/src/vs/workbench/browser/parts/editor/editorPlaceholder.js +46 -9
  74. package/vscode/src/vs/workbench/browser/parts/editor/editorQuickAccess.js +30 -5
  75. package/vscode/src/vs/workbench/browser/parts/editor/editorStatus.js +309 -59
  76. package/vscode/src/vs/workbench/browser/parts/editor/sideBySideEditor.js +5 -1
  77. package/vscode/src/vs/workbench/browser/parts/editor/textCodeEditor.js +5 -1
  78. package/vscode/src/vs/workbench/browser/parts/editor/textDiffEditor.js +16 -3
  79. package/vscode/src/vs/workbench/browser/parts/editor/textEditor.js +1 -1
  80. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsCommands.js +35 -7
  81. package/vscode/src/vs/workbench/browser/parts/panel/panelActions.js +185 -33
  82. package/vscode/src/vs/workbench/browser/parts/titlebar/menubarControl.js +90 -57
  83. package/vscode/src/vs/workbench/browser/parts/views/viewFilter.js +5 -1
  84. package/vscode/src/vs/workbench/browser/parts/views/viewPane.js +16 -3
  85. package/vscode/src/vs/workbench/browser/parts/views/viewPaneContainer.js +26 -6
  86. package/vscode/src/vs/workbench/browser/parts/views/viewsService.js +35 -6
  87. package/vscode/src/vs/workbench/browser/quickaccess.js +6 -6
  88. package/vscode/src/vs/workbench/browser/workbench.contribution.js +918 -185
  89. package/vscode/src/vs/workbench/common/configuration.js +25 -11
  90. package/vscode/src/vs/workbench/common/contextkeys.js +244 -228
  91. package/vscode/src/vs/workbench/common/editor/diffEditorInput.js +7 -1
  92. package/vscode/src/vs/workbench/common/editor/resourceEditorInput.d.ts +44 -0
  93. package/vscode/src/vs/workbench/common/editor/sideBySideEditorInput.js +7 -1
  94. package/vscode/src/vs/workbench/common/editor/textEditorModel.js +6 -1
  95. package/vscode/src/vs/workbench/common/editor/textResourceEditorInput.d.ts +23 -0
  96. package/vscode/src/vs/workbench/common/editor.d.ts +26 -1
  97. package/vscode/src/vs/workbench/common/editor.js +26 -5
  98. package/vscode/src/vs/workbench/common/theme.js +676 -136
  99. package/vscode/src/vs/workbench/common/views.js +8 -3
  100. package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.js +71 -14
  101. package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityContributions.js +21 -2
  102. package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleView.js +133 -21
  103. package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleViewActions.js +36 -8
  104. package/vscode/src/vs/workbench/contrib/bulkEdit/browser/bulkEditService.js +96 -17
  105. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatActions.js +0 -2
  106. package/vscode/src/vs/workbench/contrib/chat/common/chatAgents.js +22 -4
  107. package/vscode/src/vs/workbench/contrib/chat/common/chatSlashCommands.js +22 -4
  108. package/vscode/src/vs/workbench/contrib/codeActions/browser/codeActionsContribution.js +41 -8
  109. package/vscode/src/vs/workbench/contrib/codeActions/common/codeActionsExtensionPoint.js +25 -5
  110. package/vscode/src/vs/workbench/contrib/codeActions/common/documentationExtensionPoint.js +30 -6
  111. package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorHelper.js +34 -6
  112. package/vscode/src/vs/workbench/contrib/codeEditor/browser/editorFeatures.js +44 -0
  113. package/vscode/src/vs/workbench/contrib/codeEditor/browser/inspectEditorTokens/inspectEditorTokens.js +10 -2
  114. package/vscode/src/vs/workbench/contrib/codeEditor/browser/languageConfigurationExtensionPoint.js +320 -63
  115. package/vscode/src/vs/workbench/contrib/codeEditor/browser/largeFileOptimizations.js +12 -4
  116. package/vscode/src/vs/workbench/contrib/codeEditor/browser/quickaccess/gotoLineQuickAccess.js +15 -3
  117. package/vscode/src/vs/workbench/contrib/codeEditor/browser/quickaccess/gotoSymbolQuickAccess.js +30 -6
  118. package/vscode/src/vs/workbench/contrib/codeEditor/browser/saveParticipants.js +25 -4
  119. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMinimap.js +10 -2
  120. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMultiCursorModifier.js +20 -4
  121. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderControlCharacter.js +10 -2
  122. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderWhitespace.js +10 -2
  123. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleWordWrap.js +25 -9
  124. package/vscode/src/vs/workbench/contrib/comments/browser/commentColors.js +30 -6
  125. package/vscode/src/vs/workbench/contrib/comments/browser/commentGlyphWidget.js +25 -5
  126. package/vscode/src/vs/workbench/contrib/comments/browser/commentNode.js +16 -3
  127. package/vscode/src/vs/workbench/contrib/comments/browser/commentReply.js +8 -4
  128. package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadBody.js +23 -3
  129. package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadHeader.js +15 -9
  130. package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadWidget.js +18 -3
  131. package/vscode/src/vs/workbench/contrib/comments/browser/comments.contribution.js +142 -26
  132. package/vscode/src/vs/workbench/contrib/comments/browser/commentsController.js +33 -5
  133. package/vscode/src/vs/workbench/contrib/comments/browser/commentsTreeViewer.js +45 -7
  134. package/vscode/src/vs/workbench/contrib/comments/browser/commentsView.js +63 -10
  135. package/vscode/src/vs/workbench/contrib/comments/browser/commentsViewActions.js +45 -9
  136. package/vscode/src/vs/workbench/contrib/comments/browser/reactionsAction.js +16 -8
  137. package/vscode/src/vs/workbench/contrib/comments/common/commentContextKeys.js +41 -21
  138. package/vscode/src/vs/workbench/contrib/comments/common/commentModel.js +5 -1
  139. package/vscode/src/vs/workbench/contrib/customEditor/common/customEditor.js +5 -1
  140. package/vscode/src/vs/workbench/contrib/debug/browser/debugColors.js +60 -12
  141. package/vscode/src/vs/workbench/contrib/debug/browser/debugIcons.js +275 -55
  142. package/vscode/src/vs/workbench/contrib/debug/common/abstractDebugAdapter.js +7 -1
  143. package/vscode/src/vs/workbench/contrib/debug/common/debug.js +255 -94
  144. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsIcons.js +120 -24
  145. package/vscode/src/vs/workbench/contrib/externalUriOpener/common/configuration.js +22 -4
  146. package/vscode/src/vs/workbench/contrib/externalUriOpener/common/externalUriOpenerService.js +21 -4
  147. package/vscode/src/vs/workbench/contrib/files/browser/explorerViewlet.js +39 -51
  148. package/vscode/src/vs/workbench/contrib/files/browser/fileActions.js +394 -75
  149. package/vscode/src/vs/workbench/contrib/files/browser/fileConstants.js +17 -6
  150. package/vscode/src/vs/workbench/contrib/files/browser/fileImportExport.js +190 -32
  151. package/vscode/src/vs/workbench/contrib/files/browser/views/emptyView.js +5 -1
  152. package/vscode/src/vs/workbench/contrib/files/browser/views/explorerDecorationsProvider.js +21 -4
  153. package/vscode/src/vs/workbench/contrib/files/browser/views/explorerView.js +26 -5
  154. package/vscode/src/vs/workbench/contrib/files/browser/views/explorerViewer.js +81 -14
  155. package/vscode/src/vs/workbench/contrib/files/browser/views/openEditorsView.js +26 -5
  156. package/vscode/src/vs/workbench/contrib/files/common/files.js +70 -26
  157. package/vscode/src/vs/workbench/contrib/folding/browser/folding.contribution.js +11 -3
  158. package/vscode/src/vs/workbench/contrib/format/browser/formatModified.js +5 -1
  159. package/vscode/src/vs/workbench/contrib/inlayHints/browser/inlayHintsAccessibilty.js +20 -4
  160. package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChat.js +75 -111
  161. package/vscode/src/vs/workbench/contrib/keybindings/browser/keybindings.contribution.js +5 -1
  162. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInput.js +6 -1
  163. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel.js +151 -29
  164. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/mergeEditorModel.js +10 -2
  165. package/vscode/src/vs/workbench/contrib/mergeEditor/common/mergeEditor.js +0 -42
  166. package/vscode/src/vs/workbench/contrib/output/browser/output.contribution.js +115 -23
  167. package/vscode/src/vs/workbench/contrib/output/browser/outputView.js +17 -3
  168. package/vscode/src/vs/workbench/contrib/quickaccess/browser/commandsQuickAccess.js +49 -9
  169. package/vscode/src/vs/workbench/contrib/quickaccess/browser/quickAccess.contribution.js +66 -13
  170. package/vscode/src/vs/workbench/contrib/quickaccess/browser/viewQuickAccess.js +52 -10
  171. package/vscode/src/vs/workbench/contrib/scm/browser/dirtyDiffSwitcher.js +10 -2
  172. package/vscode/src/vs/workbench/contrib/scm/browser/dirtydiffDecorator.js +110 -26
  173. package/vscode/src/vs/workbench/contrib/snippets/browser/snippetCompletionProvider.js +21 -3
  174. package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsFile.js +15 -3
  175. package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsService.js +56 -9
  176. package/vscode/src/vs/workbench/contrib/tasks/common/taskDefinitionRegistry.js +25 -5
  177. package/vscode/src/vs/workbench/contrib/tasks/common/taskService.js +16 -26
  178. package/vscode/src/vs/workbench/contrib/tasks/common/tasks.js +7 -8
  179. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalEditorInput.js +20 -4
  180. package/vscode/src/vs/workbench/contrib/terminal/common/terminal.js +35 -7
  181. package/vscode/src/vs/workbench/contrib/terminal/common/terminalColorRegistry.js +106 -21
  182. package/vscode/src/vs/workbench/contrib/terminal/common/terminalContextKey.js +81 -21
  183. package/vscode/src/vs/workbench/contrib/testing/common/testResult.js +6 -1
  184. package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditor.js +6 -2
  185. package/vscode/src/vs/workbench/services/actions/common/menusExtensionPoint.js +592 -112
  186. package/vscode/src/vs/workbench/services/assignment/common/assignmentService.js +5 -1
  187. package/vscode/src/vs/workbench/services/authentication/browser/authenticationService.js +6 -32
  188. package/vscode/src/vs/workbench/services/configuration/common/jsonEditingService.js +5 -1
  189. package/vscode/src/vs/workbench/services/decorations/browser/decorationsService.js +5 -1
  190. package/vscode/src/vs/workbench/services/editor/common/editorResolverService.js +5 -1
  191. package/vscode/src/vs/workbench/services/extensions/browser/extensionUrlHandler.js +15 -3
  192. package/vscode/src/vs/workbench/services/extensions/common/abstractExtensionService.js +58 -10
  193. package/vscode/src/vs/workbench/services/extensions/common/extensionHostManager.js +5 -1
  194. package/vscode/src/vs/workbench/services/extensions/common/extensionsRegistry.js +392 -80
  195. package/vscode/src/vs/workbench/services/filesConfiguration/common/filesConfigurationService.js +28 -5
  196. package/vscode/src/vs/workbench/services/host/browser/browserHostService.js +10 -2
  197. package/vscode/src/vs/workbench/services/keybinding/browser/keybindingService.js +129 -24
  198. package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayoutService.js +10 -2
  199. package/vscode/src/vs/workbench/services/keybinding/common/keybindingEditing.js +20 -10
  200. package/vscode/src/vs/workbench/services/language/common/languageService.js +122 -22
  201. package/vscode/src/vs/workbench/services/remote/common/tunnelModel.js +28 -9
  202. package/vscode/src/vs/workbench/services/search/common/queryBuilder.js +6 -1
  203. package/vscode/src/vs/workbench/services/textfile/browser/textFileService.js +48 -9
  204. package/vscode/src/vs/workbench/services/textfile/common/textFileEditorModel.js +5 -1
  205. package/vscode/src/vs/workbench/services/textfile/common/textFileEditorModelManager.js +7 -1
  206. package/vscode/src/vs/workbench/services/textfile/common/textFileSaveParticipant.js +6 -1
  207. package/vscode/src/vs/workbench/services/themes/common/colorExtensionPoint.js +81 -16
  208. package/vscode/src/vs/workbench/services/themes/common/iconExtensionPoint.js +1 -50
  209. package/vscode/src/vs/workbench/services/themes/common/tokenClassificationExtensionPoint.js +126 -25
  210. package/vscode/src/vs/workbench/services/userDataProfile/common/userDataProfile.js +6 -5
  211. package/vscode/src/vs/workbench/services/userDataSync/common/userDataSync.js +6 -14
  212. package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopySaveParticipant.js +6 -1
@@ -2,7 +2,7 @@ import { Registry } from 'monaco-editor/esm/vs/platform/registry/common/platform
2
2
  import { localizeWithPath } from 'monaco-editor/esm/vs/nls.js';
3
3
  import { EditorPaneDescriptor } from '../../editor.js';
4
4
  import { EditorExtensions } from '../../../common/editor.js';
5
- import { ActiveEditorGroupLockedContext, MultipleEditorGroupsContext, EditorPinnedAndUnpinnedTabsContext, EditorGroupEditorsCountContext, ActiveEditorLastInGroupContext, EditorTabsVisibleContext, ActiveEditorAvailableEditorIdsContext, ActiveEditorPinnedContext, ActiveEditorStickyContext, ActiveEditorCanSplitInGroupContext, SideBySideEditorActiveContext, ActiveEditorDirtyContext, TextCompareEditorActiveContext } from '../../../common/contextkeys.js';
5
+ import { ActiveEditorGroupLockedContext, MultipleEditorGroupsContext, EditorPinnedAndUnpinnedTabsContext, EditorGroupEditorsCountContext, ActiveEditorLastInGroupContext, EditorTabsVisibleContext, ActiveEditorAvailableEditorIdsContext, ActiveEditorPinnedContext, ActiveEditorStickyContext, ActiveEditorCanSplitInGroupContext, SideBySideEditorActiveContext, TextCompareEditorActiveContext, ActiveEditorDirtyContext } from '../../../common/contextkeys.js';
6
6
  import { SideBySideEditorInput } from '../../../common/editor/sideBySideEditorInput.js';
7
7
  import { TextResourceEditor } from './textResourceEditor.js';
8
8
  import { SideBySideEditor } from './sideBySideEditor.js';
@@ -16,7 +16,7 @@ import { Categories } from 'monaco-editor/esm/vs/platform/action/common/actionCo
16
16
  import { registerAction2, MenuRegistry, MenuId } from 'monaco-editor/esm/vs/platform/actions/common/actions.js';
17
17
  import { SyncDescriptor } from 'monaco-editor/esm/vs/platform/instantiation/common/descriptors.js';
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, MaximizeGroupAction, MinimizeOtherGroupsAction, 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 } from './editorActions.js';
19
- import { setup, UNLOCK_GROUP_COMMAND_ID, CLOSE_EDITOR_GROUP_COMMAND_ID, SPLIT_EDITOR_UP, SPLIT_EDITOR_DOWN, SPLIT_EDITOR_LEFT, SPLIT_EDITOR_RIGHT, TOGGLE_LOCK_GROUP_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, TOGGLE_DIFF_SIDE_BY_SIDE, SHOW_EDITORS_IN_GROUP, TOGGLE_KEEP_EDITORS_COMMAND_ID, 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 './editorCommands.js';
19
+ import { setup, UNLOCK_GROUP_COMMAND_ID, CLOSE_EDITOR_GROUP_COMMAND_ID, SPLIT_EDITOR_UP, SPLIT_EDITOR_DOWN, SPLIT_EDITOR_LEFT, SPLIT_EDITOR_RIGHT, TOGGLE_LOCK_GROUP_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, TOGGLE_DIFF_SIDE_BY_SIDE, SHOW_EDITORS_IN_GROUP, TOGGLE_KEEP_EDITORS_COMMAND_ID, SPLIT_EDITOR, TOGGLE_DIFF_IGNORE_TRIM_WHITESPACE, CLOSE_PINNED_EDITOR_COMMAND_ID, CLOSE_EDITORS_AND_GROUP_COMMAND_ID, FOCUS_FIRST_SIDE_EDITOR, FOCUS_SECOND_SIDE_EDITOR, TOGGLE_SPLIT_EDITOR_IN_GROUP_LAYOUT, GOTO_PREVIOUS_CHANGE, GOTO_NEXT_CHANGE } from './editorCommands.js';
20
20
  import { getQuickNavigateHandler, inQuickPickContext } from '../../quickaccess.js';
21
21
  import { KeybindingsRegistry } from 'monaco-editor/esm/vs/platform/keybinding/common/keybindingsRegistry.js';
22
22
  import { ContextKeyExpr } from 'monaco-editor/esm/vs/platform/contextkey/common/contextkey.js';
@@ -31,17 +31,33 @@ import { registerIcon } from 'monaco-editor/esm/vs/platform/theme/common/iconReg
31
31
  import { UntitledTextEditorWorkingCopyEditorHandler } from '../../../services/untitled/common/untitledTextEditorHandler.js';
32
32
  import { DynamicEditorConfigurations } from './editorConfiguration.js';
33
33
  import { ToggleTabsVisibilityAction, ToggleSeparatePinnedTabsAction } from '../../actions/layoutActions.js';
34
- ( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(EditorPaneDescriptor.create(TextResourceEditor, TextResourceEditor.ID, localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', 'textEditor', "Text Editor")), [
34
+ ( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(EditorPaneDescriptor.create(TextResourceEditor, TextResourceEditor.ID, ( localizeWithPath(
35
+ 'vs/workbench/browser/parts/editor/editor.contribution',
36
+ 'textEditor',
37
+ "Text Editor"
38
+ ))), [
35
39
  ( new SyncDescriptor(UntitledTextEditorInput)),
36
40
  ( new SyncDescriptor(TextResourceEditorInput))
37
41
  ]);
38
- ( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(EditorPaneDescriptor.create(TextDiffEditor, TextDiffEditor.ID, localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', 'textDiffEditor', "Text Diff Editor")), [
42
+ ( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(EditorPaneDescriptor.create(TextDiffEditor, TextDiffEditor.ID, ( localizeWithPath(
43
+ 'vs/workbench/browser/parts/editor/editor.contribution',
44
+ 'textDiffEditor',
45
+ "Text Diff Editor"
46
+ ))), [
39
47
  ( new SyncDescriptor(DiffEditorInput))
40
48
  ]);
41
- ( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(EditorPaneDescriptor.create(BinaryResourceDiffEditor, BinaryResourceDiffEditor.ID, localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', 'binaryDiffEditor', "Binary Diff Editor")), [
49
+ ( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(EditorPaneDescriptor.create(BinaryResourceDiffEditor, BinaryResourceDiffEditor.ID, ( localizeWithPath(
50
+ 'vs/workbench/browser/parts/editor/editor.contribution',
51
+ 'binaryDiffEditor',
52
+ "Binary Diff Editor"
53
+ ))), [
42
54
  ( new SyncDescriptor(DiffEditorInput))
43
55
  ]);
44
- ( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(EditorPaneDescriptor.create(SideBySideEditor, SideBySideEditor.ID, localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', 'sideBySideEditor', "Side by Side Editor")), [
56
+ ( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(EditorPaneDescriptor.create(SideBySideEditor, SideBySideEditor.ID, ( localizeWithPath(
57
+ 'vs/workbench/browser/parts/editor/editor.contribution',
58
+ 'sideBySideEditor',
59
+ "Side by Side Editor"
60
+ ))), [
45
61
  ( new SyncDescriptor(SideBySideEditorInput))
46
62
  ]);
47
63
  ( Registry.as(Extensions.Workbench)).registerWorkbenchContribution(EditorAutoSave, 2 );
@@ -56,22 +72,46 @@ quickAccessRegistry.registerQuickAccessProvider({
56
72
  ctor: ActiveGroupEditorsByMostRecentlyUsedQuickAccess,
57
73
  prefix: ActiveGroupEditorsByMostRecentlyUsedQuickAccess.PREFIX,
58
74
  contextKey: editorPickerContextKey,
59
- placeholder: localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', 'editorQuickAccessPlaceholder', "Type the name of an editor to open it."),
60
- helpEntries: [{ description: localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', 'activeGroupEditorsByMostRecentlyUsedQuickAccess', "Show Editors in Active Group by Most Recently Used"), commandId: ShowEditorsInActiveGroupByMostRecentlyUsedAction.ID }]
75
+ placeholder: ( localizeWithPath(
76
+ 'vs/workbench/browser/parts/editor/editor.contribution',
77
+ 'editorQuickAccessPlaceholder',
78
+ "Type the name of an editor to open it."
79
+ )),
80
+ helpEntries: [{ description: ( localizeWithPath(
81
+ 'vs/workbench/browser/parts/editor/editor.contribution',
82
+ 'activeGroupEditorsByMostRecentlyUsedQuickAccess',
83
+ "Show Editors in Active Group by Most Recently Used"
84
+ )), commandId: ShowEditorsInActiveGroupByMostRecentlyUsedAction.ID }]
61
85
  });
62
86
  quickAccessRegistry.registerQuickAccessProvider({
63
87
  ctor: AllEditorsByAppearanceQuickAccess,
64
88
  prefix: AllEditorsByAppearanceQuickAccess.PREFIX,
65
89
  contextKey: editorPickerContextKey,
66
- placeholder: localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', 'editorQuickAccessPlaceholder', "Type the name of an editor to open it."),
67
- helpEntries: [{ description: localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', 'allEditorsByAppearanceQuickAccess', "Show All Opened Editors By Appearance"), commandId: ShowAllEditorsByAppearanceAction.ID }]
90
+ placeholder: ( localizeWithPath(
91
+ 'vs/workbench/browser/parts/editor/editor.contribution',
92
+ 'editorQuickAccessPlaceholder',
93
+ "Type the name of an editor to open it."
94
+ )),
95
+ helpEntries: [{ description: ( localizeWithPath(
96
+ 'vs/workbench/browser/parts/editor/editor.contribution',
97
+ 'allEditorsByAppearanceQuickAccess',
98
+ "Show All Opened Editors By Appearance"
99
+ )), commandId: ShowAllEditorsByAppearanceAction.ID }]
68
100
  });
69
101
  quickAccessRegistry.registerQuickAccessProvider({
70
102
  ctor: AllEditorsByMostRecentlyUsedQuickAccess,
71
103
  prefix: AllEditorsByMostRecentlyUsedQuickAccess.PREFIX,
72
104
  contextKey: editorPickerContextKey,
73
- placeholder: localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', 'editorQuickAccessPlaceholder', "Type the name of an editor to open it."),
74
- helpEntries: [{ description: localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', 'allEditorsByMostRecentlyUsedQuickAccess', "Show All Opened Editors By Most Recently Used"), commandId: ShowAllEditorsByMostRecentlyUsedAction.ID }]
105
+ placeholder: ( localizeWithPath(
106
+ 'vs/workbench/browser/parts/editor/editor.contribution',
107
+ 'editorQuickAccessPlaceholder',
108
+ "Type the name of an editor to open it."
109
+ )),
110
+ helpEntries: [{ description: ( localizeWithPath(
111
+ 'vs/workbench/browser/parts/editor/editor.contribution',
112
+ 'allEditorsByMostRecentlyUsedQuickAccess',
113
+ "Show All Opened Editors By Most Recently Used"
114
+ )), commandId: ShowAllEditorsByMostRecentlyUsedAction.ID }]
75
115
  });
76
116
  registerAction2(ChangeLanguageAction);
77
117
  registerAction2(ChangeEOLAction);
@@ -195,41 +235,165 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
195
235
  mac: { primary: 256 | 1024 | 2 }
196
236
  });
197
237
  setup();
198
- MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroup, { command: { id: UNLOCK_GROUP_COMMAND_ID, title: localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', 'unlockGroupAction', "Unlock Group"), icon: Codicon.lock }, group: 'navigation', order: 10, when: ActiveEditorGroupLockedContext });
199
- MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroup, { command: { id: CLOSE_EDITOR_GROUP_COMMAND_ID, title: localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', 'closeGroupAction', "Close Group"), icon: Codicon.close }, group: 'navigation', order: 20 });
200
- MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroupContext, { command: { id: SPLIT_EDITOR_UP, title: localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', 'splitUp', "Split Up") }, group: '2_split', order: 10 });
201
- MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroupContext, { command: { id: SPLIT_EDITOR_DOWN, title: localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', 'splitDown', "Split Down") }, group: '2_split', order: 20 });
202
- MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroupContext, { command: { id: SPLIT_EDITOR_LEFT, title: localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', 'splitLeft', "Split Left") }, group: '2_split', order: 30 });
203
- MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroupContext, { command: { id: SPLIT_EDITOR_RIGHT, title: localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', 'splitRight', "Split Right") }, group: '2_split', order: 40 });
204
- MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroupContext, { command: { id: TOGGLE_LOCK_GROUP_COMMAND_ID, title: localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', 'toggleLockGroup', "Lock Group"), toggled: ActiveEditorGroupLockedContext }, group: '3_lock', order: 10, when: MultipleEditorGroupsContext });
205
- MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroupContext, { command: { id: CLOSE_EDITOR_GROUP_COMMAND_ID, title: localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', 'close', "Close") }, group: '4_close', order: 10, when: MultipleEditorGroupsContext });
206
- MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { command: { id: SPLIT_EDITOR_UP, title: localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', 'splitUp', "Split Up") }, group: '2_split', order: 10 });
207
- MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { command: { id: SPLIT_EDITOR_DOWN, title: localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', 'splitDown', "Split Down") }, group: '2_split', order: 20 });
208
- MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { command: { id: SPLIT_EDITOR_LEFT, title: localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', 'splitLeft', "Split Left") }, group: '2_split', order: 30 });
209
- MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { command: { id: SPLIT_EDITOR_RIGHT, title: localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', 'splitRight', "Split Right") }, group: '2_split', order: 40 });
210
- MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { command: { id: ToggleTabsVisibilityAction.ID, title: localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', 'toggleTabs', "Editor Tabs"), toggled: ( ContextKeyExpr.has('config.workbench.editor.showTabs')) }, group: '3_config', order: 10 });
211
- MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { command: { id: ToggleSeparatePinnedTabsAction.ID, title: localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', 'toggleSeparatePinnedEditorTabs', "Separate Pinned Editor Tabs"), toggled: ( ContextKeyExpr.has('config.workbench.editor.pinnedTabsOnSeparateRow')) }, when: EditorPinnedAndUnpinnedTabsContext, group: '3_config', order: 20 });
212
- 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 });
213
- MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: CLOSE_OTHER_EDITORS_IN_GROUP_COMMAND_ID, title: localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', 'closeOthers', "Close Others"), precondition: ( EditorGroupEditorsCountContext.notEqualsTo('1')) }, group: '1_close', order: 20 });
214
- MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: CLOSE_EDITORS_TO_THE_RIGHT_COMMAND_ID, title: localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', 'closeRight', "Close to the Right"), precondition: ( ActiveEditorLastInGroupContext.toNegated()) }, group: '1_close', order: 30, when: EditorTabsVisibleContext });
215
- MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: CLOSE_SAVED_EDITORS_COMMAND_ID, title: localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', 'closeAllSaved', "Close Saved") }, group: '1_close', order: 40 });
216
- MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: CLOSE_EDITORS_IN_GROUP_COMMAND_ID, title: localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', 'closeAll', "Close All") }, group: '1_close', order: 50 });
217
- MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: REOPEN_WITH_COMMAND_ID, title: localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', 'reopenWith', "Reopen Editor With...") }, group: '1_open', order: 10, when: ActiveEditorAvailableEditorIdsContext });
218
- MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: KEEP_EDITOR_COMMAND_ID, title: localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', 'keepOpen', "Keep Open"), precondition: ( ActiveEditorPinnedContext.toNegated()) }, group: '3_preview', order: 10, when: ( ContextKeyExpr.has('config.workbench.editor.enablePreview')) });
219
- MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: PIN_EDITOR_COMMAND_ID, title: localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', 'pin', "Pin") }, group: '3_preview', order: 20, when: ( ActiveEditorStickyContext.toNegated()) });
220
- MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: UNPIN_EDITOR_COMMAND_ID, title: localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', 'unpin', "Unpin") }, group: '3_preview', order: 20, when: ActiveEditorStickyContext });
221
- MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: SPLIT_EDITOR_UP, title: localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', 'splitUp', "Split Up") }, group: '5_split', order: 10 });
222
- MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: SPLIT_EDITOR_DOWN, title: localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', 'splitDown', "Split Down") }, group: '5_split', order: 20 });
223
- MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: SPLIT_EDITOR_LEFT, title: localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', 'splitLeft', "Split Left") }, group: '5_split', order: 30 });
224
- MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: SPLIT_EDITOR_RIGHT, title: localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', 'splitRight', "Split Right") }, group: '5_split', order: 40 });
225
- MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: SPLIT_EDITOR_IN_GROUP, title: localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', 'splitInGroup', "Split in Group") }, group: '6_split_in_group', order: 10, when: ActiveEditorCanSplitInGroupContext });
226
- MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: JOIN_EDITOR_IN_GROUP, title: localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', 'joinInGroup', "Join in Group") }, group: '6_split_in_group', order: 10, when: SideBySideEditorActiveContext });
227
- MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: TOGGLE_DIFF_SIDE_BY_SIDE, title: localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', 'inlineView', "Inline View"), toggled: ( ContextKeyExpr.equals('config.diffEditor.renderSideBySide', false)) }, group: '1_diff', order: 10, when: ( ContextKeyExpr.has('isInDiffEditor')) });
228
- MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: SHOW_EDITORS_IN_GROUP, title: localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', 'showOpenedEditors', "Show Opened Editors") }, group: '3_open', order: 10 });
229
- MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: CLOSE_EDITORS_IN_GROUP_COMMAND_ID, title: localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', 'closeAll', "Close All") }, group: '5_close', order: 10 });
230
- MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: CLOSE_SAVED_EDITORS_COMMAND_ID, title: localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', 'closeAllSaved', "Close Saved") }, group: '5_close', order: 20 });
231
- MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: TOGGLE_KEEP_EDITORS_COMMAND_ID, title: localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', 'togglePreviewMode', "Enable Preview Editors"), toggled: ( ContextKeyExpr.has('config.workbench.editor.enablePreview')) }, group: '7_settings', order: 10 });
232
- MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: TOGGLE_LOCK_GROUP_COMMAND_ID, title: localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', 'lockGroup', "Lock Group"), toggled: ActiveEditorGroupLockedContext }, group: '8_lock', order: 10, when: MultipleEditorGroupsContext });
238
+ MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroup, { command: { id: UNLOCK_GROUP_COMMAND_ID, title: ( localizeWithPath(
239
+ 'vs/workbench/browser/parts/editor/editor.contribution',
240
+ 'unlockGroupAction',
241
+ "Unlock Group"
242
+ )), icon: Codicon.lock }, group: 'navigation', order: 10, when: ActiveEditorGroupLockedContext });
243
+ MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroup, { command: { id: CLOSE_EDITOR_GROUP_COMMAND_ID, title: ( localizeWithPath(
244
+ 'vs/workbench/browser/parts/editor/editor.contribution',
245
+ 'closeGroupAction',
246
+ "Close Group"
247
+ )), icon: Codicon.close }, group: 'navigation', order: 20 });
248
+ MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroupContext, { command: { id: SPLIT_EDITOR_UP, title: ( localizeWithPath(
249
+ 'vs/workbench/browser/parts/editor/editor.contribution',
250
+ 'splitUp',
251
+ "Split Up"
252
+ )) }, group: '2_split', order: 10 });
253
+ MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroupContext, { command: { id: SPLIT_EDITOR_DOWN, title: ( localizeWithPath(
254
+ 'vs/workbench/browser/parts/editor/editor.contribution',
255
+ 'splitDown',
256
+ "Split Down"
257
+ )) }, group: '2_split', order: 20 });
258
+ MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroupContext, { command: { id: SPLIT_EDITOR_LEFT, title: ( localizeWithPath(
259
+ 'vs/workbench/browser/parts/editor/editor.contribution',
260
+ 'splitLeft',
261
+ "Split Left"
262
+ )) }, group: '2_split', order: 30 });
263
+ MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroupContext, { command: { id: SPLIT_EDITOR_RIGHT, title: ( localizeWithPath(
264
+ 'vs/workbench/browser/parts/editor/editor.contribution',
265
+ 'splitRight',
266
+ "Split Right"
267
+ )) }, group: '2_split', order: 40 });
268
+ MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroupContext, { command: { id: TOGGLE_LOCK_GROUP_COMMAND_ID, title: ( localizeWithPath(
269
+ 'vs/workbench/browser/parts/editor/editor.contribution',
270
+ 'toggleLockGroup',
271
+ "Lock Group"
272
+ )), toggled: ActiveEditorGroupLockedContext }, group: '3_lock', order: 10, when: MultipleEditorGroupsContext });
273
+ MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroupContext, { command: { id: CLOSE_EDITOR_GROUP_COMMAND_ID, title: ( localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', 'close', "Close")) }, group: '4_close', order: 10, when: MultipleEditorGroupsContext });
274
+ MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { command: { id: SPLIT_EDITOR_UP, title: ( localizeWithPath(
275
+ 'vs/workbench/browser/parts/editor/editor.contribution',
276
+ 'splitUp',
277
+ "Split Up"
278
+ )) }, group: '2_split', order: 10 });
279
+ MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { command: { id: SPLIT_EDITOR_DOWN, title: ( localizeWithPath(
280
+ 'vs/workbench/browser/parts/editor/editor.contribution',
281
+ 'splitDown',
282
+ "Split Down"
283
+ )) }, group: '2_split', order: 20 });
284
+ MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { command: { id: SPLIT_EDITOR_LEFT, title: ( localizeWithPath(
285
+ 'vs/workbench/browser/parts/editor/editor.contribution',
286
+ 'splitLeft',
287
+ "Split Left"
288
+ )) }, group: '2_split', order: 30 });
289
+ MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { command: { id: SPLIT_EDITOR_RIGHT, title: ( localizeWithPath(
290
+ 'vs/workbench/browser/parts/editor/editor.contribution',
291
+ 'splitRight',
292
+ "Split Right"
293
+ )) }, group: '2_split', order: 40 });
294
+ MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { command: { id: ToggleTabsVisibilityAction.ID, title: ( localizeWithPath(
295
+ 'vs/workbench/browser/parts/editor/editor.contribution',
296
+ 'toggleTabs',
297
+ "Editor Tabs"
298
+ )), toggled: ( ContextKeyExpr.has('config.workbench.editor.showTabs')) }, group: '3_config', order: 10 });
299
+ MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { command: { id: ToggleSeparatePinnedTabsAction.ID, title: ( localizeWithPath(
300
+ 'vs/workbench/browser/parts/editor/editor.contribution',
301
+ 'toggleSeparatePinnedEditorTabs',
302
+ "Separate Pinned Editor Tabs"
303
+ )), toggled: ( ContextKeyExpr.has('config.workbench.editor.pinnedTabsOnSeparateRow')) }, when: EditorPinnedAndUnpinnedTabsContext, group: '3_config', order: 20 });
304
+ 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 });
305
+ MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: CLOSE_OTHER_EDITORS_IN_GROUP_COMMAND_ID, title: ( localizeWithPath(
306
+ 'vs/workbench/browser/parts/editor/editor.contribution',
307
+ 'closeOthers',
308
+ "Close Others"
309
+ )), precondition: ( EditorGroupEditorsCountContext.notEqualsTo('1')) }, group: '1_close', order: 20 });
310
+ MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: CLOSE_EDITORS_TO_THE_RIGHT_COMMAND_ID, title: ( localizeWithPath(
311
+ 'vs/workbench/browser/parts/editor/editor.contribution',
312
+ 'closeRight',
313
+ "Close to the Right"
314
+ )), precondition: ( ActiveEditorLastInGroupContext.toNegated()) }, group: '1_close', order: 30, when: EditorTabsVisibleContext });
315
+ MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: CLOSE_SAVED_EDITORS_COMMAND_ID, title: ( localizeWithPath(
316
+ 'vs/workbench/browser/parts/editor/editor.contribution',
317
+ 'closeAllSaved',
318
+ "Close Saved"
319
+ )) }, group: '1_close', order: 40 });
320
+ MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: CLOSE_EDITORS_IN_GROUP_COMMAND_ID, title: ( localizeWithPath(
321
+ 'vs/workbench/browser/parts/editor/editor.contribution',
322
+ 'closeAll',
323
+ "Close All"
324
+ )) }, group: '1_close', order: 50 });
325
+ MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: REOPEN_WITH_COMMAND_ID, title: ( localizeWithPath(
326
+ 'vs/workbench/browser/parts/editor/editor.contribution',
327
+ 'reopenWith',
328
+ "Reopen Editor With..."
329
+ )) }, group: '1_open', order: 10, when: ActiveEditorAvailableEditorIdsContext });
330
+ MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: KEEP_EDITOR_COMMAND_ID, title: ( localizeWithPath(
331
+ 'vs/workbench/browser/parts/editor/editor.contribution',
332
+ 'keepOpen',
333
+ "Keep Open"
334
+ )), precondition: ( ActiveEditorPinnedContext.toNegated()) }, group: '3_preview', order: 10, when: ( ContextKeyExpr.has('config.workbench.editor.enablePreview')) });
335
+ MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: PIN_EDITOR_COMMAND_ID, title: ( localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', 'pin', "Pin")) }, group: '3_preview', order: 20, when: ( ActiveEditorStickyContext.toNegated()) });
336
+ MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: UNPIN_EDITOR_COMMAND_ID, title: ( localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', 'unpin', "Unpin")) }, group: '3_preview', order: 20, when: ActiveEditorStickyContext });
337
+ MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: SPLIT_EDITOR_UP, title: ( localizeWithPath(
338
+ 'vs/workbench/browser/parts/editor/editor.contribution',
339
+ 'splitUp',
340
+ "Split Up"
341
+ )) }, group: '5_split', order: 10 });
342
+ MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: SPLIT_EDITOR_DOWN, title: ( localizeWithPath(
343
+ 'vs/workbench/browser/parts/editor/editor.contribution',
344
+ 'splitDown',
345
+ "Split Down"
346
+ )) }, group: '5_split', order: 20 });
347
+ MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: SPLIT_EDITOR_LEFT, title: ( localizeWithPath(
348
+ 'vs/workbench/browser/parts/editor/editor.contribution',
349
+ 'splitLeft',
350
+ "Split Left"
351
+ )) }, group: '5_split', order: 30 });
352
+ MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: SPLIT_EDITOR_RIGHT, title: ( localizeWithPath(
353
+ 'vs/workbench/browser/parts/editor/editor.contribution',
354
+ 'splitRight',
355
+ "Split Right"
356
+ )) }, group: '5_split', order: 40 });
357
+ MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: SPLIT_EDITOR_IN_GROUP, title: ( localizeWithPath(
358
+ 'vs/workbench/browser/parts/editor/editor.contribution',
359
+ 'splitInGroup',
360
+ "Split in Group"
361
+ )) }, group: '6_split_in_group', order: 10, when: ActiveEditorCanSplitInGroupContext });
362
+ MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: JOIN_EDITOR_IN_GROUP, title: ( localizeWithPath(
363
+ 'vs/workbench/browser/parts/editor/editor.contribution',
364
+ 'joinInGroup',
365
+ "Join in Group"
366
+ )) }, group: '6_split_in_group', order: 10, when: SideBySideEditorActiveContext });
367
+ MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: TOGGLE_DIFF_SIDE_BY_SIDE, title: ( localizeWithPath(
368
+ 'vs/workbench/browser/parts/editor/editor.contribution',
369
+ 'inlineView',
370
+ "Inline View"
371
+ )), toggled: ( ContextKeyExpr.equals('config.diffEditor.renderSideBySide', false)) }, group: '1_diff', order: 10, when: ( ContextKeyExpr.has('isInDiffEditor')) });
372
+ MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: SHOW_EDITORS_IN_GROUP, title: ( localizeWithPath(
373
+ 'vs/workbench/browser/parts/editor/editor.contribution',
374
+ 'showOpenedEditors',
375
+ "Show Opened Editors"
376
+ )) }, group: '3_open', order: 10 });
377
+ MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: CLOSE_EDITORS_IN_GROUP_COMMAND_ID, title: ( localizeWithPath(
378
+ 'vs/workbench/browser/parts/editor/editor.contribution',
379
+ 'closeAll',
380
+ "Close All"
381
+ )) }, group: '5_close', order: 10 });
382
+ MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: CLOSE_SAVED_EDITORS_COMMAND_ID, title: ( localizeWithPath(
383
+ 'vs/workbench/browser/parts/editor/editor.contribution',
384
+ 'closeAllSaved',
385
+ "Close Saved"
386
+ )) }, group: '5_close', order: 20 });
387
+ MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: TOGGLE_KEEP_EDITORS_COMMAND_ID, title: ( localizeWithPath(
388
+ 'vs/workbench/browser/parts/editor/editor.contribution',
389
+ 'togglePreviewMode',
390
+ "Enable Preview Editors"
391
+ )), toggled: ( ContextKeyExpr.has('config.workbench.editor.enablePreview')) }, group: '7_settings', order: 10 });
392
+ MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: TOGGLE_LOCK_GROUP_COMMAND_ID, title: ( localizeWithPath(
393
+ 'vs/workbench/browser/parts/editor/editor.contribution',
394
+ 'lockGroup',
395
+ "Lock Group"
396
+ )), toggled: ActiveEditorGroupLockedContext }, group: '8_lock', order: 10, when: MultipleEditorGroupsContext });
233
397
  function appendEditorToolItem(primary, when, order, alternative, precondition) {
234
398
  const item = {
235
399
  command: {
@@ -255,85 +419,141 @@ const SPLIT_ORDER = 100000;
255
419
  const CLOSE_ORDER = 1000000;
256
420
  appendEditorToolItem({
257
421
  id: SPLIT_EDITOR,
258
- title: localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', 'splitEditorRight', "Split Editor Right"),
422
+ title: ( localizeWithPath(
423
+ 'vs/workbench/browser/parts/editor/editor.contribution',
424
+ 'splitEditorRight',
425
+ "Split Editor Right"
426
+ )),
259
427
  icon: Codicon.splitHorizontal
260
428
  }, ContextKeyExpr.not('splitEditorsVertically'), SPLIT_ORDER, {
261
429
  id: SPLIT_EDITOR_DOWN,
262
- title: localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', 'splitEditorDown', "Split Editor Down"),
430
+ title: ( localizeWithPath(
431
+ 'vs/workbench/browser/parts/editor/editor.contribution',
432
+ 'splitEditorDown',
433
+ "Split Editor Down"
434
+ )),
263
435
  icon: Codicon.splitVertical
264
436
  });
265
437
  appendEditorToolItem({
266
438
  id: SPLIT_EDITOR,
267
- title: localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', 'splitEditorDown', "Split Editor Down"),
439
+ title: ( localizeWithPath(
440
+ 'vs/workbench/browser/parts/editor/editor.contribution',
441
+ 'splitEditorDown',
442
+ "Split Editor Down"
443
+ )),
268
444
  icon: Codicon.splitVertical
269
445
  }, ( ContextKeyExpr.has('splitEditorsVertically')), SPLIT_ORDER, {
270
446
  id: SPLIT_EDITOR_RIGHT,
271
- title: localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', 'splitEditorRight', "Split Editor Right"),
447
+ title: ( localizeWithPath(
448
+ 'vs/workbench/browser/parts/editor/editor.contribution',
449
+ 'splitEditorRight',
450
+ "Split Editor Right"
451
+ )),
272
452
  icon: Codicon.splitHorizontal
273
453
  });
274
454
  appendEditorToolItem({
275
455
  id: TOGGLE_SPLIT_EDITOR_IN_GROUP_LAYOUT,
276
- title: localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', 'toggleSplitEditorInGroupLayout', "Toggle Layout"),
456
+ title: ( localizeWithPath(
457
+ 'vs/workbench/browser/parts/editor/editor.contribution',
458
+ 'toggleSplitEditorInGroupLayout',
459
+ "Toggle Layout"
460
+ )),
277
461
  icon: Codicon.editorLayout
278
462
  }, SideBySideEditorActiveContext, SPLIT_ORDER - 1);
279
463
  appendEditorToolItem({
280
464
  id: CLOSE_EDITOR_COMMAND_ID,
281
- title: localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', 'close', "Close"),
465
+ title: ( localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', 'close', "Close")),
282
466
  icon: Codicon.close
283
467
  }, ( ContextKeyExpr.and(( EditorTabsVisibleContext.toNegated()), ( ActiveEditorDirtyContext.toNegated()), ( ActiveEditorStickyContext.toNegated()))), CLOSE_ORDER, {
284
468
  id: CLOSE_EDITORS_IN_GROUP_COMMAND_ID,
285
- title: localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', 'closeAll', "Close All"),
469
+ title: ( localizeWithPath(
470
+ 'vs/workbench/browser/parts/editor/editor.contribution',
471
+ 'closeAll',
472
+ "Close All"
473
+ )),
286
474
  icon: Codicon.closeAll
287
475
  });
288
476
  appendEditorToolItem({
289
477
  id: CLOSE_EDITOR_COMMAND_ID,
290
- title: localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', 'close', "Close"),
478
+ title: ( localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', 'close', "Close")),
291
479
  icon: Codicon.closeDirty
292
480
  }, ( ContextKeyExpr.and(( EditorTabsVisibleContext.toNegated()), ActiveEditorDirtyContext, ( ActiveEditorStickyContext.toNegated()))), CLOSE_ORDER, {
293
481
  id: CLOSE_EDITORS_IN_GROUP_COMMAND_ID,
294
- title: localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', 'closeAll', "Close All"),
482
+ title: ( localizeWithPath(
483
+ 'vs/workbench/browser/parts/editor/editor.contribution',
484
+ 'closeAll',
485
+ "Close All"
486
+ )),
295
487
  icon: Codicon.closeAll
296
488
  });
297
489
  appendEditorToolItem({
298
490
  id: UNPIN_EDITOR_COMMAND_ID,
299
- title: localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', 'unpin', "Unpin"),
491
+ title: ( localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', 'unpin', "Unpin")),
300
492
  icon: Codicon.pinned
301
493
  }, ( ContextKeyExpr.and(( EditorTabsVisibleContext.toNegated()), ( ActiveEditorDirtyContext.toNegated()), ActiveEditorStickyContext)), CLOSE_ORDER, {
302
494
  id: CLOSE_EDITOR_COMMAND_ID,
303
- title: localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', 'close', "Close"),
495
+ title: ( localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', 'close', "Close")),
304
496
  icon: Codicon.close
305
497
  });
306
498
  appendEditorToolItem({
307
499
  id: UNPIN_EDITOR_COMMAND_ID,
308
- title: localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', 'unpin', "Unpin"),
500
+ title: ( localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', 'unpin', "Unpin")),
309
501
  icon: Codicon.pinnedDirty
310
502
  }, ( ContextKeyExpr.and(( EditorTabsVisibleContext.toNegated()), ActiveEditorDirtyContext, ActiveEditorStickyContext)), CLOSE_ORDER, {
311
503
  id: CLOSE_EDITOR_COMMAND_ID,
312
- title: localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', 'close', "Close"),
504
+ title: ( localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', 'close', "Close")),
313
505
  icon: Codicon.close
314
506
  });
315
507
  appendEditorToolItem({
316
508
  id: UNLOCK_GROUP_COMMAND_ID,
317
- title: localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', 'unlockEditorGroup', "Unlock Group"),
509
+ title: ( localizeWithPath(
510
+ 'vs/workbench/browser/parts/editor/editor.contribution',
511
+ 'unlockEditorGroup',
512
+ "Unlock Group"
513
+ )),
318
514
  icon: Codicon.lock
319
515
  }, ActiveEditorGroupLockedContext, CLOSE_ORDER - 1);
320
- const previousChangeIcon = registerIcon('diff-editor-previous-change', Codicon.arrowUp, localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', 'previousChangeIcon', 'Icon for the previous change action in the diff editor.'));
321
- const nextChangeIcon = registerIcon('diff-editor-next-change', Codicon.arrowDown, localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', 'nextChangeIcon', 'Icon for the next change action in the diff editor.'));
322
- const toggleWhitespace = registerIcon('diff-editor-toggle-whitespace', Codicon.whitespace, localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', 'toggleWhitespace', 'Icon for the toggle whitespace action in the diff editor.'));
516
+ const previousChangeIcon = registerIcon('diff-editor-previous-change', Codicon.arrowUp, ( localizeWithPath(
517
+ 'vs/workbench/browser/parts/editor/editor.contribution',
518
+ 'previousChangeIcon',
519
+ 'Icon for the previous change action in the diff editor.'
520
+ )));
521
+ const nextChangeIcon = registerIcon('diff-editor-next-change', Codicon.arrowDown, ( localizeWithPath(
522
+ 'vs/workbench/browser/parts/editor/editor.contribution',
523
+ 'nextChangeIcon',
524
+ 'Icon for the next change action in the diff editor.'
525
+ )));
526
+ const toggleWhitespace = registerIcon('diff-editor-toggle-whitespace', Codicon.whitespace, ( localizeWithPath(
527
+ 'vs/workbench/browser/parts/editor/editor.contribution',
528
+ 'toggleWhitespace',
529
+ 'Icon for the toggle whitespace action in the diff editor.'
530
+ )));
323
531
  appendEditorToolItem({
324
532
  id: GOTO_PREVIOUS_CHANGE,
325
- title: localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', 'navigate.prev.label', "Previous Change"),
533
+ title: ( localizeWithPath(
534
+ 'vs/workbench/browser/parts/editor/editor.contribution',
535
+ 'navigate.prev.label',
536
+ "Previous Change"
537
+ )),
326
538
  icon: previousChangeIcon
327
539
  }, TextCompareEditorActiveContext, 10);
328
540
  appendEditorToolItem({
329
541
  id: GOTO_NEXT_CHANGE,
330
- title: localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', 'navigate.next.label', "Next Change"),
542
+ title: ( localizeWithPath(
543
+ 'vs/workbench/browser/parts/editor/editor.contribution',
544
+ 'navigate.next.label',
545
+ "Next Change"
546
+ )),
331
547
  icon: nextChangeIcon
332
548
  }, TextCompareEditorActiveContext, 11);
333
549
  MenuRegistry.appendMenuItem(MenuId.EditorTitle, {
334
550
  command: {
335
551
  id: TOGGLE_DIFF_IGNORE_TRIM_WHITESPACE,
336
- title: localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', 'ignoreTrimWhitespace.label', "Show Leading/Trailing Whitespace Differences"),
552
+ title: ( localizeWithPath(
553
+ 'vs/workbench/browser/parts/editor/editor.contribution',
554
+ 'ignoreTrimWhitespace.label',
555
+ "Show Leading/Trailing Whitespace Differences"
556
+ )),
337
557
  icon: toggleWhitespace,
338
558
  precondition: TextCompareEditorActiveContext,
339
559
  toggled: ( ContextKeyExpr.equals('config.diffEditor.ignoreTrimWhitespace', false)),
@@ -342,22 +562,70 @@ MenuRegistry.appendMenuItem(MenuId.EditorTitle, {
342
562
  when: TextCompareEditorActiveContext,
343
563
  order: 20,
344
564
  });
345
- MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: KEEP_EDITOR_COMMAND_ID, title: { value: localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', 'keepEditor', "Keep Editor"), original: 'Keep Editor' }, category: Categories.View }, when: ( ContextKeyExpr.has('config.workbench.editor.enablePreview')) });
346
- MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: PIN_EDITOR_COMMAND_ID, title: { value: localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', 'pinEditor', "Pin Editor"), original: 'Pin Editor' }, category: Categories.View } });
347
- MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: UNPIN_EDITOR_COMMAND_ID, title: { value: localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', 'unpinEditor', "Unpin Editor"), original: 'Unpin Editor' }, category: Categories.View } });
348
- MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_EDITOR_COMMAND_ID, title: { value: localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', 'closeEditor', "Close Editor"), original: 'Close Editor' }, category: Categories.View } });
349
- MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_PINNED_EDITOR_COMMAND_ID, title: { value: localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', 'closePinnedEditor', "Close Pinned Editor"), original: 'Close Pinned Editor' }, category: Categories.View } });
350
- MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_EDITORS_IN_GROUP_COMMAND_ID, title: { value: localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', 'closeEditorsInGroup', "Close All Editors in Group"), original: 'Close All Editors in Group' }, category: Categories.View } });
351
- MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_SAVED_EDITORS_COMMAND_ID, title: { value: localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', 'closeSavedEditors', "Close Saved Editors in Group"), original: 'Close Saved Editors in Group' }, category: Categories.View } });
352
- MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_OTHER_EDITORS_IN_GROUP_COMMAND_ID, title: { value: localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', 'closeOtherEditors', "Close Other Editors in Group"), original: 'Close Other Editors in Group' }, category: Categories.View } });
353
- MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_EDITORS_TO_THE_RIGHT_COMMAND_ID, title: { value: localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', 'closeRightEditors', "Close Editors to the Right in Group"), original: 'Close Editors to the Right in Group' }, category: Categories.View }, when: ( ActiveEditorLastInGroupContext.toNegated()) });
354
- MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_EDITORS_AND_GROUP_COMMAND_ID, title: { value: localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', 'closeEditorGroup', "Close Editor Group"), original: 'Close Editor Group' }, category: Categories.View }, when: MultipleEditorGroupsContext });
355
- MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: REOPEN_WITH_COMMAND_ID, title: { value: localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', 'reopenWith', "Reopen Editor With..."), original: 'Reopen Editor With...' }, category: Categories.View }, when: ActiveEditorAvailableEditorIdsContext });
565
+ MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: KEEP_EDITOR_COMMAND_ID, title: { value: ( localizeWithPath(
566
+ 'vs/workbench/browser/parts/editor/editor.contribution',
567
+ 'keepEditor',
568
+ "Keep Editor"
569
+ )), original: 'Keep Editor' }, category: Categories.View }, when: ( ContextKeyExpr.has('config.workbench.editor.enablePreview')) });
570
+ MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: PIN_EDITOR_COMMAND_ID, title: { value: ( localizeWithPath(
571
+ 'vs/workbench/browser/parts/editor/editor.contribution',
572
+ 'pinEditor',
573
+ "Pin Editor"
574
+ )), original: 'Pin Editor' }, category: Categories.View } });
575
+ MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: UNPIN_EDITOR_COMMAND_ID, title: { value: ( localizeWithPath(
576
+ 'vs/workbench/browser/parts/editor/editor.contribution',
577
+ 'unpinEditor',
578
+ "Unpin Editor"
579
+ )), original: 'Unpin Editor' }, category: Categories.View } });
580
+ MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_EDITOR_COMMAND_ID, title: { value: ( localizeWithPath(
581
+ 'vs/workbench/browser/parts/editor/editor.contribution',
582
+ 'closeEditor',
583
+ "Close Editor"
584
+ )), original: 'Close Editor' }, category: Categories.View } });
585
+ MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_PINNED_EDITOR_COMMAND_ID, title: { value: ( localizeWithPath(
586
+ 'vs/workbench/browser/parts/editor/editor.contribution',
587
+ 'closePinnedEditor',
588
+ "Close Pinned Editor"
589
+ )), original: 'Close Pinned Editor' }, category: Categories.View } });
590
+ MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_EDITORS_IN_GROUP_COMMAND_ID, title: { value: ( localizeWithPath(
591
+ 'vs/workbench/browser/parts/editor/editor.contribution',
592
+ 'closeEditorsInGroup',
593
+ "Close All Editors in Group"
594
+ )), original: 'Close All Editors in Group' }, category: Categories.View } });
595
+ MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_SAVED_EDITORS_COMMAND_ID, title: { value: ( localizeWithPath(
596
+ 'vs/workbench/browser/parts/editor/editor.contribution',
597
+ 'closeSavedEditors',
598
+ "Close Saved Editors in Group"
599
+ )), original: 'Close Saved Editors in Group' }, category: Categories.View } });
600
+ MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_OTHER_EDITORS_IN_GROUP_COMMAND_ID, title: { value: ( localizeWithPath(
601
+ 'vs/workbench/browser/parts/editor/editor.contribution',
602
+ 'closeOtherEditors',
603
+ "Close Other Editors in Group"
604
+ )), original: 'Close Other Editors in Group' }, category: Categories.View } });
605
+ MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_EDITORS_TO_THE_RIGHT_COMMAND_ID, title: { value: ( localizeWithPath(
606
+ 'vs/workbench/browser/parts/editor/editor.contribution',
607
+ 'closeRightEditors',
608
+ "Close Editors to the Right in Group"
609
+ )), original: 'Close Editors to the Right in Group' }, category: Categories.View }, when: ( ActiveEditorLastInGroupContext.toNegated()) });
610
+ MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_EDITORS_AND_GROUP_COMMAND_ID, title: { value: ( localizeWithPath(
611
+ 'vs/workbench/browser/parts/editor/editor.contribution',
612
+ 'closeEditorGroup',
613
+ "Close Editor Group"
614
+ )), original: 'Close Editor Group' }, category: Categories.View }, when: MultipleEditorGroupsContext });
615
+ MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: REOPEN_WITH_COMMAND_ID, title: { value: ( localizeWithPath(
616
+ 'vs/workbench/browser/parts/editor/editor.contribution',
617
+ 'reopenWith',
618
+ "Reopen Editor With..."
619
+ )), original: 'Reopen Editor With...' }, category: Categories.View }, when: ActiveEditorAvailableEditorIdsContext });
356
620
  MenuRegistry.appendMenuItem(MenuId.MenubarRecentMenu, {
357
621
  group: '1_editor',
358
622
  command: {
359
623
  id: ReopenClosedEditorAction.ID,
360
- title: localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', { key: 'miReopenClosedEditor', comment: ['&& denotes a mnemonic'] }, "&&Reopen Closed Editor"),
624
+ title: ( localizeWithPath(
625
+ 'vs/workbench/browser/parts/editor/editor.contribution',
626
+ { key: 'miReopenClosedEditor', comment: ['&& denotes a mnemonic'] },
627
+ "&&Reopen Closed Editor"
628
+ )),
361
629
  precondition: ( ContextKeyExpr.has('canReopenClosedEditor'))
362
630
  },
363
631
  order: 1
@@ -366,19 +634,21 @@ MenuRegistry.appendMenuItem(MenuId.MenubarRecentMenu, {
366
634
  group: 'z_clear',
367
635
  command: {
368
636
  id: ClearRecentFilesAction.ID,
369
- title: localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', { key: 'miClearRecentOpen', comment: ['&& denotes a mnemonic'] }, "&&Clear Recently Opened")
637
+ title: ( localizeWithPath(
638
+ 'vs/workbench/browser/parts/editor/editor.contribution',
639
+ { key: 'miClearRecentOpen', comment: ['&& denotes a mnemonic'] },
640
+ "&&Clear Recently Opened"
641
+ ))
370
642
  },
371
643
  order: 1
372
644
  });
373
- ( MenuRegistry.appendMenuItem(MenuId.MenubarFileMenu, {
374
- title: localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', 'miShare', "Share"),
375
- submenu: MenuId.MenubarShare,
376
- group: '45_share',
377
- order: 1,
378
- }));
379
645
  MenuRegistry.appendMenuItem(MenuId.MenubarViewMenu, {
380
646
  group: '2_appearance',
381
- title: localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', { key: 'miEditorLayout', comment: ['&& denotes a mnemonic'] }, "Editor &&Layout"),
647
+ title: ( localizeWithPath(
648
+ 'vs/workbench/browser/parts/editor/editor.contribution',
649
+ { key: 'miEditorLayout', comment: ['&& denotes a mnemonic'] },
650
+ "Editor &&Layout"
651
+ )),
382
652
  submenu: MenuId.MenubarLayoutMenu,
383
653
  order: 2
384
654
  });
@@ -388,8 +658,16 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
388
658
  id: SPLIT_EDITOR_UP,
389
659
  title: {
390
660
  original: 'Split Up',
391
- value: localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', 'miSplitEditorUpWithoutMnemonic', "Split Up"),
392
- mnemonicTitle: localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', { key: 'miSplitEditorUp', comment: ['&& denotes a mnemonic'] }, "Split &&Up"),
661
+ value: ( localizeWithPath(
662
+ 'vs/workbench/browser/parts/editor/editor.contribution',
663
+ 'miSplitEditorUpWithoutMnemonic',
664
+ "Split Up"
665
+ )),
666
+ mnemonicTitle: ( localizeWithPath(
667
+ 'vs/workbench/browser/parts/editor/editor.contribution',
668
+ { key: 'miSplitEditorUp', comment: ['&& denotes a mnemonic'] },
669
+ "Split &&Up"
670
+ )),
393
671
  }
394
672
  },
395
673
  order: 1
@@ -400,8 +678,16 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
400
678
  id: SPLIT_EDITOR_DOWN,
401
679
  title: {
402
680
  original: 'Split Down',
403
- value: localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', 'miSplitEditorDownWithoutMnemonic', "Split Down"),
404
- mnemonicTitle: localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', { key: 'miSplitEditorDown', comment: ['&& denotes a mnemonic'] }, "Split &&Down")
681
+ value: ( localizeWithPath(
682
+ 'vs/workbench/browser/parts/editor/editor.contribution',
683
+ 'miSplitEditorDownWithoutMnemonic',
684
+ "Split Down"
685
+ )),
686
+ mnemonicTitle: ( localizeWithPath(
687
+ 'vs/workbench/browser/parts/editor/editor.contribution',
688
+ { key: 'miSplitEditorDown', comment: ['&& denotes a mnemonic'] },
689
+ "Split &&Down"
690
+ ))
405
691
  }
406
692
  },
407
693
  order: 2
@@ -412,8 +698,16 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
412
698
  id: SPLIT_EDITOR_LEFT,
413
699
  title: {
414
700
  original: 'Split Left',
415
- value: localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', 'miSplitEditorLeftWithoutMnemonic', "Split Left"),
416
- mnemonicTitle: localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', { key: 'miSplitEditorLeft', comment: ['&& denotes a mnemonic'] }, "Split &&Left")
701
+ value: ( localizeWithPath(
702
+ 'vs/workbench/browser/parts/editor/editor.contribution',
703
+ 'miSplitEditorLeftWithoutMnemonic',
704
+ "Split Left"
705
+ )),
706
+ mnemonicTitle: ( localizeWithPath(
707
+ 'vs/workbench/browser/parts/editor/editor.contribution',
708
+ { key: 'miSplitEditorLeft', comment: ['&& denotes a mnemonic'] },
709
+ "Split &&Left"
710
+ ))
417
711
  }
418
712
  },
419
713
  order: 3
@@ -424,8 +718,16 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
424
718
  id: SPLIT_EDITOR_RIGHT,
425
719
  title: {
426
720
  original: 'Split Right',
427
- value: localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', 'miSplitEditorRightWithoutMnemonic', "Split Right"),
428
- mnemonicTitle: localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', { key: 'miSplitEditorRight', comment: ['&& denotes a mnemonic'] }, "Split &&Right")
721
+ value: ( localizeWithPath(
722
+ 'vs/workbench/browser/parts/editor/editor.contribution',
723
+ 'miSplitEditorRightWithoutMnemonic',
724
+ "Split Right"
725
+ )),
726
+ mnemonicTitle: ( localizeWithPath(
727
+ 'vs/workbench/browser/parts/editor/editor.contribution',
728
+ { key: 'miSplitEditorRight', comment: ['&& denotes a mnemonic'] },
729
+ "Split &&Right"
730
+ ))
429
731
  }
430
732
  },
431
733
  order: 4
@@ -436,8 +738,16 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
436
738
  id: SPLIT_EDITOR_IN_GROUP,
437
739
  title: {
438
740
  original: 'Split in Group',
439
- value: localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', 'miSplitEditorInGroupWithoutMnemonic', "Split in Group"),
440
- mnemonicTitle: localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', { key: 'miSplitEditorInGroup', comment: ['&& denotes a mnemonic'] }, "Split in &&Group")
741
+ value: ( localizeWithPath(
742
+ 'vs/workbench/browser/parts/editor/editor.contribution',
743
+ 'miSplitEditorInGroupWithoutMnemonic',
744
+ "Split in Group"
745
+ )),
746
+ mnemonicTitle: ( localizeWithPath(
747
+ 'vs/workbench/browser/parts/editor/editor.contribution',
748
+ { key: 'miSplitEditorInGroup', comment: ['&& denotes a mnemonic'] },
749
+ "Split in &&Group"
750
+ ))
441
751
  }
442
752
  },
443
753
  when: ActiveEditorCanSplitInGroupContext,
@@ -449,8 +759,16 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
449
759
  id: JOIN_EDITOR_IN_GROUP,
450
760
  title: {
451
761
  original: 'Join in Group',
452
- value: localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', 'miJoinEditorInGroupWithoutMnemonic', "Join in Group"),
453
- mnemonicTitle: localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', { key: 'miJoinEditorInGroup', comment: ['&& denotes a mnemonic'] }, "Join in &&Group")
762
+ value: ( localizeWithPath(
763
+ 'vs/workbench/browser/parts/editor/editor.contribution',
764
+ 'miJoinEditorInGroupWithoutMnemonic',
765
+ "Join in Group"
766
+ )),
767
+ mnemonicTitle: ( localizeWithPath(
768
+ 'vs/workbench/browser/parts/editor/editor.contribution',
769
+ { key: 'miJoinEditorInGroup', comment: ['&& denotes a mnemonic'] },
770
+ "Join in &&Group"
771
+ ))
454
772
  }
455
773
  },
456
774
  when: SideBySideEditorActiveContext,
@@ -462,8 +780,16 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
462
780
  id: EditorLayoutSingleAction.ID,
463
781
  title: {
464
782
  original: 'Single',
465
- value: localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', 'miSingleColumnEditorLayoutWithoutMnemonic', "Single"),
466
- mnemonicTitle: localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', { key: 'miSingleColumnEditorLayout', comment: ['&& denotes a mnemonic'] }, "&&Single")
783
+ value: ( localizeWithPath(
784
+ 'vs/workbench/browser/parts/editor/editor.contribution',
785
+ 'miSingleColumnEditorLayoutWithoutMnemonic',
786
+ "Single"
787
+ )),
788
+ mnemonicTitle: ( localizeWithPath(
789
+ 'vs/workbench/browser/parts/editor/editor.contribution',
790
+ { key: 'miSingleColumnEditorLayout', comment: ['&& denotes a mnemonic'] },
791
+ "&&Single"
792
+ ))
467
793
  }
468
794
  },
469
795
  order: 1
@@ -474,8 +800,16 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
474
800
  id: EditorLayoutTwoColumnsAction.ID,
475
801
  title: {
476
802
  original: 'Two Columns',
477
- value: localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', 'miTwoColumnsEditorLayoutWithoutMnemonic', "Two Columns"),
478
- mnemonicTitle: localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', { key: 'miTwoColumnsEditorLayout', comment: ['&& denotes a mnemonic'] }, "&&Two Columns")
803
+ value: ( localizeWithPath(
804
+ 'vs/workbench/browser/parts/editor/editor.contribution',
805
+ 'miTwoColumnsEditorLayoutWithoutMnemonic',
806
+ "Two Columns"
807
+ )),
808
+ mnemonicTitle: ( localizeWithPath(
809
+ 'vs/workbench/browser/parts/editor/editor.contribution',
810
+ { key: 'miTwoColumnsEditorLayout', comment: ['&& denotes a mnemonic'] },
811
+ "&&Two Columns"
812
+ ))
479
813
  }
480
814
  },
481
815
  order: 3
@@ -486,8 +820,16 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
486
820
  id: EditorLayoutThreeColumnsAction.ID,
487
821
  title: {
488
822
  original: 'Three Columns',
489
- value: localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', 'miThreeColumnsEditorLayoutWithoutMnemonic', "Three Columns"),
490
- mnemonicTitle: localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', { key: 'miThreeColumnsEditorLayout', comment: ['&& denotes a mnemonic'] }, "T&&hree Columns")
823
+ value: ( localizeWithPath(
824
+ 'vs/workbench/browser/parts/editor/editor.contribution',
825
+ 'miThreeColumnsEditorLayoutWithoutMnemonic',
826
+ "Three Columns"
827
+ )),
828
+ mnemonicTitle: ( localizeWithPath(
829
+ 'vs/workbench/browser/parts/editor/editor.contribution',
830
+ { key: 'miThreeColumnsEditorLayout', comment: ['&& denotes a mnemonic'] },
831
+ "T&&hree Columns"
832
+ ))
491
833
  }
492
834
  },
493
835
  order: 4
@@ -498,8 +840,16 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
498
840
  id: EditorLayoutTwoRowsAction.ID,
499
841
  title: {
500
842
  original: 'Two Rows',
501
- value: localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', 'miTwoRowsEditorLayoutWithoutMnemonic', "Two Rows"),
502
- mnemonicTitle: localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', { key: 'miTwoRowsEditorLayout', comment: ['&& denotes a mnemonic'] }, "T&&wo Rows")
843
+ value: ( localizeWithPath(
844
+ 'vs/workbench/browser/parts/editor/editor.contribution',
845
+ 'miTwoRowsEditorLayoutWithoutMnemonic',
846
+ "Two Rows"
847
+ )),
848
+ mnemonicTitle: ( localizeWithPath(
849
+ 'vs/workbench/browser/parts/editor/editor.contribution',
850
+ { key: 'miTwoRowsEditorLayout', comment: ['&& denotes a mnemonic'] },
851
+ "T&&wo Rows"
852
+ ))
503
853
  }
504
854
  },
505
855
  order: 5
@@ -510,8 +860,16 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
510
860
  id: EditorLayoutThreeRowsAction.ID,
511
861
  title: {
512
862
  original: 'Three Rows',
513
- value: localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', 'miThreeRowsEditorLayoutWithoutMnemonic', "Three Rows"),
514
- mnemonicTitle: localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', { key: 'miThreeRowsEditorLayout', comment: ['&& denotes a mnemonic'] }, "Three &&Rows")
863
+ value: ( localizeWithPath(
864
+ 'vs/workbench/browser/parts/editor/editor.contribution',
865
+ 'miThreeRowsEditorLayoutWithoutMnemonic',
866
+ "Three Rows"
867
+ )),
868
+ mnemonicTitle: ( localizeWithPath(
869
+ 'vs/workbench/browser/parts/editor/editor.contribution',
870
+ { key: 'miThreeRowsEditorLayout', comment: ['&& denotes a mnemonic'] },
871
+ "Three &&Rows"
872
+ ))
515
873
  }
516
874
  },
517
875
  order: 6
@@ -522,8 +880,16 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
522
880
  id: EditorLayoutTwoByTwoGridAction.ID,
523
881
  title: {
524
882
  original: 'Grid (2x2)',
525
- value: localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', 'miTwoByTwoGridEditorLayoutWithoutMnemonic', "Grid (2x2)"),
526
- mnemonicTitle: localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', { key: 'miTwoByTwoGridEditorLayout', comment: ['&& denotes a mnemonic'] }, "&&Grid (2x2)")
883
+ value: ( localizeWithPath(
884
+ 'vs/workbench/browser/parts/editor/editor.contribution',
885
+ 'miTwoByTwoGridEditorLayoutWithoutMnemonic',
886
+ "Grid (2x2)"
887
+ )),
888
+ mnemonicTitle: ( localizeWithPath(
889
+ 'vs/workbench/browser/parts/editor/editor.contribution',
890
+ { key: 'miTwoByTwoGridEditorLayout', comment: ['&& denotes a mnemonic'] },
891
+ "&&Grid (2x2)"
892
+ ))
527
893
  }
528
894
  },
529
895
  order: 7
@@ -534,8 +900,16 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
534
900
  id: EditorLayoutTwoRowsRightAction.ID,
535
901
  title: {
536
902
  original: 'Two Rows Right',
537
- value: localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', 'miTwoRowsRightEditorLayoutWithoutMnemonic', "Two Rows Right"),
538
- mnemonicTitle: localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', { key: 'miTwoRowsRightEditorLayout', comment: ['&& denotes a mnemonic'] }, "Two R&&ows Right")
903
+ value: ( localizeWithPath(
904
+ 'vs/workbench/browser/parts/editor/editor.contribution',
905
+ 'miTwoRowsRightEditorLayoutWithoutMnemonic',
906
+ "Two Rows Right"
907
+ )),
908
+ mnemonicTitle: ( localizeWithPath(
909
+ 'vs/workbench/browser/parts/editor/editor.contribution',
910
+ { key: 'miTwoRowsRightEditorLayout', comment: ['&& denotes a mnemonic'] },
911
+ "Two R&&ows Right"
912
+ ))
539
913
  }
540
914
  },
541
915
  order: 8
@@ -546,8 +920,16 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
546
920
  id: EditorLayoutTwoColumnsBottomAction.ID,
547
921
  title: {
548
922
  original: 'Two Columns Bottom',
549
- value: localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', 'miTwoColumnsBottomEditorLayoutWithoutMnemonic', "Two Columns Bottom"),
550
- mnemonicTitle: localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', { key: 'miTwoColumnsBottomEditorLayout', comment: ['&& denotes a mnemonic'] }, "Two &&Columns Bottom")
923
+ value: ( localizeWithPath(
924
+ 'vs/workbench/browser/parts/editor/editor.contribution',
925
+ 'miTwoColumnsBottomEditorLayoutWithoutMnemonic',
926
+ "Two Columns Bottom"
927
+ )),
928
+ mnemonicTitle: ( localizeWithPath(
929
+ 'vs/workbench/browser/parts/editor/editor.contribution',
930
+ { key: 'miTwoColumnsBottomEditorLayout', comment: ['&& denotes a mnemonic'] },
931
+ "Two &&Columns Bottom"
932
+ ))
551
933
  }
552
934
  },
553
935
  order: 9
@@ -556,7 +938,11 @@ MenuRegistry.appendMenuItem(MenuId.MenubarGoMenu, {
556
938
  group: '1_history_nav',
557
939
  command: {
558
940
  id: 'workbench.action.navigateToLastEditLocation',
559
- title: localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', { key: 'miLastEditLocation', comment: ['&& denotes a mnemonic'] }, "&&Last Edit Location"),
941
+ title: ( localizeWithPath(
942
+ 'vs/workbench/browser/parts/editor/editor.contribution',
943
+ { key: 'miLastEditLocation', comment: ['&& denotes a mnemonic'] },
944
+ "&&Last Edit Location"
945
+ )),
560
946
  precondition: ( ContextKeyExpr.has('canNavigateToLastEditLocation'))
561
947
  },
562
948
  order: 3
@@ -565,7 +951,11 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchEditorMenu, {
565
951
  group: '1_sideBySide',
566
952
  command: {
567
953
  id: FOCUS_FIRST_SIDE_EDITOR,
568
- title: localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', { key: 'miFirstSideEditor', comment: ['&& denotes a mnemonic'] }, "&&First Side in Editor")
954
+ title: ( localizeWithPath(
955
+ 'vs/workbench/browser/parts/editor/editor.contribution',
956
+ { key: 'miFirstSideEditor', comment: ['&& denotes a mnemonic'] },
957
+ "&&First Side in Editor"
958
+ ))
569
959
  },
570
960
  when: ( ContextKeyExpr.or(SideBySideEditorActiveContext, TextCompareEditorActiveContext)),
571
961
  order: 1
@@ -574,7 +964,11 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchEditorMenu, {
574
964
  group: '1_sideBySide',
575
965
  command: {
576
966
  id: FOCUS_SECOND_SIDE_EDITOR,
577
- title: localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', { key: 'miSecondSideEditor', comment: ['&& denotes a mnemonic'] }, "&&Second Side in Editor")
967
+ title: ( localizeWithPath(
968
+ 'vs/workbench/browser/parts/editor/editor.contribution',
969
+ { key: 'miSecondSideEditor', comment: ['&& denotes a mnemonic'] },
970
+ "&&Second Side in Editor"
971
+ ))
578
972
  },
579
973
  when: ( ContextKeyExpr.or(SideBySideEditorActiveContext, TextCompareEditorActiveContext)),
580
974
  order: 2
@@ -583,7 +977,11 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchEditorMenu, {
583
977
  group: '2_any',
584
978
  command: {
585
979
  id: 'workbench.action.nextEditor',
586
- title: localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', { key: 'miNextEditor', comment: ['&& denotes a mnemonic'] }, "&&Next Editor")
980
+ title: ( localizeWithPath(
981
+ 'vs/workbench/browser/parts/editor/editor.contribution',
982
+ { key: 'miNextEditor', comment: ['&& denotes a mnemonic'] },
983
+ "&&Next Editor"
984
+ ))
587
985
  },
588
986
  order: 1
589
987
  });
@@ -591,7 +989,11 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchEditorMenu, {
591
989
  group: '2_any',
592
990
  command: {
593
991
  id: 'workbench.action.previousEditor',
594
- title: localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', { key: 'miPreviousEditor', comment: ['&& denotes a mnemonic'] }, "&&Previous Editor")
992
+ title: ( localizeWithPath(
993
+ 'vs/workbench/browser/parts/editor/editor.contribution',
994
+ { key: 'miPreviousEditor', comment: ['&& denotes a mnemonic'] },
995
+ "&&Previous Editor"
996
+ ))
595
997
  },
596
998
  order: 2
597
999
  });
@@ -599,7 +1001,11 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchEditorMenu, {
599
1001
  group: '3_any_used',
600
1002
  command: {
601
1003
  id: 'workbench.action.openNextRecentlyUsedEditor',
602
- title: localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', { key: 'miNextRecentlyUsedEditor', comment: ['&& denotes a mnemonic'] }, "&&Next Used Editor")
1004
+ title: ( localizeWithPath(
1005
+ 'vs/workbench/browser/parts/editor/editor.contribution',
1006
+ { key: 'miNextRecentlyUsedEditor', comment: ['&& denotes a mnemonic'] },
1007
+ "&&Next Used Editor"
1008
+ ))
603
1009
  },
604
1010
  order: 1
605
1011
  });
@@ -607,7 +1013,11 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchEditorMenu, {
607
1013
  group: '3_any_used',
608
1014
  command: {
609
1015
  id: 'workbench.action.openPreviousRecentlyUsedEditor',
610
- title: localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', { key: 'miPreviousRecentlyUsedEditor', comment: ['&& denotes a mnemonic'] }, "&&Previous Used Editor")
1016
+ title: ( localizeWithPath(
1017
+ 'vs/workbench/browser/parts/editor/editor.contribution',
1018
+ { key: 'miPreviousRecentlyUsedEditor', comment: ['&& denotes a mnemonic'] },
1019
+ "&&Previous Used Editor"
1020
+ ))
611
1021
  },
612
1022
  order: 2
613
1023
  });
@@ -615,7 +1025,11 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchEditorMenu, {
615
1025
  group: '4_group',
616
1026
  command: {
617
1027
  id: 'workbench.action.nextEditorInGroup',
618
- title: localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', { key: 'miNextEditorInGroup', comment: ['&& denotes a mnemonic'] }, "&&Next Editor in Group")
1028
+ title: ( localizeWithPath(
1029
+ 'vs/workbench/browser/parts/editor/editor.contribution',
1030
+ { key: 'miNextEditorInGroup', comment: ['&& denotes a mnemonic'] },
1031
+ "&&Next Editor in Group"
1032
+ ))
619
1033
  },
620
1034
  order: 1
621
1035
  });
@@ -623,7 +1037,11 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchEditorMenu, {
623
1037
  group: '4_group',
624
1038
  command: {
625
1039
  id: 'workbench.action.previousEditorInGroup',
626
- title: localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', { key: 'miPreviousEditorInGroup', comment: ['&& denotes a mnemonic'] }, "&&Previous Editor in Group")
1040
+ title: ( localizeWithPath(
1041
+ 'vs/workbench/browser/parts/editor/editor.contribution',
1042
+ { key: 'miPreviousEditorInGroup', comment: ['&& denotes a mnemonic'] },
1043
+ "&&Previous Editor in Group"
1044
+ ))
627
1045
  },
628
1046
  order: 2
629
1047
  });
@@ -631,7 +1049,11 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchEditorMenu, {
631
1049
  group: '5_group_used',
632
1050
  command: {
633
1051
  id: 'workbench.action.openNextRecentlyUsedEditorInGroup',
634
- title: localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', { key: 'miNextUsedEditorInGroup', comment: ['&& denotes a mnemonic'] }, "&&Next Used Editor in Group")
1052
+ title: ( localizeWithPath(
1053
+ 'vs/workbench/browser/parts/editor/editor.contribution',
1054
+ { key: 'miNextUsedEditorInGroup', comment: ['&& denotes a mnemonic'] },
1055
+ "&&Next Used Editor in Group"
1056
+ ))
635
1057
  },
636
1058
  order: 1
637
1059
  });
@@ -639,13 +1061,21 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchEditorMenu, {
639
1061
  group: '5_group_used',
640
1062
  command: {
641
1063
  id: 'workbench.action.openPreviousRecentlyUsedEditorInGroup',
642
- title: localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', { key: 'miPreviousUsedEditorInGroup', comment: ['&& denotes a mnemonic'] }, "&&Previous Used Editor in Group")
1064
+ title: ( localizeWithPath(
1065
+ 'vs/workbench/browser/parts/editor/editor.contribution',
1066
+ { key: 'miPreviousUsedEditorInGroup', comment: ['&& denotes a mnemonic'] },
1067
+ "&&Previous Used Editor in Group"
1068
+ ))
643
1069
  },
644
1070
  order: 2
645
1071
  });
646
1072
  MenuRegistry.appendMenuItem(MenuId.MenubarGoMenu, {
647
1073
  group: '2_editor_nav',
648
- title: localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', { key: 'miSwitchEditor', comment: ['&& denotes a mnemonic'] }, "Switch &&Editor"),
1074
+ title: ( localizeWithPath(
1075
+ 'vs/workbench/browser/parts/editor/editor.contribution',
1076
+ { key: 'miSwitchEditor', comment: ['&& denotes a mnemonic'] },
1077
+ "Switch &&Editor"
1078
+ )),
649
1079
  submenu: MenuId.MenubarSwitchEditorMenu,
650
1080
  order: 1
651
1081
  });
@@ -653,7 +1083,11 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchGroupMenu, {
653
1083
  group: '1_focus_index',
654
1084
  command: {
655
1085
  id: 'workbench.action.focusFirstEditorGroup',
656
- title: localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', { key: 'miFocusFirstGroup', comment: ['&& denotes a mnemonic'] }, "Group &&1")
1086
+ title: ( localizeWithPath(
1087
+ 'vs/workbench/browser/parts/editor/editor.contribution',
1088
+ { key: 'miFocusFirstGroup', comment: ['&& denotes a mnemonic'] },
1089
+ "Group &&1"
1090
+ ))
657
1091
  },
658
1092
  order: 1
659
1093
  });
@@ -661,7 +1095,11 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchGroupMenu, {
661
1095
  group: '1_focus_index',
662
1096
  command: {
663
1097
  id: 'workbench.action.focusSecondEditorGroup',
664
- title: localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', { key: 'miFocusSecondGroup', comment: ['&& denotes a mnemonic'] }, "Group &&2")
1098
+ title: ( localizeWithPath(
1099
+ 'vs/workbench/browser/parts/editor/editor.contribution',
1100
+ { key: 'miFocusSecondGroup', comment: ['&& denotes a mnemonic'] },
1101
+ "Group &&2"
1102
+ ))
665
1103
  },
666
1104
  order: 2
667
1105
  });
@@ -669,7 +1107,11 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchGroupMenu, {
669
1107
  group: '1_focus_index',
670
1108
  command: {
671
1109
  id: 'workbench.action.focusThirdEditorGroup',
672
- title: localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', { key: 'miFocusThirdGroup', comment: ['&& denotes a mnemonic'] }, "Group &&3"),
1110
+ title: ( localizeWithPath(
1111
+ 'vs/workbench/browser/parts/editor/editor.contribution',
1112
+ { key: 'miFocusThirdGroup', comment: ['&& denotes a mnemonic'] },
1113
+ "Group &&3"
1114
+ )),
673
1115
  precondition: MultipleEditorGroupsContext
674
1116
  },
675
1117
  order: 3
@@ -678,7 +1120,11 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchGroupMenu, {
678
1120
  group: '1_focus_index',
679
1121
  command: {
680
1122
  id: 'workbench.action.focusFourthEditorGroup',
681
- title: localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', { key: 'miFocusFourthGroup', comment: ['&& denotes a mnemonic'] }, "Group &&4"),
1123
+ title: ( localizeWithPath(
1124
+ 'vs/workbench/browser/parts/editor/editor.contribution',
1125
+ { key: 'miFocusFourthGroup', comment: ['&& denotes a mnemonic'] },
1126
+ "Group &&4"
1127
+ )),
682
1128
  precondition: MultipleEditorGroupsContext
683
1129
  },
684
1130
  order: 4
@@ -687,7 +1133,11 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchGroupMenu, {
687
1133
  group: '1_focus_index',
688
1134
  command: {
689
1135
  id: 'workbench.action.focusFifthEditorGroup',
690
- title: localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', { key: 'miFocusFifthGroup', comment: ['&& denotes a mnemonic'] }, "Group &&5"),
1136
+ title: ( localizeWithPath(
1137
+ 'vs/workbench/browser/parts/editor/editor.contribution',
1138
+ { key: 'miFocusFifthGroup', comment: ['&& denotes a mnemonic'] },
1139
+ "Group &&5"
1140
+ )),
691
1141
  precondition: MultipleEditorGroupsContext
692
1142
  },
693
1143
  order: 5
@@ -696,7 +1146,11 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchGroupMenu, {
696
1146
  group: '2_next_prev',
697
1147
  command: {
698
1148
  id: 'workbench.action.focusNextGroup',
699
- title: localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', { key: 'miNextGroup', comment: ['&& denotes a mnemonic'] }, "&&Next Group"),
1149
+ title: ( localizeWithPath(
1150
+ 'vs/workbench/browser/parts/editor/editor.contribution',
1151
+ { key: 'miNextGroup', comment: ['&& denotes a mnemonic'] },
1152
+ "&&Next Group"
1153
+ )),
700
1154
  precondition: MultipleEditorGroupsContext
701
1155
  },
702
1156
  order: 1
@@ -705,7 +1159,11 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchGroupMenu, {
705
1159
  group: '2_next_prev',
706
1160
  command: {
707
1161
  id: 'workbench.action.focusPreviousGroup',
708
- title: localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', { key: 'miPreviousGroup', comment: ['&& denotes a mnemonic'] }, "&&Previous Group"),
1162
+ title: ( localizeWithPath(
1163
+ 'vs/workbench/browser/parts/editor/editor.contribution',
1164
+ { key: 'miPreviousGroup', comment: ['&& denotes a mnemonic'] },
1165
+ "&&Previous Group"
1166
+ )),
709
1167
  precondition: MultipleEditorGroupsContext
710
1168
  },
711
1169
  order: 2
@@ -714,7 +1172,11 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchGroupMenu, {
714
1172
  group: '3_directional',
715
1173
  command: {
716
1174
  id: 'workbench.action.focusLeftGroup',
717
- title: localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', { key: 'miFocusLeftGroup', comment: ['&& denotes a mnemonic'] }, "Group &&Left"),
1175
+ title: ( localizeWithPath(
1176
+ 'vs/workbench/browser/parts/editor/editor.contribution',
1177
+ { key: 'miFocusLeftGroup', comment: ['&& denotes a mnemonic'] },
1178
+ "Group &&Left"
1179
+ )),
718
1180
  precondition: MultipleEditorGroupsContext
719
1181
  },
720
1182
  order: 1
@@ -723,7 +1185,11 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchGroupMenu, {
723
1185
  group: '3_directional',
724
1186
  command: {
725
1187
  id: 'workbench.action.focusRightGroup',
726
- title: localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', { key: 'miFocusRightGroup', comment: ['&& denotes a mnemonic'] }, "Group &&Right"),
1188
+ title: ( localizeWithPath(
1189
+ 'vs/workbench/browser/parts/editor/editor.contribution',
1190
+ { key: 'miFocusRightGroup', comment: ['&& denotes a mnemonic'] },
1191
+ "Group &&Right"
1192
+ )),
727
1193
  precondition: MultipleEditorGroupsContext
728
1194
  },
729
1195
  order: 2
@@ -732,7 +1198,11 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchGroupMenu, {
732
1198
  group: '3_directional',
733
1199
  command: {
734
1200
  id: 'workbench.action.focusAboveGroup',
735
- title: localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', { key: 'miFocusAboveGroup', comment: ['&& denotes a mnemonic'] }, "Group &&Above"),
1201
+ title: ( localizeWithPath(
1202
+ 'vs/workbench/browser/parts/editor/editor.contribution',
1203
+ { key: 'miFocusAboveGroup', comment: ['&& denotes a mnemonic'] },
1204
+ "Group &&Above"
1205
+ )),
736
1206
  precondition: MultipleEditorGroupsContext
737
1207
  },
738
1208
  order: 3
@@ -741,14 +1211,22 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchGroupMenu, {
741
1211
  group: '3_directional',
742
1212
  command: {
743
1213
  id: 'workbench.action.focusBelowGroup',
744
- title: localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', { key: 'miFocusBelowGroup', comment: ['&& denotes a mnemonic'] }, "Group &&Below"),
1214
+ title: ( localizeWithPath(
1215
+ 'vs/workbench/browser/parts/editor/editor.contribution',
1216
+ { key: 'miFocusBelowGroup', comment: ['&& denotes a mnemonic'] },
1217
+ "Group &&Below"
1218
+ )),
745
1219
  precondition: MultipleEditorGroupsContext
746
1220
  },
747
1221
  order: 4
748
1222
  });
749
1223
  MenuRegistry.appendMenuItem(MenuId.MenubarGoMenu, {
750
1224
  group: '2_editor_nav',
751
- title: localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', { key: 'miSwitchGroup', comment: ['&& denotes a mnemonic'] }, "Switch &&Group"),
1225
+ title: ( localizeWithPath(
1226
+ 'vs/workbench/browser/parts/editor/editor.contribution',
1227
+ { key: 'miSwitchGroup', comment: ['&& denotes a mnemonic'] },
1228
+ "Switch &&Group"
1229
+ )),
752
1230
  submenu: MenuId.MenubarSwitchGroupMenu,
753
1231
  order: 2
754
1232
  });