@codingame/monaco-vscode-api 1.78.5 → 1.78.6-next.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -1
- package/dist/api.js +5 -4
- package/dist/assets/activityaction.css +228 -0
- package/dist/assets/activitybarpart.css +65 -0
- package/dist/assets/basepanelpart.css +221 -0
- package/dist/assets/callHierarchy.css +62 -0
- package/dist/assets/{sidebysideeditor.css → compositepart.css} +10 -2
- package/dist/assets/debugViewlet.css +336 -0
- package/dist/assets/explorerviewlet.css +129 -0
- package/dist/assets/hover.css +127 -0
- package/dist/assets/menubar.css +111 -0
- package/dist/assets/menubarControl.css +61 -0
- package/dist/assets/part.css +109 -0
- package/dist/assets/repl.css +145 -0
- package/dist/assets/sidebarpart.css +61 -0
- package/dist/assets/tunnelView.css +107 -0
- package/dist/assets/typeHierarchy.css +62 -0
- package/dist/assets/views.css +297 -0
- package/dist/default-extensions/bat.js +5 -4
- package/dist/default-extensions/clojure.js +4 -3
- package/dist/default-extensions/coffeescript.js +5 -4
- package/dist/default-extensions/cpp.js +10 -9
- package/dist/default-extensions/csharp.js +5 -4
- package/dist/default-extensions/css.js +4 -3
- package/dist/default-extensions/dart.js +4 -3
- package/dist/default-extensions/diff.js +4 -3
- package/dist/default-extensions/docker.js +4 -3
- package/dist/default-extensions/fsharp.js +5 -4
- package/dist/default-extensions/go.js +4 -3
- package/dist/default-extensions/groovy.js +5 -4
- package/dist/default-extensions/handlebars.js +4 -3
- package/dist/default-extensions/hlsl.js +4 -3
- package/dist/default-extensions/html.js +6 -5
- package/dist/default-extensions/ini.js +5 -4
- package/dist/default-extensions/java.js +5 -4
- package/dist/default-extensions/javascript.js +8 -7
- package/dist/default-extensions/json.js +5 -4
- package/dist/default-extensions/julia.js +4 -3
- package/dist/default-extensions/latex.js +10 -9
- package/dist/default-extensions/less.js +4 -3
- package/dist/default-extensions/log.js +3 -2
- package/dist/default-extensions/lua.js +4 -3
- package/dist/default-extensions/make.js +4 -3
- package/dist/default-extensions/markdown-basics.js +5 -4
- package/dist/default-extensions/objective-c.js +5 -4
- package/dist/default-extensions/perl.js +6 -5
- package/dist/default-extensions/php.js +6 -5
- package/dist/default-extensions/powershell.js +4 -3
- package/dist/default-extensions/pug.js +4 -3
- package/dist/default-extensions/python.js +5 -4
- package/dist/default-extensions/r.js +4 -3
- package/dist/default-extensions/razor.js +4 -3
- package/dist/default-extensions/references-view.js +8 -0
- package/dist/default-extensions/ruby.js +4 -3
- package/dist/default-extensions/rust.js +4 -3
- package/dist/default-extensions/scss.js +5 -4
- package/dist/default-extensions/shaderlab.js +4 -3
- package/dist/default-extensions/shellscript.js +4 -3
- package/dist/default-extensions/sql.js +4 -3
- package/dist/default-extensions/swift.js +5 -4
- package/dist/default-extensions/theme-abyss.js +3 -2
- package/dist/default-extensions/theme-defaults.js +31 -10
- package/dist/default-extensions/theme-kimbie-dark.js +3 -2
- package/dist/default-extensions/theme-monokai-dimmed.js +3 -2
- package/dist/default-extensions/theme-monokai.js +3 -2
- package/dist/default-extensions/theme-quietlight.js +3 -2
- package/dist/default-extensions/theme-red.js +3 -2
- package/dist/default-extensions/theme-seti.js +5 -2
- package/dist/default-extensions/theme-solarized-dark.js +3 -2
- package/dist/default-extensions/theme-solarized-light.js +3 -2
- package/dist/default-extensions/theme-tomorrow-night-blue.js +3 -2
- package/dist/default-extensions/typescript-basics.js +8 -7
- package/dist/default-extensions/vb.js +5 -4
- package/dist/default-extensions/xml.js +6 -5
- package/dist/default-extensions/yaml.js +4 -3
- package/dist/extension-tools-40a69515.js +27412 -0
- package/dist/extensions.d.ts +18 -2
- package/dist/extensions.js +99 -4
- package/dist/node_modules/tslib/tslib.es6.js +2 -2
- package/dist/override/vs/workbench/contrib/files/browser/views/openEditorsView.js +2 -0
- package/dist/rollup-extension-directory-plugin.d.ts +5 -2
- package/dist/rollup-extension-directory-plugin.js +74 -46
- package/dist/rollup-vsix-plugin.d.ts +4 -2
- package/dist/rollup-vsix-plugin.js +57 -19
- package/dist/service-override/configuration.js +16 -4
- package/dist/service-override/files.d.ts +90 -3
- package/dist/service-override/files.js +37 -15
- package/dist/service-override/layout.js +80 -6
- package/dist/service-override/modelEditor.js +3 -1
- package/dist/service-override/views.d.ts +6641 -0
- package/dist/service-override/views.js +177 -0
- package/dist/services.d.ts +25 -1
- package/dist/services.js +3 -0
- package/dist/vscode/vs/base/browser/ui/menu/menubar.js +831 -0
- package/dist/vscode/vs/base/browser/ui/splitview/paneview.js +151 -2
- package/dist/vscode/vs/base/browser/ui/tree/treeDefaults.js +14 -0
- package/dist/vscode/vs/editor/common/services/treeViewsDnd.js +17 -0
- package/dist/vscode/vs/editor/common/services/treeViewsDndService.js +3 -0
- package/dist/vscode/vs/platform/backup/common/backup.js +7 -0
- package/dist/vscode/vs/platform/configuration/common/configurationRegistry.js +10 -0
- package/dist/vscode/vs/platform/credentials/common/credentials.js +3 -0
- package/dist/vscode/vs/platform/extensionManagement/common/extensionManagement.js +1 -2
- package/dist/vscode/vs/platform/extensionManagement/common/extensionManagementUtil.js +4 -1
- package/dist/vscode/vs/platform/extensionManagement/common/extensionStorage.js +174 -0
- package/dist/vscode/vs/platform/extensionManagement/common/implicitActivationEvents.js +1 -1
- package/dist/vscode/vs/platform/files/common/fileService.js +3 -3
- package/dist/vscode/vs/platform/files/common/files.js +28 -0
- package/dist/vscode/vs/platform/files/common/inMemoryFilesystemProvider.js +1 -1
- package/dist/vscode/vs/platform/languagePacks/common/languagePacks.js +3 -0
- package/dist/vscode/vs/platform/remote/common/remoteAuthorityResolver.js +3 -1
- package/dist/vscode/vs/platform/storage/common/storage.js +332 -0
- package/dist/vscode/vs/platform/telemetry/common/telemetryUtils.js +1 -1
- package/dist/vscode/vs/platform/tunnel/common/tunnel.js +29 -1
- package/dist/vscode/vs/platform/update/common/update.js +3 -0
- package/dist/vscode/vs/platform/window/common/window.js +33 -0
- package/dist/vscode/vs/platform/workspaces/common/workspaces.js +1 -1
- package/dist/vscode/vs/workbench/api/browser/mainThreadDebugService.js +1 -1
- package/dist/vscode/vs/workbench/api/browser/mainThreadDiagnostics.js +1 -1
- package/dist/vscode/vs/workbench/api/browser/mainThreadDocuments.js +4 -4
- package/dist/vscode/vs/workbench/api/browser/mainThreadDocumentsAndEditors.js +1 -1
- package/dist/vscode/vs/workbench/api/browser/mainThreadFileSystem.js +1 -1
- package/dist/vscode/vs/workbench/api/browser/mainThreadLocalization.js +33 -0
- package/dist/vscode/vs/workbench/api/browser/mainThreadQuickOpen.js +1 -1
- package/dist/vscode/vs/workbench/api/browser/mainThreadStorage.js +69 -0
- package/dist/vscode/vs/workbench/api/browser/mainThreadTreeViews.js +298 -0
- package/dist/vscode/vs/workbench/api/browser/viewsExtensionPoint.js +699 -0
- package/dist/vscode/vs/workbench/api/common/cache.js +1 -1
- package/dist/vscode/vs/workbench/api/common/configurationExtensionPoint.js +1 -1
- package/dist/vscode/vs/workbench/api/common/extHostApiDeprecationService.js +1 -1
- package/dist/vscode/vs/workbench/api/common/extHostCommands.js +2 -2
- package/dist/vscode/vs/workbench/api/common/extHostDebugService.js +2 -2
- package/dist/vscode/vs/workbench/api/common/extHostDecorations.js +1 -1
- package/dist/vscode/vs/workbench/api/common/extHostDiagnostics.js +3 -3
- package/dist/vscode/vs/workbench/api/common/extHostDocumentsAndEditors.js +3 -3
- package/dist/vscode/vs/workbench/api/common/extHostExtensionActivator.js +1 -1
- package/dist/vscode/vs/workbench/api/common/extHostExtensionService.js +5 -5
- package/dist/vscode/vs/workbench/api/common/extHostFileSystem.js +1 -1
- package/dist/vscode/vs/workbench/api/common/extHostFileSystemInfo.js +1 -1
- package/dist/vscode/vs/workbench/api/common/extHostLanguages.js +1 -1
- package/dist/vscode/vs/workbench/api/common/extHostLocalizationService.js +1 -1
- package/dist/vscode/vs/workbench/api/common/extHostQuickOpen.js +2 -2
- package/dist/vscode/vs/workbench/api/common/extHostTextEditor.js +1 -1
- package/dist/vscode/vs/workbench/api/common/extHostTreeViews.js +823 -0
- package/dist/vscode/vs/workbench/api/common/extHostTypeConverters.js +17 -4
- package/dist/vscode/vs/workbench/api/common/extHostTypes.js +21 -5
- package/dist/vscode/vs/workbench/api/common/extHostVariableResolverService.js +3 -3
- package/dist/vscode/vs/workbench/api/common/extHostWorkspace.js +1 -1
- package/dist/vscode/vs/workbench/browser/actions/layoutActions.js +4 -887
- package/dist/vscode/vs/workbench/browser/actions/listCommands.js +602 -0
- package/dist/vscode/vs/workbench/browser/actions/windowActions.js +271 -0
- package/dist/vscode/vs/workbench/browser/actions/workspaceActions.js +250 -0
- package/dist/vscode/vs/workbench/browser/actions/workspaceCommands.js +6 -0
- package/dist/vscode/vs/workbench/browser/composite.js +49 -1
- package/dist/vscode/vs/workbench/browser/dnd.js +429 -0
- package/dist/vscode/vs/workbench/browser/labels.js +426 -0
- package/dist/vscode/vs/workbench/browser/panecomposite.js +158 -0
- package/dist/vscode/vs/workbench/browser/part.js +84 -0
- package/dist/vscode/vs/workbench/browser/parts/activitybar/activitybarActions.js +575 -0
- package/dist/vscode/vs/workbench/browser/parts/activitybar/activitybarPart.js +784 -0
- package/dist/vscode/vs/workbench/browser/parts/compositeBar.js +687 -0
- package/dist/vscode/vs/workbench/browser/parts/compositeBarActions.js +578 -0
- package/dist/vscode/vs/workbench/browser/parts/compositePart.js +319 -0
- package/dist/vscode/vs/workbench/browser/parts/editor/editor.contribution.js +6 -795
- package/dist/vscode/vs/workbench/browser/parts/editor/editorActions.js +110 -1487
- package/dist/vscode/vs/workbench/browser/parts/editor/editorCommands.js +4 -1121
- package/dist/vscode/vs/workbench/browser/parts/editor/editorQuickAccess.js +1 -1
- package/dist/vscode/vs/workbench/browser/parts/panel/panelActions.js +41 -82
- package/dist/vscode/vs/workbench/browser/parts/panel/panelPart.js +753 -0
- package/dist/vscode/vs/workbench/browser/parts/sidebar/sidebarPart.js +217 -0
- package/dist/vscode/vs/workbench/browser/parts/titlebar/menubarControl.js +600 -0
- package/dist/vscode/vs/workbench/browser/parts/views/checkbox.js +80 -0
- package/dist/vscode/vs/workbench/browser/parts/views/treeView.js +1486 -0
- package/dist/vscode/vs/workbench/browser/parts/views/viewFilter.js +181 -0
- package/dist/vscode/vs/workbench/browser/parts/views/viewPane.js +50 -2
- package/dist/vscode/vs/workbench/browser/parts/views/viewPaneContainer.js +1020 -0
- package/dist/vscode/vs/workbench/browser/parts/views/viewsService.js +562 -0
- package/dist/vscode/vs/workbench/browser/parts/views/viewsViewlet.js +109 -0
- package/dist/vscode/vs/workbench/browser/quickaccess.js +2 -4
- package/dist/vscode/vs/workbench/common/activity.js +3 -0
- package/dist/vscode/vs/workbench/common/contextkeys.js +19 -26
- package/dist/vscode/vs/workbench/common/editor.js +2 -48
- package/dist/vscode/vs/workbench/common/resources.js +3 -3
- package/dist/vscode/vs/workbench/common/theme.js +25 -25
- package/dist/vscode/vs/workbench/common/views.js +276 -1
- package/dist/vscode/vs/workbench/contrib/bulkEdit/browser/bulkCellEdits.js +62 -1
- package/dist/vscode/vs/workbench/contrib/bulkEdit/browser/bulkEditService.js +305 -0
- package/dist/vscode/vs/workbench/contrib/bulkEdit/browser/bulkFileEdits.js +378 -0
- package/dist/vscode/vs/workbench/contrib/bulkEdit/browser/bulkTextEdits.js +257 -0
- package/dist/vscode/vs/workbench/contrib/callHierarchy/browser/callHierarchy.contribution.js +259 -0
- package/dist/vscode/vs/workbench/contrib/callHierarchy/browser/callHierarchyPeek.js +337 -0
- package/dist/vscode/vs/workbench/contrib/callHierarchy/browser/callHierarchyTree.js +119 -0
- package/dist/vscode/vs/workbench/contrib/debug/browser/baseDebugView.js +8 -2
- package/dist/vscode/vs/workbench/contrib/debug/browser/breakpointsView.js +585 -8
- package/dist/vscode/vs/workbench/contrib/debug/browser/callStackView.js +954 -0
- package/dist/vscode/vs/workbench/contrib/debug/browser/debug.contribution.js +151 -145
- package/dist/vscode/vs/workbench/contrib/debug/browser/debugANSIHandling.js +345 -0
- package/dist/vscode/vs/workbench/contrib/debug/browser/debugAdapterManager.js +1 -1
- package/dist/vscode/vs/workbench/contrib/debug/browser/debugCommands.js +79 -3
- package/dist/vscode/vs/workbench/contrib/debug/browser/debugConfigurationManager.js +1 -1
- package/dist/vscode/vs/workbench/contrib/debug/browser/debugEditorActions.js +522 -0
- package/dist/vscode/vs/workbench/contrib/debug/browser/debugEditorContribution.js +5 -5
- package/dist/vscode/vs/workbench/contrib/debug/browser/debugIcons.js +28 -1
- package/dist/vscode/vs/workbench/contrib/debug/browser/debugSession.js +2 -2
- package/dist/vscode/vs/workbench/contrib/debug/browser/debugToolBar.js +1 -1
- package/dist/vscode/vs/workbench/contrib/debug/browser/debugViewlet.js +166 -0
- package/dist/vscode/vs/workbench/contrib/debug/browser/linkDetector.js +10 -10
- package/dist/vscode/vs/workbench/contrib/debug/browser/loadedScriptsView.js +629 -0
- package/dist/vscode/vs/workbench/contrib/debug/browser/repl.js +908 -0
- package/dist/vscode/vs/workbench/contrib/debug/browser/replFilter.js +46 -0
- package/dist/vscode/vs/workbench/contrib/debug/browser/replViewer.js +330 -0
- package/dist/vscode/vs/workbench/contrib/debug/browser/variablesView.js +295 -10
- package/dist/vscode/vs/workbench/contrib/debug/browser/watchExpressionsView.js +411 -0
- package/dist/vscode/vs/workbench/contrib/debug/browser/welcomeView.js +85 -0
- package/dist/vscode/vs/workbench/contrib/debug/common/debug.js +98 -1
- package/dist/vscode/vs/workbench/contrib/debug/common/debugModel.js +13 -4
- package/dist/vscode/vs/workbench/contrib/debug/common/debugUtils.js +1 -1
- package/dist/vscode/vs/workbench/contrib/debug/common/replModel.js +51 -1
- package/dist/vscode/vs/workbench/contrib/externalUriOpener/common/externalUriOpenerService.js +3 -0
- package/dist/vscode/vs/workbench/contrib/files/browser/explorerViewlet.js +254 -0
- package/dist/vscode/vs/workbench/contrib/files/browser/fileActions.contribution.js +207 -0
- package/dist/vscode/vs/workbench/contrib/files/browser/fileActions.js +1119 -0
- package/dist/vscode/vs/workbench/contrib/files/browser/fileCommands.js +594 -0
- package/dist/vscode/vs/workbench/contrib/files/browser/fileConstants.js +26 -0
- package/dist/vscode/vs/workbench/contrib/files/browser/fileImportExport.js +708 -0
- package/dist/vscode/vs/workbench/contrib/files/browser/files.contribution.js +368 -3
- package/dist/vscode/vs/workbench/contrib/files/browser/files.js +88 -1
- package/dist/vscode/vs/workbench/contrib/files/browser/views/emptyView.js +88 -0
- package/dist/vscode/vs/workbench/contrib/files/browser/views/explorerDecorationsProvider.js +73 -0
- package/dist/vscode/vs/workbench/contrib/files/browser/views/explorerView.js +793 -0
- package/dist/vscode/vs/workbench/contrib/files/browser/views/explorerViewer.js +1209 -0
- package/dist/vscode/vs/workbench/contrib/files/common/explorerFileNestingTrie.js +1 -1
- package/dist/vscode/vs/workbench/contrib/files/common/files.js +194 -3
- package/dist/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser.js +27 -0
- package/dist/vscode/vs/workbench/contrib/notebook/common/notebookCommon.js +79 -1
- package/dist/vscode/vs/workbench/contrib/notebook/common/notebookEditorInput.js +249 -0
- package/dist/vscode/vs/workbench/contrib/notebook/common/notebookEditorModelResolverService.js +3 -0
- package/dist/vscode/vs/workbench/contrib/notebook/common/notebookService.js +10 -0
- package/dist/vscode/vs/workbench/contrib/remote/browser/remoteExplorer.js +186 -0
- package/dist/vscode/vs/workbench/contrib/remote/browser/remoteIcons.js +23 -0
- package/dist/vscode/vs/workbench/contrib/remote/browser/tunnelView.js +1636 -0
- package/dist/vscode/vs/workbench/contrib/scm/common/scm.js +2 -0
- package/dist/vscode/vs/workbench/contrib/snippets/browser/snippetsFile.js +1 -1
- package/dist/vscode/vs/workbench/contrib/snippets/browser/snippetsService.js +5 -3
- package/dist/vscode/vs/workbench/contrib/terminal/common/terminalColorRegistry.js +167 -0
- package/dist/vscode/vs/workbench/contrib/testing/common/testItemCollection.js +1 -1
- package/dist/vscode/vs/workbench/contrib/typeHierarchy/browser/typeHierarchy.contribution.js +244 -0
- package/dist/vscode/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyPeek.js +332 -0
- package/dist/vscode/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyTree.js +117 -0
- package/dist/vscode/vs/workbench/contrib/webview/browser/webview.js +41 -0
- package/dist/vscode/vs/workbench/contrib/webview/browser/webviewWindowDragMonitor.js +20 -0
- package/dist/vscode/vs/workbench/contrib/webviewView/browser/webviewViewPane.js +231 -0
- package/dist/vscode/vs/workbench/contrib/webviewView/browser/webviewViewService.js +3 -0
- package/dist/vscode/vs/workbench/services/actions/common/menusExtensionPoint.js +179 -1
- package/dist/vscode/vs/workbench/services/activity/browser/activityService.js +94 -0
- package/dist/vscode/vs/workbench/services/activity/common/activity.js +15 -1
- package/dist/vscode/vs/workbench/services/authentication/browser/authenticationService.js +35 -0
- package/dist/vscode/vs/workbench/services/authentication/common/authentication.js +3 -0
- package/dist/vscode/vs/workbench/services/configuration/browser/configurationService.js +1 -1
- package/dist/vscode/vs/workbench/services/configurationResolver/browser/baseConfigurationResolverService.js +1 -1
- package/dist/vscode/vs/workbench/services/configurationResolver/common/variableResolver.js +14 -14
- package/dist/vscode/vs/workbench/services/extensions/common/extensionDescriptionRegistry.js +13 -13
- package/dist/vscode/vs/workbench/services/extensions/common/extensionStorageMigration.js +56 -0
- package/dist/vscode/vs/workbench/services/extensions/common/extensionsRegistry.js +3 -3
- package/dist/vscode/vs/workbench/services/hover/browser/hover.js +3 -0
- package/dist/vscode/vs/workbench/services/hover/browser/hoverService.js +149 -0
- package/dist/vscode/vs/workbench/services/hover/browser/hoverWidget.js +514 -0
- package/dist/vscode/vs/workbench/services/keybinding/browser/keybindingService.js +3 -3
- package/dist/vscode/vs/workbench/services/keybinding/browser/unboundCommands.js +1 -1
- package/dist/vscode/vs/workbench/services/languageDetection/common/languageDetectionWorkerService.js +1 -2
- package/dist/vscode/vs/workbench/services/output/common/output.js +1 -1
- package/dist/vscode/vs/workbench/services/preferences/common/preferencesModels.js +1 -1
- package/dist/vscode/vs/workbench/services/remote/common/remoteExplorerService.js +764 -0
- package/dist/vscode/vs/workbench/services/search/common/ignoreFile.js +102 -0
- package/dist/vscode/vs/workbench/services/search/common/queryBuilder.js +7 -7
- package/dist/vscode/vs/workbench/services/search/common/search.js +2 -2
- package/dist/vscode/vs/workbench/services/search/common/searchService.js +7 -7
- package/dist/vscode/vs/workbench/services/textMate/browser/textMateTokenizationFeatureImpl.js +2 -2
- package/dist/vscode/vs/workbench/services/textMate/browser/workerHost/textMateWorkerHost.js +1 -1
- package/dist/vscode/vs/workbench/services/textMate/common/TMGrammarFactory.js +1 -1
- package/dist/vscode/vs/workbench/services/textfile/common/textFileEditorModelManager.js +4 -4
- package/dist/vscode/vs/workbench/services/textmodelResolver/common/textModelResolverService.js +3 -3
- package/dist/vscode/vs/workbench/services/themes/browser/fileIconThemeData.js +2 -2
- package/dist/vscode/vs/workbench/services/themes/browser/productIconThemeData.js +2 -2
- package/dist/vscode/vs/workbench/services/themes/browser/workbenchThemeService.js +1 -1
- package/dist/vscode/vs/workbench/services/views/browser/treeViewsService.js +3 -0
- package/dist/vscode/vs/workbench/services/views/browser/viewDescriptorService.js +688 -0
- package/dist/vscode/vs/workbench/services/views/common/treeViewsService.js +20 -0
- package/dist/vscode/vs/workbench/services/views/common/viewContainerModel.js +613 -0
- package/dist/vscode/vs/workbench/services/workingCopy/common/workingCopyBackupService.js +11 -7
- package/dist/vscode/vs/workbench/services/workingCopy/common/workingCopyService.js +1 -1
- package/dist/vscode-default-extensions/bat/language-configuration.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/bat/snippets/batchfile.code-snippets.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/bat/syntaxes/batchfile.tmLanguage.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/clojure/language-configuration.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/clojure/syntaxes/clojure.tmLanguage.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/coffeescript/language-configuration.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/coffeescript/snippets/coffeescript.code-snippets.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/coffeescript/syntaxes/coffeescript.tmLanguage.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/cpp/language-configuration.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/cpp/snippets/c.code-snippets.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/cpp/snippets/cpp.code-snippets.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/cpp/syntaxes/c.tmLanguage.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/cpp/syntaxes/cpp.embedded.macro.tmLanguage.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/cpp/syntaxes/cpp.tmLanguage.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/cpp/syntaxes/cuda-cpp.tmLanguage.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/cpp/syntaxes/{platform.tmLanguage.json.js → platform.tmLanguage.json.extensionResource.js} +2 -2
- package/dist/vscode-default-extensions/csharp/language-configuration.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/csharp/snippets/csharp.code-snippets.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/csharp/syntaxes/csharp.tmLanguage.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/css/language-configuration.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/css/syntaxes/css.tmLanguage.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/dart/language-configuration.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/dart/syntaxes/dart.tmLanguage.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/diff/language-configuration.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/diff/syntaxes/diff.tmLanguage.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/docker/language-configuration.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/docker/syntaxes/docker.tmLanguage.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/fsharp/language-configuration.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/fsharp/snippets/fsharp.code-snippets.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/fsharp/syntaxes/fsharp.tmLanguage.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/go/language-configuration.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/go/syntaxes/go.tmLanguage.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/groovy/language-configuration.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/groovy/snippets/groovy.code-snippets.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/groovy/syntaxes/groovy.tmLanguage.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/handlebars/language-configuration.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/handlebars/syntaxes/Handlebars.tmLanguage.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/hlsl/language-configuration.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/hlsl/syntaxes/hlsl.tmLanguage.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/html/language-configuration.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/html/snippets/html.code-snippets.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/html/syntaxes/html-derivative.tmLanguage.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/html/syntaxes/html.tmLanguage.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/ini/ini.language-configuration.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/ini/properties.language-configuration.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/ini/syntaxes/ini.tmLanguage.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/java/language-configuration.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/java/snippets/java.code-snippets.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/java/syntaxes/java.tmLanguage.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/javascript/javascript-language-configuration.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/javascript/snippets/javascript.code-snippets.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/javascript/syntaxes/JavaScript.tmLanguage.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/javascript/syntaxes/JavaScriptReact.tmLanguage.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/javascript/syntaxes/Regular Expressions (JavaScript).tmLanguage.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/javascript/tags-language-configuration.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/json/language-configuration.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/json/syntaxes/JSON.tmLanguage.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/json/syntaxes/JSONC.tmLanguage.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/julia/language-configuration.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/julia/syntaxes/julia.tmLanguage.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/latex/latex-cpp-embedded-language-configuration.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/latex/latex-language-configuration.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/latex/markdown-latex-combined-language-configuration.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/latex/syntaxes/Bibtex.tmLanguage.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/latex/syntaxes/LaTeX.tmLanguage.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/latex/syntaxes/TeX.tmLanguage.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/latex/syntaxes/cpp-grammar-bailout.tmLanguage.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/latex/syntaxes/markdown-latex-combined.tmLanguage.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/less/language-configuration.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/less/syntaxes/less.tmLanguage.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/log/syntaxes/log.tmLanguage.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/lua/language-configuration.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/lua/syntaxes/lua.tmLanguage.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/make/language-configuration.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/make/syntaxes/make.tmLanguage.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/markdown-basics/language-configuration.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/markdown-basics/snippets/markdown.code-snippets.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/markdown-basics/syntaxes/markdown.tmLanguage.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/objective-c/language-configuration.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/objective-c/syntaxes/objective-c.tmLanguage.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/objective-c/syntaxes/objective-c__.tmLanguage.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/perl/perl.language-configuration.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/perl/perl6.language-configuration.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/perl/syntaxes/perl.tmLanguage.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/perl/syntaxes/perl6.tmLanguage.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/php/language-configuration.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/php/snippets/php.code-snippets.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/php/syntaxes/html.tmLanguage.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/php/syntaxes/php.tmLanguage.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/powershell/language-configuration.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/powershell/syntaxes/powershell.tmLanguage.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/pug/language-configuration.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/pug/syntaxes/pug.tmLanguage.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/python/language-configuration.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/python/syntaxes/MagicPython.tmLanguage.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/python/syntaxes/MagicRegExp.tmLanguage.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/r/language-configuration.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/r/syntaxes/r.tmLanguage.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/razor/language-configuration.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/razor/syntaxes/cshtml.tmLanguage.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/references-view/dist/extension.js.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/references-view/package.json.js +2 -0
- package/dist/vscode-default-extensions/ruby/language-configuration.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/ruby/syntaxes/ruby.tmLanguage.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/rust/language-configuration.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/rust/syntaxes/rust.tmLanguage.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/scss/language-configuration.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/scss/syntaxes/sassdoc.tmLanguage.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/scss/syntaxes/scss.tmLanguage.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/shaderlab/language-configuration.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/shaderlab/syntaxes/shaderlab.tmLanguage.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/shellscript/language-configuration.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/shellscript/syntaxes/shell-unix-bash.tmLanguage.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/sql/language-configuration.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/sql/syntaxes/sql.tmLanguage.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/swift/language-configuration.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/swift/snippets/swift.code-snippets.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/swift/syntaxes/swift.tmLanguage.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/theme-abyss/themes/abyss-color-theme.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/theme-defaults/fileicons/images/document-dark.svg.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/theme-defaults/fileicons/images/document-light.svg.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/theme-defaults/fileicons/images/folder-dark.svg.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/theme-defaults/fileicons/images/folder-light.svg.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/theme-defaults/fileicons/images/folder-open-dark.svg.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/theme-defaults/fileicons/images/folder-open-light.svg.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/theme-defaults/fileicons/images/root-folder-dark.svg.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/theme-defaults/fileicons/images/root-folder-light.svg.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/theme-defaults/fileicons/images/root-folder-open-dark.svg.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/theme-defaults/fileicons/images/root-folder-open-light.svg.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/theme-defaults/fileicons/vs_minimal-icon-theme.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/theme-defaults/themes/dark_plus.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/theme-defaults/themes/dark_plus_experimental.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/theme-defaults/themes/dark_vs.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/theme-defaults/themes/hc_black.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/theme-defaults/themes/hc_light.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/theme-defaults/themes/light_plus.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/theme-defaults/themes/light_plus_experimental.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/theme-defaults/themes/light_vs.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/theme-kimbie-dark/themes/kimbie-dark-color-theme.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/theme-monokai/themes/monokai-color-theme.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/theme-monokai-dimmed/themes/dimmed-monokai-color-theme.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/theme-quietlight/themes/quietlight-color-theme.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/theme-red/themes/Red-color-theme.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/theme-seti/icons/seti.woff.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/theme-seti/icons/vs-seti-icon-theme.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/theme-solarized-dark/themes/solarized-dark-color-theme.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/theme-solarized-light/themes/solarized-light-color-theme.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/theme-tomorrow-night-blue/themes/tomorrow-night-blue-color-theme.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/typescript-basics/language-configuration.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/typescript-basics/snippets/typescript.code-snippets.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/typescript-basics/syntaxes/TypeScript.tmLanguage.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/typescript-basics/syntaxes/TypeScriptReact.tmLanguage.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/typescript-basics/syntaxes/jsdoc.js.injection.tmLanguage.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/typescript-basics/syntaxes/jsdoc.ts.injection.tmLanguage.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/vb/language-configuration.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/vb/snippets/vb.code-snippets.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/vb/syntaxes/asp-vb-net.tmlanguage.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/xml/syntaxes/xml.tmLanguage.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/xml/syntaxes/xsl.tmLanguage.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/xml/xml.language-configuration.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/xml/xsl.language-configuration.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/yaml/language-configuration.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/yaml/syntaxes/yaml.tmLanguage.json.extensionResource.js +2 -0
- package/dist/vscode-services/extHost.js +28 -5
- package/dist/vscode-services/l10n.js +26 -0
- package/dist/vscode-services/missing-services.js +60 -9
- package/dist/vscode-services/window.js +23 -5
- package/monaco-editor-treemending.patch +818 -818
- package/package.json +12 -1
- package/dist/assets/editorstatus.css +0 -51
- package/dist/default-extensions/typescript-language-features.js +0 -6
- package/dist/extension-tools-b68a64de.js +0 -1024
- package/dist/vscode/vs/workbench/browser/parts/editor/editorPane.js +0 -242
- package/dist/vscode/vs/workbench/browser/parts/editor/editorStatus.js +0 -460
- package/dist/vscode/vs/workbench/browser/parts/editor/editorWithViewState.js +0 -139
- package/dist/vscode/vs/workbench/browser/parts/editor/sideBySideEditor.js +0 -387
- package/dist/vscode/vs/workbench/browser/parts/editor/textDiffEditor.js +0 -289
- package/dist/vscode-default-extensions/bat/language-configuration.json.js +0 -2
- package/dist/vscode-default-extensions/bat/snippets/batchfile.code-snippets.js +0 -2
- package/dist/vscode-default-extensions/bat/syntaxes/batchfile.tmLanguage.json.js +0 -2
- package/dist/vscode-default-extensions/clojure/language-configuration.json.js +0 -2
- package/dist/vscode-default-extensions/clojure/syntaxes/clojure.tmLanguage.json.js +0 -2
- package/dist/vscode-default-extensions/coffeescript/language-configuration.json.js +0 -2
- package/dist/vscode-default-extensions/coffeescript/snippets/coffeescript.code-snippets.js +0 -2
- package/dist/vscode-default-extensions/coffeescript/syntaxes/coffeescript.tmLanguage.json.js +0 -2
- package/dist/vscode-default-extensions/cpp/language-configuration.json.js +0 -2
- package/dist/vscode-default-extensions/cpp/snippets/c.code-snippets.js +0 -2
- package/dist/vscode-default-extensions/cpp/snippets/cpp.code-snippets.js +0 -2
- package/dist/vscode-default-extensions/cpp/syntaxes/c.tmLanguage.json.js +0 -2
- package/dist/vscode-default-extensions/cpp/syntaxes/cpp.embedded.macro.tmLanguage.json.js +0 -2
- package/dist/vscode-default-extensions/cpp/syntaxes/cpp.tmLanguage.json.js +0 -2
- package/dist/vscode-default-extensions/cpp/syntaxes/cuda-cpp.tmLanguage.json.js +0 -2
- package/dist/vscode-default-extensions/csharp/language-configuration.json.js +0 -2
- package/dist/vscode-default-extensions/csharp/snippets/csharp.code-snippets.js +0 -2
- package/dist/vscode-default-extensions/csharp/syntaxes/csharp.tmLanguage.json.js +0 -2
- package/dist/vscode-default-extensions/css/language-configuration.json.js +0 -2
- package/dist/vscode-default-extensions/css/syntaxes/css.tmLanguage.json.js +0 -2
- package/dist/vscode-default-extensions/dart/language-configuration.json.js +0 -2
- package/dist/vscode-default-extensions/dart/syntaxes/dart.tmLanguage.json.js +0 -2
- package/dist/vscode-default-extensions/diff/language-configuration.json.js +0 -2
- package/dist/vscode-default-extensions/diff/syntaxes/diff.tmLanguage.json.js +0 -2
- package/dist/vscode-default-extensions/docker/language-configuration.json.js +0 -2
- package/dist/vscode-default-extensions/docker/syntaxes/docker.tmLanguage.json.js +0 -2
- package/dist/vscode-default-extensions/fsharp/language-configuration.json.js +0 -2
- package/dist/vscode-default-extensions/fsharp/snippets/fsharp.code-snippets.js +0 -2
- package/dist/vscode-default-extensions/fsharp/syntaxes/fsharp.tmLanguage.json.js +0 -2
- package/dist/vscode-default-extensions/go/language-configuration.json.js +0 -2
- package/dist/vscode-default-extensions/go/syntaxes/go.tmLanguage.json.js +0 -2
- package/dist/vscode-default-extensions/groovy/language-configuration.json.js +0 -2
- package/dist/vscode-default-extensions/groovy/snippets/groovy.code-snippets.js +0 -2
- package/dist/vscode-default-extensions/groovy/syntaxes/groovy.tmLanguage.json.js +0 -2
- package/dist/vscode-default-extensions/handlebars/language-configuration.json.js +0 -2
- package/dist/vscode-default-extensions/handlebars/syntaxes/Handlebars.tmLanguage.json.js +0 -2
- package/dist/vscode-default-extensions/hlsl/language-configuration.json.js +0 -2
- package/dist/vscode-default-extensions/hlsl/syntaxes/hlsl.tmLanguage.json.js +0 -2
- package/dist/vscode-default-extensions/html/language-configuration.json.js +0 -2
- package/dist/vscode-default-extensions/html/snippets/html.code-snippets.js +0 -2
- package/dist/vscode-default-extensions/html/syntaxes/html-derivative.tmLanguage.json.js +0 -2
- package/dist/vscode-default-extensions/html/syntaxes/html.tmLanguage.json.js +0 -2
- package/dist/vscode-default-extensions/ini/ini.language-configuration.json.js +0 -2
- package/dist/vscode-default-extensions/ini/properties.language-configuration.json.js +0 -2
- package/dist/vscode-default-extensions/ini/syntaxes/ini.tmLanguage.json.js +0 -2
- package/dist/vscode-default-extensions/java/language-configuration.json.js +0 -2
- package/dist/vscode-default-extensions/java/snippets/java.code-snippets.js +0 -2
- package/dist/vscode-default-extensions/java/syntaxes/java.tmLanguage.json.js +0 -2
- package/dist/vscode-default-extensions/javascript/javascript-language-configuration.json.js +0 -2
- package/dist/vscode-default-extensions/javascript/snippets/javascript.code-snippets.js +0 -2
- package/dist/vscode-default-extensions/javascript/syntaxes/JavaScript.tmLanguage.json.js +0 -2
- package/dist/vscode-default-extensions/javascript/syntaxes/JavaScriptReact.tmLanguage.json.js +0 -2
- package/dist/vscode-default-extensions/javascript/syntaxes/Regular Expressions (JavaScript).tmLanguage.js +0 -2
- package/dist/vscode-default-extensions/javascript/tags-language-configuration.json.js +0 -2
- package/dist/vscode-default-extensions/json/language-configuration.json.js +0 -2
- package/dist/vscode-default-extensions/json/syntaxes/JSON.tmLanguage.json.js +0 -2
- package/dist/vscode-default-extensions/json/syntaxes/JSONC.tmLanguage.json.js +0 -2
- package/dist/vscode-default-extensions/julia/language-configuration.json.js +0 -2
- package/dist/vscode-default-extensions/julia/syntaxes/julia.tmLanguage.json.js +0 -2
- package/dist/vscode-default-extensions/latex/latex-cpp-embedded-language-configuration.json.js +0 -2
- package/dist/vscode-default-extensions/latex/latex-language-configuration.json.js +0 -2
- package/dist/vscode-default-extensions/latex/markdown-latex-combined-language-configuration.json.js +0 -2
- package/dist/vscode-default-extensions/latex/syntaxes/Bibtex.tmLanguage.json.js +0 -2
- package/dist/vscode-default-extensions/latex/syntaxes/LaTeX.tmLanguage.json.js +0 -2
- package/dist/vscode-default-extensions/latex/syntaxes/TeX.tmLanguage.json.js +0 -2
- package/dist/vscode-default-extensions/latex/syntaxes/cpp-grammar-bailout.tmLanguage.json.js +0 -2
- package/dist/vscode-default-extensions/latex/syntaxes/markdown-latex-combined.tmLanguage.json.js +0 -2
- package/dist/vscode-default-extensions/less/language-configuration.json.js +0 -2
- package/dist/vscode-default-extensions/less/syntaxes/less.tmLanguage.json.js +0 -2
- package/dist/vscode-default-extensions/log/syntaxes/log.tmLanguage.json.js +0 -2
- package/dist/vscode-default-extensions/lua/language-configuration.json.js +0 -2
- package/dist/vscode-default-extensions/lua/syntaxes/lua.tmLanguage.json.js +0 -2
- package/dist/vscode-default-extensions/make/language-configuration.json.js +0 -2
- package/dist/vscode-default-extensions/make/syntaxes/make.tmLanguage.json.js +0 -2
- package/dist/vscode-default-extensions/markdown-basics/language-configuration.json.js +0 -2
- package/dist/vscode-default-extensions/markdown-basics/snippets/markdown.code-snippets.js +0 -2
- package/dist/vscode-default-extensions/markdown-basics/syntaxes/markdown.tmLanguage.json.js +0 -2
- package/dist/vscode-default-extensions/objective-c/language-configuration.json.js +0 -2
- package/dist/vscode-default-extensions/objective-c/syntaxes/objective-c.tmLanguage.json.js +0 -2
- package/dist/vscode-default-extensions/objective-c/syntaxes/objective-c__.tmLanguage.json.js +0 -2
- package/dist/vscode-default-extensions/perl/perl.language-configuration.json.js +0 -2
- package/dist/vscode-default-extensions/perl/perl6.language-configuration.json.js +0 -2
- package/dist/vscode-default-extensions/perl/syntaxes/perl.tmLanguage.json.js +0 -2
- package/dist/vscode-default-extensions/perl/syntaxes/perl6.tmLanguage.json.js +0 -2
- package/dist/vscode-default-extensions/php/language-configuration.json.js +0 -2
- package/dist/vscode-default-extensions/php/snippets/php.code-snippets.js +0 -2
- package/dist/vscode-default-extensions/php/syntaxes/html.tmLanguage.json.js +0 -2
- package/dist/vscode-default-extensions/php/syntaxes/php.tmLanguage.json.js +0 -2
- package/dist/vscode-default-extensions/powershell/language-configuration.json.js +0 -2
- package/dist/vscode-default-extensions/powershell/syntaxes/powershell.tmLanguage.json.js +0 -2
- package/dist/vscode-default-extensions/pug/language-configuration.json.js +0 -2
- package/dist/vscode-default-extensions/pug/syntaxes/pug.tmLanguage.json.js +0 -2
- package/dist/vscode-default-extensions/python/language-configuration.json.js +0 -2
- package/dist/vscode-default-extensions/python/syntaxes/MagicPython.tmLanguage.json.js +0 -2
- package/dist/vscode-default-extensions/python/syntaxes/MagicRegExp.tmLanguage.json.js +0 -2
- package/dist/vscode-default-extensions/r/language-configuration.json.js +0 -2
- package/dist/vscode-default-extensions/r/syntaxes/r.tmLanguage.json.js +0 -2
- package/dist/vscode-default-extensions/razor/language-configuration.json.js +0 -2
- package/dist/vscode-default-extensions/razor/syntaxes/cshtml.tmLanguage.json.js +0 -2
- package/dist/vscode-default-extensions/ruby/language-configuration.json.js +0 -2
- package/dist/vscode-default-extensions/ruby/syntaxes/ruby.tmLanguage.json.js +0 -2
- package/dist/vscode-default-extensions/rust/language-configuration.json.js +0 -2
- package/dist/vscode-default-extensions/rust/syntaxes/rust.tmLanguage.json.js +0 -2
- package/dist/vscode-default-extensions/scss/language-configuration.json.js +0 -2
- package/dist/vscode-default-extensions/scss/syntaxes/sassdoc.tmLanguage.json.js +0 -2
- package/dist/vscode-default-extensions/scss/syntaxes/scss.tmLanguage.json.js +0 -2
- package/dist/vscode-default-extensions/shaderlab/language-configuration.json.js +0 -2
- package/dist/vscode-default-extensions/shaderlab/syntaxes/shaderlab.tmLanguage.json.js +0 -2
- package/dist/vscode-default-extensions/shellscript/language-configuration.json.js +0 -2
- package/dist/vscode-default-extensions/shellscript/syntaxes/shell-unix-bash.tmLanguage.json.js +0 -2
- package/dist/vscode-default-extensions/sql/language-configuration.json.js +0 -2
- package/dist/vscode-default-extensions/sql/syntaxes/sql.tmLanguage.json.js +0 -2
- package/dist/vscode-default-extensions/swift/language-configuration.json.js +0 -2
- package/dist/vscode-default-extensions/swift/snippets/swift.code-snippets.js +0 -2
- package/dist/vscode-default-extensions/swift/syntaxes/swift.tmLanguage.json.js +0 -2
- package/dist/vscode-default-extensions/theme-abyss/themes/abyss-color-theme.json.js +0 -2
- package/dist/vscode-default-extensions/theme-defaults/fileicons/vs_minimal-icon-theme.json.js +0 -2
- package/dist/vscode-default-extensions/theme-defaults/themes/dark_plus.json.js +0 -2
- package/dist/vscode-default-extensions/theme-defaults/themes/dark_plus_experimental.json.js +0 -2
- package/dist/vscode-default-extensions/theme-defaults/themes/dark_vs.json.js +0 -2
- package/dist/vscode-default-extensions/theme-defaults/themes/hc_black.json.js +0 -2
- package/dist/vscode-default-extensions/theme-defaults/themes/hc_light.json.js +0 -2
- package/dist/vscode-default-extensions/theme-defaults/themes/light_plus.json.js +0 -2
- package/dist/vscode-default-extensions/theme-defaults/themes/light_plus_experimental.json.js +0 -2
- package/dist/vscode-default-extensions/theme-defaults/themes/light_vs.json.js +0 -2
- package/dist/vscode-default-extensions/theme-kimbie-dark/themes/kimbie-dark-color-theme.json.js +0 -2
- package/dist/vscode-default-extensions/theme-monokai/themes/monokai-color-theme.json.js +0 -2
- package/dist/vscode-default-extensions/theme-monokai-dimmed/themes/dimmed-monokai-color-theme.json.js +0 -2
- package/dist/vscode-default-extensions/theme-quietlight/themes/quietlight-color-theme.json.js +0 -2
- package/dist/vscode-default-extensions/theme-red/themes/Red-color-theme.json.js +0 -2
- package/dist/vscode-default-extensions/theme-seti/icons/vs-seti-icon-theme.json.js +0 -2
- package/dist/vscode-default-extensions/theme-solarized-dark/themes/solarized-dark-color-theme.json.js +0 -2
- package/dist/vscode-default-extensions/theme-solarized-light/themes/solarized-light-color-theme.json.js +0 -2
- package/dist/vscode-default-extensions/theme-tomorrow-night-blue/themes/tomorrow-night-blue-color-theme.json.js +0 -2
- package/dist/vscode-default-extensions/typescript-basics/language-configuration.json.js +0 -2
- package/dist/vscode-default-extensions/typescript-basics/snippets/typescript.code-snippets.js +0 -2
- package/dist/vscode-default-extensions/typescript-basics/syntaxes/TypeScript.tmLanguage.json.js +0 -2
- package/dist/vscode-default-extensions/typescript-basics/syntaxes/TypeScriptReact.tmLanguage.json.js +0 -2
- package/dist/vscode-default-extensions/typescript-basics/syntaxes/jsdoc.js.injection.tmLanguage.json.js +0 -2
- package/dist/vscode-default-extensions/typescript-basics/syntaxes/jsdoc.ts.injection.tmLanguage.json.js +0 -2
- package/dist/vscode-default-extensions/typescript-language-features/package.json.js +0 -2
- package/dist/vscode-default-extensions/vb/language-configuration.json.js +0 -2
- package/dist/vscode-default-extensions/vb/snippets/vb.code-snippets.js +0 -2
- package/dist/vscode-default-extensions/vb/syntaxes/asp-vb-net.tmlanguage.json.js +0 -2
- package/dist/vscode-default-extensions/xml/syntaxes/xml.tmLanguage.json.js +0 -2
- package/dist/vscode-default-extensions/xml/syntaxes/xsl.tmLanguage.json.js +0 -2
- package/dist/vscode-default-extensions/xml/xml.language-configuration.json.js +0 -2
- package/dist/vscode-default-extensions/xml/xsl.language-configuration.json.js +0 -2
- package/dist/vscode-default-extensions/yaml/language-configuration.json.js +0 -2
- package/dist/vscode-default-extensions/yaml/syntaxes/yaml.tmLanguage.json.js +0 -2
|
@@ -2,14 +2,12 @@ import { __decorate, __param } from '../../../../../../node_modules/tslib/tslib.
|
|
|
2
2
|
import { localize } from 'monaco-editor/esm/vs/nls.js';
|
|
3
3
|
import { Action } from 'monaco-editor/esm/vs/base/common/actions.js';
|
|
4
4
|
import { firstOrDefault } from 'monaco-editor/esm/vs/base/common/arrays.js';
|
|
5
|
-
import { EditorResourceAccessor, DEFAULT_EDITOR_ASSOCIATION } from '../../../common/editor.js';
|
|
6
5
|
import { SideBySideEditorInput } from '../../../common/editor/sideBySideEditorInput.js';
|
|
7
|
-
import { IWorkbenchLayoutService } from '../../../services/layout/browser/layoutService.js';
|
|
8
6
|
import { IHistoryService } from '../../../services/history/common/history.js';
|
|
9
7
|
import { IKeybindingService } from 'monaco-editor/esm/vs/platform/keybinding/common/keybinding.js';
|
|
10
8
|
import { ICommandService } from 'monaco-editor/esm/vs/platform/commands/common/commands.js';
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
9
|
+
import { SPLIT_EDITOR_UP, SPLIT_EDITOR_DOWN, CLOSE_EDITOR_COMMAND_ID, UNPIN_EDITOR_COMMAND_ID, COPY_ACTIVE_EDITOR_COMMAND_ID, LAYOUT_EDITOR_GROUPS_COMMAND_ID, splitEditor } from './editorCommands.js';
|
|
10
|
+
import { IEditorGroupsService, preferredSideBySideGroupDirection } from '../../../services/editor/common/editorGroupsService.js';
|
|
13
11
|
import { IEditorService } from '../../../services/editor/common/editorService.js';
|
|
14
12
|
import { IConfigurationService } from 'monaco-editor/esm/vs/platform/configuration/common/configuration.js';
|
|
15
13
|
import { IWorkspacesService } from '../../../../platform/workspaces/common/workspaces.js';
|
|
@@ -19,14 +17,11 @@ import { ActiveGroupEditorsByMostRecentlyUsedQuickAccess, AllEditorsByAppearance
|
|
|
19
17
|
import { Codicon } from 'monaco-editor/esm/vs/base/common/codicons.js';
|
|
20
18
|
import { ThemeIcon } from 'monaco-editor/esm/vs/base/common/themables.js';
|
|
21
19
|
import { IFilesConfigurationService } from '../../../services/filesConfiguration/common/filesConfigurationService.js';
|
|
22
|
-
import { IEditorResolverService } from '../../../services/editor/common/editorResolverService.js';
|
|
23
20
|
import { isNative, isWindows, isLinux } from 'monaco-editor/esm/vs/base/common/platform.js';
|
|
24
21
|
import { Action2, MenuId } from 'monaco-editor/esm/vs/platform/actions/common/actions.js';
|
|
25
22
|
import { ContextKeyExpr } from 'monaco-editor/esm/vs/platform/contextkey/common/contextkey.js';
|
|
26
23
|
import { KeyChord } from 'monaco-editor/esm/vs/base/common/keyCodes.js';
|
|
27
|
-
import { ILogService } from 'monaco-editor/esm/vs/platform/log/common/log.js';
|
|
28
24
|
import { Categories } from 'monaco-editor/esm/vs/platform/action/common/actionCommonCategories.js';
|
|
29
|
-
import { ActiveEditorGroupEmptyContext, ActiveEditorAvailableEditorIdsContext } from '../../../common/contextkeys.js';
|
|
30
25
|
class ExecuteCommandAction extends Action2 {
|
|
31
26
|
constructor(desc, commandId, commandArgs) {
|
|
32
27
|
super(desc);
|
|
@@ -63,52 +58,6 @@ class SplitEditorAction extends AbstractSplitEditorAction {
|
|
|
63
58
|
}
|
|
64
59
|
}
|
|
65
60
|
SplitEditorAction.ID = 'workbench.action.splitEditor';
|
|
66
|
-
class SplitEditorOrthogonalAction extends AbstractSplitEditorAction {
|
|
67
|
-
constructor() {
|
|
68
|
-
super({
|
|
69
|
-
id: 'workbench.action.splitEditorOrthogonal',
|
|
70
|
-
title: { value: ( localize('splitEditorOrthogonal', "Split Editor Orthogonal")), original: 'Split Editor Orthogonal' },
|
|
71
|
-
f1: true,
|
|
72
|
-
keybinding: {
|
|
73
|
-
weight: 200 ,
|
|
74
|
-
primary: KeyChord(2048 | 41 , 2048 | 88 )
|
|
75
|
-
},
|
|
76
|
-
category: Categories.View
|
|
77
|
-
});
|
|
78
|
-
}
|
|
79
|
-
getDirection(configurationService) {
|
|
80
|
-
const direction = preferredSideBySideGroupDirection(configurationService);
|
|
81
|
-
return direction === 3 ? 1 : 3 ;
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
class SplitEditorLeftAction extends ExecuteCommandAction {
|
|
85
|
-
constructor() {
|
|
86
|
-
super({
|
|
87
|
-
id: SPLIT_EDITOR_LEFT,
|
|
88
|
-
title: { value: ( localize('splitEditorGroupLeft', "Split Editor Left")), original: 'Split Editor Left' },
|
|
89
|
-
f1: true,
|
|
90
|
-
keybinding: {
|
|
91
|
-
weight: 200 ,
|
|
92
|
-
primary: KeyChord(2048 | 41 , 2048 | 88 )
|
|
93
|
-
},
|
|
94
|
-
category: Categories.View
|
|
95
|
-
}, SPLIT_EDITOR_LEFT);
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
class SplitEditorRightAction extends ExecuteCommandAction {
|
|
99
|
-
constructor() {
|
|
100
|
-
super({
|
|
101
|
-
id: SPLIT_EDITOR_RIGHT,
|
|
102
|
-
title: { value: ( localize('splitEditorGroupRight', "Split Editor Right")), original: 'Split Editor Right' },
|
|
103
|
-
f1: true,
|
|
104
|
-
keybinding: {
|
|
105
|
-
weight: 200 ,
|
|
106
|
-
primary: KeyChord(2048 | 41 , 2048 | 88 )
|
|
107
|
-
},
|
|
108
|
-
category: Categories.View
|
|
109
|
-
}, SPLIT_EDITOR_RIGHT);
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
61
|
class SplitEditorUpAction extends ExecuteCommandAction {
|
|
113
62
|
constructor() {
|
|
114
63
|
super({
|
|
@@ -139,190 +88,6 @@ class SplitEditorDownAction extends ExecuteCommandAction {
|
|
|
139
88
|
}
|
|
140
89
|
}
|
|
141
90
|
SplitEditorDownAction.LABEL = ( localize('splitEditorGroupDown', "Split Editor Down"));
|
|
142
|
-
class JoinTwoGroupsAction extends Action2 {
|
|
143
|
-
constructor() {
|
|
144
|
-
super({
|
|
145
|
-
id: 'workbench.action.joinTwoGroups',
|
|
146
|
-
title: { value: ( localize('joinTwoGroups', "Join Editor Group with Next Group")), original: 'Join Editor Group with Next Group' },
|
|
147
|
-
f1: true,
|
|
148
|
-
category: Categories.View
|
|
149
|
-
});
|
|
150
|
-
}
|
|
151
|
-
async run(accessor, context) {
|
|
152
|
-
const editorGroupService = accessor.get(IEditorGroupsService);
|
|
153
|
-
let sourceGroup;
|
|
154
|
-
if (context && typeof context.groupId === 'number') {
|
|
155
|
-
sourceGroup = editorGroupService.getGroup(context.groupId);
|
|
156
|
-
}
|
|
157
|
-
else {
|
|
158
|
-
sourceGroup = editorGroupService.activeGroup;
|
|
159
|
-
}
|
|
160
|
-
if (sourceGroup) {
|
|
161
|
-
const targetGroupDirections = [3 , 1 , 2 , 0 ];
|
|
162
|
-
for (const targetGroupDirection of targetGroupDirections) {
|
|
163
|
-
const targetGroup = editorGroupService.findGroup({ direction: targetGroupDirection }, sourceGroup);
|
|
164
|
-
if (targetGroup && sourceGroup !== targetGroup) {
|
|
165
|
-
editorGroupService.mergeGroup(sourceGroup, targetGroup);
|
|
166
|
-
break;
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
class JoinAllGroupsAction extends Action2 {
|
|
173
|
-
constructor() {
|
|
174
|
-
super({
|
|
175
|
-
id: 'workbench.action.joinAllGroups',
|
|
176
|
-
title: { value: ( localize('joinAllGroups', "Join All Editor Groups")), original: 'Join All Editor Groups' },
|
|
177
|
-
f1: true,
|
|
178
|
-
category: Categories.View
|
|
179
|
-
});
|
|
180
|
-
}
|
|
181
|
-
async run(accessor) {
|
|
182
|
-
const editorGroupService = accessor.get(IEditorGroupsService);
|
|
183
|
-
editorGroupService.mergeAllGroups();
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
class NavigateBetweenGroupsAction extends Action2 {
|
|
187
|
-
constructor() {
|
|
188
|
-
super({
|
|
189
|
-
id: 'workbench.action.navigateEditorGroups',
|
|
190
|
-
title: { value: ( localize('navigateEditorGroups', "Navigate Between Editor Groups")), original: 'Navigate Between Editor Groups' },
|
|
191
|
-
f1: true,
|
|
192
|
-
category: Categories.View
|
|
193
|
-
});
|
|
194
|
-
}
|
|
195
|
-
async run(accessor) {
|
|
196
|
-
const editorGroupService = accessor.get(IEditorGroupsService);
|
|
197
|
-
const nextGroup = editorGroupService.findGroup({ location: 2 }, editorGroupService.activeGroup, true);
|
|
198
|
-
nextGroup?.focus();
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
class FocusActiveGroupAction extends Action2 {
|
|
202
|
-
constructor() {
|
|
203
|
-
super({
|
|
204
|
-
id: 'workbench.action.focusActiveEditorGroup',
|
|
205
|
-
title: { value: ( localize('focusActiveEditorGroup', "Focus Active Editor Group")), original: 'Focus Active Editor Group' },
|
|
206
|
-
f1: true,
|
|
207
|
-
category: Categories.View
|
|
208
|
-
});
|
|
209
|
-
}
|
|
210
|
-
async run(accessor) {
|
|
211
|
-
const editorGroupService = accessor.get(IEditorGroupsService);
|
|
212
|
-
editorGroupService.activeGroup.focus();
|
|
213
|
-
}
|
|
214
|
-
}
|
|
215
|
-
class AbstractFocusGroupAction extends Action2 {
|
|
216
|
-
constructor(desc, scope) {
|
|
217
|
-
super(desc);
|
|
218
|
-
this.scope = scope;
|
|
219
|
-
}
|
|
220
|
-
async run(accessor) {
|
|
221
|
-
const editorGroupService = accessor.get(IEditorGroupsService);
|
|
222
|
-
const group = editorGroupService.findGroup(this.scope, editorGroupService.activeGroup, true);
|
|
223
|
-
group?.focus();
|
|
224
|
-
}
|
|
225
|
-
}
|
|
226
|
-
class FocusFirstGroupAction extends AbstractFocusGroupAction {
|
|
227
|
-
constructor() {
|
|
228
|
-
super({
|
|
229
|
-
id: 'workbench.action.focusFirstEditorGroup',
|
|
230
|
-
title: { value: ( localize('focusFirstEditorGroup', "Focus First Editor Group")), original: 'Focus First Editor Group' },
|
|
231
|
-
f1: true,
|
|
232
|
-
keybinding: {
|
|
233
|
-
weight: 200 ,
|
|
234
|
-
primary: 2048 | 22
|
|
235
|
-
},
|
|
236
|
-
category: Categories.View
|
|
237
|
-
}, { location: 0 });
|
|
238
|
-
}
|
|
239
|
-
}
|
|
240
|
-
class FocusLastGroupAction extends AbstractFocusGroupAction {
|
|
241
|
-
constructor() {
|
|
242
|
-
super({
|
|
243
|
-
id: 'workbench.action.focusLastEditorGroup',
|
|
244
|
-
title: { value: ( localize('focusLastEditorGroup', "Focus Last Editor Group")), original: 'Focus Last Editor Group' },
|
|
245
|
-
f1: true,
|
|
246
|
-
category: Categories.View
|
|
247
|
-
}, { location: 1 });
|
|
248
|
-
}
|
|
249
|
-
}
|
|
250
|
-
class FocusNextGroup extends AbstractFocusGroupAction {
|
|
251
|
-
constructor() {
|
|
252
|
-
super({
|
|
253
|
-
id: 'workbench.action.focusNextGroup',
|
|
254
|
-
title: { value: ( localize('focusNextGroup', "Focus Next Editor Group")), original: 'Focus Next Editor Group' },
|
|
255
|
-
f1: true,
|
|
256
|
-
category: Categories.View
|
|
257
|
-
}, { location: 2 });
|
|
258
|
-
}
|
|
259
|
-
}
|
|
260
|
-
class FocusPreviousGroup extends AbstractFocusGroupAction {
|
|
261
|
-
constructor() {
|
|
262
|
-
super({
|
|
263
|
-
id: 'workbench.action.focusPreviousGroup',
|
|
264
|
-
title: { value: ( localize('focusPreviousGroup', "Focus Previous Editor Group")), original: 'Focus Previous Editor Group' },
|
|
265
|
-
f1: true,
|
|
266
|
-
category: Categories.View
|
|
267
|
-
}, { location: 3 });
|
|
268
|
-
}
|
|
269
|
-
}
|
|
270
|
-
class FocusLeftGroup extends AbstractFocusGroupAction {
|
|
271
|
-
constructor() {
|
|
272
|
-
super({
|
|
273
|
-
id: 'workbench.action.focusLeftGroup',
|
|
274
|
-
title: { value: ( localize('focusLeftGroup', "Focus Left Editor Group")), original: 'Focus Left Editor Group' },
|
|
275
|
-
f1: true,
|
|
276
|
-
keybinding: {
|
|
277
|
-
weight: 200 ,
|
|
278
|
-
primary: KeyChord(2048 | 41 , 2048 | 15 )
|
|
279
|
-
},
|
|
280
|
-
category: Categories.View
|
|
281
|
-
}, { direction: 2 });
|
|
282
|
-
}
|
|
283
|
-
}
|
|
284
|
-
class FocusRightGroup extends AbstractFocusGroupAction {
|
|
285
|
-
constructor() {
|
|
286
|
-
super({
|
|
287
|
-
id: 'workbench.action.focusRightGroup',
|
|
288
|
-
title: { value: ( localize('focusRightGroup', "Focus Right Editor Group")), original: 'Focus Right Editor Group' },
|
|
289
|
-
f1: true,
|
|
290
|
-
keybinding: {
|
|
291
|
-
weight: 200 ,
|
|
292
|
-
primary: KeyChord(2048 | 41 , 2048 | 17 )
|
|
293
|
-
},
|
|
294
|
-
category: Categories.View
|
|
295
|
-
}, { direction: 3 });
|
|
296
|
-
}
|
|
297
|
-
}
|
|
298
|
-
class FocusAboveGroup extends AbstractFocusGroupAction {
|
|
299
|
-
constructor() {
|
|
300
|
-
super({
|
|
301
|
-
id: 'workbench.action.focusAboveGroup',
|
|
302
|
-
title: { value: ( localize('focusAboveGroup', "Focus Editor Group Above")), original: 'Focus Editor Group Above' },
|
|
303
|
-
f1: true,
|
|
304
|
-
keybinding: {
|
|
305
|
-
weight: 200 ,
|
|
306
|
-
primary: KeyChord(2048 | 41 , 2048 | 16 )
|
|
307
|
-
},
|
|
308
|
-
category: Categories.View
|
|
309
|
-
}, { direction: 0 });
|
|
310
|
-
}
|
|
311
|
-
}
|
|
312
|
-
class FocusBelowGroup extends AbstractFocusGroupAction {
|
|
313
|
-
constructor() {
|
|
314
|
-
super({
|
|
315
|
-
id: 'workbench.action.focusBelowGroup',
|
|
316
|
-
title: { value: ( localize('focusBelowGroup', "Focus Editor Group Below")), original: 'Focus Editor Group Below' },
|
|
317
|
-
f1: true,
|
|
318
|
-
keybinding: {
|
|
319
|
-
weight: 200 ,
|
|
320
|
-
primary: KeyChord(2048 | 41 , 2048 | 18 )
|
|
321
|
-
},
|
|
322
|
-
category: Categories.View
|
|
323
|
-
}, { direction: 1 });
|
|
324
|
-
}
|
|
325
|
-
}
|
|
326
91
|
let CloseEditorAction = class CloseEditorAction extends Action {
|
|
327
92
|
constructor(id, label, commandService) {
|
|
328
93
|
super(id, label, ThemeIcon.asClassName(Codicon.close));
|
|
@@ -386,56 +151,6 @@ CloseOneEditorAction.LABEL = ( localize('closeOneEditor', "Close"));
|
|
|
386
151
|
CloseOneEditorAction = ( __decorate([
|
|
387
152
|
( __param(2, IEditorGroupsService))
|
|
388
153
|
], CloseOneEditorAction));
|
|
389
|
-
class RevertAndCloseEditorAction extends Action2 {
|
|
390
|
-
constructor() {
|
|
391
|
-
super({
|
|
392
|
-
id: 'workbench.action.revertAndCloseActiveEditor',
|
|
393
|
-
title: { value: ( localize('revertAndCloseActiveEditor', "Revert and Close Editor")), original: 'Revert and Close Editor' },
|
|
394
|
-
f1: true,
|
|
395
|
-
category: Categories.View
|
|
396
|
-
});
|
|
397
|
-
}
|
|
398
|
-
async run(accessor) {
|
|
399
|
-
const editorService = accessor.get(IEditorService);
|
|
400
|
-
const logService = accessor.get(ILogService);
|
|
401
|
-
const activeEditorPane = editorService.activeEditorPane;
|
|
402
|
-
if (activeEditorPane) {
|
|
403
|
-
const editor = activeEditorPane.input;
|
|
404
|
-
const group = activeEditorPane.group;
|
|
405
|
-
try {
|
|
406
|
-
await editorService.revert({ editor, groupId: group.id });
|
|
407
|
-
}
|
|
408
|
-
catch (error) {
|
|
409
|
-
logService.error(error);
|
|
410
|
-
await editorService.revert({ editor, groupId: group.id }, { soft: true });
|
|
411
|
-
}
|
|
412
|
-
await group.closeEditor(editor);
|
|
413
|
-
}
|
|
414
|
-
}
|
|
415
|
-
}
|
|
416
|
-
class CloseLeftEditorsInGroupAction extends Action2 {
|
|
417
|
-
constructor() {
|
|
418
|
-
super({
|
|
419
|
-
id: 'workbench.action.closeEditorsToTheLeft',
|
|
420
|
-
title: { value: ( localize('closeEditorsToTheLeft', "Close Editors to the Left in Group")), original: 'Close Editors to the Left in Group' },
|
|
421
|
-
f1: true,
|
|
422
|
-
category: Categories.View
|
|
423
|
-
});
|
|
424
|
-
}
|
|
425
|
-
async run(accessor, context) {
|
|
426
|
-
const editorGroupService = accessor.get(IEditorGroupsService);
|
|
427
|
-
const { group, editor } = this.getTarget(editorGroupService, context);
|
|
428
|
-
if (group && editor) {
|
|
429
|
-
await group.closeEditors({ direction: 0 , except: editor, excludeSticky: true });
|
|
430
|
-
}
|
|
431
|
-
}
|
|
432
|
-
getTarget(editorGroupService, context) {
|
|
433
|
-
if (context) {
|
|
434
|
-
return { editor: context.editor, group: editorGroupService.getGroup(context.groupId) };
|
|
435
|
-
}
|
|
436
|
-
return { group: editorGroupService.activeGroup, editor: editorGroupService.activeGroup.activeEditor };
|
|
437
|
-
}
|
|
438
|
-
}
|
|
439
154
|
class AbstractCloseAllAction extends Action2 {
|
|
440
155
|
groupsToClose(editorGroupService) {
|
|
441
156
|
const groupsToClose = [];
|
|
@@ -534,7 +249,7 @@ class AbstractCloseAllAction extends Action2 {
|
|
|
534
249
|
try {
|
|
535
250
|
const handledGroups = ( new Set());
|
|
536
251
|
for (const { editor, groupId } of editors) {
|
|
537
|
-
if (handledGroups.has(groupId)) {
|
|
252
|
+
if (( handledGroups.has(groupId))) {
|
|
538
253
|
continue;
|
|
539
254
|
}
|
|
540
255
|
handledGroups.add(groupId);
|
|
@@ -569,937 +284,97 @@ class CloseAllEditorsAction extends AbstractCloseAllAction {
|
|
|
569
284
|
}
|
|
570
285
|
CloseAllEditorsAction.ID = 'workbench.action.closeAllEditors';
|
|
571
286
|
CloseAllEditorsAction.LABEL = { value: ( localize('closeAllEditors', "Close All Editors")), original: 'Close All Editors' };
|
|
572
|
-
class
|
|
287
|
+
class NavigateForwardAction extends Action2 {
|
|
573
288
|
constructor() {
|
|
574
289
|
super({
|
|
575
|
-
id:
|
|
576
|
-
title: { value: ( localize('
|
|
290
|
+
id: NavigateForwardAction.ID,
|
|
291
|
+
title: { value: ( localize('navigateForward', "Go Forward")), original: 'Go Forward', mnemonicTitle: ( localize({ key: 'miForward', comment: ['&& denotes a mnemonic'] }, "&&Forward")) },
|
|
577
292
|
f1: true,
|
|
293
|
+
icon: Codicon.arrowRight,
|
|
294
|
+
precondition: ( ContextKeyExpr.has('canNavigateForward')),
|
|
578
295
|
keybinding: {
|
|
579
296
|
weight: 200 ,
|
|
580
|
-
|
|
297
|
+
win: { primary: 512 | 17 },
|
|
298
|
+
mac: { primary: 256 | 1024 | 83 },
|
|
299
|
+
linux: { primary: 2048 | 1024 | 83 }
|
|
581
300
|
},
|
|
582
|
-
|
|
301
|
+
menu: [
|
|
302
|
+
{ id: MenuId.MenubarGoMenu, group: '1_history_nav', order: 2 },
|
|
303
|
+
{ id: MenuId.CommandCenter, order: 2 }
|
|
304
|
+
]
|
|
583
305
|
});
|
|
584
306
|
}
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
async doCloseAll(editorGroupService) {
|
|
589
|
-
await super.doCloseAll(editorGroupService);
|
|
590
|
-
for (const groupToClose of this.groupsToClose(editorGroupService)) {
|
|
591
|
-
editorGroupService.removeGroup(groupToClose);
|
|
592
|
-
}
|
|
307
|
+
async run(accessor) {
|
|
308
|
+
const historyService = accessor.get(IHistoryService);
|
|
309
|
+
await historyService.goForward(0 );
|
|
593
310
|
}
|
|
594
311
|
}
|
|
595
|
-
|
|
312
|
+
NavigateForwardAction.ID = 'workbench.action.navigateForward';
|
|
313
|
+
NavigateForwardAction.LABEL = ( localize('navigateForward', "Go Forward"));
|
|
314
|
+
class NavigateBackwardsAction extends Action2 {
|
|
596
315
|
constructor() {
|
|
597
316
|
super({
|
|
598
|
-
id:
|
|
599
|
-
title: { value: ( localize('
|
|
317
|
+
id: NavigateBackwardsAction.ID,
|
|
318
|
+
title: { value: ( localize('navigateBack', "Go Back")), original: 'Go Back', mnemonicTitle: ( localize({ key: 'miBack', comment: ['&& denotes a mnemonic'] }, "&&Back")) },
|
|
600
319
|
f1: true,
|
|
601
|
-
|
|
320
|
+
precondition: ( ContextKeyExpr.has('canNavigateBack')),
|
|
321
|
+
icon: Codicon.arrowLeft,
|
|
322
|
+
keybinding: {
|
|
323
|
+
weight: 200 ,
|
|
324
|
+
win: { primary: 512 | 15 },
|
|
325
|
+
mac: { primary: 256 | 83 },
|
|
326
|
+
linux: { primary: 2048 | 512 | 83 }
|
|
327
|
+
},
|
|
328
|
+
menu: [
|
|
329
|
+
{ id: MenuId.MenubarGoMenu, group: '1_history_nav', order: 1 },
|
|
330
|
+
{ id: MenuId.CommandCenter, order: 1 }
|
|
331
|
+
]
|
|
602
332
|
});
|
|
603
333
|
}
|
|
604
|
-
async run(accessor
|
|
605
|
-
const
|
|
606
|
-
|
|
607
|
-
await Promise.all(( editorGroupService.getGroups(1 ).map(async (group) => {
|
|
608
|
-
if (groupToSkip && group.id === groupToSkip.id) {
|
|
609
|
-
return;
|
|
610
|
-
}
|
|
611
|
-
return group.closeAllEditors({ excludeSticky: true });
|
|
612
|
-
})));
|
|
334
|
+
async run(accessor) {
|
|
335
|
+
const historyService = accessor.get(IHistoryService);
|
|
336
|
+
await historyService.goBack(0 );
|
|
613
337
|
}
|
|
614
338
|
}
|
|
615
|
-
|
|
339
|
+
NavigateBackwardsAction.ID = 'workbench.action.navigateBack';
|
|
340
|
+
NavigateBackwardsAction.LABEL = ( localize('navigateBack', "Go Back"));
|
|
341
|
+
class ReopenClosedEditorAction extends Action2 {
|
|
616
342
|
constructor() {
|
|
617
343
|
super({
|
|
618
|
-
id:
|
|
619
|
-
title: { value: ( localize('
|
|
344
|
+
id: ReopenClosedEditorAction.ID,
|
|
345
|
+
title: { value: ( localize('reopenClosedEditor', "Reopen Closed Editor")), original: 'Reopen Closed Editor' },
|
|
620
346
|
f1: true,
|
|
347
|
+
keybinding: {
|
|
348
|
+
weight: 200 ,
|
|
349
|
+
primary: 2048 | 1024 | 50
|
|
350
|
+
},
|
|
621
351
|
category: Categories.View
|
|
622
352
|
});
|
|
623
353
|
}
|
|
624
354
|
async run(accessor) {
|
|
625
|
-
const
|
|
626
|
-
|
|
627
|
-
const activeEditor = editorService.activeEditor;
|
|
628
|
-
if (activeEditor) {
|
|
629
|
-
await Promise.all(( editorGroupService.getGroups(1 ).map(group => group.closeEditor(activeEditor))));
|
|
630
|
-
}
|
|
631
|
-
}
|
|
632
|
-
}
|
|
633
|
-
class AbstractMoveCopyGroupAction extends Action2 {
|
|
634
|
-
constructor(desc, direction, isMove) {
|
|
635
|
-
super(desc);
|
|
636
|
-
this.direction = direction;
|
|
637
|
-
this.isMove = isMove;
|
|
638
|
-
}
|
|
639
|
-
async run(accessor, context) {
|
|
640
|
-
const editorGroupService = accessor.get(IEditorGroupsService);
|
|
641
|
-
let sourceGroup;
|
|
642
|
-
if (context && typeof context.groupId === 'number') {
|
|
643
|
-
sourceGroup = editorGroupService.getGroup(context.groupId);
|
|
644
|
-
}
|
|
645
|
-
else {
|
|
646
|
-
sourceGroup = editorGroupService.activeGroup;
|
|
647
|
-
}
|
|
648
|
-
if (sourceGroup) {
|
|
649
|
-
let resultGroup = undefined;
|
|
650
|
-
if (this.isMove) {
|
|
651
|
-
const targetGroup = this.findTargetGroup(editorGroupService, sourceGroup);
|
|
652
|
-
if (targetGroup) {
|
|
653
|
-
resultGroup = editorGroupService.moveGroup(sourceGroup, targetGroup, this.direction);
|
|
654
|
-
}
|
|
655
|
-
}
|
|
656
|
-
else {
|
|
657
|
-
resultGroup = editorGroupService.copyGroup(sourceGroup, sourceGroup, this.direction);
|
|
658
|
-
}
|
|
659
|
-
if (resultGroup) {
|
|
660
|
-
editorGroupService.activateGroup(resultGroup);
|
|
661
|
-
}
|
|
662
|
-
}
|
|
663
|
-
}
|
|
664
|
-
findTargetGroup(editorGroupService, sourceGroup) {
|
|
665
|
-
const targetNeighbours = [this.direction];
|
|
666
|
-
switch (this.direction) {
|
|
667
|
-
case 2 :
|
|
668
|
-
case 3 :
|
|
669
|
-
targetNeighbours.push(0 , 1 );
|
|
670
|
-
break;
|
|
671
|
-
case 0 :
|
|
672
|
-
case 1 :
|
|
673
|
-
targetNeighbours.push(2 , 3 );
|
|
674
|
-
break;
|
|
675
|
-
}
|
|
676
|
-
for (const targetNeighbour of targetNeighbours) {
|
|
677
|
-
const targetNeighbourGroup = editorGroupService.findGroup({ direction: targetNeighbour }, sourceGroup);
|
|
678
|
-
if (targetNeighbourGroup) {
|
|
679
|
-
return targetNeighbourGroup;
|
|
680
|
-
}
|
|
681
|
-
}
|
|
682
|
-
return undefined;
|
|
683
|
-
}
|
|
684
|
-
}
|
|
685
|
-
class AbstractMoveGroupAction extends AbstractMoveCopyGroupAction {
|
|
686
|
-
constructor(desc, direction) {
|
|
687
|
-
super(desc, direction, true);
|
|
355
|
+
const historyService = accessor.get(IHistoryService);
|
|
356
|
+
await historyService.reopenLastClosedEditor();
|
|
688
357
|
}
|
|
689
358
|
}
|
|
690
|
-
|
|
359
|
+
ReopenClosedEditorAction.ID = 'workbench.action.reopenClosedEditor';
|
|
360
|
+
class ClearRecentFilesAction extends Action2 {
|
|
691
361
|
constructor() {
|
|
692
362
|
super({
|
|
693
|
-
id:
|
|
694
|
-
title: { value: ( localize('
|
|
363
|
+
id: ClearRecentFilesAction.ID,
|
|
364
|
+
title: { value: ( localize('clearRecentFiles', "Clear Recently Opened")), original: 'Clear Recently Opened' },
|
|
695
365
|
f1: true,
|
|
696
|
-
|
|
697
|
-
weight: 200 ,
|
|
698
|
-
primary: KeyChord(2048 | 41 , 15 )
|
|
699
|
-
},
|
|
700
|
-
category: Categories.View
|
|
701
|
-
}, 2 );
|
|
702
|
-
}
|
|
703
|
-
}
|
|
704
|
-
class MoveGroupRightAction extends AbstractMoveGroupAction {
|
|
705
|
-
constructor() {
|
|
706
|
-
super({
|
|
707
|
-
id: 'workbench.action.moveActiveEditorGroupRight',
|
|
708
|
-
title: { value: ( localize('moveActiveGroupRight', "Move Editor Group Right")), original: 'Move Editor Group Right' },
|
|
709
|
-
f1: true,
|
|
710
|
-
keybinding: {
|
|
711
|
-
weight: 200 ,
|
|
712
|
-
primary: KeyChord(2048 | 41 , 17 )
|
|
713
|
-
},
|
|
714
|
-
category: Categories.View
|
|
715
|
-
}, 3 );
|
|
716
|
-
}
|
|
717
|
-
}
|
|
718
|
-
class MoveGroupUpAction extends AbstractMoveGroupAction {
|
|
719
|
-
constructor() {
|
|
720
|
-
super({
|
|
721
|
-
id: 'workbench.action.moveActiveEditorGroupUp',
|
|
722
|
-
title: { value: ( localize('moveActiveGroupUp', "Move Editor Group Up")), original: 'Move Editor Group Up' },
|
|
723
|
-
f1: true,
|
|
724
|
-
keybinding: {
|
|
725
|
-
weight: 200 ,
|
|
726
|
-
primary: KeyChord(2048 | 41 , 16 )
|
|
727
|
-
},
|
|
728
|
-
category: Categories.View
|
|
729
|
-
}, 0 );
|
|
730
|
-
}
|
|
731
|
-
}
|
|
732
|
-
class MoveGroupDownAction extends AbstractMoveGroupAction {
|
|
733
|
-
constructor() {
|
|
734
|
-
super({
|
|
735
|
-
id: 'workbench.action.moveActiveEditorGroupDown',
|
|
736
|
-
title: { value: ( localize('moveActiveGroupDown', "Move Editor Group Down")), original: 'Move Editor Group Down' },
|
|
737
|
-
f1: true,
|
|
738
|
-
keybinding: {
|
|
739
|
-
weight: 200 ,
|
|
740
|
-
primary: KeyChord(2048 | 41 , 18 )
|
|
741
|
-
},
|
|
742
|
-
category: Categories.View
|
|
743
|
-
}, 1 );
|
|
744
|
-
}
|
|
745
|
-
}
|
|
746
|
-
class AbstractDuplicateGroupAction extends AbstractMoveCopyGroupAction {
|
|
747
|
-
constructor(desc, direction) {
|
|
748
|
-
super(desc, direction, false);
|
|
749
|
-
}
|
|
750
|
-
}
|
|
751
|
-
class DuplicateGroupLeftAction extends AbstractDuplicateGroupAction {
|
|
752
|
-
constructor() {
|
|
753
|
-
super({
|
|
754
|
-
id: 'workbench.action.duplicateActiveEditorGroupLeft',
|
|
755
|
-
title: { value: ( localize('duplicateActiveGroupLeft', "Duplicate Editor Group Left")), original: 'Duplicate Editor Group Left' },
|
|
756
|
-
f1: true,
|
|
757
|
-
category: Categories.View
|
|
758
|
-
}, 2 );
|
|
759
|
-
}
|
|
760
|
-
}
|
|
761
|
-
class DuplicateGroupRightAction extends AbstractDuplicateGroupAction {
|
|
762
|
-
constructor() {
|
|
763
|
-
super({
|
|
764
|
-
id: 'workbench.action.duplicateActiveEditorGroupRight',
|
|
765
|
-
title: { value: ( localize('duplicateActiveGroupRight', "Duplicate Editor Group Right")), original: 'Duplicate Editor Group Right' },
|
|
766
|
-
f1: true,
|
|
767
|
-
category: Categories.View
|
|
768
|
-
}, 3 );
|
|
769
|
-
}
|
|
770
|
-
}
|
|
771
|
-
class DuplicateGroupUpAction extends AbstractDuplicateGroupAction {
|
|
772
|
-
constructor() {
|
|
773
|
-
super({
|
|
774
|
-
id: 'workbench.action.duplicateActiveEditorGroupUp',
|
|
775
|
-
title: { value: ( localize('duplicateActiveGroupUp', "Duplicate Editor Group Up")), original: 'Duplicate Editor Group Up' },
|
|
776
|
-
f1: true,
|
|
777
|
-
category: Categories.View
|
|
778
|
-
}, 0 );
|
|
779
|
-
}
|
|
780
|
-
}
|
|
781
|
-
class DuplicateGroupDownAction extends AbstractDuplicateGroupAction {
|
|
782
|
-
constructor() {
|
|
783
|
-
super({
|
|
784
|
-
id: 'workbench.action.duplicateActiveEditorGroupDown',
|
|
785
|
-
title: { value: ( localize('duplicateActiveGroupDown', "Duplicate Editor Group Down")), original: 'Duplicate Editor Group Down' },
|
|
786
|
-
f1: true,
|
|
787
|
-
category: Categories.View
|
|
788
|
-
}, 1 );
|
|
789
|
-
}
|
|
790
|
-
}
|
|
791
|
-
class MinimizeOtherGroupsAction extends Action2 {
|
|
792
|
-
constructor() {
|
|
793
|
-
super({
|
|
794
|
-
id: 'workbench.action.minimizeOtherEditors',
|
|
795
|
-
title: { value: ( localize('minimizeOtherEditorGroups', "Maximize Editor Group")), original: 'Maximize Editor Group' },
|
|
796
|
-
f1: true,
|
|
797
|
-
category: Categories.View
|
|
798
|
-
});
|
|
799
|
-
}
|
|
800
|
-
async run(accessor) {
|
|
801
|
-
const editorGroupService = accessor.get(IEditorGroupsService);
|
|
802
|
-
editorGroupService.arrangeGroups(0 );
|
|
803
|
-
}
|
|
804
|
-
}
|
|
805
|
-
class ResetGroupSizesAction extends Action2 {
|
|
806
|
-
constructor() {
|
|
807
|
-
super({
|
|
808
|
-
id: 'workbench.action.evenEditorWidths',
|
|
809
|
-
title: { value: ( localize('evenEditorGroups', "Reset Editor Group Sizes")), original: 'Reset Editor Group Sizes' },
|
|
810
|
-
f1: true,
|
|
811
|
-
category: Categories.View
|
|
812
|
-
});
|
|
813
|
-
}
|
|
814
|
-
async run(accessor) {
|
|
815
|
-
const editorGroupService = accessor.get(IEditorGroupsService);
|
|
816
|
-
editorGroupService.arrangeGroups(1 );
|
|
817
|
-
}
|
|
818
|
-
}
|
|
819
|
-
class ToggleGroupSizesAction extends Action2 {
|
|
820
|
-
constructor() {
|
|
821
|
-
super({
|
|
822
|
-
id: 'workbench.action.toggleEditorWidths',
|
|
823
|
-
title: { value: ( localize('toggleEditorWidths', "Toggle Editor Group Sizes")), original: 'Toggle Editor Group Sizes' },
|
|
824
|
-
f1: true,
|
|
825
|
-
category: Categories.View
|
|
826
|
-
});
|
|
827
|
-
}
|
|
828
|
-
async run(accessor) {
|
|
829
|
-
const editorGroupService = accessor.get(IEditorGroupsService);
|
|
830
|
-
editorGroupService.arrangeGroups(2 );
|
|
831
|
-
}
|
|
832
|
-
}
|
|
833
|
-
class MaximizeGroupAction extends Action2 {
|
|
834
|
-
constructor() {
|
|
835
|
-
super({
|
|
836
|
-
id: 'workbench.action.maximizeEditor',
|
|
837
|
-
title: { value: ( localize('maximizeEditor', "Maximize Editor Group and Hide Side Bars")), original: 'Maximize Editor Group and Hide Side Bars' },
|
|
838
|
-
f1: true,
|
|
839
|
-
category: Categories.View
|
|
840
|
-
});
|
|
841
|
-
}
|
|
842
|
-
async run(accessor) {
|
|
843
|
-
const layoutService = accessor.get(IWorkbenchLayoutService);
|
|
844
|
-
const editorGroupService = accessor.get(IEditorGroupsService);
|
|
845
|
-
const editorService = accessor.get(IEditorService);
|
|
846
|
-
if (editorService.activeEditor) {
|
|
847
|
-
layoutService.setPartHidden(true, "workbench.parts.sidebar" );
|
|
848
|
-
layoutService.setPartHidden(true, "workbench.parts.auxiliarybar" );
|
|
849
|
-
editorGroupService.arrangeGroups(0 );
|
|
850
|
-
}
|
|
851
|
-
}
|
|
852
|
-
}
|
|
853
|
-
class AbstractNavigateEditorAction extends Action2 {
|
|
854
|
-
async run(accessor) {
|
|
855
|
-
const editorGroupService = accessor.get(IEditorGroupsService);
|
|
856
|
-
const result = this.navigate(editorGroupService);
|
|
857
|
-
if (!result) {
|
|
858
|
-
return;
|
|
859
|
-
}
|
|
860
|
-
const { groupId, editor } = result;
|
|
861
|
-
if (!editor) {
|
|
862
|
-
return;
|
|
863
|
-
}
|
|
864
|
-
const group = editorGroupService.getGroup(groupId);
|
|
865
|
-
if (group) {
|
|
866
|
-
await group.openEditor(editor);
|
|
867
|
-
}
|
|
868
|
-
}
|
|
869
|
-
}
|
|
870
|
-
class OpenNextEditor extends AbstractNavigateEditorAction {
|
|
871
|
-
constructor() {
|
|
872
|
-
super({
|
|
873
|
-
id: 'workbench.action.nextEditor',
|
|
874
|
-
title: { value: ( localize('openNextEditor', "Open Next Editor")), original: 'Open Next Editor' },
|
|
875
|
-
f1: true,
|
|
876
|
-
keybinding: {
|
|
877
|
-
weight: 200 ,
|
|
878
|
-
primary: 2048 | 12 ,
|
|
879
|
-
mac: {
|
|
880
|
-
primary: 2048 | 512 | 17 ,
|
|
881
|
-
secondary: [2048 | 1024 | 89 ]
|
|
882
|
-
}
|
|
883
|
-
},
|
|
884
|
-
category: Categories.View
|
|
885
|
-
});
|
|
886
|
-
}
|
|
887
|
-
navigate(editorGroupService) {
|
|
888
|
-
const activeGroup = editorGroupService.activeGroup;
|
|
889
|
-
const activeGroupEditors = activeGroup.getEditors(1 );
|
|
890
|
-
const activeEditorIndex = activeGroup.activeEditor ? activeGroupEditors.indexOf(activeGroup.activeEditor) : -1;
|
|
891
|
-
if (activeEditorIndex + 1 < activeGroupEditors.length) {
|
|
892
|
-
return { editor: activeGroupEditors[activeEditorIndex + 1], groupId: activeGroup.id };
|
|
893
|
-
}
|
|
894
|
-
const handledGroups = ( new Set());
|
|
895
|
-
let currentGroup = editorGroupService.activeGroup;
|
|
896
|
-
while (currentGroup && !handledGroups.has(currentGroup.id)) {
|
|
897
|
-
currentGroup = editorGroupService.findGroup({ location: 2 }, currentGroup, true);
|
|
898
|
-
if (currentGroup) {
|
|
899
|
-
handledGroups.add(currentGroup.id);
|
|
900
|
-
const groupEditors = currentGroup.getEditors(1 );
|
|
901
|
-
if (groupEditors.length > 0) {
|
|
902
|
-
return { editor: groupEditors[0], groupId: currentGroup.id };
|
|
903
|
-
}
|
|
904
|
-
}
|
|
905
|
-
}
|
|
906
|
-
return undefined;
|
|
907
|
-
}
|
|
908
|
-
}
|
|
909
|
-
class OpenPreviousEditor extends AbstractNavigateEditorAction {
|
|
910
|
-
constructor() {
|
|
911
|
-
super({
|
|
912
|
-
id: 'workbench.action.previousEditor',
|
|
913
|
-
title: { value: ( localize('openPreviousEditor', "Open Previous Editor")), original: 'Open Previous Editor' },
|
|
914
|
-
f1: true,
|
|
915
|
-
keybinding: {
|
|
916
|
-
weight: 200 ,
|
|
917
|
-
primary: 2048 | 11 ,
|
|
918
|
-
mac: {
|
|
919
|
-
primary: 2048 | 512 | 15 ,
|
|
920
|
-
secondary: [2048 | 1024 | 87 ]
|
|
921
|
-
}
|
|
922
|
-
},
|
|
923
|
-
category: Categories.View
|
|
924
|
-
});
|
|
925
|
-
}
|
|
926
|
-
navigate(editorGroupService) {
|
|
927
|
-
const activeGroup = editorGroupService.activeGroup;
|
|
928
|
-
const activeGroupEditors = activeGroup.getEditors(1 );
|
|
929
|
-
const activeEditorIndex = activeGroup.activeEditor ? activeGroupEditors.indexOf(activeGroup.activeEditor) : -1;
|
|
930
|
-
if (activeEditorIndex > 0) {
|
|
931
|
-
return { editor: activeGroupEditors[activeEditorIndex - 1], groupId: activeGroup.id };
|
|
932
|
-
}
|
|
933
|
-
const handledGroups = ( new Set());
|
|
934
|
-
let currentGroup = editorGroupService.activeGroup;
|
|
935
|
-
while (currentGroup && !handledGroups.has(currentGroup.id)) {
|
|
936
|
-
currentGroup = editorGroupService.findGroup({ location: 3 }, currentGroup, true);
|
|
937
|
-
if (currentGroup) {
|
|
938
|
-
handledGroups.add(currentGroup.id);
|
|
939
|
-
const groupEditors = currentGroup.getEditors(1 );
|
|
940
|
-
if (groupEditors.length > 0) {
|
|
941
|
-
return { editor: groupEditors[groupEditors.length - 1], groupId: currentGroup.id };
|
|
942
|
-
}
|
|
943
|
-
}
|
|
944
|
-
}
|
|
945
|
-
return undefined;
|
|
946
|
-
}
|
|
947
|
-
}
|
|
948
|
-
class OpenNextEditorInGroup extends AbstractNavigateEditorAction {
|
|
949
|
-
constructor() {
|
|
950
|
-
super({
|
|
951
|
-
id: 'workbench.action.nextEditorInGroup',
|
|
952
|
-
title: { value: ( localize('nextEditorInGroup', "Open Next Editor in Group")), original: 'Open Next Editor in Group' },
|
|
953
|
-
f1: true,
|
|
954
|
-
keybinding: {
|
|
955
|
-
weight: 200 ,
|
|
956
|
-
primary: KeyChord(2048 | 41 , 2048 | 12 ),
|
|
957
|
-
mac: {
|
|
958
|
-
primary: KeyChord(2048 | 41 , 2048 | 512 | 17 )
|
|
959
|
-
}
|
|
960
|
-
},
|
|
961
|
-
category: Categories.View
|
|
962
|
-
});
|
|
963
|
-
}
|
|
964
|
-
navigate(editorGroupService) {
|
|
965
|
-
const group = editorGroupService.activeGroup;
|
|
966
|
-
const editors = group.getEditors(1 );
|
|
967
|
-
const index = group.activeEditor ? editors.indexOf(group.activeEditor) : -1;
|
|
968
|
-
return { editor: index + 1 < editors.length ? editors[index + 1] : editors[0], groupId: group.id };
|
|
969
|
-
}
|
|
970
|
-
}
|
|
971
|
-
class OpenPreviousEditorInGroup extends AbstractNavigateEditorAction {
|
|
972
|
-
constructor() {
|
|
973
|
-
super({
|
|
974
|
-
id: 'workbench.action.previousEditorInGroup',
|
|
975
|
-
title: { value: ( localize('openPreviousEditorInGroup', "Open Previous Editor in Group")), original: 'Open Previous Editor in Group' },
|
|
976
|
-
f1: true,
|
|
977
|
-
keybinding: {
|
|
978
|
-
weight: 200 ,
|
|
979
|
-
primary: KeyChord(2048 | 41 , 2048 | 11 ),
|
|
980
|
-
mac: {
|
|
981
|
-
primary: KeyChord(2048 | 41 , 2048 | 512 | 15 )
|
|
982
|
-
}
|
|
983
|
-
},
|
|
984
|
-
category: Categories.View
|
|
985
|
-
});
|
|
986
|
-
}
|
|
987
|
-
navigate(editorGroupService) {
|
|
988
|
-
const group = editorGroupService.activeGroup;
|
|
989
|
-
const editors = group.getEditors(1 );
|
|
990
|
-
const index = group.activeEditor ? editors.indexOf(group.activeEditor) : -1;
|
|
991
|
-
return { editor: index > 0 ? editors[index - 1] : editors[editors.length - 1], groupId: group.id };
|
|
992
|
-
}
|
|
993
|
-
}
|
|
994
|
-
class OpenFirstEditorInGroup extends AbstractNavigateEditorAction {
|
|
995
|
-
constructor() {
|
|
996
|
-
super({
|
|
997
|
-
id: 'workbench.action.firstEditorInGroup',
|
|
998
|
-
title: { value: ( localize('firstEditorInGroup', "Open First Editor in Group")), original: 'Open First Editor in Group' },
|
|
999
|
-
f1: true,
|
|
1000
|
-
category: Categories.View
|
|
1001
|
-
});
|
|
1002
|
-
}
|
|
1003
|
-
navigate(editorGroupService) {
|
|
1004
|
-
const group = editorGroupService.activeGroup;
|
|
1005
|
-
const editors = group.getEditors(1 );
|
|
1006
|
-
return { editor: editors[0], groupId: group.id };
|
|
1007
|
-
}
|
|
1008
|
-
}
|
|
1009
|
-
class OpenLastEditorInGroup extends AbstractNavigateEditorAction {
|
|
1010
|
-
constructor() {
|
|
1011
|
-
super({
|
|
1012
|
-
id: 'workbench.action.lastEditorInGroup',
|
|
1013
|
-
title: { value: ( localize('lastEditorInGroup', "Open Last Editor in Group")), original: 'Open Last Editor in Group' },
|
|
1014
|
-
f1: true,
|
|
1015
|
-
keybinding: {
|
|
1016
|
-
weight: 200 ,
|
|
1017
|
-
primary: 512 | 21 ,
|
|
1018
|
-
secondary: [2048 | 30 ],
|
|
1019
|
-
mac: {
|
|
1020
|
-
primary: 256 | 21 ,
|
|
1021
|
-
secondary: [2048 | 30 ]
|
|
1022
|
-
}
|
|
1023
|
-
},
|
|
1024
|
-
category: Categories.View
|
|
1025
|
-
});
|
|
1026
|
-
}
|
|
1027
|
-
navigate(editorGroupService) {
|
|
1028
|
-
const group = editorGroupService.activeGroup;
|
|
1029
|
-
const editors = group.getEditors(1 );
|
|
1030
|
-
return { editor: editors[editors.length - 1], groupId: group.id };
|
|
1031
|
-
}
|
|
1032
|
-
}
|
|
1033
|
-
class NavigateForwardAction extends Action2 {
|
|
1034
|
-
constructor() {
|
|
1035
|
-
super({
|
|
1036
|
-
id: NavigateForwardAction.ID,
|
|
1037
|
-
title: { value: ( localize('navigateForward', "Go Forward")), original: 'Go Forward', mnemonicTitle: ( localize({ key: 'miForward', comment: ['&& denotes a mnemonic'] }, "&&Forward")) },
|
|
1038
|
-
f1: true,
|
|
1039
|
-
icon: Codicon.arrowRight,
|
|
1040
|
-
precondition: ContextKeyExpr.has('canNavigateForward'),
|
|
1041
|
-
keybinding: {
|
|
1042
|
-
weight: 200 ,
|
|
1043
|
-
win: { primary: 512 | 17 },
|
|
1044
|
-
mac: { primary: 256 | 1024 | 83 },
|
|
1045
|
-
linux: { primary: 2048 | 1024 | 83 }
|
|
1046
|
-
},
|
|
1047
|
-
menu: [
|
|
1048
|
-
{ id: MenuId.MenubarGoMenu, group: '1_history_nav', order: 2 },
|
|
1049
|
-
{ id: MenuId.CommandCenter, order: 2 }
|
|
1050
|
-
]
|
|
1051
|
-
});
|
|
1052
|
-
}
|
|
1053
|
-
async run(accessor) {
|
|
1054
|
-
const historyService = accessor.get(IHistoryService);
|
|
1055
|
-
await historyService.goForward(0 );
|
|
1056
|
-
}
|
|
1057
|
-
}
|
|
1058
|
-
NavigateForwardAction.ID = 'workbench.action.navigateForward';
|
|
1059
|
-
NavigateForwardAction.LABEL = ( localize('navigateForward', "Go Forward"));
|
|
1060
|
-
class NavigateBackwardsAction extends Action2 {
|
|
1061
|
-
constructor() {
|
|
1062
|
-
super({
|
|
1063
|
-
id: NavigateBackwardsAction.ID,
|
|
1064
|
-
title: { value: ( localize('navigateBack', "Go Back")), original: 'Go Back', mnemonicTitle: ( localize({ key: 'miBack', comment: ['&& denotes a mnemonic'] }, "&&Back")) },
|
|
1065
|
-
f1: true,
|
|
1066
|
-
precondition: ContextKeyExpr.has('canNavigateBack'),
|
|
1067
|
-
icon: Codicon.arrowLeft,
|
|
1068
|
-
keybinding: {
|
|
1069
|
-
weight: 200 ,
|
|
1070
|
-
win: { primary: 512 | 15 },
|
|
1071
|
-
mac: { primary: 256 | 83 },
|
|
1072
|
-
linux: { primary: 2048 | 512 | 83 }
|
|
1073
|
-
},
|
|
1074
|
-
menu: [
|
|
1075
|
-
{ id: MenuId.MenubarGoMenu, group: '1_history_nav', order: 1 },
|
|
1076
|
-
{ id: MenuId.CommandCenter, order: 1 }
|
|
1077
|
-
]
|
|
1078
|
-
});
|
|
1079
|
-
}
|
|
1080
|
-
async run(accessor) {
|
|
1081
|
-
const historyService = accessor.get(IHistoryService);
|
|
1082
|
-
await historyService.goBack(0 );
|
|
1083
|
-
}
|
|
1084
|
-
}
|
|
1085
|
-
NavigateBackwardsAction.ID = 'workbench.action.navigateBack';
|
|
1086
|
-
NavigateBackwardsAction.LABEL = ( localize('navigateBack', "Go Back"));
|
|
1087
|
-
class NavigatePreviousAction extends Action2 {
|
|
1088
|
-
constructor() {
|
|
1089
|
-
super({
|
|
1090
|
-
id: 'workbench.action.navigateLast',
|
|
1091
|
-
title: { value: ( localize('navigatePrevious', "Go Previous")), original: 'Go Previous' },
|
|
1092
|
-
f1: true
|
|
1093
|
-
});
|
|
1094
|
-
}
|
|
1095
|
-
async run(accessor) {
|
|
1096
|
-
const historyService = accessor.get(IHistoryService);
|
|
1097
|
-
await historyService.goPrevious(0 );
|
|
1098
|
-
}
|
|
1099
|
-
}
|
|
1100
|
-
class NavigateForwardInEditsAction extends Action2 {
|
|
1101
|
-
constructor() {
|
|
1102
|
-
super({
|
|
1103
|
-
id: 'workbench.action.navigateForwardInEditLocations',
|
|
1104
|
-
title: { value: ( localize('navigateForwardInEdits', "Go Forward in Edit Locations")), original: 'Go Forward in Edit Locations' },
|
|
1105
|
-
f1: true
|
|
1106
|
-
});
|
|
1107
|
-
}
|
|
1108
|
-
async run(accessor) {
|
|
1109
|
-
const historyService = accessor.get(IHistoryService);
|
|
1110
|
-
await historyService.goForward(1 );
|
|
1111
|
-
}
|
|
1112
|
-
}
|
|
1113
|
-
class NavigateBackwardsInEditsAction extends Action2 {
|
|
1114
|
-
constructor() {
|
|
1115
|
-
super({
|
|
1116
|
-
id: 'workbench.action.navigateBackInEditLocations',
|
|
1117
|
-
title: { value: ( localize('navigateBackInEdits', "Go Back in Edit Locations")), original: 'Go Back in Edit Locations' },
|
|
1118
|
-
f1: true
|
|
1119
|
-
});
|
|
1120
|
-
}
|
|
1121
|
-
async run(accessor) {
|
|
1122
|
-
const historyService = accessor.get(IHistoryService);
|
|
1123
|
-
await historyService.goBack(1 );
|
|
1124
|
-
}
|
|
1125
|
-
}
|
|
1126
|
-
class NavigatePreviousInEditsAction extends Action2 {
|
|
1127
|
-
constructor() {
|
|
1128
|
-
super({
|
|
1129
|
-
id: 'workbench.action.navigatePreviousInEditLocations',
|
|
1130
|
-
title: { value: ( localize('navigatePreviousInEdits', "Go Previous in Edit Locations")), original: 'Go Previous in Edit Locations' },
|
|
1131
|
-
f1: true
|
|
1132
|
-
});
|
|
1133
|
-
}
|
|
1134
|
-
async run(accessor) {
|
|
1135
|
-
const historyService = accessor.get(IHistoryService);
|
|
1136
|
-
await historyService.goPrevious(1 );
|
|
1137
|
-
}
|
|
1138
|
-
}
|
|
1139
|
-
class NavigateToLastEditLocationAction extends Action2 {
|
|
1140
|
-
constructor() {
|
|
1141
|
-
super({
|
|
1142
|
-
id: 'workbench.action.navigateToLastEditLocation',
|
|
1143
|
-
title: { value: ( localize('navigateToLastEditLocation', "Go to Last Edit Location")), original: 'Go to Last Edit Location' },
|
|
1144
|
-
f1: true,
|
|
1145
|
-
keybinding: {
|
|
1146
|
-
weight: 200 ,
|
|
1147
|
-
primary: KeyChord(2048 | 41 , 2048 | 47 )
|
|
1148
|
-
}
|
|
1149
|
-
});
|
|
1150
|
-
}
|
|
1151
|
-
async run(accessor) {
|
|
1152
|
-
const historyService = accessor.get(IHistoryService);
|
|
1153
|
-
await historyService.goLast(1 );
|
|
1154
|
-
}
|
|
1155
|
-
}
|
|
1156
|
-
class NavigateForwardInNavigationsAction extends Action2 {
|
|
1157
|
-
constructor() {
|
|
1158
|
-
super({
|
|
1159
|
-
id: 'workbench.action.navigateForwardInNavigationLocations',
|
|
1160
|
-
title: { value: ( localize('navigateForwardInNavigations', "Go Forward in Navigation Locations")), original: 'Go Forward in Navigation Locations' },
|
|
1161
|
-
f1: true
|
|
1162
|
-
});
|
|
1163
|
-
}
|
|
1164
|
-
async run(accessor) {
|
|
1165
|
-
const historyService = accessor.get(IHistoryService);
|
|
1166
|
-
await historyService.goForward(2 );
|
|
1167
|
-
}
|
|
1168
|
-
}
|
|
1169
|
-
class NavigateBackwardsInNavigationsAction extends Action2 {
|
|
1170
|
-
constructor() {
|
|
1171
|
-
super({
|
|
1172
|
-
id: 'workbench.action.navigateBackInNavigationLocations',
|
|
1173
|
-
title: { value: ( localize('navigateBackInNavigations', "Go Back in Navigation Locations")), original: 'Go Back in Navigation Locations' },
|
|
1174
|
-
f1: true
|
|
1175
|
-
});
|
|
1176
|
-
}
|
|
1177
|
-
async run(accessor) {
|
|
1178
|
-
const historyService = accessor.get(IHistoryService);
|
|
1179
|
-
await historyService.goBack(2 );
|
|
1180
|
-
}
|
|
1181
|
-
}
|
|
1182
|
-
class NavigatePreviousInNavigationsAction extends Action2 {
|
|
1183
|
-
constructor() {
|
|
1184
|
-
super({
|
|
1185
|
-
id: 'workbench.action.navigatePreviousInNavigationLocations',
|
|
1186
|
-
title: { value: ( localize(
|
|
1187
|
-
'navigatePreviousInNavigationLocations',
|
|
1188
|
-
"Go Previous in Navigation Locations"
|
|
1189
|
-
)), original: 'Go Previous in Navigation Locations' },
|
|
1190
|
-
f1: true
|
|
1191
|
-
});
|
|
1192
|
-
}
|
|
1193
|
-
async run(accessor) {
|
|
1194
|
-
const historyService = accessor.get(IHistoryService);
|
|
1195
|
-
await historyService.goPrevious(2 );
|
|
1196
|
-
}
|
|
1197
|
-
}
|
|
1198
|
-
class NavigateToLastNavigationLocationAction extends Action2 {
|
|
1199
|
-
constructor() {
|
|
1200
|
-
super({
|
|
1201
|
-
id: 'workbench.action.navigateToLastNavigationLocation',
|
|
1202
|
-
title: { value: ( localize('navigateToLastNavigationLocation', "Go to Last Navigation Location")), original: 'Go to Last Navigation Location' },
|
|
1203
|
-
f1: true
|
|
1204
|
-
});
|
|
1205
|
-
}
|
|
1206
|
-
async run(accessor) {
|
|
1207
|
-
const historyService = accessor.get(IHistoryService);
|
|
1208
|
-
await historyService.goLast(2 );
|
|
1209
|
-
}
|
|
1210
|
-
}
|
|
1211
|
-
class ReopenClosedEditorAction extends Action2 {
|
|
1212
|
-
constructor() {
|
|
1213
|
-
super({
|
|
1214
|
-
id: ReopenClosedEditorAction.ID,
|
|
1215
|
-
title: { value: ( localize('reopenClosedEditor', "Reopen Closed Editor")), original: 'Reopen Closed Editor' },
|
|
1216
|
-
f1: true,
|
|
1217
|
-
keybinding: {
|
|
1218
|
-
weight: 200 ,
|
|
1219
|
-
primary: 2048 | 1024 | 50
|
|
1220
|
-
},
|
|
1221
|
-
category: Categories.View
|
|
1222
|
-
});
|
|
1223
|
-
}
|
|
1224
|
-
async run(accessor) {
|
|
1225
|
-
const historyService = accessor.get(IHistoryService);
|
|
1226
|
-
await historyService.reopenLastClosedEditor();
|
|
1227
|
-
}
|
|
1228
|
-
}
|
|
1229
|
-
ReopenClosedEditorAction.ID = 'workbench.action.reopenClosedEditor';
|
|
1230
|
-
class ClearRecentFilesAction extends Action2 {
|
|
1231
|
-
constructor() {
|
|
1232
|
-
super({
|
|
1233
|
-
id: ClearRecentFilesAction.ID,
|
|
1234
|
-
title: { value: ( localize('clearRecentFiles', "Clear Recently Opened")), original: 'Clear Recently Opened' },
|
|
1235
|
-
f1: true,
|
|
1236
|
-
category: Categories.File
|
|
1237
|
-
});
|
|
1238
|
-
}
|
|
1239
|
-
async run(accessor) {
|
|
1240
|
-
const dialogService = accessor.get(IDialogService);
|
|
1241
|
-
const workspacesService = accessor.get(IWorkspacesService);
|
|
1242
|
-
const historyService = accessor.get(IHistoryService);
|
|
1243
|
-
const { confirmed } = await dialogService.confirm({
|
|
1244
|
-
type: 'warning',
|
|
1245
|
-
message: ( localize(
|
|
1246
|
-
'confirmClearRecentsMessage',
|
|
1247
|
-
"Do you want to clear all recently opened files and workspaces?"
|
|
1248
|
-
)),
|
|
1249
|
-
detail: ( localize('confirmClearDetail', "This action is irreversible!")),
|
|
1250
|
-
primaryButton: ( localize({ key: 'clearButtonLabel', comment: ['&& denotes a mnemonic'] }, "&&Clear"))
|
|
1251
|
-
});
|
|
1252
|
-
if (!confirmed) {
|
|
1253
|
-
return;
|
|
1254
|
-
}
|
|
1255
|
-
workspacesService.clearRecentlyOpened();
|
|
1256
|
-
historyService.clearRecentlyOpened();
|
|
1257
|
-
}
|
|
1258
|
-
}
|
|
1259
|
-
ClearRecentFilesAction.ID = 'workbench.action.clearRecentFiles';
|
|
1260
|
-
class ShowEditorsInActiveGroupByMostRecentlyUsedAction extends Action2 {
|
|
1261
|
-
constructor() {
|
|
1262
|
-
super({
|
|
1263
|
-
id: ShowEditorsInActiveGroupByMostRecentlyUsedAction.ID,
|
|
1264
|
-
title: { value: ( localize(
|
|
1265
|
-
'showEditorsInActiveGroup',
|
|
1266
|
-
"Show Editors in Active Group By Most Recently Used"
|
|
1267
|
-
)), original: 'Show Editors in Active Group By Most Recently Used' },
|
|
1268
|
-
f1: true,
|
|
1269
|
-
category: Categories.View
|
|
1270
|
-
});
|
|
1271
|
-
}
|
|
1272
|
-
async run(accessor) {
|
|
1273
|
-
const quickInputService = accessor.get(IQuickInputService);
|
|
1274
|
-
quickInputService.quickAccess.show(ActiveGroupEditorsByMostRecentlyUsedQuickAccess.PREFIX);
|
|
1275
|
-
}
|
|
1276
|
-
}
|
|
1277
|
-
ShowEditorsInActiveGroupByMostRecentlyUsedAction.ID = 'workbench.action.showEditorsInActiveGroup';
|
|
1278
|
-
class ShowAllEditorsByAppearanceAction extends Action2 {
|
|
1279
|
-
constructor() {
|
|
1280
|
-
super({
|
|
1281
|
-
id: ShowAllEditorsByAppearanceAction.ID,
|
|
1282
|
-
title: { value: ( localize('showAllEditors', "Show All Editors By Appearance")), original: 'Show All Editors By Appearance' },
|
|
1283
|
-
f1: true,
|
|
1284
|
-
keybinding: {
|
|
1285
|
-
weight: 200 ,
|
|
1286
|
-
primary: KeyChord(2048 | 41 , 2048 | 46 ),
|
|
1287
|
-
mac: {
|
|
1288
|
-
primary: 2048 | 512 | 2
|
|
1289
|
-
}
|
|
1290
|
-
},
|
|
1291
|
-
category: Categories.File
|
|
1292
|
-
});
|
|
1293
|
-
}
|
|
1294
|
-
async run(accessor) {
|
|
1295
|
-
const quickInputService = accessor.get(IQuickInputService);
|
|
1296
|
-
quickInputService.quickAccess.show(AllEditorsByAppearanceQuickAccess.PREFIX);
|
|
1297
|
-
}
|
|
1298
|
-
}
|
|
1299
|
-
ShowAllEditorsByAppearanceAction.ID = 'workbench.action.showAllEditors';
|
|
1300
|
-
class ShowAllEditorsByMostRecentlyUsedAction extends Action2 {
|
|
1301
|
-
constructor() {
|
|
1302
|
-
super({
|
|
1303
|
-
id: ShowAllEditorsByMostRecentlyUsedAction.ID,
|
|
1304
|
-
title: { value: ( localize(
|
|
1305
|
-
'showAllEditorsByMostRecentlyUsed',
|
|
1306
|
-
"Show All Editors By Most Recently Used"
|
|
1307
|
-
)), original: 'Show All Editors By Most Recently Used' },
|
|
1308
|
-
f1: true,
|
|
1309
|
-
category: Categories.View
|
|
1310
|
-
});
|
|
1311
|
-
}
|
|
1312
|
-
async run(accessor) {
|
|
1313
|
-
const quickInputService = accessor.get(IQuickInputService);
|
|
1314
|
-
quickInputService.quickAccess.show(AllEditorsByMostRecentlyUsedQuickAccess.PREFIX);
|
|
1315
|
-
}
|
|
1316
|
-
}
|
|
1317
|
-
ShowAllEditorsByMostRecentlyUsedAction.ID = 'workbench.action.showAllEditorsByMostRecentlyUsed';
|
|
1318
|
-
class AbstractQuickAccessEditorAction extends Action2 {
|
|
1319
|
-
constructor(desc, prefix, itemActivation) {
|
|
1320
|
-
super(desc);
|
|
1321
|
-
this.prefix = prefix;
|
|
1322
|
-
this.itemActivation = itemActivation;
|
|
1323
|
-
}
|
|
1324
|
-
async run(accessor) {
|
|
1325
|
-
const keybindingService = accessor.get(IKeybindingService);
|
|
1326
|
-
const quickInputService = accessor.get(IQuickInputService);
|
|
1327
|
-
const keybindings = keybindingService.lookupKeybindings(this.desc.id);
|
|
1328
|
-
quickInputService.quickAccess.show(this.prefix, {
|
|
1329
|
-
quickNavigateConfiguration: { keybindings },
|
|
1330
|
-
itemActivation: this.itemActivation
|
|
1331
|
-
});
|
|
1332
|
-
}
|
|
1333
|
-
}
|
|
1334
|
-
class QuickAccessPreviousRecentlyUsedEditorAction extends AbstractQuickAccessEditorAction {
|
|
1335
|
-
constructor() {
|
|
1336
|
-
super({
|
|
1337
|
-
id: 'workbench.action.quickOpenPreviousRecentlyUsedEditor',
|
|
1338
|
-
title: { value: ( localize(
|
|
1339
|
-
'quickOpenPreviousRecentlyUsedEditor',
|
|
1340
|
-
"Quick Open Previous Recently Used Editor"
|
|
1341
|
-
)), original: 'Quick Open Previous Recently Used Editor' },
|
|
1342
|
-
f1: true,
|
|
1343
|
-
category: Categories.View
|
|
1344
|
-
}, AllEditorsByMostRecentlyUsedQuickAccess.PREFIX, undefined);
|
|
1345
|
-
}
|
|
1346
|
-
}
|
|
1347
|
-
class QuickAccessLeastRecentlyUsedEditorAction extends AbstractQuickAccessEditorAction {
|
|
1348
|
-
constructor() {
|
|
1349
|
-
super({
|
|
1350
|
-
id: 'workbench.action.quickOpenLeastRecentlyUsedEditor',
|
|
1351
|
-
title: { value: ( localize(
|
|
1352
|
-
'quickOpenLeastRecentlyUsedEditor',
|
|
1353
|
-
"Quick Open Least Recently Used Editor"
|
|
1354
|
-
)), original: 'Quick Open Least Recently Used Editor' },
|
|
1355
|
-
f1: true,
|
|
1356
|
-
category: Categories.View
|
|
1357
|
-
}, AllEditorsByMostRecentlyUsedQuickAccess.PREFIX, undefined);
|
|
1358
|
-
}
|
|
1359
|
-
}
|
|
1360
|
-
class QuickAccessPreviousRecentlyUsedEditorInGroupAction extends AbstractQuickAccessEditorAction {
|
|
1361
|
-
constructor() {
|
|
1362
|
-
super({
|
|
1363
|
-
id: 'workbench.action.quickOpenPreviousRecentlyUsedEditorInGroup',
|
|
1364
|
-
title: { value: ( localize(
|
|
1365
|
-
'quickOpenPreviousRecentlyUsedEditorInGroup',
|
|
1366
|
-
"Quick Open Previous Recently Used Editor in Group"
|
|
1367
|
-
)), original: 'Quick Open Previous Recently Used Editor in Group' },
|
|
1368
|
-
f1: true,
|
|
1369
|
-
keybinding: {
|
|
1370
|
-
weight: 200 ,
|
|
1371
|
-
primary: 2048 | 2 ,
|
|
1372
|
-
mac: {
|
|
1373
|
-
primary: 256 | 2
|
|
1374
|
-
}
|
|
1375
|
-
},
|
|
1376
|
-
precondition: ( ActiveEditorGroupEmptyContext.toNegated()),
|
|
1377
|
-
category: Categories.View
|
|
1378
|
-
}, ActiveGroupEditorsByMostRecentlyUsedQuickAccess.PREFIX, undefined);
|
|
1379
|
-
}
|
|
1380
|
-
}
|
|
1381
|
-
class QuickAccessLeastRecentlyUsedEditorInGroupAction extends AbstractQuickAccessEditorAction {
|
|
1382
|
-
constructor() {
|
|
1383
|
-
super({
|
|
1384
|
-
id: 'workbench.action.quickOpenLeastRecentlyUsedEditorInGroup',
|
|
1385
|
-
title: { value: ( localize(
|
|
1386
|
-
'quickOpenLeastRecentlyUsedEditorInGroup',
|
|
1387
|
-
"Quick Open Least Recently Used Editor in Group"
|
|
1388
|
-
)), original: 'Quick Open Least Recently Used Editor in Group' },
|
|
1389
|
-
f1: true,
|
|
1390
|
-
keybinding: {
|
|
1391
|
-
weight: 200 ,
|
|
1392
|
-
primary: 2048 | 1024 | 2 ,
|
|
1393
|
-
mac: {
|
|
1394
|
-
primary: 256 | 1024 | 2
|
|
1395
|
-
}
|
|
1396
|
-
},
|
|
1397
|
-
precondition: ( ActiveEditorGroupEmptyContext.toNegated()),
|
|
1398
|
-
category: Categories.View
|
|
1399
|
-
}, ActiveGroupEditorsByMostRecentlyUsedQuickAccess.PREFIX, ItemActivation.LAST);
|
|
1400
|
-
}
|
|
1401
|
-
}
|
|
1402
|
-
class QuickAccessPreviousEditorFromHistoryAction extends Action2 {
|
|
1403
|
-
constructor() {
|
|
1404
|
-
super({
|
|
1405
|
-
id: QuickAccessPreviousEditorFromHistoryAction.ID,
|
|
1406
|
-
title: { value: ( localize('navigateEditorHistoryByInput', "Quick Open Previous Editor from History")), original: 'Quick Open Previous Editor from History' },
|
|
1407
|
-
f1: true
|
|
1408
|
-
});
|
|
1409
|
-
}
|
|
1410
|
-
async run(accessor) {
|
|
1411
|
-
const keybindingService = accessor.get(IKeybindingService);
|
|
1412
|
-
const quickInputService = accessor.get(IQuickInputService);
|
|
1413
|
-
const editorGroupService = accessor.get(IEditorGroupsService);
|
|
1414
|
-
const keybindings = keybindingService.lookupKeybindings(QuickAccessPreviousEditorFromHistoryAction.ID);
|
|
1415
|
-
let itemActivation = undefined;
|
|
1416
|
-
if (editorGroupService.activeGroup.count === 0) {
|
|
1417
|
-
itemActivation = ItemActivation.FIRST;
|
|
1418
|
-
}
|
|
1419
|
-
quickInputService.quickAccess.show('', { quickNavigateConfiguration: { keybindings }, itemActivation });
|
|
1420
|
-
}
|
|
1421
|
-
}
|
|
1422
|
-
QuickAccessPreviousEditorFromHistoryAction.ID = 'workbench.action.openPreviousEditorFromHistory';
|
|
1423
|
-
class OpenNextRecentlyUsedEditorAction extends Action2 {
|
|
1424
|
-
constructor() {
|
|
1425
|
-
super({
|
|
1426
|
-
id: 'workbench.action.openNextRecentlyUsedEditor',
|
|
1427
|
-
title: { value: ( localize('openNextRecentlyUsedEditor', "Open Next Recently Used Editor")), original: 'Open Next Recently Used Editor' },
|
|
1428
|
-
f1: true,
|
|
1429
|
-
category: Categories.View
|
|
1430
|
-
});
|
|
1431
|
-
}
|
|
1432
|
-
async run(accessor) {
|
|
1433
|
-
const historyService = accessor.get(IHistoryService);
|
|
1434
|
-
historyService.openNextRecentlyUsedEditor();
|
|
1435
|
-
}
|
|
1436
|
-
}
|
|
1437
|
-
class OpenPreviousRecentlyUsedEditorAction extends Action2 {
|
|
1438
|
-
constructor() {
|
|
1439
|
-
super({
|
|
1440
|
-
id: 'workbench.action.openPreviousRecentlyUsedEditor',
|
|
1441
|
-
title: { value: ( localize('openPreviousRecentlyUsedEditor', "Open Previous Recently Used Editor")), original: 'Open Previous Recently Used Editor' },
|
|
1442
|
-
f1: true,
|
|
1443
|
-
category: Categories.View
|
|
1444
|
-
});
|
|
1445
|
-
}
|
|
1446
|
-
async run(accessor) {
|
|
1447
|
-
const historyService = accessor.get(IHistoryService);
|
|
1448
|
-
historyService.openPreviouslyUsedEditor();
|
|
1449
|
-
}
|
|
1450
|
-
}
|
|
1451
|
-
class OpenNextRecentlyUsedEditorInGroupAction extends Action2 {
|
|
1452
|
-
constructor() {
|
|
1453
|
-
super({
|
|
1454
|
-
id: 'workbench.action.openNextRecentlyUsedEditorInGroup',
|
|
1455
|
-
title: { value: ( localize(
|
|
1456
|
-
'openNextRecentlyUsedEditorInGroup',
|
|
1457
|
-
"Open Next Recently Used Editor In Group"
|
|
1458
|
-
)), original: 'Open Next Recently Used Editor In Group' },
|
|
1459
|
-
f1: true,
|
|
1460
|
-
category: Categories.View
|
|
1461
|
-
});
|
|
1462
|
-
}
|
|
1463
|
-
async run(accessor) {
|
|
1464
|
-
const historyService = accessor.get(IHistoryService);
|
|
1465
|
-
const editorGroupsService = accessor.get(IEditorGroupsService);
|
|
1466
|
-
historyService.openNextRecentlyUsedEditor(editorGroupsService.activeGroup.id);
|
|
1467
|
-
}
|
|
1468
|
-
}
|
|
1469
|
-
class OpenPreviousRecentlyUsedEditorInGroupAction extends Action2 {
|
|
1470
|
-
constructor() {
|
|
1471
|
-
super({
|
|
1472
|
-
id: 'workbench.action.openPreviousRecentlyUsedEditorInGroup',
|
|
1473
|
-
title: { value: ( localize(
|
|
1474
|
-
'openPreviousRecentlyUsedEditorInGroup',
|
|
1475
|
-
"Open Previous Recently Used Editor In Group"
|
|
1476
|
-
)), original: 'Open Previous Recently Used Editor In Group' },
|
|
1477
|
-
f1: true,
|
|
1478
|
-
category: Categories.View
|
|
1479
|
-
});
|
|
1480
|
-
}
|
|
1481
|
-
async run(accessor) {
|
|
1482
|
-
const historyService = accessor.get(IHistoryService);
|
|
1483
|
-
const editorGroupsService = accessor.get(IEditorGroupsService);
|
|
1484
|
-
historyService.openPreviouslyUsedEditor(editorGroupsService.activeGroup.id);
|
|
1485
|
-
}
|
|
1486
|
-
}
|
|
1487
|
-
class ClearEditorHistoryAction extends Action2 {
|
|
1488
|
-
constructor() {
|
|
1489
|
-
super({
|
|
1490
|
-
id: 'workbench.action.clearEditorHistory',
|
|
1491
|
-
title: { value: ( localize('clearEditorHistory', "Clear Editor History")), original: 'Clear Editor History' },
|
|
1492
|
-
f1: true
|
|
366
|
+
category: Categories.File
|
|
1493
367
|
});
|
|
1494
368
|
}
|
|
1495
369
|
async run(accessor) {
|
|
1496
370
|
const dialogService = accessor.get(IDialogService);
|
|
371
|
+
const workspacesService = accessor.get(IWorkspacesService);
|
|
1497
372
|
const historyService = accessor.get(IHistoryService);
|
|
1498
373
|
const { confirmed } = await dialogService.confirm({
|
|
1499
374
|
type: 'warning',
|
|
1500
375
|
message: ( localize(
|
|
1501
|
-
'
|
|
1502
|
-
"Do you want to clear
|
|
376
|
+
'confirmClearRecentsMessage',
|
|
377
|
+
"Do you want to clear all recently opened files and workspaces?"
|
|
1503
378
|
)),
|
|
1504
379
|
detail: ( localize('confirmClearDetail', "This action is irreversible!")),
|
|
1505
380
|
primaryButton: ( localize({ key: 'clearButtonLabel', comment: ['&& denotes a mnemonic'] }, "&&Clear"))
|
|
@@ -1507,191 +382,90 @@ class ClearEditorHistoryAction extends Action2 {
|
|
|
1507
382
|
if (!confirmed) {
|
|
1508
383
|
return;
|
|
1509
384
|
}
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
}
|
|
1513
|
-
class MoveEditorLeftInGroupAction extends ExecuteCommandAction {
|
|
1514
|
-
constructor() {
|
|
1515
|
-
super({
|
|
1516
|
-
id: 'workbench.action.moveEditorLeftInGroup',
|
|
1517
|
-
title: { value: ( localize('moveEditorLeft', "Move Editor Left")), original: 'Move Editor Left' },
|
|
1518
|
-
keybinding: {
|
|
1519
|
-
weight: 200 ,
|
|
1520
|
-
primary: 2048 | 1024 | 11 ,
|
|
1521
|
-
mac: {
|
|
1522
|
-
primary: KeyChord(2048 | 41 , 2048 | 1024 | 15 )
|
|
1523
|
-
}
|
|
1524
|
-
},
|
|
1525
|
-
f1: true,
|
|
1526
|
-
category: Categories.View
|
|
1527
|
-
}, MOVE_ACTIVE_EDITOR_COMMAND_ID, { to: 'left' });
|
|
1528
|
-
}
|
|
1529
|
-
}
|
|
1530
|
-
class MoveEditorRightInGroupAction extends ExecuteCommandAction {
|
|
1531
|
-
constructor() {
|
|
1532
|
-
super({
|
|
1533
|
-
id: 'workbench.action.moveEditorRightInGroup',
|
|
1534
|
-
title: { value: ( localize('moveEditorRight', "Move Editor Right")), original: 'Move Editor Right' },
|
|
1535
|
-
keybinding: {
|
|
1536
|
-
weight: 200 ,
|
|
1537
|
-
primary: 2048 | 1024 | 12 ,
|
|
1538
|
-
mac: {
|
|
1539
|
-
primary: KeyChord(2048 | 41 , 2048 | 1024 | 17 )
|
|
1540
|
-
}
|
|
1541
|
-
},
|
|
1542
|
-
f1: true,
|
|
1543
|
-
category: Categories.View
|
|
1544
|
-
}, MOVE_ACTIVE_EDITOR_COMMAND_ID, { to: 'right' });
|
|
1545
|
-
}
|
|
1546
|
-
}
|
|
1547
|
-
class MoveEditorToPreviousGroupAction extends ExecuteCommandAction {
|
|
1548
|
-
constructor() {
|
|
1549
|
-
super({
|
|
1550
|
-
id: 'workbench.action.moveEditorToPreviousGroup',
|
|
1551
|
-
title: { value: ( localize('moveEditorToPreviousGroup', "Move Editor into Previous Group")), original: 'Move Editor into Previous Group' },
|
|
1552
|
-
keybinding: {
|
|
1553
|
-
weight: 200 ,
|
|
1554
|
-
primary: 2048 | 512 | 15 ,
|
|
1555
|
-
mac: {
|
|
1556
|
-
primary: 2048 | 256 | 15
|
|
1557
|
-
}
|
|
1558
|
-
},
|
|
1559
|
-
f1: true,
|
|
1560
|
-
category: Categories.View,
|
|
1561
|
-
}, MOVE_ACTIVE_EDITOR_COMMAND_ID, { to: 'previous', by: 'group' });
|
|
1562
|
-
}
|
|
1563
|
-
}
|
|
1564
|
-
class MoveEditorToNextGroupAction extends ExecuteCommandAction {
|
|
1565
|
-
constructor() {
|
|
1566
|
-
super({
|
|
1567
|
-
id: 'workbench.action.moveEditorToNextGroup',
|
|
1568
|
-
title: { value: ( localize('moveEditorToNextGroup', "Move Editor into Next Group")), original: 'Move Editor into Next Group' },
|
|
1569
|
-
f1: true,
|
|
1570
|
-
keybinding: {
|
|
1571
|
-
weight: 200 ,
|
|
1572
|
-
primary: 2048 | 512 | 17 ,
|
|
1573
|
-
mac: {
|
|
1574
|
-
primary: 2048 | 256 | 17
|
|
1575
|
-
}
|
|
1576
|
-
},
|
|
1577
|
-
category: Categories.View
|
|
1578
|
-
}, MOVE_ACTIVE_EDITOR_COMMAND_ID, { to: 'next', by: 'group' });
|
|
1579
|
-
}
|
|
1580
|
-
}
|
|
1581
|
-
class MoveEditorToAboveGroupAction extends ExecuteCommandAction {
|
|
1582
|
-
constructor() {
|
|
1583
|
-
super({
|
|
1584
|
-
id: 'workbench.action.moveEditorToAboveGroup',
|
|
1585
|
-
title: { value: ( localize('moveEditorToAboveGroup', "Move Editor into Group Above")), original: 'Move Editor into Group Above' },
|
|
1586
|
-
f1: true,
|
|
1587
|
-
category: Categories.View
|
|
1588
|
-
}, MOVE_ACTIVE_EDITOR_COMMAND_ID, { to: 'up', by: 'group' });
|
|
1589
|
-
}
|
|
1590
|
-
}
|
|
1591
|
-
class MoveEditorToBelowGroupAction extends ExecuteCommandAction {
|
|
1592
|
-
constructor() {
|
|
1593
|
-
super({
|
|
1594
|
-
id: 'workbench.action.moveEditorToBelowGroup',
|
|
1595
|
-
title: { value: ( localize('moveEditorToBelowGroup', "Move Editor into Group Below")), original: 'Move Editor into Group Below' },
|
|
1596
|
-
f1: true,
|
|
1597
|
-
category: Categories.View
|
|
1598
|
-
}, MOVE_ACTIVE_EDITOR_COMMAND_ID, { to: 'down', by: 'group' });
|
|
385
|
+
workspacesService.clearRecentlyOpened();
|
|
386
|
+
historyService.clearRecentlyOpened();
|
|
1599
387
|
}
|
|
1600
388
|
}
|
|
1601
|
-
|
|
389
|
+
ClearRecentFilesAction.ID = 'workbench.action.clearRecentFiles';
|
|
390
|
+
class ShowEditorsInActiveGroupByMostRecentlyUsedAction extends Action2 {
|
|
1602
391
|
constructor() {
|
|
1603
392
|
super({
|
|
1604
|
-
id:
|
|
1605
|
-
title: { value: ( localize(
|
|
393
|
+
id: ShowEditorsInActiveGroupByMostRecentlyUsedAction.ID,
|
|
394
|
+
title: { value: ( localize(
|
|
395
|
+
'showEditorsInActiveGroup',
|
|
396
|
+
"Show Editors in Active Group By Most Recently Used"
|
|
397
|
+
)), original: 'Show Editors in Active Group By Most Recently Used' },
|
|
1606
398
|
f1: true,
|
|
1607
399
|
category: Categories.View
|
|
1608
|
-
}
|
|
400
|
+
});
|
|
1609
401
|
}
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
super({
|
|
1614
|
-
id: 'workbench.action.moveEditorToRightGroup',
|
|
1615
|
-
title: { value: ( localize('moveEditorToRightGroup', "Move Editor into Right Group")), original: 'Move Editor into Right Group' },
|
|
1616
|
-
f1: true,
|
|
1617
|
-
category: Categories.View
|
|
1618
|
-
}, MOVE_ACTIVE_EDITOR_COMMAND_ID, { to: 'right', by: 'group' });
|
|
402
|
+
async run(accessor) {
|
|
403
|
+
const quickInputService = accessor.get(IQuickInputService);
|
|
404
|
+
quickInputService.quickAccess.show(ActiveGroupEditorsByMostRecentlyUsedQuickAccess.PREFIX);
|
|
1619
405
|
}
|
|
1620
406
|
}
|
|
1621
|
-
|
|
407
|
+
ShowEditorsInActiveGroupByMostRecentlyUsedAction.ID = 'workbench.action.showEditorsInActiveGroup';
|
|
408
|
+
class ShowAllEditorsByAppearanceAction extends Action2 {
|
|
1622
409
|
constructor() {
|
|
1623
410
|
super({
|
|
1624
|
-
id:
|
|
1625
|
-
title: { value: ( localize('
|
|
411
|
+
id: ShowAllEditorsByAppearanceAction.ID,
|
|
412
|
+
title: { value: ( localize('showAllEditors', "Show All Editors By Appearance")), original: 'Show All Editors By Appearance' },
|
|
1626
413
|
f1: true,
|
|
1627
414
|
keybinding: {
|
|
1628
415
|
weight: 200 ,
|
|
1629
|
-
primary:
|
|
416
|
+
primary: KeyChord(2048 | 41 , 2048 | 46 ),
|
|
1630
417
|
mac: {
|
|
1631
|
-
primary: 2048 |
|
|
418
|
+
primary: 2048 | 512 | 2
|
|
1632
419
|
}
|
|
1633
420
|
},
|
|
1634
|
-
category: Categories.
|
|
1635
|
-
}
|
|
421
|
+
category: Categories.File
|
|
422
|
+
});
|
|
1636
423
|
}
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
super({
|
|
1641
|
-
id: 'workbench.action.moveEditorToLastGroup',
|
|
1642
|
-
title: { value: ( localize('moveEditorToLastGroup', "Move Editor into Last Group")), original: 'Move Editor into Last Group' },
|
|
1643
|
-
f1: true,
|
|
1644
|
-
keybinding: {
|
|
1645
|
-
weight: 200 ,
|
|
1646
|
-
primary: 1024 | 512 | 30 ,
|
|
1647
|
-
mac: {
|
|
1648
|
-
primary: 2048 | 256 | 30
|
|
1649
|
-
}
|
|
1650
|
-
},
|
|
1651
|
-
category: Categories.View
|
|
1652
|
-
}, MOVE_ACTIVE_EDITOR_COMMAND_ID, { to: 'last', by: 'group' });
|
|
424
|
+
async run(accessor) {
|
|
425
|
+
const quickInputService = accessor.get(IQuickInputService);
|
|
426
|
+
quickInputService.quickAccess.show(AllEditorsByAppearanceQuickAccess.PREFIX);
|
|
1653
427
|
}
|
|
1654
428
|
}
|
|
1655
|
-
|
|
429
|
+
ShowAllEditorsByAppearanceAction.ID = 'workbench.action.showAllEditors';
|
|
430
|
+
class ShowAllEditorsByMostRecentlyUsedAction extends Action2 {
|
|
1656
431
|
constructor() {
|
|
1657
432
|
super({
|
|
1658
|
-
id:
|
|
1659
|
-
title: { value: ( localize(
|
|
433
|
+
id: ShowAllEditorsByMostRecentlyUsedAction.ID,
|
|
434
|
+
title: { value: ( localize(
|
|
435
|
+
'showAllEditorsByMostRecentlyUsed',
|
|
436
|
+
"Show All Editors By Most Recently Used"
|
|
437
|
+
)), original: 'Show All Editors By Most Recently Used' },
|
|
1660
438
|
f1: true,
|
|
1661
439
|
category: Categories.View
|
|
1662
|
-
}
|
|
440
|
+
});
|
|
1663
441
|
}
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
super({
|
|
1668
|
-
id: 'workbench.action.splitEditorToNextGroup',
|
|
1669
|
-
title: { value: ( localize('splitEditorToNextGroup', "Split Editor into Next Group")), original: 'Split Editor into Next Group' },
|
|
1670
|
-
f1: true,
|
|
1671
|
-
category: Categories.View
|
|
1672
|
-
}, COPY_ACTIVE_EDITOR_COMMAND_ID, { to: 'next', by: 'group' });
|
|
442
|
+
async run(accessor) {
|
|
443
|
+
const quickInputService = accessor.get(IQuickInputService);
|
|
444
|
+
quickInputService.quickAccess.show(AllEditorsByMostRecentlyUsedQuickAccess.PREFIX);
|
|
1673
445
|
}
|
|
1674
446
|
}
|
|
1675
|
-
|
|
447
|
+
ShowAllEditorsByMostRecentlyUsedAction.ID = 'workbench.action.showAllEditorsByMostRecentlyUsed';
|
|
448
|
+
class QuickAccessPreviousEditorFromHistoryAction extends Action2 {
|
|
1676
449
|
constructor() {
|
|
1677
450
|
super({
|
|
1678
|
-
id:
|
|
1679
|
-
title: { value: ( localize('
|
|
1680
|
-
f1: true
|
|
1681
|
-
|
|
1682
|
-
}, COPY_ACTIVE_EDITOR_COMMAND_ID, { to: 'up', by: 'group' });
|
|
451
|
+
id: QuickAccessPreviousEditorFromHistoryAction.ID,
|
|
452
|
+
title: { value: ( localize('navigateEditorHistoryByInput', "Quick Open Previous Editor from History")), original: 'Quick Open Previous Editor from History' },
|
|
453
|
+
f1: true
|
|
454
|
+
});
|
|
1683
455
|
}
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
}
|
|
456
|
+
async run(accessor) {
|
|
457
|
+
const keybindingService = accessor.get(IKeybindingService);
|
|
458
|
+
const quickInputService = accessor.get(IQuickInputService);
|
|
459
|
+
const editorGroupService = accessor.get(IEditorGroupsService);
|
|
460
|
+
const keybindings = keybindingService.lookupKeybindings(QuickAccessPreviousEditorFromHistoryAction.ID);
|
|
461
|
+
let itemActivation = undefined;
|
|
462
|
+
if (editorGroupService.activeGroup.count === 0) {
|
|
463
|
+
itemActivation = ItemActivation.FIRST;
|
|
464
|
+
}
|
|
465
|
+
quickInputService.quickAccess.show('', { quickNavigateConfiguration: { keybindings }, itemActivation });
|
|
1693
466
|
}
|
|
1694
467
|
}
|
|
468
|
+
QuickAccessPreviousEditorFromHistoryAction.ID = 'workbench.action.openPreviousEditorFromHistory';
|
|
1695
469
|
class SplitEditorToLeftGroupAction extends ExecuteCommandAction {
|
|
1696
470
|
constructor() {
|
|
1697
471
|
super({
|
|
@@ -1704,36 +478,6 @@ class SplitEditorToLeftGroupAction extends ExecuteCommandAction {
|
|
|
1704
478
|
}
|
|
1705
479
|
SplitEditorToLeftGroupAction.ID = 'workbench.action.splitEditorToLeftGroup';
|
|
1706
480
|
SplitEditorToLeftGroupAction.LABEL = ( localize('splitEditorToLeftGroup', "Split Editor into Left Group"));
|
|
1707
|
-
class SplitEditorToRightGroupAction extends ExecuteCommandAction {
|
|
1708
|
-
constructor() {
|
|
1709
|
-
super({
|
|
1710
|
-
id: 'workbench.action.splitEditorToRightGroup',
|
|
1711
|
-
title: { value: ( localize('splitEditorToRightGroup', "Split Editor into Right Group")), original: 'Split Editor into Right Group' },
|
|
1712
|
-
f1: true,
|
|
1713
|
-
category: Categories.View
|
|
1714
|
-
}, COPY_ACTIVE_EDITOR_COMMAND_ID, { to: 'right', by: 'group' });
|
|
1715
|
-
}
|
|
1716
|
-
}
|
|
1717
|
-
class SplitEditorToFirstGroupAction extends ExecuteCommandAction {
|
|
1718
|
-
constructor() {
|
|
1719
|
-
super({
|
|
1720
|
-
id: 'workbench.action.splitEditorToFirstGroup',
|
|
1721
|
-
title: { value: ( localize('splitEditorToFirstGroup', "Split Editor into First Group")), original: 'Split Editor into First Group' },
|
|
1722
|
-
f1: true,
|
|
1723
|
-
category: Categories.View
|
|
1724
|
-
}, COPY_ACTIVE_EDITOR_COMMAND_ID, { to: 'first', by: 'group' });
|
|
1725
|
-
}
|
|
1726
|
-
}
|
|
1727
|
-
class SplitEditorToLastGroupAction extends ExecuteCommandAction {
|
|
1728
|
-
constructor() {
|
|
1729
|
-
super({
|
|
1730
|
-
id: 'workbench.action.splitEditorToLastGroup',
|
|
1731
|
-
title: { value: ( localize('splitEditorToLastGroup', "Split Editor into Last Group")), original: 'Split Editor into Last Group' },
|
|
1732
|
-
f1: true,
|
|
1733
|
-
category: Categories.View
|
|
1734
|
-
}, COPY_ACTIVE_EDITOR_COMMAND_ID, { to: 'last', by: 'group' });
|
|
1735
|
-
}
|
|
1736
|
-
}
|
|
1737
481
|
class EditorLayoutSingleAction extends ExecuteCommandAction {
|
|
1738
482
|
constructor() {
|
|
1739
483
|
super({
|
|
@@ -1822,125 +566,4 @@ class EditorLayoutTwoRowsRightAction extends ExecuteCommandAction {
|
|
|
1822
566
|
}
|
|
1823
567
|
}
|
|
1824
568
|
EditorLayoutTwoRowsRightAction.ID = 'workbench.action.editorLayoutTwoRowsRight';
|
|
1825
|
-
|
|
1826
|
-
constructor(desc, direction) {
|
|
1827
|
-
super(desc);
|
|
1828
|
-
this.direction = direction;
|
|
1829
|
-
}
|
|
1830
|
-
async run(accessor) {
|
|
1831
|
-
const editorGroupService = accessor.get(IEditorGroupsService);
|
|
1832
|
-
editorGroupService.addGroup(editorGroupService.activeGroup, this.direction, { activate: true });
|
|
1833
|
-
}
|
|
1834
|
-
}
|
|
1835
|
-
class NewEditorGroupLeftAction extends AbstractCreateEditorGroupAction {
|
|
1836
|
-
constructor() {
|
|
1837
|
-
super({
|
|
1838
|
-
id: 'workbench.action.newGroupLeft',
|
|
1839
|
-
title: { value: ( localize('newGroupLeft', "New Editor Group to the Left")), original: 'New Editor Group to the Left' },
|
|
1840
|
-
f1: true,
|
|
1841
|
-
category: Categories.View
|
|
1842
|
-
}, 2 );
|
|
1843
|
-
}
|
|
1844
|
-
}
|
|
1845
|
-
class NewEditorGroupRightAction extends AbstractCreateEditorGroupAction {
|
|
1846
|
-
constructor() {
|
|
1847
|
-
super({
|
|
1848
|
-
id: 'workbench.action.newGroupRight',
|
|
1849
|
-
title: { value: ( localize('newGroupRight', "New Editor Group to the Right")), original: 'New Editor Group to the Right' },
|
|
1850
|
-
f1: true,
|
|
1851
|
-
category: Categories.View
|
|
1852
|
-
}, 3 );
|
|
1853
|
-
}
|
|
1854
|
-
}
|
|
1855
|
-
class NewEditorGroupAboveAction extends AbstractCreateEditorGroupAction {
|
|
1856
|
-
constructor() {
|
|
1857
|
-
super({
|
|
1858
|
-
id: 'workbench.action.newGroupAbove',
|
|
1859
|
-
title: { value: ( localize('newGroupAbove', "New Editor Group Above")), original: 'New Editor Group Above' },
|
|
1860
|
-
f1: true,
|
|
1861
|
-
category: Categories.View
|
|
1862
|
-
}, 0 );
|
|
1863
|
-
}
|
|
1864
|
-
}
|
|
1865
|
-
class NewEditorGroupBelowAction extends AbstractCreateEditorGroupAction {
|
|
1866
|
-
constructor() {
|
|
1867
|
-
super({
|
|
1868
|
-
id: 'workbench.action.newGroupBelow',
|
|
1869
|
-
title: { value: ( localize('newGroupBelow', "New Editor Group Below")), original: 'New Editor Group Below' },
|
|
1870
|
-
f1: true,
|
|
1871
|
-
category: Categories.View
|
|
1872
|
-
}, 1 );
|
|
1873
|
-
}
|
|
1874
|
-
}
|
|
1875
|
-
class ToggleEditorTypeAction extends Action2 {
|
|
1876
|
-
constructor() {
|
|
1877
|
-
super({
|
|
1878
|
-
id: 'workbench.action.toggleEditorType',
|
|
1879
|
-
title: { value: ( localize('toggleEditorType', "Toggle Editor Type")), original: 'Toggle Editor Type' },
|
|
1880
|
-
f1: true,
|
|
1881
|
-
category: Categories.View,
|
|
1882
|
-
precondition: ActiveEditorAvailableEditorIdsContext
|
|
1883
|
-
});
|
|
1884
|
-
}
|
|
1885
|
-
async run(accessor) {
|
|
1886
|
-
const editorService = accessor.get(IEditorService);
|
|
1887
|
-
const editorResolverService = accessor.get(IEditorResolverService);
|
|
1888
|
-
const activeEditorPane = editorService.activeEditorPane;
|
|
1889
|
-
if (!activeEditorPane) {
|
|
1890
|
-
return;
|
|
1891
|
-
}
|
|
1892
|
-
const activeEditorResource = EditorResourceAccessor.getCanonicalUri(activeEditorPane.input);
|
|
1893
|
-
if (!activeEditorResource) {
|
|
1894
|
-
return;
|
|
1895
|
-
}
|
|
1896
|
-
const editorIds = ( editorResolverService.getEditors(activeEditorResource).map(editor => editor.id)).filter(id => id !== activeEditorPane.input.editorId);
|
|
1897
|
-
if (editorIds.length === 0) {
|
|
1898
|
-
return;
|
|
1899
|
-
}
|
|
1900
|
-
await editorService.replaceEditors([
|
|
1901
|
-
{
|
|
1902
|
-
editor: activeEditorPane.input,
|
|
1903
|
-
replacement: {
|
|
1904
|
-
resource: activeEditorResource,
|
|
1905
|
-
options: {
|
|
1906
|
-
override: editorIds[0]
|
|
1907
|
-
}
|
|
1908
|
-
}
|
|
1909
|
-
}
|
|
1910
|
-
], activeEditorPane.group);
|
|
1911
|
-
}
|
|
1912
|
-
}
|
|
1913
|
-
class ReOpenInTextEditorAction extends Action2 {
|
|
1914
|
-
constructor() {
|
|
1915
|
-
super({
|
|
1916
|
-
id: 'workbench.action.reopenTextEditor',
|
|
1917
|
-
title: { value: ( localize('reopenTextEditor', "Reopen Editor With Text Editor")), original: 'Reopen Editor With Text Editor' },
|
|
1918
|
-
f1: true,
|
|
1919
|
-
category: Categories.View,
|
|
1920
|
-
precondition: ActiveEditorAvailableEditorIdsContext
|
|
1921
|
-
});
|
|
1922
|
-
}
|
|
1923
|
-
async run(accessor) {
|
|
1924
|
-
const editorService = accessor.get(IEditorService);
|
|
1925
|
-
const activeEditorPane = editorService.activeEditorPane;
|
|
1926
|
-
if (!activeEditorPane) {
|
|
1927
|
-
return;
|
|
1928
|
-
}
|
|
1929
|
-
const activeEditorResource = EditorResourceAccessor.getCanonicalUri(activeEditorPane.input);
|
|
1930
|
-
if (!activeEditorResource) {
|
|
1931
|
-
return;
|
|
1932
|
-
}
|
|
1933
|
-
await editorService.replaceEditors([
|
|
1934
|
-
{
|
|
1935
|
-
editor: activeEditorPane.input,
|
|
1936
|
-
replacement: {
|
|
1937
|
-
resource: activeEditorResource,
|
|
1938
|
-
options: {
|
|
1939
|
-
override: DEFAULT_EDITOR_ASSOCIATION.id
|
|
1940
|
-
}
|
|
1941
|
-
}
|
|
1942
|
-
}
|
|
1943
|
-
], activeEditorPane.group);
|
|
1944
|
-
}
|
|
1945
|
-
}
|
|
1946
|
-
export { ClearEditorHistoryAction, ClearRecentFilesAction, CloseAllEditorGroupsAction, CloseAllEditorsAction, CloseEditorAction, CloseEditorInAllGroupsAction, CloseEditorsInOtherGroupsAction, CloseLeftEditorsInGroupAction, CloseOneEditorAction, DuplicateGroupDownAction, DuplicateGroupLeftAction, DuplicateGroupRightAction, DuplicateGroupUpAction, EditorLayoutSingleAction, EditorLayoutThreeColumnsAction, EditorLayoutThreeRowsAction, EditorLayoutTwoByTwoGridAction, EditorLayoutTwoColumnsAction, EditorLayoutTwoColumnsBottomAction, EditorLayoutTwoRowsAction, EditorLayoutTwoRowsRightAction, FocusAboveGroup, FocusActiveGroupAction, FocusBelowGroup, FocusFirstGroupAction, FocusLastGroupAction, FocusLeftGroup, FocusNextGroup, FocusPreviousGroup, FocusRightGroup, JoinAllGroupsAction, JoinTwoGroupsAction, MaximizeGroupAction, MinimizeOtherGroupsAction, MoveEditorLeftInGroupAction, MoveEditorRightInGroupAction, MoveEditorToAboveGroupAction, MoveEditorToBelowGroupAction, MoveEditorToFirstGroupAction, MoveEditorToLastGroupAction, MoveEditorToLeftGroupAction, MoveEditorToNextGroupAction, MoveEditorToPreviousGroupAction, MoveEditorToRightGroupAction, MoveGroupDownAction, MoveGroupLeftAction, MoveGroupRightAction, MoveGroupUpAction, NavigateBackwardsAction, NavigateBackwardsInEditsAction, NavigateBackwardsInNavigationsAction, NavigateBetweenGroupsAction, NavigateForwardAction, NavigateForwardInEditsAction, NavigateForwardInNavigationsAction, NavigatePreviousAction, NavigatePreviousInEditsAction, NavigatePreviousInNavigationsAction, NavigateToLastEditLocationAction, NavigateToLastNavigationLocationAction, NewEditorGroupAboveAction, NewEditorGroupBelowAction, NewEditorGroupLeftAction, NewEditorGroupRightAction, OpenFirstEditorInGroup, OpenLastEditorInGroup, OpenNextEditor, OpenNextEditorInGroup, OpenNextRecentlyUsedEditorAction, OpenNextRecentlyUsedEditorInGroupAction, OpenPreviousEditor, OpenPreviousEditorInGroup, OpenPreviousRecentlyUsedEditorAction, OpenPreviousRecentlyUsedEditorInGroupAction, QuickAccessLeastRecentlyUsedEditorAction, QuickAccessLeastRecentlyUsedEditorInGroupAction, QuickAccessPreviousEditorFromHistoryAction, QuickAccessPreviousRecentlyUsedEditorAction, QuickAccessPreviousRecentlyUsedEditorInGroupAction, ReOpenInTextEditorAction, ReopenClosedEditorAction, ResetGroupSizesAction, RevertAndCloseEditorAction, ShowAllEditorsByAppearanceAction, ShowAllEditorsByMostRecentlyUsedAction, ShowEditorsInActiveGroupByMostRecentlyUsedAction, SplitEditorAction, SplitEditorDownAction, SplitEditorLeftAction, SplitEditorOrthogonalAction, SplitEditorRightAction, SplitEditorToAboveGroupAction, SplitEditorToBelowGroupAction, SplitEditorToFirstGroupAction, SplitEditorToLastGroupAction, SplitEditorToLeftGroupAction, SplitEditorToNextGroupAction, SplitEditorToPreviousGroupAction, SplitEditorToRightGroupAction, SplitEditorUpAction, ToggleEditorTypeAction, ToggleGroupSizesAction, UnpinEditorAction };
|
|
569
|
+
export { ClearRecentFilesAction, CloseAllEditorsAction, CloseEditorAction, CloseOneEditorAction, EditorLayoutSingleAction, EditorLayoutThreeColumnsAction, EditorLayoutThreeRowsAction, EditorLayoutTwoByTwoGridAction, EditorLayoutTwoColumnsAction, EditorLayoutTwoColumnsBottomAction, EditorLayoutTwoRowsAction, EditorLayoutTwoRowsRightAction, NavigateBackwardsAction, NavigateForwardAction, QuickAccessPreviousEditorFromHistoryAction, ReopenClosedEditorAction, ShowAllEditorsByAppearanceAction, ShowAllEditorsByMostRecentlyUsedAction, ShowEditorsInActiveGroupByMostRecentlyUsedAction, SplitEditorAction, SplitEditorDownAction, SplitEditorToLeftGroupAction, SplitEditorUpAction, UnpinEditorAction };
|