@codingame/monaco-vscode-api 4.1.0 → 4.1.2
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/missing-services.js +11 -2
- package/package.json +8 -8
- package/vscode/src/vs/base/common/objects.js +1 -1
- package/vscode/src/vs/editor/browser/coreCommands.js +1 -1
- package/vscode/src/vs/platform/telemetry/common/telemetry.js +1 -2
- package/vscode/src/vs/platform/telemetry/common/telemetryUtils.js +3 -7
- package/vscode/src/vs/workbench/common/editor.js +1 -5
- package/vscode/src/vs/workbench/contrib/chat/common/chatService.js +1 -2
- package/vscode/src/vs/workbench/contrib/logs/common/logsActions.js +6 -12
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/utils.js +1 -1
- package/vscode/src/vs/workbench/services/issue/browser/issueTroubleshoot.js +418 -0
- package/vscode/src/vs/workbench/services/userDataProfile/common/userDataProfile.js +2 -7
- package/override/vs/platform/userDataSync/common/extensionsSync.js +0 -4
- package/override/vs/platform/userDataSync/common/globalStateSync.js +0 -5
- package/vscode/src/vs/base/browser/hash.js +0 -15
- package/vscode/src/vs/base/browser/ui/icons/iconSelectBox.css.js +0 -4
- package/vscode/src/vs/base/browser/ui/icons/iconSelectBox.js +0 -246
- package/vscode/src/vs/base/common/amd.js +0 -101
- package/vscode/src/vs/base/common/console.js +0 -60
- package/vscode/src/vs/base/common/paging.js +0 -116
- package/vscode/src/vs/base/common/parsers.js +0 -43
- package/vscode/src/vs/base/common/processes.js +0 -25
- package/vscode/src/vs/base/parts/request/browser/request.js +0 -60
- package/vscode/src/vs/editor/common/services/modelUndoRedoParticipant.js +0 -56
- package/vscode/src/vs/editor/common/services/textResourceConfigurationService.js +0 -116
- package/vscode/src/vs/editor/contrib/quickAccess/browser/commandsQuickAccess.js +0 -23
- package/vscode/src/vs/platform/debug/common/extensionHostDebugIpc.js +0 -71
- package/vscode/src/vs/platform/download/common/downloadIpc.js +0 -16
- package/vscode/src/vs/platform/download/common/downloadService.js +0 -31
- package/vscode/src/vs/platform/extensionManagement/common/abstractExtensionManagementService.js +0 -748
- package/vscode/src/vs/platform/extensionManagement/common/extensionGalleryService.js +0 -852
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagementCLI.js +0 -495
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagementIpc.js +0 -120
- package/vscode/src/vs/platform/extensionManagement/common/extensionTipsService.js +0 -65
- package/vscode/src/vs/platform/extensionManagement/common/unsupportedExtensionsMigration.js +0 -56
- package/vscode/src/vs/platform/extensionResourceLoader/browser/extensionResourceLoaderService.js +0 -42
- package/vscode/src/vs/platform/externalServices/common/marketplace.js +0 -15
- package/vscode/src/vs/platform/externalTerminal/common/externalTerminal.js +0 -3
- package/vscode/src/vs/platform/files/browser/indexedDBFileSystemProvider.js +0 -404
- package/vscode/src/vs/platform/files/common/fileService.js +0 -986
- package/vscode/src/vs/platform/files/common/io.js +0 -75
- package/vscode/src/vs/platform/issue/common/issueReporterUtil.js +0 -15
- package/vscode/src/vs/platform/keyboardLayout/common/keyboardConfig.js +0 -48
- package/vscode/src/vs/platform/keyboardLayout/common/keyboardMapper.js +0 -23
- package/vscode/src/vs/platform/lifecycle/common/lifecycle.js +0 -25
- package/vscode/src/vs/platform/log/common/fileLog.js +0 -105
- package/vscode/src/vs/platform/log/common/logIpc.js +0 -26
- package/vscode/src/vs/platform/quickinput/browser/commandsQuickAccess.js +0 -355
- package/vscode/src/vs/platform/quickinput/browser/helpQuickAccess.js +0 -65
- package/vscode/src/vs/platform/remote/browser/remoteAuthorityResolverService.js +0 -108
- package/vscode/src/vs/platform/remote/common/managedSocket.js +0 -96
- package/vscode/src/vs/platform/request/browser/requestService.js +0 -28
- package/vscode/src/vs/platform/request/common/requestIpc.js +0 -18
- package/vscode/src/vs/platform/telemetry/common/commonProperties.js +0 -11
- package/vscode/src/vs/platform/terminal/common/capabilities/naiveCwdDetectionCapability.js +0 -22
- package/vscode/src/vs/platform/terminal/common/environmentVariable.js +0 -7
- package/vscode/src/vs/platform/terminal/common/environmentVariableCollection.js +0 -196
- package/vscode/src/vs/platform/terminal/common/terminalLogService.js +0 -49
- package/vscode/src/vs/platform/terminal/common/terminalPlatformConfiguration.js +0 -518
- package/vscode/src/vs/platform/terminal/common/terminalProfiles.js +0 -111
- package/vscode/src/vs/platform/terminal/common/terminalRecorder.js +0 -66
- package/vscode/src/vs/platform/update/common/update.config.contribution.js +0 -98
- package/vscode/src/vs/platform/url/common/urlService.js +0 -20
- package/vscode/src/vs/platform/userDataProfile/browser/userDataProfile.js +0 -93
- package/vscode/src/vs/platform/userDataProfile/common/userDataProfileStorageService.js +0 -8
- package/vscode/src/vs/platform/userDataSync/common/extensionsSync.js +0 -256
- package/vscode/src/vs/platform/userDataSync/common/globalStateSync.js +0 -120
- package/vscode/src/vs/platform/userDataSync/common/keybindingsMerge.js +0 -275
- package/vscode/src/vs/platform/userDataSync/common/keybindingsSync.js +0 -316
- package/vscode/src/vs/platform/userDataSync/common/settingsSync.js +0 -314
- package/vscode/src/vs/platform/userDataSync/common/snippetsMerge.js +0 -125
- package/vscode/src/vs/platform/userDataSync/common/snippetsSync.js +0 -474
- package/vscode/src/vs/platform/userDataSync/common/tasksSync.js +0 -242
- package/vscode/src/vs/platform/userDataSync/common/userDataAutoSyncService.js +0 -464
- package/vscode/src/vs/platform/userDataSync/common/userDataProfilesManifestMerge.js +0 -90
- package/vscode/src/vs/platform/userDataSync/common/userDataProfilesManifestSync.js +0 -257
- package/vscode/src/vs/platform/userDataSync/common/userDataSyncEnablementService.js +0 -75
- package/vscode/src/vs/platform/userDataSync/common/userDataSyncLocalStoreService.js +0 -148
- package/vscode/src/vs/platform/userDataSync/common/userDataSyncLog.js +0 -39
- package/vscode/src/vs/platform/userDataSync/common/userDataSyncResourceProvider.js +0 -447
- package/vscode/src/vs/platform/userDataSync/common/userDataSyncService.js +0 -781
- package/vscode/src/vs/workbench/api/browser/extensionHost.contribution.js +0 -103
- package/vscode/src/vs/workbench/api/browser/mainThreadAiEmbeddingVector.js +0 -29
- package/vscode/src/vs/workbench/api/browser/mainThreadAiRelatedInformation.js +0 -33
- package/vscode/src/vs/workbench/api/browser/mainThreadAuthentication.js +0 -252
- package/vscode/src/vs/workbench/api/browser/mainThreadBulkEdits.js +0 -66
- package/vscode/src/vs/workbench/api/browser/mainThreadCLICommands.js +0 -102
- package/vscode/src/vs/workbench/api/browser/mainThreadChat.js +0 -68
- package/vscode/src/vs/workbench/api/browser/mainThreadChatAgents2.js +0 -205
- package/vscode/src/vs/workbench/api/browser/mainThreadChatVariables.js +0 -39
- package/vscode/src/vs/workbench/api/browser/mainThreadClipboard.js +0 -22
- package/vscode/src/vs/workbench/api/browser/mainThreadCodeInsets.js +0 -106
- package/vscode/src/vs/workbench/api/browser/mainThreadCommands.js +0 -96
- package/vscode/src/vs/workbench/api/browser/mainThreadComments.js +0 -558
- package/vscode/src/vs/workbench/api/browser/mainThreadConfiguration.js +0 -78
- package/vscode/src/vs/workbench/api/browser/mainThreadConsole.js +0 -33
- package/vscode/src/vs/workbench/api/browser/mainThreadCustomEditors.js +0 -577
- package/vscode/src/vs/workbench/api/browser/mainThreadDebugService.js +0 -433
- package/vscode/src/vs/workbench/api/browser/mainThreadDecorations.js +0 -100
- package/vscode/src/vs/workbench/api/browser/mainThreadDiagnostics.js +0 -67
- package/vscode/src/vs/workbench/api/browser/mainThreadDialogs.js +0 -66
- package/vscode/src/vs/workbench/api/browser/mainThreadDocumentContentProviders.js +0 -77
- package/vscode/src/vs/workbench/api/browser/mainThreadDocuments.js +0 -251
- package/vscode/src/vs/workbench/api/browser/mainThreadDocumentsAndEditors.js +0 -368
- package/vscode/src/vs/workbench/api/browser/mainThreadDownloadService.js +0 -20
- package/vscode/src/vs/workbench/api/browser/mainThreadEditSessionIdentityParticipant.js +0 -39
- package/vscode/src/vs/workbench/api/browser/mainThreadEditor.js +0 -412
- package/vscode/src/vs/workbench/api/browser/mainThreadEditorTabs.js +0 -499
- package/vscode/src/vs/workbench/api/browser/mainThreadEditors.js +0 -225
- package/vscode/src/vs/workbench/api/browser/mainThreadErrors.js +0 -22
- package/vscode/src/vs/workbench/api/browser/mainThreadExtensionService.js +0 -315
- package/vscode/src/vs/workbench/api/browser/mainThreadFileSystem.js +0 -206
- package/vscode/src/vs/workbench/api/browser/mainThreadFileSystemEventService.js +0 -367
- package/vscode/src/vs/workbench/api/browser/mainThreadInlineChat.js +0 -70
- package/vscode/src/vs/workbench/api/browser/mainThreadInteractive.js +0 -26
- package/vscode/src/vs/workbench/api/browser/mainThreadIssueReporter.js +0 -48
- package/vscode/src/vs/workbench/api/browser/mainThreadLabelService.js +0 -25
- package/vscode/src/vs/workbench/api/browser/mainThreadLanguageFeatures.js +0 -1014
- package/vscode/src/vs/workbench/api/browser/mainThreadLanguageModels.js +0 -183
- package/vscode/src/vs/workbench/api/browser/mainThreadLanguages.js +0 -76
- package/vscode/src/vs/workbench/api/browser/mainThreadLocalization.js +0 -33
- package/vscode/src/vs/workbench/api/browser/mainThreadLogService.js +0 -76
- package/vscode/src/vs/workbench/api/browser/mainThreadManagedSockets.js +0 -91
- package/vscode/src/vs/workbench/api/browser/mainThreadMessageService.js +0 -135
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebook.js +0 -192
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookDocuments.js +0 -121
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookDocumentsAndEditors.js +0 -186
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookDto.js +0 -127
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookEditors.js +0 -129
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookKernels.js +0 -372
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookRenderers.js +0 -23
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookSaveParticipant.js +0 -46
- package/vscode/src/vs/workbench/api/browser/mainThreadOutputService.js +0 -74
- package/vscode/src/vs/workbench/api/browser/mainThreadProfileContentHandlers.js +0 -36
- package/vscode/src/vs/workbench/api/browser/mainThreadProgress.js +0 -66
- package/vscode/src/vs/workbench/api/browser/mainThreadQuickDiff.js +0 -40
- package/vscode/src/vs/workbench/api/browser/mainThreadQuickOpen.js +0 -183
- package/vscode/src/vs/workbench/api/browser/mainThreadRemoteConnectionData.js +0 -28
- package/vscode/src/vs/workbench/api/browser/mainThreadSCM.js +0 -491
- package/vscode/src/vs/workbench/api/browser/mainThreadSaveParticipant.js +0 -47
- package/vscode/src/vs/workbench/api/browser/mainThreadSearch.js +0 -166
- package/vscode/src/vs/workbench/api/browser/mainThreadSecretState.js +0 -68
- package/vscode/src/vs/workbench/api/browser/mainThreadShare.js +0 -48
- package/vscode/src/vs/workbench/api/browser/mainThreadSpeech.js +0 -97
- package/vscode/src/vs/workbench/api/browser/mainThreadStatusBar.js +0 -51
- package/vscode/src/vs/workbench/api/browser/mainThreadStorage.js +0 -70
- package/vscode/src/vs/workbench/api/browser/mainThreadTask.js +0 -729
- package/vscode/src/vs/workbench/api/browser/mainThreadTelemetry.js +0 -51
- package/vscode/src/vs/workbench/api/browser/mainThreadTerminalService.js +0 -407
- package/vscode/src/vs/workbench/api/browser/mainThreadTerminalShellIntegration.js +0 -49
- package/vscode/src/vs/workbench/api/browser/mainThreadTesting.js +0 -217
- package/vscode/src/vs/workbench/api/browser/mainThreadTheming.js +0 -22
- package/vscode/src/vs/workbench/api/browser/mainThreadTimeline.js +0 -53
- package/vscode/src/vs/workbench/api/browser/mainThreadTreeViews.js +0 -310
- package/vscode/src/vs/workbench/api/browser/mainThreadTunnelService.js +0 -221
- package/vscode/src/vs/workbench/api/browser/mainThreadUriOpeners.js +0 -108
- package/vscode/src/vs/workbench/api/browser/mainThreadUrls.js +0 -59
- package/vscode/src/vs/workbench/api/browser/mainThreadWebviewManager.js +0 -27
- package/vscode/src/vs/workbench/api/browser/mainThreadWebviewPanels.js +0 -281
- package/vscode/src/vs/workbench/api/browser/mainThreadWebviewViews.js +0 -98
- package/vscode/src/vs/workbench/api/browser/mainThreadWebviews.js +0 -133
- package/vscode/src/vs/workbench/api/browser/mainThreadWindow.js +0 -55
- package/vscode/src/vs/workbench/api/browser/mainThreadWorkspace.js +0 -266
- package/vscode/src/vs/workbench/api/common/configurationExtensionPoint.js +0 -594
- package/vscode/src/vs/workbench/api/common/shared/dataTransferCache.js +0 -33
- package/vscode/src/vs/workbench/browser/actions/quickAccessActions.js +0 -227
- package/vscode/src/vs/workbench/browser/layout.js +0 -2059
- package/vscode/src/vs/workbench/browser/parts/banner/bannerPart.js +0 -233
- package/vscode/src/vs/workbench/browser/parts/banner/media/bannerpart.css.js +0 -4
- package/vscode/src/vs/workbench/browser/parts/dialogs/dialog.web.contribution.js +0 -74
- package/vscode/src/vs/workbench/browser/parts/dialogs/dialogHandler.js +0 -132
- package/vscode/src/vs/workbench/browser/parts/statusbar/media/statusbarpart.css.js +0 -4
- package/vscode/src/vs/workbench/browser/parts/statusbar/statusbarActions.js +0 -119
- package/vscode/src/vs/workbench/browser/parts/statusbar/statusbarItem.js +0 -250
- package/vscode/src/vs/workbench/browser/parts/statusbar/statusbarModel.js +0 -249
- package/vscode/src/vs/workbench/browser/parts/statusbar/statusbarPart.js +0 -610
- package/vscode/src/vs/workbench/browser/parts/titlebar/commandCenterControl.js +0 -220
- package/vscode/src/vs/workbench/browser/parts/titlebar/media/titlebarpart.css.js +0 -4
- package/vscode/src/vs/workbench/browser/parts/titlebar/titlebarActions.js +0 -259
- package/vscode/src/vs/workbench/browser/parts/titlebar/titlebarPart.js +0 -582
- package/vscode/src/vs/workbench/common/dialogs.js +0 -36
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibility.contribution.js +0 -23
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityStatus.js +0 -112
- package/vscode/src/vs/workbench/contrib/accessibility/browser/openDiffEditorAnnouncement.js +0 -50
- package/vscode/src/vs/workbench/contrib/accessibility/browser/saveAccessibilitySignal.js +0 -18
- package/vscode/src/vs/workbench/contrib/accessibility/browser/unfocusedViewDimmingContribution.js +0 -66
- package/vscode/src/vs/workbench/contrib/bulkEdit/browser/bulkEditService.js +0 -358
- package/vscode/src/vs/workbench/contrib/bulkEdit/browser/bulkFileEdits.js +0 -362
- package/vscode/src/vs/workbench/contrib/bulkEdit/browser/bulkTextEdits.js +0 -265
- package/vscode/src/vs/workbench/contrib/bulkEdit/browser/conflicts.js +0 -78
- package/vscode/src/vs/workbench/contrib/bulkEdit/browser/preview/bulkEdit.contribution.js +0 -364
- package/vscode/src/vs/workbench/contrib/bulkEdit/browser/preview/bulkEdit.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/bulkEdit/browser/preview/bulkEditPane.js +0 -340
- package/vscode/src/vs/workbench/contrib/bulkEdit/browser/preview/bulkEditPreview.js +0 -361
- package/vscode/src/vs/workbench/contrib/bulkEdit/browser/preview/bulkEditTree.js +0 -655
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatClear.js +0 -15
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatClearActions.js +0 -113
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCodeblockActions.js +0 -501
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCopyActions.js +0 -80
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatFileTreeActions.js +0 -75
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatImportExport.js +0 -108
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatMoveActions.js +0 -169
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatTitleActions.js +0 -269
- package/vscode/src/vs/workbench/contrib/chat/browser/chat.contribution.js +0 -316
- package/vscode/src/vs/workbench/contrib/chat/browser/chatAccessibilityService.js +0 -58
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContributionServiceImpl.js +0 -421
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditor.js +0 -96
- package/vscode/src/vs/workbench/contrib/chat/browser/chatQuick.js +0 -283
- package/vscode/src/vs/workbench/contrib/chat/browser/chatVariables.js +0 -88
- package/vscode/src/vs/workbench/contrib/chat/browser/chatViewPane.js +0 -183
- package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatHistoryVariables.js +0 -25
- package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatInputEditorContrib.js +0 -617
- package/vscode/src/vs/workbench/contrib/chat/common/chatServiceImpl.js +0 -598
- package/vscode/src/vs/workbench/contrib/chat/common/voiceChat.js +0 -139
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/accessibility/accessibility.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/accessibility/accessibility.js +0 -39
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/emptyTextEditorHint/emptyTextEditorHint.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/emptyTextEditorHint/emptyTextEditorHint.js +0 -389
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/outline/documentSymbolsOutline.js +0 -370
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/outline/documentSymbolsTree.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/outline/documentSymbolsTree.js +0 -290
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/quickaccess/gotoLineQuickAccess.js +0 -86
- package/vscode/src/vs/workbench/contrib/commands/common/commands.contribution.js +0 -145
- package/vscode/src/vs/workbench/contrib/comments/browser/comments.contribution.js +0 -231
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsEditorContribution.js +0 -282
- package/vscode/src/vs/workbench/contrib/customEditor/common/customTextEditorModel.js +0 -74
- package/vscode/src/vs/workbench/contrib/debug/browser/callStackView.js +0 -1024
- package/vscode/src/vs/workbench/contrib/debug/browser/debug.contribution.js +0 -1003
- package/vscode/src/vs/workbench/contrib/debug/browser/debugANSIHandling.js +0 -345
- package/vscode/src/vs/workbench/contrib/debug/browser/debugActionViewItems.js +0 -335
- package/vscode/src/vs/workbench/contrib/debug/browser/debugAdapterManager.js +0 -430
- package/vscode/src/vs/workbench/contrib/debug/browser/debugCommands.js +0 -1037
- package/vscode/src/vs/workbench/contrib/debug/browser/debugConfigurationManager.js +0 -647
- package/vscode/src/vs/workbench/contrib/debug/browser/debugConsoleQuickAccess.js +0 -62
- package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorActions.js +0 -634
- package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorContribution.js +0 -738
- package/vscode/src/vs/workbench/contrib/debug/browser/debugHover.js +0 -406
- package/vscode/src/vs/workbench/contrib/debug/browser/debugMemory.js +0 -204
- package/vscode/src/vs/workbench/contrib/debug/browser/debugProgress.js +0 -78
- package/vscode/src/vs/workbench/contrib/debug/browser/debugQuickAccess.js +0 -167
- package/vscode/src/vs/workbench/contrib/debug/browser/debugService.js +0 -1269
- package/vscode/src/vs/workbench/contrib/debug/browser/debugSession.js +0 -1328
- package/vscode/src/vs/workbench/contrib/debug/browser/debugSessionPicker.js +0 -113
- package/vscode/src/vs/workbench/contrib/debug/browser/debugStatus.js +0 -75
- package/vscode/src/vs/workbench/contrib/debug/browser/debugTaskRunner.js +0 -305
- package/vscode/src/vs/workbench/contrib/debug/browser/debugTitle.js +0 -29
- package/vscode/src/vs/workbench/contrib/debug/browser/debugToolBar.js +0 -385
- package/vscode/src/vs/workbench/contrib/debug/browser/debugViewlet.js +0 -265
- package/vscode/src/vs/workbench/contrib/debug/browser/disassemblyView.js +0 -815
- package/vscode/src/vs/workbench/contrib/debug/browser/exceptionWidget.js +0 -129
- package/vscode/src/vs/workbench/contrib/debug/browser/extensionHostDebugService.js +0 -140
- package/vscode/src/vs/workbench/contrib/debug/browser/linkDetector.js +0 -260
- package/vscode/src/vs/workbench/contrib/debug/browser/loadedScriptsView.js +0 -667
- package/vscode/src/vs/workbench/contrib/debug/browser/media/debug.contribution.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/debug/browser/media/debugHover.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/debug/browser/media/debugToolBar.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/debug/browser/media/debugViewlet.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/debug/browser/media/exceptionWidget.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/debug/browser/media/repl.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/debug/browser/rawDebugSession.js +0 -707
- package/vscode/src/vs/workbench/contrib/debug/browser/repl.js +0 -1000
- package/vscode/src/vs/workbench/contrib/debug/browser/replFilter.js +0 -46
- package/vscode/src/vs/workbench/contrib/debug/browser/replViewer.js +0 -350
- package/vscode/src/vs/workbench/contrib/debug/browser/statusbarColorProvider.js +0 -127
- package/vscode/src/vs/workbench/contrib/debug/browser/variablesView.js +0 -732
- package/vscode/src/vs/workbench/contrib/debug/browser/watchExpressionsView.js +0 -499
- package/vscode/src/vs/workbench/contrib/debug/browser/welcomeView.js +0 -160
- package/vscode/src/vs/workbench/contrib/debug/common/breakpoints.js +0 -19
- package/vscode/src/vs/workbench/contrib/debug/common/debugCompoundRoot.js +0 -15
- package/vscode/src/vs/workbench/contrib/debug/common/debugContentProvider.js +0 -108
- package/vscode/src/vs/workbench/contrib/debug/common/debugLifecycle.js +0 -60
- package/vscode/src/vs/workbench/contrib/debug/common/debugSchemas.js +0 -458
- package/vscode/src/vs/workbench/contrib/debug/common/debugStorage.js +0 -164
- package/vscode/src/vs/workbench/contrib/debug/common/debugTelemetry.js +0 -34
- package/vscode/src/vs/workbench/contrib/debug/common/debugViewModel.js +0 -148
- package/vscode/src/vs/workbench/contrib/debug/common/debugger.js +0 -287
- package/vscode/src/vs/workbench/contrib/debug/common/loadedScriptsPicker.js +0 -85
- package/vscode/src/vs/workbench/contrib/editSessions/browser/editSessions.contribution.js +0 -1197
- package/vscode/src/vs/workbench/contrib/editSessions/browser/editSessionsFileSystemProvider.js +0 -55
- package/vscode/src/vs/workbench/contrib/editSessions/browser/editSessionsStorageService.js +0 -455
- package/vscode/src/vs/workbench/contrib/editSessions/browser/editSessionsViews.js +0 -337
- package/vscode/src/vs/workbench/contrib/editSessions/common/editSessionsLogService.js +0 -39
- package/vscode/src/vs/workbench/contrib/editSessions/common/editSessionsStorageClient.js +0 -4
- package/vscode/src/vs/workbench/contrib/editSessions/common/workspaceStateSync.js +0 -140
- package/vscode/src/vs/workbench/contrib/emmet/browser/actions/expandAbbreviation.js +0 -41
- package/vscode/src/vs/workbench/contrib/emmet/browser/emmetActions.js +0 -88
- package/vscode/src/vs/workbench/contrib/extensions/browser/abstractRuntimeExtensionsEditor.js +0 -539
- package/vscode/src/vs/workbench/contrib/extensions/browser/browserRuntimeExtensionsEditor.js +0 -26
- package/vscode/src/vs/workbench/contrib/extensions/browser/configBasedRecommendations.js +0 -76
- package/vscode/src/vs/workbench/contrib/extensions/browser/deprecatedExtensionsChecker.js +0 -88
- package/vscode/src/vs/workbench/contrib/extensions/browser/exeBasedRecommendations.js +0 -58
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionEditor.js +0 -1171
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionEnablementWorkspaceTrustTransitionParticipant.js +0 -50
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionFeaturesTab.js +0 -543
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionRecommendationNotificationService.js +0 -464
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionRecommendations.js +0 -15
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionRecommendationsService.js +0 -233
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensions.contribution.js +0 -2182
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensions.web.contribution.js +0 -12
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsActivationProgress.js +0 -44
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsCompletionItemsProvider.js +0 -63
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsDependencyChecker.js +0 -96
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsList.js +0 -219
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsQuickAccess.js +0 -119
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsViewer.js +0 -293
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsViewlet.js +0 -934
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsViews.js +0 -1349
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsWidgets.js +0 -858
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsWorkbenchService.js +0 -2349
- package/vscode/src/vs/workbench/contrib/extensions/browser/fileBasedRecommendations.js +0 -328
- package/vscode/src/vs/workbench/contrib/extensions/browser/keymapRecommendations.js +0 -26
- package/vscode/src/vs/workbench/contrib/extensions/browser/languageRecommendations.js +0 -26
- package/vscode/src/vs/workbench/contrib/extensions/browser/media/extension.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/extensions/browser/media/extensionEditor.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/extensions/browser/media/extensionsViewlet.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/extensions/browser/media/extensionsWidgets.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/extensions/browser/media/runtimeExtensionsEditor.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/extensions/browser/remoteRecommendations.js +0 -27
- package/vscode/src/vs/workbench/contrib/extensions/browser/unsupportedExtensionsMigrationContribution.js +0 -24
- package/vscode/src/vs/workbench/contrib/extensions/browser/webRecommendations.js +0 -36
- package/vscode/src/vs/workbench/contrib/extensions/browser/workspaceRecommendations.js +0 -160
- package/vscode/src/vs/workbench/contrib/extensions/common/extensionQuery.js +0 -56
- package/vscode/src/vs/workbench/contrib/extensions/common/reportExtensionIssueAction.js +0 -29
- package/vscode/src/vs/workbench/contrib/extensions/common/runtimeExtensionsInput.js +0 -49
- package/vscode/src/vs/workbench/contrib/externalTerminal/browser/externalTerminal.contribution.js +0 -152
- package/vscode/src/vs/workbench/contrib/externalUriOpener/common/contributedOpeners.js +0 -81
- package/vscode/src/vs/workbench/contrib/files/browser/explorerService.js +0 -430
- package/vscode/src/vs/workbench/contrib/files/browser/fileActions.contribution.js +0 -786
- package/vscode/src/vs/workbench/contrib/files/browser/fileCommands.js +0 -510
- package/vscode/src/vs/workbench/contrib/files/browser/files.explorer.contribution.js +0 -460
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChat.contribution.js +0 -39
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatAccessibleView.js +0 -39
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatNotebook.js +0 -70
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSavingServiceImpl.js +0 -234
- package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChatServiceImpl.js +0 -31
- package/vscode/src/vs/workbench/contrib/interactive/browser/interactive.contribution.js +0 -737
- package/vscode/src/vs/workbench/contrib/interactive/browser/interactiveCommon.js +0 -6
- package/vscode/src/vs/workbench/contrib/interactive/browser/interactiveEditor.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/interactive/browser/interactiveEditor.js +0 -600
- package/vscode/src/vs/workbench/contrib/interactive/browser/media/interactive.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/issue/browser/issue.contribution.js +0 -27
- package/vscode/src/vs/workbench/contrib/issue/common/issue.contribution.js +0 -102
- package/vscode/src/vs/workbench/contrib/keybindings/browser/keybindings.contribution.js +0 -28
- package/vscode/src/vs/workbench/contrib/languageDetection/browser/languageDetection.contribution.js +0 -156
- package/vscode/src/vs/workbench/contrib/localHistory/browser/localHistory.contribution.js +0 -4
- package/vscode/src/vs/workbench/contrib/localHistory/browser/localHistory.js +0 -35
- package/vscode/src/vs/workbench/contrib/localHistory/browser/localHistoryCommands.js +0 -635
- package/vscode/src/vs/workbench/contrib/localHistory/browser/localHistoryFileSystemProvider.js +0 -87
- package/vscode/src/vs/workbench/contrib/localHistory/browser/localHistoryTimeline.js +0 -136
- package/vscode/src/vs/workbench/contrib/logs/common/logs.contribution.js +0 -225
- package/vscode/src/vs/workbench/contrib/markdown/browser/markdownSettingRenderer.js +0 -307
- package/vscode/src/vs/workbench/contrib/markers/browser/markers.contribution.js +0 -759
- package/vscode/src/vs/workbench/contrib/markers/browser/markersFileDecorations.js +0 -127
- package/vscode/src/vs/workbench/contrib/markers/browser/markersFilterOptions.js +0 -75
- package/vscode/src/vs/workbench/contrib/markers/browser/markersModel.js +0 -200
- package/vscode/src/vs/workbench/contrib/markers/browser/markersTable.js +0 -475
- package/vscode/src/vs/workbench/contrib/markers/browser/markersTreeViewer.js +0 -691
- package/vscode/src/vs/workbench/contrib/markers/browser/markersView.js +0 -900
- package/vscode/src/vs/workbench/contrib/markers/browser/markersViewActions.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/markers/browser/markersViewActions.js +0 -132
- package/vscode/src/vs/workbench/contrib/markers/browser/media/markers.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/markers/browser/messages.js +0 -301
- package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/actions.js +0 -108
- package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/multiDiffEditor.contribution.js +0 -39
- package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/multiDiffEditor.js +0 -117
- package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/scmMultiDiffSourceResolver.js +0 -146
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/contributedStatusBarItemController.js +0 -107
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/statusBarProviders.js +0 -172
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/clipboard/notebookClipboard.js +0 -542
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/debug/notebookBreakpoints.js +0 -105
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/debug/notebookCellPausing.js +0 -66
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/debug/notebookDebugDecorations.js +0 -163
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/editorHint/emptyCellEditorHint.js +0 -65
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/editorStatusBar/editorStatusBar.js +0 -318
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/execute/executionEditorProgress.js +0 -70
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/media/notebookFind.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFind.js +0 -167
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/format/formatting.js +0 -207
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/gettingStarted/notebookGettingStarted.js +0 -82
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/kernelDetection/notebookKernelDetection.js +0 -81
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/layout/layoutActions.js +0 -65
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/marker/markerProvider.js +0 -100
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/navigation/arrow.js +0 -391
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariableCommands.js +0 -62
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariableContextKeys.js +0 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariables.js +0 -95
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesDataSource.js +0 -118
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesTree.js +0 -58
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesView.js +0 -148
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/outline/notebookOutline.js +0 -654
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/profile/notebookProfile.js +0 -75
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/saveParticipants/saveParticipants.js +0 -515
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/troubleshoot/layout.js +0 -157
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/undoRedo/notebookUndoRedo.js +0 -55
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/viewportWarmup/viewportWarmup.js +0 -93
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/apiActions.js +0 -50
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/cellChatActions.js +0 -651
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/executeActions.js +0 -719
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/insertCellActions.js +0 -349
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/layoutActions.js +0 -314
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/sectionActions.js +0 -197
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffCellEditorOptions.js +0 -46
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffComponents.js +0 -1295
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffElementOutputs.js +0 -282
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffElementViewModel.js +0 -561
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffNestedCellViewModel.js +0 -113
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/eventDispatcher.js +0 -37
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiff.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffActions.js +0 -312
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditor.js +0 -909
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditorBrowser.js +0 -11
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffList.js +0 -393
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffOverviewRuler.js +0 -183
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebook.contribution.js +0 -1185
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibility.js +0 -157
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookExtensionPoint.js +0 -449
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookEditorServiceImpl.js +0 -190
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookExecutionServiceImpl.js +0 -104
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookExecutionStateServiceImpl.js +0 -508
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKernelHistoryServiceImpl.js +0 -128
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKernelServiceImpl.js +0 -339
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKeymapServiceImpl.js +0 -109
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookLoggingServiceImpl.js +0 -26
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookRendererMessagingServiceImpl.js +0 -63
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookServiceImpl.js +0 -639
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookWorkerServiceImpl.js +0 -198
- package/vscode/src/vs/workbench/contrib/notebook/common/model/cellEdit.js +0 -89
- package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookTextModel.js +0 -1000
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookDiffEditorInput.js +0 -101
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorModelResolverServiceImpl.js +0 -201
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookOutputRenderer.js +0 -78
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookProvider.js +0 -96
- package/vscode/src/vs/workbench/contrib/outline/browser/outline.contribution.js +0 -367
- package/vscode/src/vs/workbench/contrib/outline/browser/outlineActions.js +0 -172
- package/vscode/src/vs/workbench/contrib/outline/browser/outlinePane.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/outline/browser/outlinePane.js +0 -316
- package/vscode/src/vs/workbench/contrib/outline/browser/outlineViewState.js +0 -66
- package/vscode/src/vs/workbench/contrib/output/browser/output.contribution.js +0 -613
- package/vscode/src/vs/workbench/contrib/output/browser/output.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/output/browser/outputLinkProvider.js +0 -76
- package/vscode/src/vs/workbench/contrib/output/browser/outputServices.js +0 -200
- package/vscode/src/vs/workbench/contrib/output/browser/outputView.js +0 -224
- package/vscode/src/vs/workbench/contrib/performance/browser/inputLatencyContrib.js +0 -43
- package/vscode/src/vs/workbench/contrib/performance/browser/performance.contribution.js +0 -116
- package/vscode/src/vs/workbench/contrib/performance/browser/performance.web.contribution.js +0 -5
- package/vscode/src/vs/workbench/contrib/performance/browser/perfviewEditor.js +0 -340
- package/vscode/src/vs/workbench/contrib/performance/browser/startupTimings.js +0 -114
- package/vscode/src/vs/workbench/contrib/preferences/browser/keybindingsEditor.js +0 -1237
- package/vscode/src/vs/workbench/contrib/preferences/browser/keybindingsEditorContribution.js +0 -248
- package/vscode/src/vs/workbench/contrib/preferences/browser/media/keybindingsEditor.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/preferences/browser/media/preferences.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/preferences/browser/media/settingsEditor2.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/preferences/browser/media/settingsWidgets.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/preferences/browser/preferences.contribution.js +0 -1374
- package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesActions.js +0 -104
- package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesEditor.js +0 -47
- package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesRenderers.js +0 -784
- package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesSearch.js +0 -461
- package/vscode/src/vs/workbench/contrib/preferences/browser/settingsEditor2.js +0 -1578
- package/vscode/src/vs/workbench/contrib/preferences/browser/settingsEditorSettingIndicators.js +0 -624
- package/vscode/src/vs/workbench/contrib/preferences/browser/settingsSearchMenu.js +0 -135
- package/vscode/src/vs/workbench/contrib/preferences/browser/settingsTree.js +0 -2122
- package/vscode/src/vs/workbench/contrib/preferences/browser/settingsWidgets.js +0 -1158
- package/vscode/src/vs/workbench/contrib/preferences/browser/tocTree.js +0 -217
- package/vscode/src/vs/workbench/contrib/preferences/common/preferencesContribution.js +0 -160
- package/vscode/src/vs/workbench/contrib/preferences/common/smartSnippetInserter.js +0 -124
- package/vscode/src/vs/workbench/contrib/quickaccess/browser/commandsQuickAccess.js +0 -293
- package/vscode/src/vs/workbench/contrib/quickaccess/browser/quickAccess.contribution.js +0 -167
- package/vscode/src/vs/workbench/contrib/quickaccess/browser/viewQuickAccess.js +0 -264
- package/vscode/src/vs/workbench/contrib/relauncher/browser/relauncher.contribution.js +0 -206
- package/vscode/src/vs/workbench/contrib/remote/browser/explorerViewItems.js +0 -133
- package/vscode/src/vs/workbench/contrib/remote/browser/media/remoteViewlet.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/remote/browser/remote.contribution.js +0 -18
- package/vscode/src/vs/workbench/contrib/remote/browser/remote.js +0 -829
- package/vscode/src/vs/workbench/contrib/remote/browser/remoteConnectionHealth.js +0 -164
- package/vscode/src/vs/workbench/contrib/remote/browser/remoteIndicator.js +0 -800
- package/vscode/src/vs/workbench/contrib/remote/browser/remoteStartEntry.contribution.js +0 -5
- package/vscode/src/vs/workbench/contrib/remote/browser/remoteStartEntry.js +0 -95
- package/vscode/src/vs/workbench/contrib/remote/browser/showCandidate.js +0 -33
- package/vscode/src/vs/workbench/contrib/remote/browser/tunnelFactory.js +0 -108
- package/vscode/src/vs/workbench/contrib/remote/common/remote.contribution.js +0 -513
- package/vscode/src/vs/workbench/contrib/scm/browser/activity.js +0 -306
- package/vscode/src/vs/workbench/contrib/scm/browser/media/scm.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/scm/browser/menus.js +0 -278
- package/vscode/src/vs/workbench/contrib/scm/browser/scm.contribution.js +0 -701
- package/vscode/src/vs/workbench/contrib/scm/browser/scmRepositoriesViewPane.js +0 -172
- package/vscode/src/vs/workbench/contrib/scm/browser/scmRepositoryRenderer.js +0 -134
- package/vscode/src/vs/workbench/contrib/scm/browser/scmViewPane.js +0 -3365
- package/vscode/src/vs/workbench/contrib/scm/browser/scmViewPaneContainer.js +0 -52
- package/vscode/src/vs/workbench/contrib/scm/browser/scmViewService.js +0 -303
- package/vscode/src/vs/workbench/contrib/scm/browser/util.js +0 -119
- package/vscode/src/vs/workbench/contrib/scm/common/quickDiffService.js +0 -74
- package/vscode/src/vs/workbench/contrib/scm/common/scmService.js +0 -310
- package/vscode/src/vs/workbench/contrib/search/browser/anythingQuickAccess.js +0 -794
- package/vscode/src/vs/workbench/contrib/search/browser/media/anythingQuickAccess.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/search/browser/media/searchview.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/search/browser/patternInputWidget.js +0 -232
- package/vscode/src/vs/workbench/contrib/search/browser/quickTextSearch/textSearchQuickAccess.js +0 -339
- package/vscode/src/vs/workbench/contrib/search/browser/replaceContributions.js +0 -7
- package/vscode/src/vs/workbench/contrib/search/browser/replaceService.js +0 -230
- package/vscode/src/vs/workbench/contrib/search/browser/search.contribution.js +0 -646
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsCopy.js +0 -207
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsNav.js +0 -510
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsRemoveReplace.js +0 -372
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsSymbol.js +0 -42
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsTextQuickAccess.js +0 -43
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsTopBar.js +0 -322
- package/vscode/src/vs/workbench/contrib/search/browser/searchFindInput.js +0 -101
- package/vscode/src/vs/workbench/contrib/search/browser/searchIcons.js +0 -104
- package/vscode/src/vs/workbench/contrib/search/browser/searchMessage.js +0 -64
- package/vscode/src/vs/workbench/contrib/search/browser/searchResultsView.js +0 -435
- package/vscode/src/vs/workbench/contrib/search/browser/searchView.js +0 -2175
- package/vscode/src/vs/workbench/contrib/search/browser/searchWidget.js +0 -672
- package/vscode/src/vs/workbench/contrib/search/browser/symbolsQuickAccess.js +0 -232
- package/vscode/src/vs/workbench/contrib/search/common/cacheState.js +0 -85
- package/vscode/src/vs/workbench/contrib/searchEditor/browser/media/searchEditor.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditor.contribution.js +0 -585
- package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditor.js +0 -758
- package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditorActions.js +0 -187
- package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditorInput.js +0 -318
- package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditorModel.js +0 -136
- package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditorSerialization.js +0 -291
- package/vscode/src/vs/workbench/contrib/share/browser/share.contribution.js +0 -167
- package/vscode/src/vs/workbench/contrib/share/browser/share.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/share/browser/shareService.js +0 -70
- package/vscode/src/vs/workbench/contrib/snippets/browser/commands/configureSnippets.js +0 -331
- package/vscode/src/vs/workbench/contrib/snippets/browser/commands/insertSnippet.js +0 -127
- package/vscode/src/vs/workbench/contrib/snippets/browser/commands/surroundWithSnippet.js +0 -57
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetCodeActionProvider.js +0 -154
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetPicker.js +0 -111
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippets.contribution.js +0 -141
- package/vscode/src/vs/workbench/contrib/speech/browser/speechService.js +0 -271
- package/vscode/src/vs/workbench/contrib/surveys/browser/ces.contribution.js +0 -137
- package/vscode/src/vs/workbench/contrib/surveys/browser/languageSurveys.contribution.js +0 -50
- package/vscode/src/vs/workbench/contrib/surveys/browser/nps.contribution.js +0 -92
- package/vscode/src/vs/workbench/contrib/tasks/browser/abstractTaskService.js +0 -3857
- package/vscode/src/vs/workbench/contrib/tasks/browser/runAutomaticTasks.js +0 -183
- package/vscode/src/vs/workbench/contrib/tasks/browser/task.contribution.js +0 -682
- package/vscode/src/vs/workbench/contrib/tasks/browser/taskQuickPick.js +0 -450
- package/vscode/src/vs/workbench/contrib/tasks/browser/taskService.js +0 -36
- package/vscode/src/vs/workbench/contrib/tasks/browser/taskTerminalStatus.js +0 -189
- package/vscode/src/vs/workbench/contrib/tasks/browser/tasksQuickAccess.js +0 -119
- package/vscode/src/vs/workbench/contrib/tasks/browser/terminalTaskSystem.js +0 -1711
- package/vscode/src/vs/workbench/contrib/tasks/common/jsonSchemaCommon.js +0 -437
- package/vscode/src/vs/workbench/contrib/tasks/common/jsonSchema_v1.js +0 -123
- package/vscode/src/vs/workbench/contrib/tasks/common/jsonSchema_v2.js +0 -899
- package/vscode/src/vs/workbench/contrib/tasks/common/problemCollectors.js +0 -463
- package/vscode/src/vs/workbench/contrib/tasks/common/problemMatcher.js +0 -1794
- package/vscode/src/vs/workbench/contrib/tasks/common/taskConfiguration.js +0 -1579
- package/vscode/src/vs/workbench/contrib/tasks/common/taskSystem.js +0 -14
- package/vscode/src/vs/workbench/contrib/tasks/common/taskTemplates.js +0 -143
- package/vscode/src/vs/workbench/contrib/terminal/browser/baseTerminalBackend.js +0 -114
- package/vscode/src/vs/workbench/contrib/terminal/browser/environmentVariableInfo.js +0 -133
- package/vscode/src/vs/workbench/contrib/terminal/browser/media/scrollbar.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/terminal/browser/media/terminal.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/terminal/browser/media/terminalVoice.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/terminal/browser/media/widgets.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/terminal/browser/media/xterm.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/terminal/browser/remotePty.js +0 -91
- package/vscode/src/vs/workbench/contrib/terminal/browser/remoteTerminalBackend.js +0 -312
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.contribution.js +0 -267
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.web.contribution.js +0 -11
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalActions.js +0 -2070
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalCommands.js +0 -22
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalConfigHelper.js +0 -221
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalContextMenu.js +0 -40
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalEditor.js +0 -193
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalEditorSerializer.js +0 -40
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalEditorService.js +0 -239
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalEscapeSequences.js +0 -12
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalGroup.js +0 -501
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalGroupService.js +0 -368
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalInstance.js +0 -2180
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalInstanceService.js +0 -81
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalMainContribution.js +0 -94
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalMenus.js +0 -840
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalProcessManager.js +0 -619
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalProfileQuickpick.js +0 -312
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalProfileResolverService.js +0 -285
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalProfileService.js +0 -225
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalQuickAccess.js +0 -155
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalRunRecentQuickPick.js +0 -335
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalService.js +0 -1156
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalStatusList.js +0 -121
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalTabbedView.js +0 -439
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalTabsList.js +0 -690
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalTooltip.js +0 -84
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalUri.js +0 -39
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalView.js +0 -628
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalVoice.js +0 -199
- package/vscode/src/vs/workbench/contrib/terminal/browser/widgets/terminalHoverWidget.js +0 -91
- package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/lineDataEventAddon.js +0 -56
- package/vscode/src/vs/workbench/contrib/terminal/common/basePty.js +0 -91
- package/vscode/src/vs/workbench/contrib/terminal/common/environmentVariableService.js +0 -96
- package/vscode/src/vs/workbench/contrib/terminal/common/history.js +0 -375
- package/vscode/src/vs/workbench/contrib/terminal/common/remote/remoteTerminalChannel.js +0 -253
- package/vscode/src/vs/workbench/contrib/terminal/common/terminalClipboard.js +0 -98
- package/vscode/src/vs/workbench/contrib/terminal/common/terminalConfiguration.js +0 -1351
- package/vscode/src/vs/workbench/contrib/terminal/common/terminalEnvironment.js +0 -282
- package/vscode/src/vs/workbench/contrib/terminal/common/terminalStrings.js +0 -145
- package/vscode/src/vs/workbench/contrib/terminalContrib/accessibility/browser/bufferContentTracker.js +0 -112
- package/vscode/src/vs/workbench/contrib/terminalContrib/accessibility/browser/terminal.accessibility.contribution.js +0 -389
- package/vscode/src/vs/workbench/contrib/terminalContrib/accessibility/browser/terminalAccessibilityHelp.js +0 -190
- package/vscode/src/vs/workbench/contrib/terminalContrib/accessibility/browser/terminalAccessibleBufferProvider.js +0 -102
- package/vscode/src/vs/workbench/contrib/terminalContrib/accessibility/browser/textAreaSyncAddon.js +0 -106
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/media/terminalChatWidget.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminal.chat.contribution.js +0 -9
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChat.js +0 -84
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatAccessibilityHelp.js +0 -125
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatAccessibleView.js +0 -31
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatActions.js +0 -344
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatController.js +0 -335
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatWidget.js +0 -154
- package/vscode/src/vs/workbench/contrib/terminalContrib/developer/browser/media/developer.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/terminalContrib/developer/browser/terminal.developer.contribution.js +0 -237
- package/vscode/src/vs/workbench/contrib/terminalContrib/environmentChanges/browser/terminal.environmentChanges.contribution.js +0 -114
- package/vscode/src/vs/workbench/contrib/terminalContrib/find/browser/terminal.find.contribution.js +0 -264
- package/vscode/src/vs/workbench/contrib/terminalContrib/find/browser/terminalFindWidget.js +0 -165
- package/vscode/src/vs/workbench/contrib/terminalContrib/find/browser/textInputContextMenu.js +0 -61
- package/vscode/src/vs/workbench/contrib/terminalContrib/highlight/browser/terminal.highlight.contribution.js +0 -36
- package/vscode/src/vs/workbench/contrib/terminalContrib/links/browser/terminal.links.contribution.js +0 -132
- package/vscode/src/vs/workbench/contrib/terminalContrib/links/browser/terminalExternalLinkDetector.js +0 -38
- package/vscode/src/vs/workbench/contrib/terminalContrib/links/browser/terminalLink.js +0 -120
- package/vscode/src/vs/workbench/contrib/terminalContrib/links/browser/terminalLinkDetectorAdapter.js +0 -108
- package/vscode/src/vs/workbench/contrib/terminalContrib/links/browser/terminalLinkHelpers.js +0 -175
- package/vscode/src/vs/workbench/contrib/terminalContrib/links/browser/terminalLinkManager.js +0 -394
- package/vscode/src/vs/workbench/contrib/terminalContrib/links/browser/terminalLinkOpeners.js +0 -240
- package/vscode/src/vs/workbench/contrib/terminalContrib/links/browser/terminalLinkParsing.js +0 -206
- package/vscode/src/vs/workbench/contrib/terminalContrib/links/browser/terminalLinkQuickpick.js +0 -264
- package/vscode/src/vs/workbench/contrib/terminalContrib/links/browser/terminalLinkResolver.js +0 -141
- package/vscode/src/vs/workbench/contrib/terminalContrib/links/browser/terminalLocalLinkDetector.js +0 -220
- package/vscode/src/vs/workbench/contrib/terminalContrib/links/browser/terminalMultiLineLinkDetector.js +0 -182
- package/vscode/src/vs/workbench/contrib/terminalContrib/links/browser/terminalUriLinkDetector.js +0 -119
- package/vscode/src/vs/workbench/contrib/terminalContrib/links/browser/terminalWordLinkDetector.js +0 -94
- package/vscode/src/vs/workbench/contrib/terminalContrib/quickFix/browser/media/terminalQuickFix.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/terminalContrib/quickFix/browser/quickFixAddon.js +0 -451
- package/vscode/src/vs/workbench/contrib/terminalContrib/quickFix/browser/terminal.quickFix.contribution.js +0 -61
- package/vscode/src/vs/workbench/contrib/terminalContrib/quickFix/browser/terminalQuickFixBuiltinActions.js +0 -323
- package/vscode/src/vs/workbench/contrib/terminalContrib/quickFix/browser/terminalQuickFixService.js +0 -168
- package/vscode/src/vs/workbench/contrib/terminalContrib/stickyScroll/browser/media/stickyScroll.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/terminalContrib/stickyScroll/browser/terminal.stickyScroll.contribution.js +0 -5
- package/vscode/src/vs/workbench/contrib/terminalContrib/stickyScroll/browser/terminalStickyScrollColorRegistry.js +0 -35
- package/vscode/src/vs/workbench/contrib/terminalContrib/stickyScroll/browser/terminalStickyScrollContribution.js +0 -91
- package/vscode/src/vs/workbench/contrib/terminalContrib/stickyScroll/browser/terminalStickyScrollOverlay.js +0 -379
- package/vscode/src/vs/workbench/contrib/terminalContrib/suggest/browser/terminal.suggest.contribution.js +0 -181
- package/vscode/src/vs/workbench/contrib/terminalContrib/suggest/browser/terminalSuggestAddon.js +0 -406
- package/vscode/src/vs/workbench/contrib/terminalContrib/typeAhead/browser/terminal.typeAhead.contribution.js +0 -54
- package/vscode/src/vs/workbench/contrib/terminalContrib/typeAhead/browser/terminalTypeAheadAddon.js +0 -1047
- package/vscode/src/vs/workbench/contrib/terminalContrib/zoom/browser/terminal.zoom.contribution.js +0 -130
- package/vscode/src/vs/workbench/contrib/testing/browser/codeCoverageDecorations.js +0 -589
- package/vscode/src/vs/workbench/contrib/testing/browser/explorerProjections/display.js +0 -2
- package/vscode/src/vs/workbench/contrib/testing/browser/explorerProjections/index.js +0 -81
- package/vscode/src/vs/workbench/contrib/testing/browser/explorerProjections/listProjection.js +0 -184
- package/vscode/src/vs/workbench/contrib/testing/browser/explorerProjections/testItemContextOverlay.js +0 -16
- package/vscode/src/vs/workbench/contrib/testing/browser/explorerProjections/testingObjectTree.js +0 -44
- package/vscode/src/vs/workbench/contrib/testing/browser/explorerProjections/testingViewState.js +0 -15
- package/vscode/src/vs/workbench/contrib/testing/browser/explorerProjections/treeProjection.js +0 -222
- package/vscode/src/vs/workbench/contrib/testing/browser/icons.js +0 -182
- package/vscode/src/vs/workbench/contrib/testing/browser/media/testMessageColorizer.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/testing/browser/media/testing.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/testing/browser/testCoverageBars.js +0 -238
- package/vscode/src/vs/workbench/contrib/testing/browser/testCoverageView.js +0 -562
- package/vscode/src/vs/workbench/contrib/testing/browser/testExplorerActions.js +0 -1671
- package/vscode/src/vs/workbench/contrib/testing/browser/testMessageColorizer.js +0 -71
- package/vscode/src/vs/workbench/contrib/testing/browser/testing.contribution.js +0 -224
- package/vscode/src/vs/workbench/contrib/testing/browser/testingConfigurationUi.js +0 -119
- package/vscode/src/vs/workbench/contrib/testing/browser/testingDecorations.js +0 -968
- package/vscode/src/vs/workbench/contrib/testing/browser/testingExplorerFilter.js +0 -234
- package/vscode/src/vs/workbench/contrib/testing/browser/testingExplorerView.js +0 -1239
- package/vscode/src/vs/workbench/contrib/testing/browser/testingOutputPeek.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/testing/browser/testingOutputPeek.js +0 -2108
- package/vscode/src/vs/workbench/contrib/testing/browser/testingProgressUiService.js +0 -140
- package/vscode/src/vs/workbench/contrib/testing/browser/testingViewPaneContainer.js +0 -45
- package/vscode/src/vs/workbench/contrib/testing/browser/theme.js +0 -335
- package/vscode/src/vs/workbench/contrib/testing/common/configuration.js +0 -274
- package/vscode/src/vs/workbench/contrib/testing/common/constants.js +0 -57
- package/vscode/src/vs/workbench/contrib/testing/common/mainThreadTestCollection.js +0 -127
- package/vscode/src/vs/workbench/contrib/testing/common/observableUtils.js +0 -19
- package/vscode/src/vs/workbench/contrib/testing/common/testExclusions.js +0 -46
- package/vscode/src/vs/workbench/contrib/testing/common/testServiceImpl.js +0 -294
- package/vscode/src/vs/workbench/contrib/testing/common/testingContentProvider.js +0 -123
- package/vscode/src/vs/workbench/contrib/testing/common/testingUri.js +0 -65
- package/vscode/src/vs/workbench/contrib/themes/browser/themes.contribution.js +0 -955
- package/vscode/src/vs/workbench/contrib/timeline/browser/media/timelinePane.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/timeline/browser/timeline.contribution.js +0 -118
- package/vscode/src/vs/workbench/contrib/timeline/browser/timelinePane.js +0 -1161
- package/vscode/src/vs/workbench/contrib/timeline/common/timelineService.js +0 -106
- package/vscode/src/vs/workbench/contrib/update/browser/media/releasenoteseditor.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/update/browser/releaseNotesEditor.js +0 -411
- package/vscode/src/vs/workbench/contrib/update/browser/update.contribution.js +0 -252
- package/vscode/src/vs/workbench/contrib/update/browser/update.js +0 -676
- package/vscode/src/vs/workbench/contrib/url/browser/externalUriResolver.js +0 -26
- package/vscode/src/vs/workbench/contrib/url/browser/trustedDomains.js +0 -198
- package/vscode/src/vs/workbench/contrib/url/browser/trustedDomainsFileSystemProvider.js +0 -135
- package/vscode/src/vs/workbench/contrib/url/browser/trustedDomainsValidator.js +0 -203
- package/vscode/src/vs/workbench/contrib/url/browser/url.contribution.js +0 -66
- package/vscode/src/vs/workbench/contrib/userDataSync/browser/userDataSync.contribution.js +0 -110
- package/vscode/src/vs/workbench/contrib/userDataSync/browser/userDataSync.js +0 -1466
- package/vscode/src/vs/workbench/contrib/userDataSync/browser/userDataSyncConflictsView.js +0 -223
- package/vscode/src/vs/workbench/contrib/userDataSync/browser/userDataSyncTrigger.js +0 -59
- package/vscode/src/vs/workbench/contrib/userDataSync/browser/userDataSyncViews.js +0 -858
- package/vscode/src/vs/workbench/contrib/welcomeBanner/browser/welcomeBanner.contribution.js +0 -45
- package/vscode/src/vs/workbench/contrib/welcomeDialog/browser/media/welcomeWidget.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/welcomeDialog/browser/welcomeDialog.contribution.js +0 -102
- package/vscode/src/vs/workbench/contrib/welcomeDialog/browser/welcomeWidget.js +0 -187
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.contribution.js +0 -380
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.js +0 -1526
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedColors.js +0 -47
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedDetailsRenderer.js +0 -261
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedIcons.js +0 -14
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedInput.js +0 -51
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedList.js +0 -95
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/media/gettingStarted.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/startupPage.js +0 -216
- package/vscode/src/vs/workbench/contrib/welcomeViews/common/newFile.contribution.js +0 -237
- package/vscode/src/vs/workbench/contrib/welcomeViews/common/viewsWelcome.contribution.js +0 -18
- package/vscode/src/vs/workbench/contrib/welcomeViews/common/viewsWelcomeContribution.js +0 -73
- package/vscode/src/vs/workbench/contrib/welcomeViews/common/viewsWelcomeExtensionPoint.js +0 -97
- package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/editor/editorWalkThrough.js +0 -61
- package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/media/walkThroughPart.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/walkThrough.contribution.js +0 -38
- package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/walkThroughActions.js +0 -57
- package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/walkThroughInput.js +0 -113
- package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/walkThroughPart.js +0 -429
- package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/common/walkThroughContentProvider.js +0 -74
- package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/common/walkThroughUtils.js +0 -18
- package/vscode/src/vs/workbench/contrib/workspace/browser/media/workspaceTrustEditor.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/workspace/browser/workspace.contribution.js +0 -976
- package/vscode/src/vs/workbench/contrib/workspace/browser/workspaceTrustEditor.js +0 -1243
- package/vscode/src/vs/workbench/contrib/workspaces/browser/workspaces.contribution.js +0 -132
- package/vscode/src/vs/workbench/services/actions/common/menusExtensionPoint.js +0 -1595
- package/vscode/src/vs/workbench/services/aiRelatedInformation/common/aiRelatedInformationService.js +0 -82
- package/vscode/src/vs/workbench/services/authentication/browser/authenticationExtensionsService.js +0 -369
- package/vscode/src/vs/workbench/services/commands/common/commandService.js +0 -77
- package/vscode/src/vs/workbench/services/configuration/browser/configuration.js +0 -850
- package/vscode/src/vs/workbench/services/configuration/browser/configurationService.js +0 -1199
- package/vscode/src/vs/workbench/services/configuration/common/configurationEditing.js +0 -666
- package/vscode/src/vs/workbench/services/configuration/common/configurationModels.js +0 -119
- package/vscode/src/vs/workbench/services/configuration/common/jsonEditingService.js +0 -120
- package/vscode/src/vs/workbench/services/configurationResolver/browser/baseConfigurationResolverService.js +0 -309
- package/vscode/src/vs/workbench/services/configurationResolver/browser/configurationResolverService.js +0 -27
- package/vscode/src/vs/workbench/services/decorations/browser/decorationsService.js +0 -330
- package/vscode/src/vs/workbench/services/dialogs/browser/abstractFileDialogService.js +0 -377
- package/vscode/src/vs/workbench/services/dialogs/browser/simpleFileDialog.js +0 -1037
- package/vscode/src/vs/workbench/services/dialogs/common/dialogService.js +0 -70
- package/vscode/src/vs/workbench/services/extensionManagement/browser/extensionEnablementService.js +0 -638
- package/vscode/src/vs/workbench/services/extensionManagement/browser/extensionsProfileScannerService.js +0 -22
- package/vscode/src/vs/workbench/services/extensionManagement/browser/webExtensionsScannerService.js +0 -892
- package/vscode/src/vs/workbench/services/extensionManagement/common/extensionFeaturesManagemetService.js +0 -232
- package/vscode/src/vs/workbench/services/extensionManagement/common/extensionManagementChannelClient.js +0 -107
- package/vscode/src/vs/workbench/services/extensionManagement/common/extensionManagementServerService.js +0 -61
- package/vscode/src/vs/workbench/services/extensionManagement/common/extensionManagementService.js +0 -1043
- package/vscode/src/vs/workbench/services/extensionManagement/common/remoteExtensionManagementService.js +0 -56
- package/vscode/src/vs/workbench/services/extensionManagement/common/webExtensionManagementService.js +0 -279
- package/vscode/src/vs/workbench/services/extensionRecommendations/common/extensionIgnoredRecommendationsService.js +0 -82
- package/vscode/src/vs/workbench/services/extensions/browser/extensionService.js +0 -283
- package/vscode/src/vs/workbench/services/extensions/browser/extensionsScannerService.js +0 -31
- package/vscode/src/vs/workbench/services/extensions/browser/webWorkerExtensionHost.js +0 -274
- package/vscode/src/vs/workbench/services/extensions/browser/webWorkerFileSystemProvider.js +0 -50
- package/vscode/src/vs/workbench/services/extensions/common/abstractExtensionService.js +0 -1147
- package/vscode/src/vs/workbench/services/extensions/common/extHostCustomers.js +0 -40
- package/vscode/src/vs/workbench/services/extensions/common/extensionDevOptions.js +0 -23
- package/vscode/src/vs/workbench/services/extensions/common/extensionHostManager.js +0 -510
- package/vscode/src/vs/workbench/services/extensions/common/extensionRunningLocationTracker.js +0 -272
- package/vscode/src/vs/workbench/services/extensions/common/extensionStorageMigration.js +0 -56
- package/vscode/src/vs/workbench/services/extensions/common/extensionsProposedApi.js +0 -78
- package/vscode/src/vs/workbench/services/extensions/common/extensionsUtil.js +0 -62
- package/vscode/src/vs/workbench/services/extensions/common/lazyCreateExtensionHostManager.js +0 -159
- package/vscode/src/vs/workbench/services/extensions/common/remoteConsoleUtil.js +0 -47
- package/vscode/src/vs/workbench/services/extensions/common/remoteExtensionHost.js +0 -220
- package/vscode/src/vs/workbench/services/host/browser/browserHostService.js +0 -428
- package/vscode/src/vs/workbench/services/issue/browser/issueService.js +0 -97
- package/vscode/src/vs/workbench/services/keybinding/browser/keybindingService.js +0 -945
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayoutService.js +0 -500
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/_.contribution.js +0 -13
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/cz.win.js +0 -162
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/de-swiss.win.js +0 -162
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/de.darwin.js +0 -125
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/de.linux.js +0 -180
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/de.win.js +0 -162
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/dk.win.js +0 -162
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/dvorak.darwin.js +0 -125
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/en-belgian.win.js +0 -162
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/en-ext.darwin.js +0 -125
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/en-in.win.js +0 -162
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/en-intl.darwin.js +0 -125
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/en-intl.win.js +0 -162
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/en-uk.darwin.js +0 -125
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/en-uk.win.js +0 -162
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/en.darwin.js +0 -133
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/en.linux.js +0 -182
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/en.win.js +0 -167
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/es-latin.win.js +0 -162
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/es.darwin.js +0 -125
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/es.linux.js +0 -180
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/es.win.js +0 -162
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/fr.darwin.js +0 -125
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/fr.linux.js +0 -180
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/fr.win.js +0 -162
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/hu.win.js +0 -162
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/it.darwin.js +0 -125
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/it.win.js +0 -162
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/jp-roman.darwin.js +0 -125
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/jp.darwin.js +0 -125
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/ko.darwin.js +0 -125
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/layout.contribution.darwin.js +0 -17
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/layout.contribution.linux.js +0 -6
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/layout.contribution.win.js +0 -23
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/no.win.js +0 -162
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/pl.darwin.js +0 -125
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/pl.win.js +0 -162
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/pt-br.win.js +0 -162
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/pt.darwin.js +0 -125
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/pt.win.js +0 -162
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/ru.darwin.js +0 -125
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/ru.linux.js +0 -180
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/ru.win.js +0 -162
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/sv.win.js +0 -164
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/thai.win.js +0 -162
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/tr.win.js +0 -162
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/zh-hans.darwin.js +0 -125
- package/vscode/src/vs/workbench/services/keybinding/common/keybindingIO.js +0 -72
- package/vscode/src/vs/workbench/services/keybinding/common/keymapInfo.js +0 -108
- package/vscode/src/vs/workbench/services/keybinding/common/macLinuxKeyboardMapper.js +0 -886
- package/vscode/src/vs/workbench/services/keybinding/common/windowsKeyboardMapper.js +0 -350
- package/vscode/src/vs/workbench/services/label/common/labelService.js +0 -435
- package/vscode/src/vs/workbench/services/languageDetection/browser/languageDetectionWorkerServiceImpl.js +0 -259
- package/vscode/src/vs/workbench/services/lifecycle/browser/lifecycleService.js +0 -135
- package/vscode/src/vs/workbench/services/notification/common/notificationService.js +0 -251
- package/vscode/src/vs/workbench/services/preferences/browser/preferencesService.js +0 -551
- package/vscode/src/vs/workbench/services/quickinput/browser/quickInputService.js +0 -37
- package/vscode/src/vs/workbench/services/remote/browser/browserRemoteResourceHandler.js +0 -47
- package/vscode/src/vs/workbench/services/remote/browser/remoteAgentService.js +0 -76
- package/vscode/src/vs/workbench/services/remote/common/abstractRemoteAgentService.js +0 -177
- package/vscode/src/vs/workbench/services/remote/common/remoteAgentEnvironmentChannel.js +0 -52
- package/vscode/src/vs/workbench/services/remote/common/remoteExtensionsScanner.js +0 -71
- package/vscode/src/vs/workbench/services/request/browser/requestService.js +0 -48
- package/vscode/src/vs/workbench/services/search/common/searchService.js +0 -414
- package/vscode/src/vs/workbench/services/storage/browser/storageService.js +0 -290
- package/vscode/src/vs/workbench/services/suggest/browser/media/suggest.css.js +0 -4
- package/vscode/src/vs/workbench/services/suggest/browser/simpleCompletionItem.js +0 -9
- package/vscode/src/vs/workbench/services/suggest/browser/simpleCompletionModel.js +0 -97
- package/vscode/src/vs/workbench/services/suggest/browser/simpleSuggestWidget.js +0 -428
- package/vscode/src/vs/workbench/services/suggest/browser/simpleSuggestWidgetRenderer.js +0 -83
- package/vscode/src/vs/workbench/services/textMate/browser/arrayOperation.js +0 -62
- package/vscode/src/vs/workbench/services/textMate/browser/backgroundTokenization/textMateWorkerTokenizerController.js +0 -160
- package/vscode/src/vs/workbench/services/textMate/browser/backgroundTokenization/threadedBackgroundTokenizerFactory.js +0 -200
- package/vscode/src/vs/workbench/services/textMate/browser/textMateTokenizationFeatureImpl.js +0 -482
- package/vscode/src/vs/workbench/services/textMate/browser/tokenizationSupport/textMateTokenizationSupport.js +0 -72
- package/vscode/src/vs/workbench/services/textMate/browser/tokenizationSupport/tokenizationSupportWithLineLimit.js +0 -39
- package/vscode/src/vs/workbench/services/textMate/common/TMGrammarFactory.js +0 -118
- package/vscode/src/vs/workbench/services/textMate/common/TMScopeRegistry.js +0 -15
- package/vscode/src/vs/workbench/services/textfile/browser/browserTextFileService.js +0 -57
- package/vscode/src/vs/workbench/services/textfile/browser/textFileService.js +0 -652
- package/vscode/src/vs/workbench/services/textfile/common/textFileEditorModelManager.js +0 -402
- package/vscode/src/vs/workbench/services/textfile/common/textFileSaveParticipant.js +0 -62
- package/vscode/src/vs/workbench/services/textmodelResolver/common/textModelResolverService.js +0 -191
- package/vscode/src/vs/workbench/services/textresourceProperties/common/textResourcePropertiesService.js +0 -44
- package/vscode/src/vs/workbench/services/themes/browser/fileIconThemeData.js +0 -372
- package/vscode/src/vs/workbench/services/themes/browser/productIconThemeData.js +0 -305
- package/vscode/src/vs/workbench/services/themes/browser/workbenchThemeService.js +0 -768
- package/vscode/src/vs/workbench/services/themes/common/colorThemeData.js +0 -886
- package/vscode/src/vs/workbench/services/themes/common/colorThemeSchema.js +0 -309
- package/vscode/src/vs/workbench/services/themes/common/fileIconThemeSchema.js +0 -432
- package/vscode/src/vs/workbench/services/themes/common/plistParser.js +0 -439
- package/vscode/src/vs/workbench/services/themes/common/productIconThemeSchema.js +0 -114
- package/vscode/src/vs/workbench/services/themes/common/textMateScopeMatcher.js +0 -120
- package/vscode/src/vs/workbench/services/themes/common/themeCompatibility.js +0 -76
- package/vscode/src/vs/workbench/services/themes/common/themeConfiguration.js +0 -469
- package/vscode/src/vs/workbench/services/themes/common/themeExtensionPoints.js +0 -340
- package/vscode/src/vs/workbench/services/tunnel/browser/tunnelService.js +0 -34
- package/vscode/src/vs/workbench/services/url/browser/urlService.js +0 -48
- package/vscode/src/vs/workbench/services/userDataProfile/browser/extensionsResource.js +0 -340
- package/vscode/src/vs/workbench/services/userDataProfile/browser/globalStateResource.js +0 -145
- package/vscode/src/vs/workbench/services/userDataProfile/browser/iconSelectBox.js +0 -96
- package/vscode/src/vs/workbench/services/userDataProfile/browser/keybindingsResource.js +0 -117
- package/vscode/src/vs/workbench/services/userDataProfile/browser/media/userDataProfileView.css.js +0 -4
- package/vscode/src/vs/workbench/services/userDataProfile/browser/settingsResource.js +0 -138
- package/vscode/src/vs/workbench/services/userDataProfile/browser/snippetsResource.js +0 -153
- package/vscode/src/vs/workbench/services/userDataProfile/browser/tasksResource.js +0 -116
- package/vscode/src/vs/workbench/services/userDataProfile/browser/userDataProfileImportExportService.js +0 -1752
- package/vscode/src/vs/workbench/services/userDataProfile/browser/userDataProfileInit.js +0 -148
- package/vscode/src/vs/workbench/services/userDataProfile/browser/userDataProfileManagement.js +0 -188
- package/vscode/src/vs/workbench/services/userDataSync/browser/userDataSyncInit.js +0 -445
- package/vscode/src/vs/workbench/services/userDataSync/browser/userDataSyncWorkbenchService.js +0 -786
- package/vscode/src/vs/workbench/services/userDataSync/common/userDataSyncUtil.js +0 -46
- package/vscode/src/vs/workbench/services/workingCopy/browser/workingCopyBackupService.js +0 -23
- package/vscode/src/vs/workbench/services/workingCopy/browser/workingCopyBackupTracker.js +0 -43
- package/vscode/src/vs/workbench/services/workingCopy/browser/workingCopyHistoryService.js +0 -28
- package/vscode/src/vs/workbench/services/workingCopy/common/abstractFileWorkingCopyManager.js +0 -87
- package/vscode/src/vs/workbench/services/workingCopy/common/fileWorkingCopyManager.js +0 -384
- package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopyManager.js +0 -406
- package/vscode/src/vs/workbench/services/workingCopy/common/untitledFileWorkingCopy.js +0 -142
- package/vscode/src/vs/workbench/services/workingCopy/common/untitledFileWorkingCopyManager.js +0 -127
- package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyBackupService.js +0 -452
- package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyBackupTracker.js +0 -253
- package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyHistoryService.js +0 -616
- package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyHistoryTracker.js +0 -162
- package/vscode/src/vs/workbench/services/workspaces/browser/abstractWorkspaceEditingService.js +0 -335
- package/vscode/src/vs/workbench/services/workspaces/browser/workspaceTrustEditorInput.js +0 -41
- package/vscode/src/vs/workbench/services/workspaces/browser/workspacesService.js +0 -151
- package/vscode/src/vs/workbench/services/workspaces/common/editSessionIdentityService.js +0 -60
|
@@ -1,2059 +0,0 @@
|
|
|
1
|
-
import { Disposable, DisposableStore, toDisposable, DisposableMap } from '../../base/common/lifecycle.js';
|
|
2
|
-
import { Emitter } from '../../base/common/event.js';
|
|
3
|
-
import { getClientArea, getActiveDocument, getWindows, getWindow, addDisposableListener, EventType, isActiveDocument, getWindowId, getActiveWindow, getActiveElement, isAncestorUsingFlowTo, position, size, computeScreenAwareSize } from '../../base/browser/dom.js';
|
|
4
|
-
import { onDidChangeFullscreen, isFullscreen, isWCOEnabled } from '../../base/browser/browser.js';
|
|
5
|
-
import { IWorkingCopyBackupService } from '../services/workingCopy/common/workingCopyBackup.js';
|
|
6
|
-
import { isWindows, isLinux, isWeb, isMacintosh, isIOS } from '../../base/common/platform.js';
|
|
7
|
-
import { pathsToEditors, isResourceEditorInput } from '../common/editor.js';
|
|
8
|
-
import { SidebarPart } from './parts/sidebar/sidebarPart.js';
|
|
9
|
-
import { PanelPart } from './parts/panel/panelPart.js';
|
|
10
|
-
import { positionFromString, positionToString, shouldShowCustomTitleBar, panelOpensMaximizedFromString } from '../services/layout/browser/layoutService.js';
|
|
11
|
-
import { IWorkspaceContextService, isTemporaryWorkspace } from '../../platform/workspace/common/workspace.js';
|
|
12
|
-
import { IStorageService, WillSaveStateReason } from '../../platform/storage/common/storage.js';
|
|
13
|
-
import { IConfigurationService } from '../../platform/configuration/common/configuration.js';
|
|
14
|
-
import { ITitleService } from '../services/title/browser/titleService.js';
|
|
15
|
-
import { ILifecycleService } from '../services/lifecycle/common/lifecycle.js';
|
|
16
|
-
import { hasNativeTitlebar, getMenuBarVisibility } from '../../platform/window/common/window.js';
|
|
17
|
-
import { IHostService } from '../services/host/browser/host.js';
|
|
18
|
-
import { IBrowserWorkbenchEnvironmentService } from '../services/environment/browser/environmentService.js';
|
|
19
|
-
import { IEditorService } from '../services/editor/common/editorService.js';
|
|
20
|
-
import { IEditorGroupsService } from '../services/editor/common/editorGroupsService.js';
|
|
21
|
-
import { SerializableGrid, Sizing } from '../../base/browser/ui/grid/grid.js';
|
|
22
|
-
import { Part } from './part.js';
|
|
23
|
-
import { IStatusbarService } from '../services/statusbar/browser/statusbar.js';
|
|
24
|
-
import { IFileService } from '../../platform/files/common/files.js';
|
|
25
|
-
import { isCodeEditor } from '../../editor/browser/editorBrowser.js';
|
|
26
|
-
import { coalesce } from '../../base/common/arrays.js';
|
|
27
|
-
import { assertIsDefined } from '../../base/common/types.js';
|
|
28
|
-
import { INotificationService, NotificationsFilter } from '../../platform/notification/common/notification.js';
|
|
29
|
-
import { IThemeService } from '../../platform/theme/common/themeService.js';
|
|
30
|
-
import { WINDOW_ACTIVE_BORDER, WINDOW_INACTIVE_BORDER } from '../common/theme.js';
|
|
31
|
-
import { URI } from '../../base/common/uri.js';
|
|
32
|
-
import { IViewDescriptorService } from '../common/views.js';
|
|
33
|
-
import { DiffEditorInput } from '../common/editor/diffEditorInput.js';
|
|
34
|
-
import { mark } from '../../base/common/performance.js';
|
|
35
|
-
import { IExtensionService } from '../services/extensions/common/extensions.js';
|
|
36
|
-
import { ILogService } from '../../platform/log/common/log.js';
|
|
37
|
-
import { DeferredPromise, Promises } from '../../base/common/async.js';
|
|
38
|
-
import { IBannerService } from '../services/banner/browser/bannerService.js';
|
|
39
|
-
import { IPaneCompositePartService } from '../services/panecomposite/browser/panecomposite.js';
|
|
40
|
-
import { AuxiliaryBarPart } from './parts/auxiliarybar/auxiliaryBarPart.js';
|
|
41
|
-
import { ITelemetryService } from '../../platform/telemetry/common/telemetry.js';
|
|
42
|
-
import { IAuxiliaryWindowService } from '../services/auxiliaryWindow/browser/auxiliaryWindowService.js';
|
|
43
|
-
import { mainWindow } from '../../base/browser/window.js';
|
|
44
|
-
var LayoutClasses;
|
|
45
|
-
( (function(LayoutClasses) {
|
|
46
|
-
LayoutClasses["SIDEBAR_HIDDEN"] = "nosidebar";
|
|
47
|
-
LayoutClasses["MAIN_EDITOR_AREA_HIDDEN"] = "nomaineditorarea";
|
|
48
|
-
LayoutClasses["PANEL_HIDDEN"] = "nopanel";
|
|
49
|
-
LayoutClasses["AUXILIARYBAR_HIDDEN"] = "noauxiliarybar";
|
|
50
|
-
LayoutClasses["STATUSBAR_HIDDEN"] = "nostatusbar";
|
|
51
|
-
LayoutClasses["FULLSCREEN"] = "fullscreen";
|
|
52
|
-
LayoutClasses["MAXIMIZED"] = "maximized";
|
|
53
|
-
LayoutClasses["WINDOW_BORDER"] = "border";
|
|
54
|
-
})(LayoutClasses || (LayoutClasses = {})));
|
|
55
|
-
const TITLE_BAR_SETTINGS = [
|
|
56
|
-
"workbench.activityBar.location" ,
|
|
57
|
-
"window.commandCenter" ,
|
|
58
|
-
"workbench.editor.editorActionsLocation" ,
|
|
59
|
-
"workbench.layoutControl.enabled" ,
|
|
60
|
-
'window.menuBarVisibility',
|
|
61
|
-
"window.titleBarStyle" ,
|
|
62
|
-
"window.customTitleBarVisibility" ,
|
|
63
|
-
];
|
|
64
|
-
class Layout extends Disposable {
|
|
65
|
-
get activeContainer() { return this.getContainerFromDocument(getActiveDocument()); }
|
|
66
|
-
get containers() {
|
|
67
|
-
const containers = [];
|
|
68
|
-
for (const { window } of getWindows()) {
|
|
69
|
-
containers.push(this.getContainerFromDocument(window.document));
|
|
70
|
-
}
|
|
71
|
-
return containers;
|
|
72
|
-
}
|
|
73
|
-
getContainerFromDocument(targetDocument) {
|
|
74
|
-
if (targetDocument === this.mainContainer.ownerDocument) {
|
|
75
|
-
return this.mainContainer;
|
|
76
|
-
}
|
|
77
|
-
else {
|
|
78
|
-
return targetDocument.body.getElementsByClassName('monaco-workbench')[0];
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
whenContainerStylesLoaded(window) {
|
|
82
|
-
return this.containerStylesLoaded.get(window.vscodeWindowId);
|
|
83
|
-
}
|
|
84
|
-
get mainContainerDimension() { return this._mainContainerDimension; }
|
|
85
|
-
get activeContainerDimension() {
|
|
86
|
-
return this.getContainerDimension(this.activeContainer);
|
|
87
|
-
}
|
|
88
|
-
getContainerDimension(container) {
|
|
89
|
-
if (container === this.mainContainer) {
|
|
90
|
-
return this.mainContainerDimension;
|
|
91
|
-
}
|
|
92
|
-
else {
|
|
93
|
-
return getClientArea(container);
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
get mainContainerOffset() {
|
|
97
|
-
return this.computeContainerOffset(mainWindow);
|
|
98
|
-
}
|
|
99
|
-
get activeContainerOffset() {
|
|
100
|
-
return this.computeContainerOffset(getWindow(this.activeContainer));
|
|
101
|
-
}
|
|
102
|
-
computeContainerOffset(targetWindow) {
|
|
103
|
-
let top = 0;
|
|
104
|
-
let quickPickTop = 0;
|
|
105
|
-
if (this.isVisible("workbench.parts.banner" )) {
|
|
106
|
-
top = this.getPart("workbench.parts.banner" ).maximumHeight;
|
|
107
|
-
quickPickTop = top;
|
|
108
|
-
}
|
|
109
|
-
const titlebarVisible = this.isVisible("workbench.parts.titlebar" , targetWindow);
|
|
110
|
-
if (titlebarVisible) {
|
|
111
|
-
top += this.getPart("workbench.parts.titlebar" ).maximumHeight;
|
|
112
|
-
quickPickTop = top;
|
|
113
|
-
}
|
|
114
|
-
const isCommandCenterVisible = titlebarVisible && this.configurationService.getValue("window.commandCenter" ) !== false;
|
|
115
|
-
if (isCommandCenterVisible) {
|
|
116
|
-
quickPickTop = 6;
|
|
117
|
-
}
|
|
118
|
-
return { top, quickPickTop };
|
|
119
|
-
}
|
|
120
|
-
constructor(parent) {
|
|
121
|
-
super();
|
|
122
|
-
this.parent = parent;
|
|
123
|
-
this._onDidChangeZenMode = this._register(( new Emitter()));
|
|
124
|
-
this.onDidChangeZenMode = this._onDidChangeZenMode.event;
|
|
125
|
-
this._onDidChangeMainEditorCenteredLayout = this._register(( new Emitter()));
|
|
126
|
-
this.onDidChangeMainEditorCenteredLayout = this._onDidChangeMainEditorCenteredLayout.event;
|
|
127
|
-
this._onDidChangePanelAlignment = this._register(( new Emitter()));
|
|
128
|
-
this.onDidChangePanelAlignment = this._onDidChangePanelAlignment.event;
|
|
129
|
-
this._onDidChangeWindowMaximized = this._register(( new Emitter()));
|
|
130
|
-
this.onDidChangeWindowMaximized = this._onDidChangeWindowMaximized.event;
|
|
131
|
-
this._onDidChangePanelPosition = this._register(( new Emitter()));
|
|
132
|
-
this.onDidChangePanelPosition = this._onDidChangePanelPosition.event;
|
|
133
|
-
this._onDidChangePartVisibility = this._register(( new Emitter()));
|
|
134
|
-
this.onDidChangePartVisibility = this._onDidChangePartVisibility.event;
|
|
135
|
-
this._onDidChangeNotificationsVisibility = this._register(( new Emitter()));
|
|
136
|
-
this.onDidChangeNotificationsVisibility = this._onDidChangeNotificationsVisibility.event;
|
|
137
|
-
this._onDidLayoutMainContainer = this._register(( new Emitter()));
|
|
138
|
-
this.onDidLayoutMainContainer = this._onDidLayoutMainContainer.event;
|
|
139
|
-
this._onDidLayoutActiveContainer = this._register(( new Emitter()));
|
|
140
|
-
this.onDidLayoutActiveContainer = this._onDidLayoutActiveContainer.event;
|
|
141
|
-
this._onDidLayoutContainer = this._register(( new Emitter()));
|
|
142
|
-
this.onDidLayoutContainer = this._onDidLayoutContainer.event;
|
|
143
|
-
this._onDidAddContainer = this._register(( new Emitter()));
|
|
144
|
-
this.onDidAddContainer = this._onDidAddContainer.event;
|
|
145
|
-
this._onDidChangeActiveContainer = this._register(( new Emitter()));
|
|
146
|
-
this.onDidChangeActiveContainer = this._onDidChangeActiveContainer.event;
|
|
147
|
-
this.mainContainer = document.createElement('div');
|
|
148
|
-
this.containerStylesLoaded = ( new Map());
|
|
149
|
-
this.parts = ( new Map());
|
|
150
|
-
this.initialized = false;
|
|
151
|
-
this.disposed = false;
|
|
152
|
-
this._openedDefaultEditors = false;
|
|
153
|
-
this.whenReadyPromise = ( new DeferredPromise());
|
|
154
|
-
this.whenReady = this.whenReadyPromise.p;
|
|
155
|
-
this.whenRestoredPromise = ( new DeferredPromise());
|
|
156
|
-
this.whenRestored = this.whenRestoredPromise.p;
|
|
157
|
-
this.restored = false;
|
|
158
|
-
}
|
|
159
|
-
initLayout(accessor) {
|
|
160
|
-
this.environmentService = accessor.get(IBrowserWorkbenchEnvironmentService);
|
|
161
|
-
this.configurationService = accessor.get(IConfigurationService);
|
|
162
|
-
this.hostService = accessor.get(IHostService);
|
|
163
|
-
this.contextService = accessor.get(IWorkspaceContextService);
|
|
164
|
-
this.storageService = accessor.get(IStorageService);
|
|
165
|
-
this.workingCopyBackupService = accessor.get(IWorkingCopyBackupService);
|
|
166
|
-
this.themeService = accessor.get(IThemeService);
|
|
167
|
-
this.extensionService = accessor.get(IExtensionService);
|
|
168
|
-
this.logService = accessor.get(ILogService);
|
|
169
|
-
this.telemetryService = accessor.get(ITelemetryService);
|
|
170
|
-
this.auxiliaryWindowService = accessor.get(IAuxiliaryWindowService);
|
|
171
|
-
this.editorService = accessor.get(IEditorService);
|
|
172
|
-
this.mainPartEditorService = this.editorService.createScoped('main', this._store);
|
|
173
|
-
this.editorGroupService = accessor.get(IEditorGroupsService);
|
|
174
|
-
this.paneCompositeService = accessor.get(IPaneCompositePartService);
|
|
175
|
-
this.viewDescriptorService = accessor.get(IViewDescriptorService);
|
|
176
|
-
this.titleService = accessor.get(ITitleService);
|
|
177
|
-
this.notificationService = accessor.get(INotificationService);
|
|
178
|
-
this.statusBarService = accessor.get(IStatusbarService);
|
|
179
|
-
accessor.get(IBannerService);
|
|
180
|
-
this.registerLayoutListeners();
|
|
181
|
-
this.initLayoutState(accessor.get(ILifecycleService), accessor.get(IFileService));
|
|
182
|
-
}
|
|
183
|
-
registerLayoutListeners() {
|
|
184
|
-
const showEditorIfHidden = () => {
|
|
185
|
-
if (!this.isVisible("workbench.parts.editor" , mainWindow)) {
|
|
186
|
-
this.toggleMaximizedPanel();
|
|
187
|
-
}
|
|
188
|
-
};
|
|
189
|
-
this.editorGroupService.whenRestored.then(() => {
|
|
190
|
-
this._register(this.mainPartEditorService.onDidVisibleEditorsChange(showEditorIfHidden));
|
|
191
|
-
this._register(this.editorGroupService.mainPart.onDidActivateGroup(showEditorIfHidden));
|
|
192
|
-
this._register(this.mainPartEditorService.onDidActiveEditorChange(() => this.centerMainEditorLayout(this.stateModel.getRuntimeValue(LayoutStateKeys.MAIN_EDITOR_CENTERED))));
|
|
193
|
-
});
|
|
194
|
-
this._register(this.configurationService.onDidChangeConfiguration((e) => {
|
|
195
|
-
if (( [
|
|
196
|
-
...TITLE_BAR_SETTINGS,
|
|
197
|
-
LegacyWorkbenchLayoutSettings.SIDEBAR_POSITION,
|
|
198
|
-
LegacyWorkbenchLayoutSettings.STATUSBAR_VISIBLE,
|
|
199
|
-
].some(setting => e.affectsConfiguration(setting)))) {
|
|
200
|
-
const editorActionsMovedToTitlebar = e.affectsConfiguration("workbench.editor.editorActionsLocation" ) && this.configurationService.getValue("workbench.editor.editorActionsLocation" ) === "titleBar" ;
|
|
201
|
-
let activityBarMovedToTopOrBottom = false;
|
|
202
|
-
if (e.affectsConfiguration("workbench.activityBar.location" )) {
|
|
203
|
-
const activityBarPosition = this.configurationService.getValue("workbench.activityBar.location" );
|
|
204
|
-
activityBarMovedToTopOrBottom = activityBarPosition === "top" || activityBarPosition === "bottom" ;
|
|
205
|
-
}
|
|
206
|
-
if (activityBarMovedToTopOrBottom || editorActionsMovedToTitlebar) {
|
|
207
|
-
if (this.configurationService.getValue("window.customTitleBarVisibility" ) === "never" ) {
|
|
208
|
-
this.configurationService.updateValue("window.customTitleBarVisibility" , "auto" );
|
|
209
|
-
}
|
|
210
|
-
}
|
|
211
|
-
this.doUpdateLayoutConfiguration();
|
|
212
|
-
}
|
|
213
|
-
}));
|
|
214
|
-
this._register(onDidChangeFullscreen(windowId => this.onFullscreenChanged(windowId)));
|
|
215
|
-
this._register(this.editorGroupService.mainPart.onDidAddGroup(() => this.centerMainEditorLayout(this.stateModel.getRuntimeValue(LayoutStateKeys.MAIN_EDITOR_CENTERED))));
|
|
216
|
-
this._register(this.editorGroupService.mainPart.onDidRemoveGroup(() => this.centerMainEditorLayout(this.stateModel.getRuntimeValue(LayoutStateKeys.MAIN_EDITOR_CENTERED))));
|
|
217
|
-
this._register(this.editorGroupService.mainPart.onDidChangeGroupMaximized(() => this.centerMainEditorLayout(this.stateModel.getRuntimeValue(LayoutStateKeys.MAIN_EDITOR_CENTERED))));
|
|
218
|
-
this._register(addDisposableListener(this.mainContainer, EventType.SCROLL, () => this.mainContainer.scrollTop = 0));
|
|
219
|
-
const showingCustomMenu = (isWindows || isLinux || isWeb) && !hasNativeTitlebar(this.configurationService);
|
|
220
|
-
if (showingCustomMenu) {
|
|
221
|
-
this._register(this.titleService.onMenubarVisibilityChange(visible => this.onMenubarToggled(visible)));
|
|
222
|
-
}
|
|
223
|
-
this._register(this.themeService.onDidColorThemeChange(() => this.updateWindowsBorder()));
|
|
224
|
-
this._register(this.hostService.onDidChangeFocus(focused => this.onWindowFocusChanged(focused)));
|
|
225
|
-
this._register(this.hostService.onDidChangeActiveWindow(() => this.onActiveWindowChanged()));
|
|
226
|
-
if (isWeb && typeof navigator.windowControlsOverlay === 'object') {
|
|
227
|
-
this._register(addDisposableListener(navigator.windowControlsOverlay, 'geometrychange', () => this.onDidChangeWCO()));
|
|
228
|
-
}
|
|
229
|
-
this._register(this.auxiliaryWindowService.onDidOpenAuxiliaryWindow(({ window, disposables }) => {
|
|
230
|
-
const windowId = window.window.vscodeWindowId;
|
|
231
|
-
this.containerStylesLoaded.set(windowId, window.whenStylesHaveLoaded);
|
|
232
|
-
window.whenStylesHaveLoaded.then(() => this.containerStylesLoaded.delete(windowId));
|
|
233
|
-
disposables.add(toDisposable(() => this.containerStylesLoaded.delete(windowId)));
|
|
234
|
-
const eventDisposables = disposables.add(( new DisposableStore()));
|
|
235
|
-
this._onDidAddContainer.fire({ container: window.container, disposables: eventDisposables });
|
|
236
|
-
disposables.add(window.onDidLayout(dimension => this.handleContainerDidLayout(window.container, dimension)));
|
|
237
|
-
}));
|
|
238
|
-
}
|
|
239
|
-
onMenubarToggled(visible) {
|
|
240
|
-
if (visible !== this.state.runtime.menuBar.toggled) {
|
|
241
|
-
this.state.runtime.menuBar.toggled = visible;
|
|
242
|
-
const menuBarVisibility = getMenuBarVisibility(this.configurationService);
|
|
243
|
-
if (isWeb && menuBarVisibility === 'toggle') {
|
|
244
|
-
this.workbenchGrid.setViewVisible(this.titleBarPartView, shouldShowCustomTitleBar(this.configurationService, mainWindow, this.state.runtime.menuBar.toggled));
|
|
245
|
-
}
|
|
246
|
-
else if (this.state.runtime.mainWindowFullscreen && (menuBarVisibility === 'toggle' || menuBarVisibility === 'classic')) {
|
|
247
|
-
this.workbenchGrid.setViewVisible(this.titleBarPartView, shouldShowCustomTitleBar(this.configurationService, mainWindow, this.state.runtime.menuBar.toggled));
|
|
248
|
-
}
|
|
249
|
-
this.handleContainerDidLayout(this.mainContainer, this._mainContainerDimension);
|
|
250
|
-
}
|
|
251
|
-
}
|
|
252
|
-
handleContainerDidLayout(container, dimension) {
|
|
253
|
-
if (container === this.mainContainer) {
|
|
254
|
-
this._onDidLayoutMainContainer.fire(dimension);
|
|
255
|
-
}
|
|
256
|
-
if (isActiveDocument(container)) {
|
|
257
|
-
this._onDidLayoutActiveContainer.fire(dimension);
|
|
258
|
-
}
|
|
259
|
-
this._onDidLayoutContainer.fire({ container, dimension });
|
|
260
|
-
}
|
|
261
|
-
onFullscreenChanged(windowId) {
|
|
262
|
-
if (windowId !== mainWindow.vscodeWindowId) {
|
|
263
|
-
return;
|
|
264
|
-
}
|
|
265
|
-
this.state.runtime.mainWindowFullscreen = isFullscreen(mainWindow);
|
|
266
|
-
if (this.state.runtime.mainWindowFullscreen) {
|
|
267
|
-
this.mainContainer.classList.add(LayoutClasses.FULLSCREEN);
|
|
268
|
-
}
|
|
269
|
-
else {
|
|
270
|
-
this.mainContainer.classList.remove(LayoutClasses.FULLSCREEN);
|
|
271
|
-
const zenModeExitInfo = this.stateModel.getRuntimeValue(LayoutStateKeys.ZEN_MODE_EXIT_INFO);
|
|
272
|
-
const zenModeActive = this.stateModel.getRuntimeValue(LayoutStateKeys.ZEN_MODE_ACTIVE);
|
|
273
|
-
if (zenModeExitInfo.transitionedToFullScreen && zenModeActive) {
|
|
274
|
-
this.toggleZenMode();
|
|
275
|
-
}
|
|
276
|
-
}
|
|
277
|
-
this.workbenchGrid.edgeSnapping = this.state.runtime.mainWindowFullscreen;
|
|
278
|
-
{
|
|
279
|
-
this.workbenchGrid.setViewVisible(this.titleBarPartView, shouldShowCustomTitleBar(this.configurationService, mainWindow, this.state.runtime.menuBar.toggled));
|
|
280
|
-
this.updateWindowsBorder(true);
|
|
281
|
-
}
|
|
282
|
-
}
|
|
283
|
-
onActiveWindowChanged() {
|
|
284
|
-
const activeContainerId = this.getActiveContainerId();
|
|
285
|
-
if (this.state.runtime.activeContainerId !== activeContainerId) {
|
|
286
|
-
this.state.runtime.activeContainerId = activeContainerId;
|
|
287
|
-
this.updateWindowsBorder();
|
|
288
|
-
this._onDidChangeActiveContainer.fire();
|
|
289
|
-
}
|
|
290
|
-
}
|
|
291
|
-
onWindowFocusChanged(hasFocus) {
|
|
292
|
-
if (this.state.runtime.hasFocus !== hasFocus) {
|
|
293
|
-
this.state.runtime.hasFocus = hasFocus;
|
|
294
|
-
this.updateWindowsBorder();
|
|
295
|
-
}
|
|
296
|
-
}
|
|
297
|
-
getActiveContainerId() {
|
|
298
|
-
const activeContainer = this.activeContainer;
|
|
299
|
-
return getWindow(activeContainer).vscodeWindowId;
|
|
300
|
-
}
|
|
301
|
-
doUpdateLayoutConfiguration(skipLayout) {
|
|
302
|
-
this.updateCustomTitleBarVisibility();
|
|
303
|
-
this.updateMenubarVisibility(!!skipLayout);
|
|
304
|
-
this.editorGroupService.whenRestored.then(() => {
|
|
305
|
-
this.centerMainEditorLayout(this.stateModel.getRuntimeValue(LayoutStateKeys.MAIN_EDITOR_CENTERED), skipLayout);
|
|
306
|
-
});
|
|
307
|
-
}
|
|
308
|
-
setSideBarPosition(position) {
|
|
309
|
-
const activityBar = this.getPart("workbench.parts.activitybar" );
|
|
310
|
-
const sideBar = this.getPart("workbench.parts.sidebar" );
|
|
311
|
-
const auxiliaryBar = this.getPart("workbench.parts.auxiliarybar" );
|
|
312
|
-
const newPositionValue = ((position === 0) ) ? 'left' : 'right';
|
|
313
|
-
const oldPositionValue = ((position === 1) ) ? 'left' : 'right';
|
|
314
|
-
const panelAlignment = this.getPanelAlignment();
|
|
315
|
-
const panelPosition = this.getPanelPosition();
|
|
316
|
-
this.stateModel.setRuntimeValue(LayoutStateKeys.SIDEBAR_POSITON, position);
|
|
317
|
-
const activityBarContainer = assertIsDefined(activityBar.getContainer());
|
|
318
|
-
const sideBarContainer = assertIsDefined(sideBar.getContainer());
|
|
319
|
-
const auxiliaryBarContainer = assertIsDefined(auxiliaryBar.getContainer());
|
|
320
|
-
activityBarContainer.classList.remove(oldPositionValue);
|
|
321
|
-
sideBarContainer.classList.remove(oldPositionValue);
|
|
322
|
-
activityBarContainer.classList.add(newPositionValue);
|
|
323
|
-
sideBarContainer.classList.add(newPositionValue);
|
|
324
|
-
auxiliaryBarContainer.classList.remove(newPositionValue);
|
|
325
|
-
auxiliaryBarContainer.classList.add(oldPositionValue);
|
|
326
|
-
activityBar.updateStyles();
|
|
327
|
-
sideBar.updateStyles();
|
|
328
|
-
auxiliaryBar.updateStyles();
|
|
329
|
-
this.adjustPartPositions(position, panelAlignment, panelPosition);
|
|
330
|
-
}
|
|
331
|
-
updateWindowsBorder(skipLayout = false) {
|
|
332
|
-
if (isWeb ||
|
|
333
|
-
isWindows ||
|
|
334
|
-
hasNativeTitlebar(this.configurationService)) {
|
|
335
|
-
return;
|
|
336
|
-
}
|
|
337
|
-
const theme = this.themeService.getColorTheme();
|
|
338
|
-
const activeBorder = theme.getColor(WINDOW_ACTIVE_BORDER);
|
|
339
|
-
const inactiveBorder = theme.getColor(WINDOW_INACTIVE_BORDER);
|
|
340
|
-
const didHaveMainWindowBorder = this.hasMainWindowBorder();
|
|
341
|
-
for (const container of this.containers) {
|
|
342
|
-
const isMainContainer = container === this.mainContainer;
|
|
343
|
-
const isActiveContainer = this.activeContainer === container;
|
|
344
|
-
const containerWindowId = getWindowId(getWindow(container));
|
|
345
|
-
let windowBorder = false;
|
|
346
|
-
if (!this.state.runtime.mainWindowFullscreen && !( this.state.runtime.maximized.has(containerWindowId)) && (activeBorder || inactiveBorder)) {
|
|
347
|
-
windowBorder = true;
|
|
348
|
-
const borderColor = isActiveContainer && this.state.runtime.hasFocus ? activeBorder : inactiveBorder ?? activeBorder;
|
|
349
|
-
container.style.setProperty('--window-border-color', borderColor?.toString() ?? 'transparent');
|
|
350
|
-
}
|
|
351
|
-
if (isMainContainer) {
|
|
352
|
-
this.state.runtime.mainWindowBorder = windowBorder;
|
|
353
|
-
}
|
|
354
|
-
container.classList.toggle(LayoutClasses.WINDOW_BORDER, windowBorder);
|
|
355
|
-
}
|
|
356
|
-
if (!skipLayout && didHaveMainWindowBorder !== this.hasMainWindowBorder()) {
|
|
357
|
-
this.layout();
|
|
358
|
-
}
|
|
359
|
-
}
|
|
360
|
-
initLayoutState(lifecycleService, fileService) {
|
|
361
|
-
this.stateModel = ( new LayoutStateModel(
|
|
362
|
-
this.storageService,
|
|
363
|
-
this.configurationService,
|
|
364
|
-
this.contextService,
|
|
365
|
-
this.parent
|
|
366
|
-
));
|
|
367
|
-
this.stateModel.load();
|
|
368
|
-
if (this.stateModel.getRuntimeValue(LayoutStateKeys.PANEL_HIDDEN) && this.stateModel.getRuntimeValue(LayoutStateKeys.EDITOR_HIDDEN)) {
|
|
369
|
-
this.stateModel.setRuntimeValue(LayoutStateKeys.EDITOR_HIDDEN, false);
|
|
370
|
-
}
|
|
371
|
-
this.stateModel.onDidChangeState(change => {
|
|
372
|
-
if (change.key === LayoutStateKeys.ACTIVITYBAR_HIDDEN) {
|
|
373
|
-
this.setActivityBarHidden(change.value);
|
|
374
|
-
}
|
|
375
|
-
if (change.key === LayoutStateKeys.STATUSBAR_HIDDEN) {
|
|
376
|
-
this.setStatusBarHidden(change.value);
|
|
377
|
-
}
|
|
378
|
-
if (change.key === LayoutStateKeys.SIDEBAR_POSITON) {
|
|
379
|
-
this.setSideBarPosition(change.value);
|
|
380
|
-
}
|
|
381
|
-
if (change.key === LayoutStateKeys.PANEL_POSITION) {
|
|
382
|
-
this.setPanelPosition(change.value);
|
|
383
|
-
}
|
|
384
|
-
if (change.key === LayoutStateKeys.PANEL_ALIGNMENT) {
|
|
385
|
-
this.setPanelAlignment(change.value);
|
|
386
|
-
}
|
|
387
|
-
this.doUpdateLayoutConfiguration();
|
|
388
|
-
});
|
|
389
|
-
const initialEditorsState = this.getInitialEditorsState();
|
|
390
|
-
if (initialEditorsState) {
|
|
391
|
-
this.logService.info('Initial editor state', initialEditorsState);
|
|
392
|
-
}
|
|
393
|
-
const initialLayoutState = {
|
|
394
|
-
layout: {
|
|
395
|
-
editors: initialEditorsState?.layout
|
|
396
|
-
},
|
|
397
|
-
editor: {
|
|
398
|
-
restoreEditors: this.shouldRestoreEditors(this.contextService, initialEditorsState),
|
|
399
|
-
editorsToOpen: this.resolveEditorsToOpen(fileService, initialEditorsState),
|
|
400
|
-
},
|
|
401
|
-
views: {
|
|
402
|
-
defaults: this.getDefaultLayoutViews(this.environmentService, this.storageService),
|
|
403
|
-
containerToRestore: {}
|
|
404
|
-
}
|
|
405
|
-
};
|
|
406
|
-
const layoutRuntimeState = {
|
|
407
|
-
activeContainerId: this.getActiveContainerId(),
|
|
408
|
-
mainWindowFullscreen: isFullscreen(mainWindow),
|
|
409
|
-
hasFocus: this.hostService.hasFocus,
|
|
410
|
-
maximized: ( new Set()),
|
|
411
|
-
mainWindowBorder: false,
|
|
412
|
-
menuBar: {
|
|
413
|
-
toggled: false,
|
|
414
|
-
},
|
|
415
|
-
zenMode: {
|
|
416
|
-
transitionDisposables: ( new DisposableMap()),
|
|
417
|
-
}
|
|
418
|
-
};
|
|
419
|
-
this.state = {
|
|
420
|
-
initialization: initialLayoutState,
|
|
421
|
-
runtime: layoutRuntimeState,
|
|
422
|
-
};
|
|
423
|
-
if (this.isVisible("workbench.parts.sidebar" )) {
|
|
424
|
-
let viewContainerToRestore;
|
|
425
|
-
if (!this.environmentService.isBuilt || lifecycleService.startupKind === 3 ) {
|
|
426
|
-
viewContainerToRestore = this.storageService.get(SidebarPart.activeViewletSettingsKey, 1 , this.viewDescriptorService.getDefaultViewContainer(0 )?.id);
|
|
427
|
-
}
|
|
428
|
-
else {
|
|
429
|
-
viewContainerToRestore = this.viewDescriptorService.getDefaultViewContainer(0 )?.id;
|
|
430
|
-
}
|
|
431
|
-
if (viewContainerToRestore) {
|
|
432
|
-
this.state.initialization.views.containerToRestore.sideBar = viewContainerToRestore;
|
|
433
|
-
}
|
|
434
|
-
else {
|
|
435
|
-
this.stateModel.setRuntimeValue(LayoutStateKeys.SIDEBAR_HIDDEN, true);
|
|
436
|
-
}
|
|
437
|
-
}
|
|
438
|
-
if (this.isVisible("workbench.parts.panel" )) {
|
|
439
|
-
const viewContainerToRestore = this.storageService.get(PanelPart.activePanelSettingsKey, 1 , this.viewDescriptorService.getDefaultViewContainer(1 )?.id);
|
|
440
|
-
if (viewContainerToRestore) {
|
|
441
|
-
this.state.initialization.views.containerToRestore.panel = viewContainerToRestore;
|
|
442
|
-
}
|
|
443
|
-
else {
|
|
444
|
-
this.stateModel.setRuntimeValue(LayoutStateKeys.PANEL_HIDDEN, true);
|
|
445
|
-
}
|
|
446
|
-
}
|
|
447
|
-
if (this.isVisible("workbench.parts.auxiliarybar" )) {
|
|
448
|
-
const viewContainerToRestore = this.storageService.get(AuxiliaryBarPart.activePanelSettingsKey, 1 , this.viewDescriptorService.getDefaultViewContainer(2 )?.id);
|
|
449
|
-
if (viewContainerToRestore) {
|
|
450
|
-
this.state.initialization.views.containerToRestore.auxiliaryBar = viewContainerToRestore;
|
|
451
|
-
}
|
|
452
|
-
else {
|
|
453
|
-
this.stateModel.setRuntimeValue(LayoutStateKeys.AUXILIARYBAR_HIDDEN, true);
|
|
454
|
-
}
|
|
455
|
-
}
|
|
456
|
-
this.updateWindowsBorder(true);
|
|
457
|
-
}
|
|
458
|
-
getDefaultLayoutViews(environmentService, storageService) {
|
|
459
|
-
const defaultLayout = environmentService.options?.defaultLayout;
|
|
460
|
-
if (!defaultLayout) {
|
|
461
|
-
return undefined;
|
|
462
|
-
}
|
|
463
|
-
if (!defaultLayout.force && !storageService.isNew(1 )) {
|
|
464
|
-
return undefined;
|
|
465
|
-
}
|
|
466
|
-
const { views } = defaultLayout;
|
|
467
|
-
if (views?.length) {
|
|
468
|
-
return ( views.map(view => view.id));
|
|
469
|
-
}
|
|
470
|
-
return undefined;
|
|
471
|
-
}
|
|
472
|
-
shouldRestoreEditors(contextService, initialEditorsState) {
|
|
473
|
-
if (isTemporaryWorkspace(contextService.getWorkspace())) {
|
|
474
|
-
return false;
|
|
475
|
-
}
|
|
476
|
-
const forceRestoreEditors = this.configurationService.getValue('window.restoreWindows') === 'preserve';
|
|
477
|
-
return !!forceRestoreEditors || initialEditorsState === undefined;
|
|
478
|
-
}
|
|
479
|
-
willRestoreEditors() {
|
|
480
|
-
return this.state.initialization.editor.restoreEditors;
|
|
481
|
-
}
|
|
482
|
-
async resolveEditorsToOpen(fileService, initialEditorsState) {
|
|
483
|
-
if (initialEditorsState) {
|
|
484
|
-
const filesToMerge = coalesce(await pathsToEditors(initialEditorsState.filesToMerge, fileService, this.logService));
|
|
485
|
-
if (filesToMerge.length === 4 && isResourceEditorInput(filesToMerge[0]) && isResourceEditorInput(filesToMerge[1]) && isResourceEditorInput(filesToMerge[2]) && isResourceEditorInput(filesToMerge[3])) {
|
|
486
|
-
return [{
|
|
487
|
-
editor: {
|
|
488
|
-
input1: { resource: filesToMerge[0].resource },
|
|
489
|
-
input2: { resource: filesToMerge[1].resource },
|
|
490
|
-
base: { resource: filesToMerge[2].resource },
|
|
491
|
-
result: { resource: filesToMerge[3].resource },
|
|
492
|
-
options: { pinned: true }
|
|
493
|
-
}
|
|
494
|
-
}];
|
|
495
|
-
}
|
|
496
|
-
const filesToDiff = coalesce(await pathsToEditors(initialEditorsState.filesToDiff, fileService, this.logService));
|
|
497
|
-
if (filesToDiff.length === 2) {
|
|
498
|
-
return [{
|
|
499
|
-
editor: {
|
|
500
|
-
original: { resource: filesToDiff[0].resource },
|
|
501
|
-
modified: { resource: filesToDiff[1].resource },
|
|
502
|
-
options: { pinned: true }
|
|
503
|
-
}
|
|
504
|
-
}];
|
|
505
|
-
}
|
|
506
|
-
const filesToOpenOrCreate = [];
|
|
507
|
-
const resolvedFilesToOpenOrCreate = await pathsToEditors(initialEditorsState.filesToOpenOrCreate, fileService, this.logService);
|
|
508
|
-
for (let i = 0; i < resolvedFilesToOpenOrCreate.length; i++) {
|
|
509
|
-
const resolvedFileToOpenOrCreate = resolvedFilesToOpenOrCreate[i];
|
|
510
|
-
if (resolvedFileToOpenOrCreate) {
|
|
511
|
-
filesToOpenOrCreate.push({
|
|
512
|
-
editor: resolvedFileToOpenOrCreate,
|
|
513
|
-
viewColumn: initialEditorsState.filesToOpenOrCreate?.[i].viewColumn
|
|
514
|
-
});
|
|
515
|
-
}
|
|
516
|
-
}
|
|
517
|
-
return filesToOpenOrCreate;
|
|
518
|
-
}
|
|
519
|
-
else if (this.contextService.getWorkbenchState() === 1 && this.configurationService.getValue('workbench.startupEditor') === 'newUntitledFile') {
|
|
520
|
-
if (this.editorGroupService.hasRestorableState) {
|
|
521
|
-
return [];
|
|
522
|
-
}
|
|
523
|
-
const hasBackups = await this.workingCopyBackupService.hasBackups();
|
|
524
|
-
if (hasBackups) {
|
|
525
|
-
return [];
|
|
526
|
-
}
|
|
527
|
-
return [{
|
|
528
|
-
editor: { resource: undefined }
|
|
529
|
-
}];
|
|
530
|
-
}
|
|
531
|
-
return [];
|
|
532
|
-
}
|
|
533
|
-
get openedDefaultEditors() { return this._openedDefaultEditors; }
|
|
534
|
-
getInitialEditorsState() {
|
|
535
|
-
const defaultLayout = this.environmentService.options?.defaultLayout;
|
|
536
|
-
if ((defaultLayout?.editors?.length || defaultLayout?.layout?.editors) && (defaultLayout.force || this.storageService.isNew(1 ))) {
|
|
537
|
-
this._openedDefaultEditors = true;
|
|
538
|
-
return {
|
|
539
|
-
layout: defaultLayout.layout?.editors,
|
|
540
|
-
filesToOpenOrCreate: defaultLayout?.editors?.map(editor => {
|
|
541
|
-
return {
|
|
542
|
-
viewColumn: editor.viewColumn,
|
|
543
|
-
fileUri: URI.revive(editor.uri),
|
|
544
|
-
openOnlyIfExists: editor.openOnlyIfExists,
|
|
545
|
-
options: editor.options
|
|
546
|
-
};
|
|
547
|
-
})
|
|
548
|
-
};
|
|
549
|
-
}
|
|
550
|
-
const { filesToOpenOrCreate, filesToDiff, filesToMerge } = this.environmentService;
|
|
551
|
-
if (filesToOpenOrCreate || filesToDiff || filesToMerge) {
|
|
552
|
-
return { filesToOpenOrCreate, filesToDiff, filesToMerge };
|
|
553
|
-
}
|
|
554
|
-
return undefined;
|
|
555
|
-
}
|
|
556
|
-
isRestored() {
|
|
557
|
-
return this.restored;
|
|
558
|
-
}
|
|
559
|
-
restoreParts() {
|
|
560
|
-
const layoutReadyPromises = [];
|
|
561
|
-
const layoutRestoredPromises = [];
|
|
562
|
-
layoutReadyPromises.push((async () => {
|
|
563
|
-
mark('code/willRestoreEditors');
|
|
564
|
-
await this.editorGroupService.whenReady;
|
|
565
|
-
mark('code/restoreEditors/editorGroupsReady');
|
|
566
|
-
if (this.state.initialization.layout?.editors) {
|
|
567
|
-
this.editorGroupService.mainPart.applyLayout(this.state.initialization.layout.editors);
|
|
568
|
-
}
|
|
569
|
-
const editors = await this.state.initialization.editor.editorsToOpen;
|
|
570
|
-
mark('code/restoreEditors/editorsToOpenResolved');
|
|
571
|
-
let openEditorsPromise = undefined;
|
|
572
|
-
if (editors.length) {
|
|
573
|
-
const editorGroupsInVisualOrder = this.editorGroupService.mainPart.getGroups(2 );
|
|
574
|
-
const mapEditorsToGroup = ( new Map());
|
|
575
|
-
for (const editor of editors) {
|
|
576
|
-
const group = editorGroupsInVisualOrder[(editor.viewColumn ?? 1) - 1];
|
|
577
|
-
let editorsByGroup = mapEditorsToGroup.get(group.id);
|
|
578
|
-
if (!editorsByGroup) {
|
|
579
|
-
editorsByGroup = ( new Set());
|
|
580
|
-
mapEditorsToGroup.set(group.id, editorsByGroup);
|
|
581
|
-
}
|
|
582
|
-
editorsByGroup.add(editor.editor);
|
|
583
|
-
}
|
|
584
|
-
openEditorsPromise = Promise.all(( Array.from(mapEditorsToGroup).map(async ([groupId, editors]) => {
|
|
585
|
-
try {
|
|
586
|
-
await this.editorService.openEditors(Array.from(editors), groupId, { validateTrust: true });
|
|
587
|
-
}
|
|
588
|
-
catch (error) {
|
|
589
|
-
this.logService.error(error);
|
|
590
|
-
}
|
|
591
|
-
})));
|
|
592
|
-
}
|
|
593
|
-
layoutRestoredPromises.push(Promise.all([
|
|
594
|
-
openEditorsPromise?.finally(() => mark('code/restoreEditors/editorsOpened')),
|
|
595
|
-
this.editorGroupService.whenRestored.finally(() => mark('code/restoreEditors/editorGroupsRestored'))
|
|
596
|
-
]).finally(() => {
|
|
597
|
-
mark('code/didRestoreEditors');
|
|
598
|
-
}));
|
|
599
|
-
})());
|
|
600
|
-
const restoreDefaultViewsPromise = (async () => {
|
|
601
|
-
if (this.state.initialization.views.defaults?.length) {
|
|
602
|
-
mark('code/willOpenDefaultViews');
|
|
603
|
-
const locationsRestored = [];
|
|
604
|
-
const tryOpenView = (view) => {
|
|
605
|
-
const location = this.viewDescriptorService.getViewLocationById(view.id);
|
|
606
|
-
if (location !== null) {
|
|
607
|
-
const container = this.viewDescriptorService.getViewContainerByViewId(view.id);
|
|
608
|
-
if (container) {
|
|
609
|
-
if (view.order >= (locationsRestored?.[location]?.order ?? 0)) {
|
|
610
|
-
locationsRestored[location] = { id: container.id, order: view.order };
|
|
611
|
-
}
|
|
612
|
-
const containerModel = this.viewDescriptorService.getViewContainerModel(container);
|
|
613
|
-
containerModel.setCollapsed(view.id, false);
|
|
614
|
-
containerModel.setVisible(view.id, true);
|
|
615
|
-
return true;
|
|
616
|
-
}
|
|
617
|
-
}
|
|
618
|
-
return false;
|
|
619
|
-
};
|
|
620
|
-
const defaultViews = ( [...this.state.initialization.views.defaults].reverse().map((v, index) => ({ id: v, order: index })));
|
|
621
|
-
let i = defaultViews.length;
|
|
622
|
-
while (i) {
|
|
623
|
-
i--;
|
|
624
|
-
if (tryOpenView(defaultViews[i])) {
|
|
625
|
-
defaultViews.splice(i, 1);
|
|
626
|
-
}
|
|
627
|
-
}
|
|
628
|
-
if (defaultViews.length) {
|
|
629
|
-
await this.extensionService.whenInstalledExtensionsRegistered();
|
|
630
|
-
let i = defaultViews.length;
|
|
631
|
-
while (i) {
|
|
632
|
-
i--;
|
|
633
|
-
if (tryOpenView(defaultViews[i])) {
|
|
634
|
-
defaultViews.splice(i, 1);
|
|
635
|
-
}
|
|
636
|
-
}
|
|
637
|
-
}
|
|
638
|
-
if (locationsRestored[0 ]) {
|
|
639
|
-
this.state.initialization.views.containerToRestore.sideBar = locationsRestored[0 ].id;
|
|
640
|
-
}
|
|
641
|
-
if (locationsRestored[1 ]) {
|
|
642
|
-
this.state.initialization.views.containerToRestore.panel = locationsRestored[1 ].id;
|
|
643
|
-
}
|
|
644
|
-
if (locationsRestored[2 ]) {
|
|
645
|
-
this.state.initialization.views.containerToRestore.auxiliaryBar = locationsRestored[2 ].id;
|
|
646
|
-
}
|
|
647
|
-
mark('code/didOpenDefaultViews');
|
|
648
|
-
}
|
|
649
|
-
})();
|
|
650
|
-
layoutReadyPromises.push(restoreDefaultViewsPromise);
|
|
651
|
-
layoutReadyPromises.push((async () => {
|
|
652
|
-
await restoreDefaultViewsPromise;
|
|
653
|
-
if (!this.state.initialization.views.containerToRestore.sideBar) {
|
|
654
|
-
return;
|
|
655
|
-
}
|
|
656
|
-
mark('code/willRestoreViewlet');
|
|
657
|
-
const viewlet = await this.paneCompositeService.openPaneComposite(this.state.initialization.views.containerToRestore.sideBar, 0 );
|
|
658
|
-
if (!viewlet) {
|
|
659
|
-
await this.paneCompositeService.openPaneComposite(this.viewDescriptorService.getDefaultViewContainer(0 )?.id, 0 );
|
|
660
|
-
}
|
|
661
|
-
mark('code/didRestoreViewlet');
|
|
662
|
-
})());
|
|
663
|
-
layoutReadyPromises.push((async () => {
|
|
664
|
-
await restoreDefaultViewsPromise;
|
|
665
|
-
if (!this.state.initialization.views.containerToRestore.panel) {
|
|
666
|
-
return;
|
|
667
|
-
}
|
|
668
|
-
mark('code/willRestorePanel');
|
|
669
|
-
const panel = await this.paneCompositeService.openPaneComposite(this.state.initialization.views.containerToRestore.panel, 1 );
|
|
670
|
-
if (!panel) {
|
|
671
|
-
await this.paneCompositeService.openPaneComposite(this.viewDescriptorService.getDefaultViewContainer(1 )?.id, 1 );
|
|
672
|
-
}
|
|
673
|
-
mark('code/didRestorePanel');
|
|
674
|
-
})());
|
|
675
|
-
layoutReadyPromises.push((async () => {
|
|
676
|
-
await restoreDefaultViewsPromise;
|
|
677
|
-
if (!this.state.initialization.views.containerToRestore.auxiliaryBar) {
|
|
678
|
-
return;
|
|
679
|
-
}
|
|
680
|
-
mark('code/willRestoreAuxiliaryBar');
|
|
681
|
-
const panel = await this.paneCompositeService.openPaneComposite(this.state.initialization.views.containerToRestore.auxiliaryBar, 2 );
|
|
682
|
-
if (!panel) {
|
|
683
|
-
await this.paneCompositeService.openPaneComposite(this.viewDescriptorService.getDefaultViewContainer(2 )?.id, 2 );
|
|
684
|
-
}
|
|
685
|
-
mark('code/didRestoreAuxiliaryBar');
|
|
686
|
-
})());
|
|
687
|
-
const zenModeWasActive = this.stateModel.getRuntimeValue(LayoutStateKeys.ZEN_MODE_ACTIVE);
|
|
688
|
-
const restoreZenMode = getZenModeConfiguration(this.configurationService).restore;
|
|
689
|
-
if (zenModeWasActive) {
|
|
690
|
-
this.stateModel.setRuntimeValue(LayoutStateKeys.ZEN_MODE_ACTIVE, !restoreZenMode);
|
|
691
|
-
this.toggleZenMode(false, true);
|
|
692
|
-
}
|
|
693
|
-
if (this.stateModel.getRuntimeValue(LayoutStateKeys.MAIN_EDITOR_CENTERED)) {
|
|
694
|
-
this.centerMainEditorLayout(true, true);
|
|
695
|
-
}
|
|
696
|
-
Promises.settled(layoutReadyPromises).finally(() => {
|
|
697
|
-
this.whenReadyPromise.complete();
|
|
698
|
-
Promises.settled(layoutRestoredPromises).finally(() => {
|
|
699
|
-
this.restored = true;
|
|
700
|
-
this.whenRestoredPromise.complete();
|
|
701
|
-
});
|
|
702
|
-
});
|
|
703
|
-
}
|
|
704
|
-
registerPart(part) {
|
|
705
|
-
const id = part.getId();
|
|
706
|
-
this.parts.set(id, part);
|
|
707
|
-
return toDisposable(() => this.parts.delete(id));
|
|
708
|
-
}
|
|
709
|
-
getPart(key) {
|
|
710
|
-
const part = this.parts.get(key);
|
|
711
|
-
if (!part) {
|
|
712
|
-
throw new Error(`Unknown part ${key}`);
|
|
713
|
-
}
|
|
714
|
-
return part;
|
|
715
|
-
}
|
|
716
|
-
registerNotifications(delegate) {
|
|
717
|
-
this._register(delegate.onDidChangeNotificationsVisibility(visible => this._onDidChangeNotificationsVisibility.fire(visible)));
|
|
718
|
-
}
|
|
719
|
-
hasFocus(part) {
|
|
720
|
-
const container = this.getContainer(getActiveWindow(), part);
|
|
721
|
-
if (!container) {
|
|
722
|
-
return false;
|
|
723
|
-
}
|
|
724
|
-
const activeElement = getActiveElement();
|
|
725
|
-
if (!activeElement) {
|
|
726
|
-
return false;
|
|
727
|
-
}
|
|
728
|
-
return isAncestorUsingFlowTo(activeElement, container);
|
|
729
|
-
}
|
|
730
|
-
focusPart(part, targetWindow = mainWindow) {
|
|
731
|
-
const container = this.getContainer(targetWindow, part) ?? this.mainContainer;
|
|
732
|
-
switch (part) {
|
|
733
|
-
case "workbench.parts.editor" :
|
|
734
|
-
this.editorGroupService.getPart(container).activeGroup.focus();
|
|
735
|
-
break;
|
|
736
|
-
case "workbench.parts.panel" : {
|
|
737
|
-
this.paneCompositeService.getActivePaneComposite(1 )?.focus();
|
|
738
|
-
break;
|
|
739
|
-
}
|
|
740
|
-
case "workbench.parts.sidebar" : {
|
|
741
|
-
this.paneCompositeService.getActivePaneComposite(0 )?.focus();
|
|
742
|
-
break;
|
|
743
|
-
}
|
|
744
|
-
case "workbench.parts.activitybar" :
|
|
745
|
-
this.getPart("workbench.parts.sidebar" ).focusActivityBar();
|
|
746
|
-
break;
|
|
747
|
-
case "workbench.parts.statusbar" :
|
|
748
|
-
this.statusBarService.getPart(container).focus();
|
|
749
|
-
break;
|
|
750
|
-
default: {
|
|
751
|
-
container?.focus();
|
|
752
|
-
}
|
|
753
|
-
}
|
|
754
|
-
}
|
|
755
|
-
getContainer(targetWindow, part) {
|
|
756
|
-
if (typeof part === 'undefined') {
|
|
757
|
-
return this.getContainerFromDocument(targetWindow.document);
|
|
758
|
-
}
|
|
759
|
-
if (targetWindow === mainWindow) {
|
|
760
|
-
return this.getPart(part).getContainer();
|
|
761
|
-
}
|
|
762
|
-
let partCandidate;
|
|
763
|
-
if (part === "workbench.parts.editor" ) {
|
|
764
|
-
partCandidate = this.editorGroupService.getPart(this.getContainerFromDocument(targetWindow.document));
|
|
765
|
-
}
|
|
766
|
-
else if (part === "workbench.parts.statusbar" ) {
|
|
767
|
-
partCandidate = this.statusBarService.getPart(this.getContainerFromDocument(targetWindow.document));
|
|
768
|
-
}
|
|
769
|
-
else if (part === "workbench.parts.titlebar" ) {
|
|
770
|
-
partCandidate = this.titleService.getPart(this.getContainerFromDocument(targetWindow.document));
|
|
771
|
-
}
|
|
772
|
-
if (partCandidate instanceof Part) {
|
|
773
|
-
return partCandidate.getContainer();
|
|
774
|
-
}
|
|
775
|
-
return undefined;
|
|
776
|
-
}
|
|
777
|
-
isVisible(part, targetWindow = mainWindow) {
|
|
778
|
-
if (targetWindow !== mainWindow && part === "workbench.parts.editor" ) {
|
|
779
|
-
return true;
|
|
780
|
-
}
|
|
781
|
-
if (this.initialized) {
|
|
782
|
-
switch (part) {
|
|
783
|
-
case "workbench.parts.titlebar" :
|
|
784
|
-
return this.workbenchGrid.isViewVisible(this.titleBarPartView);
|
|
785
|
-
case "workbench.parts.sidebar" :
|
|
786
|
-
return !this.stateModel.getRuntimeValue(LayoutStateKeys.SIDEBAR_HIDDEN);
|
|
787
|
-
case "workbench.parts.panel" :
|
|
788
|
-
return !this.stateModel.getRuntimeValue(LayoutStateKeys.PANEL_HIDDEN);
|
|
789
|
-
case "workbench.parts.auxiliarybar" :
|
|
790
|
-
return !this.stateModel.getRuntimeValue(LayoutStateKeys.AUXILIARYBAR_HIDDEN);
|
|
791
|
-
case "workbench.parts.statusbar" :
|
|
792
|
-
return !this.stateModel.getRuntimeValue(LayoutStateKeys.STATUSBAR_HIDDEN);
|
|
793
|
-
case "workbench.parts.activitybar" :
|
|
794
|
-
return !this.stateModel.getRuntimeValue(LayoutStateKeys.ACTIVITYBAR_HIDDEN);
|
|
795
|
-
case "workbench.parts.editor" :
|
|
796
|
-
return !this.stateModel.getRuntimeValue(LayoutStateKeys.EDITOR_HIDDEN);
|
|
797
|
-
case "workbench.parts.banner" :
|
|
798
|
-
return this.workbenchGrid.isViewVisible(this.bannerPartView);
|
|
799
|
-
default:
|
|
800
|
-
return false;
|
|
801
|
-
}
|
|
802
|
-
}
|
|
803
|
-
switch (part) {
|
|
804
|
-
case "workbench.parts.titlebar" :
|
|
805
|
-
return shouldShowCustomTitleBar(this.configurationService, mainWindow, this.state.runtime.menuBar.toggled);
|
|
806
|
-
case "workbench.parts.sidebar" :
|
|
807
|
-
return !this.stateModel.getRuntimeValue(LayoutStateKeys.SIDEBAR_HIDDEN);
|
|
808
|
-
case "workbench.parts.panel" :
|
|
809
|
-
return !this.stateModel.getRuntimeValue(LayoutStateKeys.PANEL_HIDDEN);
|
|
810
|
-
case "workbench.parts.auxiliarybar" :
|
|
811
|
-
return !this.stateModel.getRuntimeValue(LayoutStateKeys.AUXILIARYBAR_HIDDEN);
|
|
812
|
-
case "workbench.parts.statusbar" :
|
|
813
|
-
return !this.stateModel.getRuntimeValue(LayoutStateKeys.STATUSBAR_HIDDEN);
|
|
814
|
-
case "workbench.parts.activitybar" :
|
|
815
|
-
return !this.stateModel.getRuntimeValue(LayoutStateKeys.ACTIVITYBAR_HIDDEN);
|
|
816
|
-
case "workbench.parts.editor" :
|
|
817
|
-
return !this.stateModel.getRuntimeValue(LayoutStateKeys.EDITOR_HIDDEN);
|
|
818
|
-
default:
|
|
819
|
-
return false;
|
|
820
|
-
}
|
|
821
|
-
}
|
|
822
|
-
shouldShowBannerFirst() {
|
|
823
|
-
return isWeb && !isWCOEnabled();
|
|
824
|
-
}
|
|
825
|
-
focus() {
|
|
826
|
-
this.focusPart("workbench.parts.editor" , getWindow(this.activeContainer));
|
|
827
|
-
}
|
|
828
|
-
focusPanelOrEditor() {
|
|
829
|
-
const activePanel = this.paneCompositeService.getActivePaneComposite(1 );
|
|
830
|
-
if ((this.hasFocus("workbench.parts.panel" ) || !this.isVisible("workbench.parts.editor" )) && activePanel) {
|
|
831
|
-
activePanel.focus();
|
|
832
|
-
}
|
|
833
|
-
else {
|
|
834
|
-
this.focus();
|
|
835
|
-
}
|
|
836
|
-
}
|
|
837
|
-
getMaximumEditorDimensions(container) {
|
|
838
|
-
const targetWindow = getWindow(container);
|
|
839
|
-
const containerDimension = this.getContainerDimension(container);
|
|
840
|
-
if (container === this.mainContainer) {
|
|
841
|
-
const panelPosition = this.getPanelPosition();
|
|
842
|
-
const isColumn = panelPosition === 1 || panelPosition === 0 ;
|
|
843
|
-
const takenWidth = (this.isVisible("workbench.parts.activitybar" ) ? this.activityBarPartView.minimumWidth : 0) +
|
|
844
|
-
(this.isVisible("workbench.parts.sidebar" ) ? this.sideBarPartView.minimumWidth : 0) +
|
|
845
|
-
(this.isVisible("workbench.parts.panel" ) && isColumn ? this.panelPartView.minimumWidth : 0) +
|
|
846
|
-
(this.isVisible("workbench.parts.auxiliarybar" ) ? this.auxiliaryBarPartView.minimumWidth : 0);
|
|
847
|
-
const takenHeight = (this.isVisible("workbench.parts.titlebar" , targetWindow) ? this.titleBarPartView.minimumHeight : 0) +
|
|
848
|
-
(this.isVisible("workbench.parts.statusbar" , targetWindow) ? this.statusBarPartView.minimumHeight : 0) +
|
|
849
|
-
(this.isVisible("workbench.parts.panel" ) && !isColumn ? this.panelPartView.minimumHeight : 0);
|
|
850
|
-
const availableWidth = containerDimension.width - takenWidth;
|
|
851
|
-
const availableHeight = containerDimension.height - takenHeight;
|
|
852
|
-
return { width: availableWidth, height: availableHeight };
|
|
853
|
-
}
|
|
854
|
-
else {
|
|
855
|
-
const takenHeight = (this.isVisible("workbench.parts.titlebar" , targetWindow) ? this.titleBarPartView.minimumHeight : 0) +
|
|
856
|
-
(this.isVisible("workbench.parts.statusbar" , targetWindow) ? this.statusBarPartView.minimumHeight : 0);
|
|
857
|
-
return { width: containerDimension.width, height: containerDimension.height - takenHeight };
|
|
858
|
-
}
|
|
859
|
-
}
|
|
860
|
-
toggleZenMode(skipLayout, restoring = false) {
|
|
861
|
-
this.stateModel.setRuntimeValue(LayoutStateKeys.ZEN_MODE_ACTIVE, !this.stateModel.getRuntimeValue(LayoutStateKeys.ZEN_MODE_ACTIVE));
|
|
862
|
-
this.state.runtime.zenMode.transitionDisposables.clearAndDisposeAll();
|
|
863
|
-
const setLineNumbers = (lineNumbers) => {
|
|
864
|
-
for (const editor of this.mainPartEditorService.visibleTextEditorControls) {
|
|
865
|
-
if (!lineNumbers && isCodeEditor(editor) && editor.hasModel()) {
|
|
866
|
-
const model = editor.getModel();
|
|
867
|
-
lineNumbers = this.configurationService.getValue('editor.lineNumbers', { resource: model.uri, overrideIdentifier: model.getLanguageId() });
|
|
868
|
-
}
|
|
869
|
-
if (!lineNumbers) {
|
|
870
|
-
lineNumbers = this.configurationService.getValue('editor.lineNumbers');
|
|
871
|
-
}
|
|
872
|
-
editor.updateOptions({ lineNumbers });
|
|
873
|
-
}
|
|
874
|
-
};
|
|
875
|
-
let toggleMainWindowFullScreen = false;
|
|
876
|
-
const config = getZenModeConfiguration(this.configurationService);
|
|
877
|
-
const zenModeExitInfo = this.stateModel.getRuntimeValue(LayoutStateKeys.ZEN_MODE_EXIT_INFO);
|
|
878
|
-
if (this.stateModel.getRuntimeValue(LayoutStateKeys.ZEN_MODE_ACTIVE)) {
|
|
879
|
-
toggleMainWindowFullScreen = !this.state.runtime.mainWindowFullscreen && config.fullScreen && !isIOS;
|
|
880
|
-
if (!restoring) {
|
|
881
|
-
zenModeExitInfo.transitionedToFullScreen = toggleMainWindowFullScreen;
|
|
882
|
-
zenModeExitInfo.transitionedToCenteredEditorLayout = !this.isMainEditorLayoutCentered() && config.centerLayout;
|
|
883
|
-
zenModeExitInfo.handleNotificationsDoNotDisturbMode = this.notificationService.getFilter() === NotificationsFilter.OFF;
|
|
884
|
-
zenModeExitInfo.wasVisible.sideBar = this.isVisible("workbench.parts.sidebar" );
|
|
885
|
-
zenModeExitInfo.wasVisible.panel = this.isVisible("workbench.parts.panel" );
|
|
886
|
-
zenModeExitInfo.wasVisible.auxiliaryBar = this.isVisible("workbench.parts.auxiliarybar" );
|
|
887
|
-
this.stateModel.setRuntimeValue(LayoutStateKeys.ZEN_MODE_EXIT_INFO, zenModeExitInfo);
|
|
888
|
-
}
|
|
889
|
-
this.setPanelHidden(true, true);
|
|
890
|
-
this.setAuxiliaryBarHidden(true, true);
|
|
891
|
-
this.setSideBarHidden(true, true);
|
|
892
|
-
if (config.hideActivityBar) {
|
|
893
|
-
this.setActivityBarHidden(true, true);
|
|
894
|
-
}
|
|
895
|
-
if (config.hideStatusBar) {
|
|
896
|
-
this.setStatusBarHidden(true, true);
|
|
897
|
-
}
|
|
898
|
-
if (config.hideLineNumbers) {
|
|
899
|
-
setLineNumbers('off');
|
|
900
|
-
this.state.runtime.zenMode.transitionDisposables.set("zenMode.hideLineNumbers" , this.mainPartEditorService.onDidVisibleEditorsChange(() => setLineNumbers('off')));
|
|
901
|
-
}
|
|
902
|
-
if (config.showTabs !== this.editorGroupService.partOptions.showTabs) {
|
|
903
|
-
this.state.runtime.zenMode.transitionDisposables.set("zenMode.showTabs" , this.editorGroupService.mainPart.enforcePartOptions({ showTabs: config.showTabs }));
|
|
904
|
-
}
|
|
905
|
-
if (config.silentNotifications && zenModeExitInfo.handleNotificationsDoNotDisturbMode) {
|
|
906
|
-
this.notificationService.setFilter(NotificationsFilter.ERROR);
|
|
907
|
-
}
|
|
908
|
-
if (config.centerLayout) {
|
|
909
|
-
this.centerMainEditorLayout(true, true);
|
|
910
|
-
}
|
|
911
|
-
this.state.runtime.zenMode.transitionDisposables.set('configurationChange', this.configurationService.onDidChangeConfiguration(e => {
|
|
912
|
-
if (e.affectsConfiguration("zenMode.hideActivityBar" )) {
|
|
913
|
-
const zenModeHideActivityBar = this.configurationService.getValue("zenMode.hideActivityBar" );
|
|
914
|
-
this.setActivityBarHidden(zenModeHideActivityBar, true);
|
|
915
|
-
}
|
|
916
|
-
if (e.affectsConfiguration("zenMode.hideStatusBar" )) {
|
|
917
|
-
const zenModeHideStatusBar = this.configurationService.getValue("zenMode.hideStatusBar" );
|
|
918
|
-
this.setStatusBarHidden(zenModeHideStatusBar, true);
|
|
919
|
-
}
|
|
920
|
-
if (e.affectsConfiguration("zenMode.centerLayout" )) {
|
|
921
|
-
const zenModeCenterLayout = this.configurationService.getValue("zenMode.centerLayout" );
|
|
922
|
-
this.centerMainEditorLayout(zenModeCenterLayout, true);
|
|
923
|
-
}
|
|
924
|
-
if (e.affectsConfiguration("zenMode.showTabs" )) {
|
|
925
|
-
const zenModeShowTabs = this.configurationService.getValue("zenMode.showTabs" ) ?? 'multiple';
|
|
926
|
-
this.state.runtime.zenMode.transitionDisposables.set("zenMode.showTabs" , this.editorGroupService.mainPart.enforcePartOptions({ showTabs: zenModeShowTabs }));
|
|
927
|
-
}
|
|
928
|
-
if (e.affectsConfiguration("zenMode.silentNotifications" )) {
|
|
929
|
-
const zenModeSilentNotifications = !!this.configurationService.getValue("zenMode.silentNotifications" );
|
|
930
|
-
if (zenModeExitInfo.handleNotificationsDoNotDisturbMode) {
|
|
931
|
-
this.notificationService.setFilter(zenModeSilentNotifications ? NotificationsFilter.ERROR : NotificationsFilter.OFF);
|
|
932
|
-
}
|
|
933
|
-
}
|
|
934
|
-
if (e.affectsConfiguration("zenMode.hideLineNumbers" )) {
|
|
935
|
-
const lineNumbersType = this.configurationService.getValue("zenMode.hideLineNumbers" ) ? 'off' : undefined;
|
|
936
|
-
setLineNumbers(lineNumbersType);
|
|
937
|
-
this.state.runtime.zenMode.transitionDisposables.set("zenMode.hideLineNumbers" , this.mainPartEditorService.onDidVisibleEditorsChange(() => setLineNumbers(lineNumbersType)));
|
|
938
|
-
}
|
|
939
|
-
}));
|
|
940
|
-
}
|
|
941
|
-
else {
|
|
942
|
-
if (zenModeExitInfo.wasVisible.panel) {
|
|
943
|
-
this.setPanelHidden(false, true);
|
|
944
|
-
}
|
|
945
|
-
if (zenModeExitInfo.wasVisible.auxiliaryBar) {
|
|
946
|
-
this.setAuxiliaryBarHidden(false, true);
|
|
947
|
-
}
|
|
948
|
-
if (zenModeExitInfo.wasVisible.sideBar) {
|
|
949
|
-
this.setSideBarHidden(false, true);
|
|
950
|
-
}
|
|
951
|
-
if (!this.stateModel.getRuntimeValue(LayoutStateKeys.ACTIVITYBAR_HIDDEN, true)) {
|
|
952
|
-
this.setActivityBarHidden(false, true);
|
|
953
|
-
}
|
|
954
|
-
if (!this.stateModel.getRuntimeValue(LayoutStateKeys.STATUSBAR_HIDDEN, true)) {
|
|
955
|
-
this.setStatusBarHidden(false, true);
|
|
956
|
-
}
|
|
957
|
-
if (zenModeExitInfo.transitionedToCenteredEditorLayout) {
|
|
958
|
-
this.centerMainEditorLayout(false, true);
|
|
959
|
-
}
|
|
960
|
-
if (zenModeExitInfo.handleNotificationsDoNotDisturbMode) {
|
|
961
|
-
this.notificationService.setFilter(NotificationsFilter.OFF);
|
|
962
|
-
}
|
|
963
|
-
setLineNumbers();
|
|
964
|
-
this.focus();
|
|
965
|
-
toggleMainWindowFullScreen = zenModeExitInfo.transitionedToFullScreen && this.state.runtime.mainWindowFullscreen;
|
|
966
|
-
}
|
|
967
|
-
if (!skipLayout) {
|
|
968
|
-
this.layout();
|
|
969
|
-
}
|
|
970
|
-
if (toggleMainWindowFullScreen) {
|
|
971
|
-
this.hostService.toggleFullScreen(mainWindow);
|
|
972
|
-
}
|
|
973
|
-
this._onDidChangeZenMode.fire(this.stateModel.getRuntimeValue(LayoutStateKeys.ZEN_MODE_ACTIVE));
|
|
974
|
-
}
|
|
975
|
-
setStatusBarHidden(hidden, skipLayout) {
|
|
976
|
-
this.stateModel.setRuntimeValue(LayoutStateKeys.STATUSBAR_HIDDEN, hidden);
|
|
977
|
-
if (hidden) {
|
|
978
|
-
this.mainContainer.classList.add(LayoutClasses.STATUSBAR_HIDDEN);
|
|
979
|
-
}
|
|
980
|
-
else {
|
|
981
|
-
this.mainContainer.classList.remove(LayoutClasses.STATUSBAR_HIDDEN);
|
|
982
|
-
}
|
|
983
|
-
this.workbenchGrid.setViewVisible(this.statusBarPartView, !hidden);
|
|
984
|
-
}
|
|
985
|
-
createWorkbenchLayout() {
|
|
986
|
-
const titleBar = this.getPart("workbench.parts.titlebar" );
|
|
987
|
-
const bannerPart = this.getPart("workbench.parts.banner" );
|
|
988
|
-
const editorPart = this.getPart("workbench.parts.editor" );
|
|
989
|
-
const activityBar = this.getPart("workbench.parts.activitybar" );
|
|
990
|
-
const panelPart = this.getPart("workbench.parts.panel" );
|
|
991
|
-
const auxiliaryBarPart = this.getPart("workbench.parts.auxiliarybar" );
|
|
992
|
-
const sideBar = this.getPart("workbench.parts.sidebar" );
|
|
993
|
-
const statusBar = this.getPart("workbench.parts.statusbar" );
|
|
994
|
-
this.titleBarPartView = titleBar;
|
|
995
|
-
this.bannerPartView = bannerPart;
|
|
996
|
-
this.sideBarPartView = sideBar;
|
|
997
|
-
this.activityBarPartView = activityBar;
|
|
998
|
-
this.editorPartView = editorPart;
|
|
999
|
-
this.panelPartView = panelPart;
|
|
1000
|
-
this.auxiliaryBarPartView = auxiliaryBarPart;
|
|
1001
|
-
this.statusBarPartView = statusBar;
|
|
1002
|
-
const viewMap = {
|
|
1003
|
-
["workbench.parts.activitybar" ]: this.activityBarPartView,
|
|
1004
|
-
["workbench.parts.banner" ]: this.bannerPartView,
|
|
1005
|
-
["workbench.parts.titlebar" ]: this.titleBarPartView,
|
|
1006
|
-
["workbench.parts.editor" ]: this.editorPartView,
|
|
1007
|
-
["workbench.parts.panel" ]: this.panelPartView,
|
|
1008
|
-
["workbench.parts.sidebar" ]: this.sideBarPartView,
|
|
1009
|
-
["workbench.parts.statusbar" ]: this.statusBarPartView,
|
|
1010
|
-
["workbench.parts.auxiliarybar" ]: this.auxiliaryBarPartView
|
|
1011
|
-
};
|
|
1012
|
-
const fromJSON = ({ type }) => viewMap[type];
|
|
1013
|
-
const workbenchGrid = SerializableGrid.deserialize(this.createGridDescriptor(), { fromJSON }, { proportionalLayout: false });
|
|
1014
|
-
this.mainContainer.prepend(workbenchGrid.element);
|
|
1015
|
-
this.mainContainer.setAttribute('role', 'application');
|
|
1016
|
-
this.workbenchGrid = workbenchGrid;
|
|
1017
|
-
this.workbenchGrid.edgeSnapping = this.state.runtime.mainWindowFullscreen;
|
|
1018
|
-
for (const part of [titleBar, editorPart, activityBar, panelPart, sideBar, statusBar, auxiliaryBarPart, bannerPart]) {
|
|
1019
|
-
this._register(part.onDidVisibilityChange((visible) => {
|
|
1020
|
-
if (part === sideBar) {
|
|
1021
|
-
this.setSideBarHidden(!visible, true);
|
|
1022
|
-
}
|
|
1023
|
-
else if (part === panelPart) {
|
|
1024
|
-
this.setPanelHidden(!visible, true);
|
|
1025
|
-
}
|
|
1026
|
-
else if (part === auxiliaryBarPart) {
|
|
1027
|
-
this.setAuxiliaryBarHidden(!visible, true);
|
|
1028
|
-
}
|
|
1029
|
-
else if (part === editorPart) {
|
|
1030
|
-
this.setEditorHidden(!visible, true);
|
|
1031
|
-
}
|
|
1032
|
-
this._onDidChangePartVisibility.fire();
|
|
1033
|
-
this.handleContainerDidLayout(this.mainContainer, this._mainContainerDimension);
|
|
1034
|
-
}));
|
|
1035
|
-
}
|
|
1036
|
-
this._register(this.storageService.onWillSaveState(willSaveState => {
|
|
1037
|
-
if (willSaveState.reason === WillSaveStateReason.SHUTDOWN) {
|
|
1038
|
-
const sideBarSize = this.stateModel.getRuntimeValue(LayoutStateKeys.SIDEBAR_HIDDEN)
|
|
1039
|
-
? this.workbenchGrid.getViewCachedVisibleSize(this.sideBarPartView)
|
|
1040
|
-
: this.workbenchGrid.getViewSize(this.sideBarPartView).width;
|
|
1041
|
-
this.stateModel.setInitializationValue(LayoutStateKeys.SIDEBAR_SIZE, sideBarSize);
|
|
1042
|
-
const panelSize = this.stateModel.getRuntimeValue(LayoutStateKeys.PANEL_HIDDEN)
|
|
1043
|
-
? this.workbenchGrid.getViewCachedVisibleSize(this.panelPartView)
|
|
1044
|
-
: (this.stateModel.getRuntimeValue(LayoutStateKeys.PANEL_POSITION) === 2 ? this.workbenchGrid.getViewSize(this.panelPartView).height : this.workbenchGrid.getViewSize(this.panelPartView).width);
|
|
1045
|
-
this.stateModel.setInitializationValue(LayoutStateKeys.PANEL_SIZE, panelSize);
|
|
1046
|
-
const auxiliaryBarSize = this.stateModel.getRuntimeValue(LayoutStateKeys.AUXILIARYBAR_HIDDEN)
|
|
1047
|
-
? this.workbenchGrid.getViewCachedVisibleSize(this.auxiliaryBarPartView)
|
|
1048
|
-
: this.workbenchGrid.getViewSize(this.auxiliaryBarPartView).width;
|
|
1049
|
-
this.stateModel.setInitializationValue(LayoutStateKeys.AUXILIARYBAR_SIZE, auxiliaryBarSize);
|
|
1050
|
-
this.stateModel.save(true, true);
|
|
1051
|
-
}
|
|
1052
|
-
}));
|
|
1053
|
-
}
|
|
1054
|
-
layout() {
|
|
1055
|
-
if (!this.disposed) {
|
|
1056
|
-
this._mainContainerDimension = getClientArea(this.state.runtime.mainWindowFullscreen ?
|
|
1057
|
-
mainWindow.document.body :
|
|
1058
|
-
this.parent
|
|
1059
|
-
);
|
|
1060
|
-
this.logService.trace(`Layout#layout, height: ${this._mainContainerDimension.height}, width: ${this._mainContainerDimension.width}`);
|
|
1061
|
-
position(this.mainContainer, 0, 0, 0, 0, 'relative');
|
|
1062
|
-
size(this.mainContainer, this._mainContainerDimension.width, this._mainContainerDimension.height);
|
|
1063
|
-
this.workbenchGrid.layout(this._mainContainerDimension.width, this._mainContainerDimension.height);
|
|
1064
|
-
this.initialized = true;
|
|
1065
|
-
this.handleContainerDidLayout(this.mainContainer, this._mainContainerDimension);
|
|
1066
|
-
}
|
|
1067
|
-
}
|
|
1068
|
-
isMainEditorLayoutCentered() {
|
|
1069
|
-
return this.stateModel.getRuntimeValue(LayoutStateKeys.MAIN_EDITOR_CENTERED);
|
|
1070
|
-
}
|
|
1071
|
-
centerMainEditorLayout(active, skipLayout) {
|
|
1072
|
-
this.stateModel.setRuntimeValue(LayoutStateKeys.MAIN_EDITOR_CENTERED, active);
|
|
1073
|
-
const activeMainEditor = this.mainPartEditorService.activeEditor;
|
|
1074
|
-
let isEditorComplex = false;
|
|
1075
|
-
if (activeMainEditor instanceof DiffEditorInput) {
|
|
1076
|
-
isEditorComplex = this.configurationService.getValue('diffEditor.renderSideBySide');
|
|
1077
|
-
}
|
|
1078
|
-
else if (activeMainEditor?.hasCapability(256 )) {
|
|
1079
|
-
isEditorComplex = true;
|
|
1080
|
-
}
|
|
1081
|
-
const isCenteredLayoutAutoResizing = this.configurationService.getValue('workbench.editor.centeredLayoutAutoResize');
|
|
1082
|
-
if (isCenteredLayoutAutoResizing &&
|
|
1083
|
-
((this.editorGroupService.mainPart.groups.length > 1 && !this.editorGroupService.mainPart.hasMaximizedGroup()) || isEditorComplex)) {
|
|
1084
|
-
active = false;
|
|
1085
|
-
}
|
|
1086
|
-
if (this.editorGroupService.mainPart.isLayoutCentered() !== active) {
|
|
1087
|
-
this.editorGroupService.mainPart.centerLayout(active);
|
|
1088
|
-
if (!skipLayout) {
|
|
1089
|
-
this.layout();
|
|
1090
|
-
}
|
|
1091
|
-
}
|
|
1092
|
-
this._onDidChangeMainEditorCenteredLayout.fire(this.stateModel.getRuntimeValue(LayoutStateKeys.MAIN_EDITOR_CENTERED));
|
|
1093
|
-
}
|
|
1094
|
-
resizePart(part, sizeChangeWidth, sizeChangeHeight) {
|
|
1095
|
-
const sizeChangePxWidth = Math.sign(sizeChangeWidth) * computeScreenAwareSize(getActiveWindow(), Math.abs(sizeChangeWidth));
|
|
1096
|
-
const sizeChangePxHeight = Math.sign(sizeChangeHeight) * computeScreenAwareSize(getActiveWindow(), Math.abs(sizeChangeHeight));
|
|
1097
|
-
let viewSize;
|
|
1098
|
-
switch (part) {
|
|
1099
|
-
case "workbench.parts.sidebar" :
|
|
1100
|
-
viewSize = this.workbenchGrid.getViewSize(this.sideBarPartView);
|
|
1101
|
-
this.workbenchGrid.resizeView(this.sideBarPartView, {
|
|
1102
|
-
width: viewSize.width + sizeChangePxWidth,
|
|
1103
|
-
height: viewSize.height
|
|
1104
|
-
});
|
|
1105
|
-
break;
|
|
1106
|
-
case "workbench.parts.panel" :
|
|
1107
|
-
viewSize = this.workbenchGrid.getViewSize(this.panelPartView);
|
|
1108
|
-
this.workbenchGrid.resizeView(this.panelPartView, {
|
|
1109
|
-
width: viewSize.width + (this.getPanelPosition() !== 2 ? sizeChangePxWidth : 0),
|
|
1110
|
-
height: viewSize.height + (this.getPanelPosition() !== 2 ? 0 : sizeChangePxHeight)
|
|
1111
|
-
});
|
|
1112
|
-
break;
|
|
1113
|
-
case "workbench.parts.auxiliarybar" :
|
|
1114
|
-
viewSize = this.workbenchGrid.getViewSize(this.auxiliaryBarPartView);
|
|
1115
|
-
this.workbenchGrid.resizeView(this.auxiliaryBarPartView, {
|
|
1116
|
-
width: viewSize.width + sizeChangePxWidth,
|
|
1117
|
-
height: viewSize.height
|
|
1118
|
-
});
|
|
1119
|
-
break;
|
|
1120
|
-
case "workbench.parts.editor" :
|
|
1121
|
-
viewSize = this.workbenchGrid.getViewSize(this.editorPartView);
|
|
1122
|
-
if (this.editorGroupService.mainPart.count === 1) {
|
|
1123
|
-
this.workbenchGrid.resizeView(this.editorPartView, {
|
|
1124
|
-
width: viewSize.width + sizeChangePxWidth,
|
|
1125
|
-
height: viewSize.height + sizeChangePxHeight
|
|
1126
|
-
});
|
|
1127
|
-
}
|
|
1128
|
-
else {
|
|
1129
|
-
const activeGroup = this.editorGroupService.mainPart.activeGroup;
|
|
1130
|
-
const { width, height } = this.editorGroupService.mainPart.getSize(activeGroup);
|
|
1131
|
-
this.editorGroupService.mainPart.setSize(activeGroup, { width: width + sizeChangePxWidth, height: height + sizeChangePxHeight });
|
|
1132
|
-
const { width: newWidth, height: newHeight } = this.editorGroupService.mainPart.getSize(activeGroup);
|
|
1133
|
-
if ((sizeChangePxHeight && height === newHeight) || (sizeChangePxWidth && width === newWidth)) {
|
|
1134
|
-
this.workbenchGrid.resizeView(this.editorPartView, {
|
|
1135
|
-
width: viewSize.width + (sizeChangePxWidth && width === newWidth ? sizeChangePxWidth : 0),
|
|
1136
|
-
height: viewSize.height + (sizeChangePxHeight && height === newHeight ? sizeChangePxHeight : 0)
|
|
1137
|
-
});
|
|
1138
|
-
}
|
|
1139
|
-
}
|
|
1140
|
-
break;
|
|
1141
|
-
default:
|
|
1142
|
-
return;
|
|
1143
|
-
}
|
|
1144
|
-
}
|
|
1145
|
-
setActivityBarHidden(hidden, skipLayout) {
|
|
1146
|
-
this.stateModel.setRuntimeValue(LayoutStateKeys.ACTIVITYBAR_HIDDEN, hidden);
|
|
1147
|
-
this.workbenchGrid.setViewVisible(this.activityBarPartView, !hidden);
|
|
1148
|
-
}
|
|
1149
|
-
setBannerHidden(hidden) {
|
|
1150
|
-
this.workbenchGrid.setViewVisible(this.bannerPartView, !hidden);
|
|
1151
|
-
}
|
|
1152
|
-
setEditorHidden(hidden, skipLayout) {
|
|
1153
|
-
this.stateModel.setRuntimeValue(LayoutStateKeys.EDITOR_HIDDEN, hidden);
|
|
1154
|
-
if (hidden) {
|
|
1155
|
-
this.mainContainer.classList.add(LayoutClasses.MAIN_EDITOR_AREA_HIDDEN);
|
|
1156
|
-
}
|
|
1157
|
-
else {
|
|
1158
|
-
this.mainContainer.classList.remove(LayoutClasses.MAIN_EDITOR_AREA_HIDDEN);
|
|
1159
|
-
}
|
|
1160
|
-
this.workbenchGrid.setViewVisible(this.editorPartView, !hidden);
|
|
1161
|
-
if (hidden && !this.isVisible("workbench.parts.panel" )) {
|
|
1162
|
-
this.setPanelHidden(false, true);
|
|
1163
|
-
}
|
|
1164
|
-
}
|
|
1165
|
-
getLayoutClasses() {
|
|
1166
|
-
return coalesce([
|
|
1167
|
-
!this.isVisible("workbench.parts.sidebar" ) ? LayoutClasses.SIDEBAR_HIDDEN : undefined,
|
|
1168
|
-
!this.isVisible("workbench.parts.editor" , mainWindow) ? LayoutClasses.MAIN_EDITOR_AREA_HIDDEN : undefined,
|
|
1169
|
-
!this.isVisible("workbench.parts.panel" ) ? LayoutClasses.PANEL_HIDDEN : undefined,
|
|
1170
|
-
!this.isVisible("workbench.parts.auxiliarybar" ) ? LayoutClasses.AUXILIARYBAR_HIDDEN : undefined,
|
|
1171
|
-
!this.isVisible("workbench.parts.statusbar" ) ? LayoutClasses.STATUSBAR_HIDDEN : undefined,
|
|
1172
|
-
this.state.runtime.mainWindowFullscreen ? LayoutClasses.FULLSCREEN : undefined
|
|
1173
|
-
]);
|
|
1174
|
-
}
|
|
1175
|
-
setSideBarHidden(hidden, skipLayout) {
|
|
1176
|
-
this.stateModel.setRuntimeValue(LayoutStateKeys.SIDEBAR_HIDDEN, hidden);
|
|
1177
|
-
if (hidden) {
|
|
1178
|
-
this.mainContainer.classList.add(LayoutClasses.SIDEBAR_HIDDEN);
|
|
1179
|
-
}
|
|
1180
|
-
else {
|
|
1181
|
-
this.mainContainer.classList.remove(LayoutClasses.SIDEBAR_HIDDEN);
|
|
1182
|
-
}
|
|
1183
|
-
if (hidden && this.paneCompositeService.getActivePaneComposite(0 )) {
|
|
1184
|
-
this.paneCompositeService.hideActivePaneComposite(0 );
|
|
1185
|
-
this.focusPanelOrEditor();
|
|
1186
|
-
}
|
|
1187
|
-
else if (!hidden && !this.paneCompositeService.getActivePaneComposite(0 )) {
|
|
1188
|
-
const viewletToOpen = this.paneCompositeService.getLastActivePaneCompositeId(0 );
|
|
1189
|
-
if (viewletToOpen) {
|
|
1190
|
-
const viewlet = this.paneCompositeService.openPaneComposite(viewletToOpen, 0 , true);
|
|
1191
|
-
if (!viewlet) {
|
|
1192
|
-
this.paneCompositeService.openPaneComposite(this.viewDescriptorService.getDefaultViewContainer(0 )?.id, 0 , true);
|
|
1193
|
-
}
|
|
1194
|
-
}
|
|
1195
|
-
}
|
|
1196
|
-
this.workbenchGrid.setViewVisible(this.sideBarPartView, !hidden);
|
|
1197
|
-
}
|
|
1198
|
-
hasViews(id) {
|
|
1199
|
-
const viewContainer = this.viewDescriptorService.getViewContainerById(id);
|
|
1200
|
-
if (!viewContainer) {
|
|
1201
|
-
return false;
|
|
1202
|
-
}
|
|
1203
|
-
const viewContainerModel = this.viewDescriptorService.getViewContainerModel(viewContainer);
|
|
1204
|
-
if (!viewContainerModel) {
|
|
1205
|
-
return false;
|
|
1206
|
-
}
|
|
1207
|
-
return viewContainerModel.activeViewDescriptors.length >= 1;
|
|
1208
|
-
}
|
|
1209
|
-
adjustPartPositions(sideBarPosition, panelAlignment, panelPosition) {
|
|
1210
|
-
const sideBarSiblingToEditor = panelPosition !== 2 || !(panelAlignment === 'center' || (sideBarPosition === 0 && panelAlignment === 'right') || (sideBarPosition === 1 && panelAlignment === 'left'));
|
|
1211
|
-
const auxiliaryBarSiblingToEditor = panelPosition !== 2 || !(panelAlignment === 'center' || (sideBarPosition === 1 && panelAlignment === 'right') || (sideBarPosition === 0 && panelAlignment === 'left'));
|
|
1212
|
-
const preMovePanelWidth = !this.isVisible("workbench.parts.panel" ) ? Sizing.Invisible(this.workbenchGrid.getViewCachedVisibleSize(this.panelPartView) ?? this.panelPartView.minimumWidth) : this.workbenchGrid.getViewSize(this.panelPartView).width;
|
|
1213
|
-
const preMovePanelHeight = !this.isVisible("workbench.parts.panel" ) ? Sizing.Invisible(this.workbenchGrid.getViewCachedVisibleSize(this.panelPartView) ?? this.panelPartView.minimumHeight) : this.workbenchGrid.getViewSize(this.panelPartView).height;
|
|
1214
|
-
const preMoveSideBarSize = !this.isVisible("workbench.parts.sidebar" ) ? Sizing.Invisible(this.workbenchGrid.getViewCachedVisibleSize(this.sideBarPartView) ?? this.sideBarPartView.minimumWidth) : this.workbenchGrid.getViewSize(this.sideBarPartView).width;
|
|
1215
|
-
const preMoveAuxiliaryBarSize = !this.isVisible("workbench.parts.auxiliarybar" ) ? Sizing.Invisible(this.workbenchGrid.getViewCachedVisibleSize(this.auxiliaryBarPartView) ?? this.auxiliaryBarPartView.minimumWidth) : this.workbenchGrid.getViewSize(this.auxiliaryBarPartView).width;
|
|
1216
|
-
if (sideBarPosition === 0 ) {
|
|
1217
|
-
this.workbenchGrid.moveViewTo(this.activityBarPartView, [2, 0]);
|
|
1218
|
-
this.workbenchGrid.moveView(this.sideBarPartView, preMoveSideBarSize, sideBarSiblingToEditor ? this.editorPartView : this.activityBarPartView, sideBarSiblingToEditor ? 2 : 3 );
|
|
1219
|
-
if (auxiliaryBarSiblingToEditor) {
|
|
1220
|
-
this.workbenchGrid.moveView(this.auxiliaryBarPartView, preMoveAuxiliaryBarSize, this.editorPartView, 3 );
|
|
1221
|
-
}
|
|
1222
|
-
else {
|
|
1223
|
-
this.workbenchGrid.moveViewTo(this.auxiliaryBarPartView, [2, -1]);
|
|
1224
|
-
}
|
|
1225
|
-
}
|
|
1226
|
-
else {
|
|
1227
|
-
this.workbenchGrid.moveViewTo(this.activityBarPartView, [2, -1]);
|
|
1228
|
-
this.workbenchGrid.moveView(this.sideBarPartView, preMoveSideBarSize, sideBarSiblingToEditor ? this.editorPartView : this.activityBarPartView, sideBarSiblingToEditor ? 3 : 2 );
|
|
1229
|
-
if (auxiliaryBarSiblingToEditor) {
|
|
1230
|
-
this.workbenchGrid.moveView(this.auxiliaryBarPartView, preMoveAuxiliaryBarSize, this.editorPartView, 2 );
|
|
1231
|
-
}
|
|
1232
|
-
else {
|
|
1233
|
-
this.workbenchGrid.moveViewTo(this.auxiliaryBarPartView, [2, 0]);
|
|
1234
|
-
}
|
|
1235
|
-
}
|
|
1236
|
-
if (panelPosition !== 2 ) {
|
|
1237
|
-
this.workbenchGrid.moveView(this.panelPartView, preMovePanelWidth, this.editorPartView, panelPosition === 0 ? 2 : 3 );
|
|
1238
|
-
this.workbenchGrid.resizeView(this.panelPartView, {
|
|
1239
|
-
height: preMovePanelHeight,
|
|
1240
|
-
width: preMovePanelWidth
|
|
1241
|
-
});
|
|
1242
|
-
}
|
|
1243
|
-
if (this.isVisible("workbench.parts.sidebar" )) {
|
|
1244
|
-
this.workbenchGrid.resizeView(this.sideBarPartView, {
|
|
1245
|
-
height: this.workbenchGrid.getViewSize(this.sideBarPartView).height,
|
|
1246
|
-
width: preMoveSideBarSize
|
|
1247
|
-
});
|
|
1248
|
-
}
|
|
1249
|
-
if (this.isVisible("workbench.parts.auxiliarybar" )) {
|
|
1250
|
-
this.workbenchGrid.resizeView(this.auxiliaryBarPartView, {
|
|
1251
|
-
height: this.workbenchGrid.getViewSize(this.auxiliaryBarPartView).height,
|
|
1252
|
-
width: preMoveAuxiliaryBarSize
|
|
1253
|
-
});
|
|
1254
|
-
}
|
|
1255
|
-
}
|
|
1256
|
-
setPanelAlignment(alignment, skipLayout) {
|
|
1257
|
-
if (this.getPanelPosition() !== 2 ) {
|
|
1258
|
-
this.setPanelPosition(2 );
|
|
1259
|
-
}
|
|
1260
|
-
if (alignment !== 'center' && this.isPanelMaximized()) {
|
|
1261
|
-
this.toggleMaximizedPanel();
|
|
1262
|
-
}
|
|
1263
|
-
this.stateModel.setRuntimeValue(LayoutStateKeys.PANEL_ALIGNMENT, alignment);
|
|
1264
|
-
this.adjustPartPositions(this.getSideBarPosition(), alignment, this.getPanelPosition());
|
|
1265
|
-
this._onDidChangePanelAlignment.fire(alignment);
|
|
1266
|
-
}
|
|
1267
|
-
setPanelHidden(hidden, skipLayout) {
|
|
1268
|
-
if (!this.workbenchGrid) {
|
|
1269
|
-
return;
|
|
1270
|
-
}
|
|
1271
|
-
const wasHidden = !this.isVisible("workbench.parts.panel" );
|
|
1272
|
-
this.stateModel.setRuntimeValue(LayoutStateKeys.PANEL_HIDDEN, hidden);
|
|
1273
|
-
const isPanelMaximized = this.isPanelMaximized();
|
|
1274
|
-
const panelOpensMaximized = this.panelOpensMaximized();
|
|
1275
|
-
if (hidden) {
|
|
1276
|
-
this.mainContainer.classList.add(LayoutClasses.PANEL_HIDDEN);
|
|
1277
|
-
}
|
|
1278
|
-
else {
|
|
1279
|
-
this.mainContainer.classList.remove(LayoutClasses.PANEL_HIDDEN);
|
|
1280
|
-
}
|
|
1281
|
-
let focusEditor = false;
|
|
1282
|
-
if (hidden && this.paneCompositeService.getActivePaneComposite(1 )) {
|
|
1283
|
-
this.paneCompositeService.hideActivePaneComposite(1 );
|
|
1284
|
-
focusEditor = isIOS ? false : true;
|
|
1285
|
-
}
|
|
1286
|
-
else if (!hidden && !this.paneCompositeService.getActivePaneComposite(1 )) {
|
|
1287
|
-
let panelToOpen = this.paneCompositeService.getLastActivePaneCompositeId(1 );
|
|
1288
|
-
if (!panelToOpen || !this.hasViews(panelToOpen)) {
|
|
1289
|
-
panelToOpen = this.viewDescriptorService
|
|
1290
|
-
.getViewContainersByLocation(1 )
|
|
1291
|
-
.find(viewContainer => this.hasViews(viewContainer.id))?.id;
|
|
1292
|
-
}
|
|
1293
|
-
if (panelToOpen) {
|
|
1294
|
-
const focus = !skipLayout;
|
|
1295
|
-
this.paneCompositeService.openPaneComposite(panelToOpen, 1 , focus);
|
|
1296
|
-
}
|
|
1297
|
-
}
|
|
1298
|
-
if (hidden && isPanelMaximized) {
|
|
1299
|
-
this.toggleMaximizedPanel();
|
|
1300
|
-
}
|
|
1301
|
-
if (wasHidden === hidden) {
|
|
1302
|
-
return;
|
|
1303
|
-
}
|
|
1304
|
-
this.workbenchGrid.setViewVisible(this.panelPartView, !hidden);
|
|
1305
|
-
if (!hidden) {
|
|
1306
|
-
if (!skipLayout && isPanelMaximized !== panelOpensMaximized) {
|
|
1307
|
-
this.toggleMaximizedPanel();
|
|
1308
|
-
}
|
|
1309
|
-
}
|
|
1310
|
-
else {
|
|
1311
|
-
this.stateModel.setRuntimeValue(LayoutStateKeys.PANEL_WAS_LAST_MAXIMIZED, isPanelMaximized);
|
|
1312
|
-
}
|
|
1313
|
-
if (focusEditor) {
|
|
1314
|
-
this.editorGroupService.mainPart.activeGroup.focus();
|
|
1315
|
-
}
|
|
1316
|
-
}
|
|
1317
|
-
toggleMaximizedPanel() {
|
|
1318
|
-
const size = this.workbenchGrid.getViewSize(this.panelPartView);
|
|
1319
|
-
const panelPosition = this.getPanelPosition();
|
|
1320
|
-
const isMaximized = this.isPanelMaximized();
|
|
1321
|
-
if (!isMaximized) {
|
|
1322
|
-
if (this.isVisible("workbench.parts.panel" )) {
|
|
1323
|
-
if (panelPosition === 2 ) {
|
|
1324
|
-
this.stateModel.setRuntimeValue(LayoutStateKeys.PANEL_LAST_NON_MAXIMIZED_HEIGHT, size.height);
|
|
1325
|
-
}
|
|
1326
|
-
else {
|
|
1327
|
-
this.stateModel.setRuntimeValue(LayoutStateKeys.PANEL_LAST_NON_MAXIMIZED_WIDTH, size.width);
|
|
1328
|
-
}
|
|
1329
|
-
}
|
|
1330
|
-
this.setEditorHidden(true);
|
|
1331
|
-
}
|
|
1332
|
-
else {
|
|
1333
|
-
this.setEditorHidden(false);
|
|
1334
|
-
this.workbenchGrid.resizeView(this.panelPartView, {
|
|
1335
|
-
width: panelPosition === 2 ? size.width : this.stateModel.getRuntimeValue(LayoutStateKeys.PANEL_LAST_NON_MAXIMIZED_WIDTH),
|
|
1336
|
-
height: panelPosition === 2 ? this.stateModel.getRuntimeValue(LayoutStateKeys.PANEL_LAST_NON_MAXIMIZED_HEIGHT) : size.height
|
|
1337
|
-
});
|
|
1338
|
-
}
|
|
1339
|
-
this.stateModel.setRuntimeValue(LayoutStateKeys.PANEL_WAS_LAST_MAXIMIZED, !isMaximized);
|
|
1340
|
-
}
|
|
1341
|
-
panelOpensMaximized() {
|
|
1342
|
-
if (this.getPanelAlignment() !== 'center' && this.getPanelPosition() === 2 ) {
|
|
1343
|
-
return false;
|
|
1344
|
-
}
|
|
1345
|
-
const panelOpensMaximized = panelOpensMaximizedFromString(this.configurationService.getValue(WorkbenchLayoutSettings.PANEL_OPENS_MAXIMIZED));
|
|
1346
|
-
const panelLastIsMaximized = this.stateModel.getRuntimeValue(LayoutStateKeys.PANEL_WAS_LAST_MAXIMIZED);
|
|
1347
|
-
return panelOpensMaximized === 0 || (panelOpensMaximized === 2 && panelLastIsMaximized);
|
|
1348
|
-
}
|
|
1349
|
-
setAuxiliaryBarHidden(hidden, skipLayout) {
|
|
1350
|
-
this.stateModel.setRuntimeValue(LayoutStateKeys.AUXILIARYBAR_HIDDEN, hidden);
|
|
1351
|
-
if (hidden) {
|
|
1352
|
-
this.mainContainer.classList.add(LayoutClasses.AUXILIARYBAR_HIDDEN);
|
|
1353
|
-
}
|
|
1354
|
-
else {
|
|
1355
|
-
this.mainContainer.classList.remove(LayoutClasses.AUXILIARYBAR_HIDDEN);
|
|
1356
|
-
}
|
|
1357
|
-
if (hidden && this.paneCompositeService.getActivePaneComposite(2 )) {
|
|
1358
|
-
this.paneCompositeService.hideActivePaneComposite(2 );
|
|
1359
|
-
this.focusPanelOrEditor();
|
|
1360
|
-
}
|
|
1361
|
-
else if (!hidden && !this.paneCompositeService.getActivePaneComposite(2 )) {
|
|
1362
|
-
let panelToOpen = this.paneCompositeService.getLastActivePaneCompositeId(2 );
|
|
1363
|
-
if (!panelToOpen || !this.hasViews(panelToOpen)) {
|
|
1364
|
-
panelToOpen = this.viewDescriptorService
|
|
1365
|
-
.getViewContainersByLocation(2 )
|
|
1366
|
-
.find(viewContainer => this.hasViews(viewContainer.id))?.id;
|
|
1367
|
-
}
|
|
1368
|
-
if (panelToOpen) {
|
|
1369
|
-
const focus = !skipLayout;
|
|
1370
|
-
this.paneCompositeService.openPaneComposite(panelToOpen, 2 , focus);
|
|
1371
|
-
}
|
|
1372
|
-
}
|
|
1373
|
-
this.workbenchGrid.setViewVisible(this.auxiliaryBarPartView, !hidden);
|
|
1374
|
-
}
|
|
1375
|
-
setPartHidden(hidden, part, targetWindow = mainWindow) {
|
|
1376
|
-
switch (part) {
|
|
1377
|
-
case "workbench.parts.activitybar" :
|
|
1378
|
-
return this.setActivityBarHidden(hidden);
|
|
1379
|
-
case "workbench.parts.sidebar" :
|
|
1380
|
-
return this.setSideBarHidden(hidden);
|
|
1381
|
-
case "workbench.parts.editor" :
|
|
1382
|
-
return this.setEditorHidden(hidden);
|
|
1383
|
-
case "workbench.parts.banner" :
|
|
1384
|
-
return this.setBannerHidden(hidden);
|
|
1385
|
-
case "workbench.parts.auxiliarybar" :
|
|
1386
|
-
return this.setAuxiliaryBarHidden(hidden);
|
|
1387
|
-
case "workbench.parts.panel" :
|
|
1388
|
-
return this.setPanelHidden(hidden);
|
|
1389
|
-
}
|
|
1390
|
-
}
|
|
1391
|
-
hasMainWindowBorder() {
|
|
1392
|
-
return this.state.runtime.mainWindowBorder;
|
|
1393
|
-
}
|
|
1394
|
-
getMainWindowBorderRadius() {
|
|
1395
|
-
return this.state.runtime.mainWindowBorder && isMacintosh ? '5px' : undefined;
|
|
1396
|
-
}
|
|
1397
|
-
isPanelMaximized() {
|
|
1398
|
-
return ((this.getPanelAlignment() === 'center' || this.getPanelPosition() !== 2) ) && !this.isVisible("workbench.parts.editor" , mainWindow);
|
|
1399
|
-
}
|
|
1400
|
-
getSideBarPosition() {
|
|
1401
|
-
return this.stateModel.getRuntimeValue(LayoutStateKeys.SIDEBAR_POSITON);
|
|
1402
|
-
}
|
|
1403
|
-
getPanelAlignment() {
|
|
1404
|
-
return this.stateModel.getRuntimeValue(LayoutStateKeys.PANEL_ALIGNMENT);
|
|
1405
|
-
}
|
|
1406
|
-
updateMenubarVisibility(skipLayout) {
|
|
1407
|
-
const shouldShowTitleBar = shouldShowCustomTitleBar(this.configurationService, mainWindow, this.state.runtime.menuBar.toggled);
|
|
1408
|
-
if (!skipLayout && this.workbenchGrid && shouldShowTitleBar !== this.isVisible("workbench.parts.titlebar" , mainWindow)) {
|
|
1409
|
-
this.workbenchGrid.setViewVisible(this.titleBarPartView, shouldShowTitleBar);
|
|
1410
|
-
}
|
|
1411
|
-
}
|
|
1412
|
-
updateCustomTitleBarVisibility() {
|
|
1413
|
-
const shouldShowTitleBar = shouldShowCustomTitleBar(this.configurationService, mainWindow, this.state.runtime.menuBar.toggled);
|
|
1414
|
-
const titlebarVisible = this.isVisible("workbench.parts.titlebar" );
|
|
1415
|
-
if (shouldShowTitleBar !== titlebarVisible) {
|
|
1416
|
-
this.workbenchGrid.setViewVisible(this.titleBarPartView, shouldShowTitleBar);
|
|
1417
|
-
}
|
|
1418
|
-
}
|
|
1419
|
-
toggleMenuBar() {
|
|
1420
|
-
let currentVisibilityValue = getMenuBarVisibility(this.configurationService);
|
|
1421
|
-
if (typeof currentVisibilityValue !== 'string') {
|
|
1422
|
-
currentVisibilityValue = 'classic';
|
|
1423
|
-
}
|
|
1424
|
-
let newVisibilityValue;
|
|
1425
|
-
if (currentVisibilityValue === 'visible' || currentVisibilityValue === 'classic') {
|
|
1426
|
-
newVisibilityValue = hasNativeTitlebar(this.configurationService) ? 'toggle' : 'compact';
|
|
1427
|
-
}
|
|
1428
|
-
else {
|
|
1429
|
-
newVisibilityValue = 'classic';
|
|
1430
|
-
}
|
|
1431
|
-
this.configurationService.updateValue('window.menuBarVisibility', newVisibilityValue);
|
|
1432
|
-
}
|
|
1433
|
-
getPanelPosition() {
|
|
1434
|
-
return this.stateModel.getRuntimeValue(LayoutStateKeys.PANEL_POSITION);
|
|
1435
|
-
}
|
|
1436
|
-
setPanelPosition(position) {
|
|
1437
|
-
if (!this.isVisible("workbench.parts.panel" )) {
|
|
1438
|
-
this.setPanelHidden(false);
|
|
1439
|
-
}
|
|
1440
|
-
const panelPart = this.getPart("workbench.parts.panel" );
|
|
1441
|
-
const oldPositionValue = positionToString(this.getPanelPosition());
|
|
1442
|
-
const newPositionValue = positionToString(position);
|
|
1443
|
-
const panelContainer = assertIsDefined(panelPart.getContainer());
|
|
1444
|
-
panelContainer.classList.remove(oldPositionValue);
|
|
1445
|
-
panelContainer.classList.add(newPositionValue);
|
|
1446
|
-
panelPart.updateStyles();
|
|
1447
|
-
const size = this.workbenchGrid.getViewSize(this.panelPartView);
|
|
1448
|
-
const sideBarSize = this.workbenchGrid.getViewSize(this.sideBarPartView);
|
|
1449
|
-
const auxiliaryBarSize = this.workbenchGrid.getViewSize(this.auxiliaryBarPartView);
|
|
1450
|
-
let editorHidden = !this.isVisible("workbench.parts.editor" , mainWindow);
|
|
1451
|
-
if (newPositionValue !== oldPositionValue && !editorHidden) {
|
|
1452
|
-
if (position === 2 ) {
|
|
1453
|
-
this.stateModel.setRuntimeValue(LayoutStateKeys.PANEL_LAST_NON_MAXIMIZED_WIDTH, size.width);
|
|
1454
|
-
}
|
|
1455
|
-
else if (positionFromString(oldPositionValue) === 2 ) {
|
|
1456
|
-
this.stateModel.setRuntimeValue(LayoutStateKeys.PANEL_LAST_NON_MAXIMIZED_HEIGHT, size.height);
|
|
1457
|
-
}
|
|
1458
|
-
}
|
|
1459
|
-
if (position === 2 && this.getPanelAlignment() !== 'center' && editorHidden) {
|
|
1460
|
-
this.toggleMaximizedPanel();
|
|
1461
|
-
editorHidden = false;
|
|
1462
|
-
}
|
|
1463
|
-
this.stateModel.setRuntimeValue(LayoutStateKeys.PANEL_POSITION, position);
|
|
1464
|
-
const sideBarVisible = this.isVisible("workbench.parts.sidebar" );
|
|
1465
|
-
const auxiliaryBarVisible = this.isVisible("workbench.parts.auxiliarybar" );
|
|
1466
|
-
if (position === 2 ) {
|
|
1467
|
-
this.workbenchGrid.moveView(this.panelPartView, editorHidden ? size.height : this.stateModel.getRuntimeValue(LayoutStateKeys.PANEL_LAST_NON_MAXIMIZED_HEIGHT), this.editorPartView, 1 );
|
|
1468
|
-
}
|
|
1469
|
-
else if (position === 1 ) {
|
|
1470
|
-
this.workbenchGrid.moveView(this.panelPartView, editorHidden ? size.width : this.stateModel.getRuntimeValue(LayoutStateKeys.PANEL_LAST_NON_MAXIMIZED_WIDTH), this.editorPartView, 3 );
|
|
1471
|
-
}
|
|
1472
|
-
else {
|
|
1473
|
-
this.workbenchGrid.moveView(this.panelPartView, editorHidden ? size.width : this.stateModel.getRuntimeValue(LayoutStateKeys.PANEL_LAST_NON_MAXIMIZED_WIDTH), this.editorPartView, 2 );
|
|
1474
|
-
}
|
|
1475
|
-
this.workbenchGrid.resizeView(this.sideBarPartView, sideBarSize);
|
|
1476
|
-
if (!sideBarVisible) {
|
|
1477
|
-
this.setSideBarHidden(true);
|
|
1478
|
-
}
|
|
1479
|
-
this.workbenchGrid.resizeView(this.auxiliaryBarPartView, auxiliaryBarSize);
|
|
1480
|
-
if (!auxiliaryBarVisible) {
|
|
1481
|
-
this.setAuxiliaryBarHidden(true);
|
|
1482
|
-
}
|
|
1483
|
-
if (position === 2 ) {
|
|
1484
|
-
this.adjustPartPositions(this.getSideBarPosition(), this.getPanelAlignment(), position);
|
|
1485
|
-
}
|
|
1486
|
-
this._onDidChangePanelPosition.fire(newPositionValue);
|
|
1487
|
-
}
|
|
1488
|
-
isWindowMaximized(targetWindow) {
|
|
1489
|
-
return ( this.state.runtime.maximized.has(getWindowId(targetWindow)));
|
|
1490
|
-
}
|
|
1491
|
-
updateWindowMaximizedState(targetWindow, maximized) {
|
|
1492
|
-
this.mainContainer.classList.toggle(LayoutClasses.MAXIMIZED, maximized);
|
|
1493
|
-
const targetWindowId = getWindowId(targetWindow);
|
|
1494
|
-
if (maximized === ( this.state.runtime.maximized.has(targetWindowId))) {
|
|
1495
|
-
return;
|
|
1496
|
-
}
|
|
1497
|
-
if (maximized) {
|
|
1498
|
-
this.state.runtime.maximized.add(targetWindowId);
|
|
1499
|
-
}
|
|
1500
|
-
else {
|
|
1501
|
-
this.state.runtime.maximized.delete(targetWindowId);
|
|
1502
|
-
}
|
|
1503
|
-
this.updateWindowsBorder();
|
|
1504
|
-
this._onDidChangeWindowMaximized.fire({ windowId: targetWindowId, maximized });
|
|
1505
|
-
}
|
|
1506
|
-
getVisibleNeighborPart(part, direction) {
|
|
1507
|
-
if (!this.workbenchGrid) {
|
|
1508
|
-
return undefined;
|
|
1509
|
-
}
|
|
1510
|
-
if (!this.isVisible(part, mainWindow)) {
|
|
1511
|
-
return undefined;
|
|
1512
|
-
}
|
|
1513
|
-
const neighborViews = this.workbenchGrid.getNeighborViews(this.getPart(part), direction, false);
|
|
1514
|
-
if (!neighborViews) {
|
|
1515
|
-
return undefined;
|
|
1516
|
-
}
|
|
1517
|
-
for (const neighborView of neighborViews) {
|
|
1518
|
-
const neighborPart = ["workbench.parts.activitybar" , "workbench.parts.editor" , "workbench.parts.panel" , "workbench.parts.auxiliarybar" , "workbench.parts.sidebar" , "workbench.parts.statusbar" , "workbench.parts.titlebar" ]
|
|
1519
|
-
.find(partId => this.getPart(partId) === neighborView && this.isVisible(partId, mainWindow));
|
|
1520
|
-
if (neighborPart !== undefined) {
|
|
1521
|
-
return neighborPart;
|
|
1522
|
-
}
|
|
1523
|
-
}
|
|
1524
|
-
return undefined;
|
|
1525
|
-
}
|
|
1526
|
-
onDidChangeWCO() {
|
|
1527
|
-
const bannerFirst = this.workbenchGrid.getNeighborViews(this.titleBarPartView, 0 , false).length > 0;
|
|
1528
|
-
const shouldBannerBeFirst = this.shouldShowBannerFirst();
|
|
1529
|
-
if (bannerFirst !== shouldBannerBeFirst) {
|
|
1530
|
-
this.workbenchGrid.moveView(this.bannerPartView, Sizing.Distribute, this.titleBarPartView, shouldBannerBeFirst ? 0 : 1 );
|
|
1531
|
-
}
|
|
1532
|
-
this.workbenchGrid.setViewVisible(this.titleBarPartView, shouldShowCustomTitleBar(this.configurationService, mainWindow, this.state.runtime.menuBar.toggled));
|
|
1533
|
-
}
|
|
1534
|
-
arrangeEditorNodes(nodes, availableHeight, availableWidth) {
|
|
1535
|
-
if (!nodes.sideBar && !nodes.auxiliaryBar) {
|
|
1536
|
-
nodes.editor.size = availableHeight;
|
|
1537
|
-
return nodes.editor;
|
|
1538
|
-
}
|
|
1539
|
-
const result = [nodes.editor];
|
|
1540
|
-
nodes.editor.size = availableWidth;
|
|
1541
|
-
if (nodes.sideBar) {
|
|
1542
|
-
if (this.stateModel.getRuntimeValue(LayoutStateKeys.SIDEBAR_POSITON) === 0 ) {
|
|
1543
|
-
result.splice(0, 0, nodes.sideBar);
|
|
1544
|
-
}
|
|
1545
|
-
else {
|
|
1546
|
-
result.push(nodes.sideBar);
|
|
1547
|
-
}
|
|
1548
|
-
nodes.editor.size -= this.stateModel.getRuntimeValue(LayoutStateKeys.SIDEBAR_HIDDEN) ? 0 : nodes.sideBar.size;
|
|
1549
|
-
}
|
|
1550
|
-
if (nodes.auxiliaryBar) {
|
|
1551
|
-
if (this.stateModel.getRuntimeValue(LayoutStateKeys.SIDEBAR_POSITON) === 1 ) {
|
|
1552
|
-
result.splice(0, 0, nodes.auxiliaryBar);
|
|
1553
|
-
}
|
|
1554
|
-
else {
|
|
1555
|
-
result.push(nodes.auxiliaryBar);
|
|
1556
|
-
}
|
|
1557
|
-
nodes.editor.size -= this.stateModel.getRuntimeValue(LayoutStateKeys.AUXILIARYBAR_HIDDEN) ? 0 : nodes.auxiliaryBar.size;
|
|
1558
|
-
}
|
|
1559
|
-
return {
|
|
1560
|
-
type: 'branch',
|
|
1561
|
-
data: result,
|
|
1562
|
-
size: availableHeight
|
|
1563
|
-
};
|
|
1564
|
-
}
|
|
1565
|
-
arrangeMiddleSectionNodes(nodes, availableWidth, availableHeight) {
|
|
1566
|
-
const activityBarSize = this.stateModel.getRuntimeValue(LayoutStateKeys.ACTIVITYBAR_HIDDEN) ? 0 : nodes.activityBar.size;
|
|
1567
|
-
const sideBarSize = this.stateModel.getRuntimeValue(LayoutStateKeys.SIDEBAR_HIDDEN) ? 0 : nodes.sideBar.size;
|
|
1568
|
-
const auxiliaryBarSize = this.stateModel.getRuntimeValue(LayoutStateKeys.AUXILIARYBAR_HIDDEN) ? 0 : nodes.auxiliaryBar.size;
|
|
1569
|
-
const panelSize = this.stateModel.getInitializationValue(LayoutStateKeys.PANEL_SIZE) ? 0 : nodes.panel.size;
|
|
1570
|
-
const result = [];
|
|
1571
|
-
if (this.stateModel.getRuntimeValue(LayoutStateKeys.PANEL_POSITION) !== 2 ) {
|
|
1572
|
-
result.push(nodes.editor);
|
|
1573
|
-
nodes.editor.size = availableWidth - activityBarSize - sideBarSize - panelSize - auxiliaryBarSize;
|
|
1574
|
-
if (this.stateModel.getRuntimeValue(LayoutStateKeys.PANEL_POSITION) === 1 ) {
|
|
1575
|
-
result.push(nodes.panel);
|
|
1576
|
-
}
|
|
1577
|
-
else {
|
|
1578
|
-
result.splice(0, 0, nodes.panel);
|
|
1579
|
-
}
|
|
1580
|
-
if (this.stateModel.getRuntimeValue(LayoutStateKeys.SIDEBAR_POSITON) === 0 ) {
|
|
1581
|
-
result.push(nodes.auxiliaryBar);
|
|
1582
|
-
result.splice(0, 0, nodes.sideBar);
|
|
1583
|
-
result.splice(0, 0, nodes.activityBar);
|
|
1584
|
-
}
|
|
1585
|
-
else {
|
|
1586
|
-
result.splice(0, 0, nodes.auxiliaryBar);
|
|
1587
|
-
result.push(nodes.sideBar);
|
|
1588
|
-
result.push(nodes.activityBar);
|
|
1589
|
-
}
|
|
1590
|
-
}
|
|
1591
|
-
else {
|
|
1592
|
-
const panelAlignment = this.stateModel.getRuntimeValue(LayoutStateKeys.PANEL_ALIGNMENT);
|
|
1593
|
-
const sideBarPosition = this.stateModel.getRuntimeValue(LayoutStateKeys.SIDEBAR_POSITON);
|
|
1594
|
-
const sideBarNextToEditor = !(panelAlignment === 'center' || (sideBarPosition === 0 && panelAlignment === 'right') || (sideBarPosition === 1 && panelAlignment === 'left'));
|
|
1595
|
-
const auxiliaryBarNextToEditor = !(panelAlignment === 'center' || (sideBarPosition === 1 && panelAlignment === 'right') || (sideBarPosition === 0 && panelAlignment === 'left'));
|
|
1596
|
-
const editorSectionWidth = availableWidth - activityBarSize - (sideBarNextToEditor ? 0 : sideBarSize) - (auxiliaryBarNextToEditor ? 0 : auxiliaryBarSize);
|
|
1597
|
-
result.push({
|
|
1598
|
-
type: 'branch',
|
|
1599
|
-
data: [this.arrangeEditorNodes({
|
|
1600
|
-
editor: nodes.editor,
|
|
1601
|
-
sideBar: sideBarNextToEditor ? nodes.sideBar : undefined,
|
|
1602
|
-
auxiliaryBar: auxiliaryBarNextToEditor ? nodes.auxiliaryBar : undefined
|
|
1603
|
-
}, availableHeight - panelSize, editorSectionWidth), nodes.panel],
|
|
1604
|
-
size: editorSectionWidth
|
|
1605
|
-
});
|
|
1606
|
-
if (!sideBarNextToEditor) {
|
|
1607
|
-
if (sideBarPosition === 0 ) {
|
|
1608
|
-
result.splice(0, 0, nodes.sideBar);
|
|
1609
|
-
}
|
|
1610
|
-
else {
|
|
1611
|
-
result.push(nodes.sideBar);
|
|
1612
|
-
}
|
|
1613
|
-
}
|
|
1614
|
-
if (!auxiliaryBarNextToEditor) {
|
|
1615
|
-
if (sideBarPosition === 1 ) {
|
|
1616
|
-
result.splice(0, 0, nodes.auxiliaryBar);
|
|
1617
|
-
}
|
|
1618
|
-
else {
|
|
1619
|
-
result.push(nodes.auxiliaryBar);
|
|
1620
|
-
}
|
|
1621
|
-
}
|
|
1622
|
-
if (sideBarPosition === 0 ) {
|
|
1623
|
-
result.splice(0, 0, nodes.activityBar);
|
|
1624
|
-
}
|
|
1625
|
-
else {
|
|
1626
|
-
result.push(nodes.activityBar);
|
|
1627
|
-
}
|
|
1628
|
-
}
|
|
1629
|
-
return result;
|
|
1630
|
-
}
|
|
1631
|
-
createGridDescriptor() {
|
|
1632
|
-
const { width, height } = this.stateModel.getInitializationValue(LayoutStateKeys.GRID_SIZE);
|
|
1633
|
-
const sideBarSize = this.stateModel.getInitializationValue(LayoutStateKeys.SIDEBAR_SIZE);
|
|
1634
|
-
const auxiliaryBarPartSize = this.stateModel.getInitializationValue(LayoutStateKeys.AUXILIARYBAR_SIZE);
|
|
1635
|
-
const panelSize = this.stateModel.getInitializationValue(LayoutStateKeys.PANEL_SIZE);
|
|
1636
|
-
const titleBarHeight = this.titleBarPartView.minimumHeight;
|
|
1637
|
-
const bannerHeight = this.bannerPartView.minimumHeight;
|
|
1638
|
-
const statusBarHeight = this.statusBarPartView.minimumHeight;
|
|
1639
|
-
const activityBarWidth = this.activityBarPartView.minimumWidth;
|
|
1640
|
-
const middleSectionHeight = height - titleBarHeight - statusBarHeight;
|
|
1641
|
-
const titleAndBanner = [
|
|
1642
|
-
{
|
|
1643
|
-
type: 'leaf',
|
|
1644
|
-
data: { type: "workbench.parts.titlebar" },
|
|
1645
|
-
size: titleBarHeight,
|
|
1646
|
-
visible: this.isVisible("workbench.parts.titlebar" , mainWindow)
|
|
1647
|
-
},
|
|
1648
|
-
{
|
|
1649
|
-
type: 'leaf',
|
|
1650
|
-
data: { type: "workbench.parts.banner" },
|
|
1651
|
-
size: bannerHeight,
|
|
1652
|
-
visible: false
|
|
1653
|
-
}
|
|
1654
|
-
];
|
|
1655
|
-
const activityBarNode = {
|
|
1656
|
-
type: 'leaf',
|
|
1657
|
-
data: { type: "workbench.parts.activitybar" },
|
|
1658
|
-
size: activityBarWidth,
|
|
1659
|
-
visible: !this.stateModel.getRuntimeValue(LayoutStateKeys.ACTIVITYBAR_HIDDEN)
|
|
1660
|
-
};
|
|
1661
|
-
const sideBarNode = {
|
|
1662
|
-
type: 'leaf',
|
|
1663
|
-
data: { type: "workbench.parts.sidebar" },
|
|
1664
|
-
size: sideBarSize,
|
|
1665
|
-
visible: !this.stateModel.getRuntimeValue(LayoutStateKeys.SIDEBAR_HIDDEN)
|
|
1666
|
-
};
|
|
1667
|
-
const auxiliaryBarNode = {
|
|
1668
|
-
type: 'leaf',
|
|
1669
|
-
data: { type: "workbench.parts.auxiliarybar" },
|
|
1670
|
-
size: auxiliaryBarPartSize,
|
|
1671
|
-
visible: this.isVisible("workbench.parts.auxiliarybar" )
|
|
1672
|
-
};
|
|
1673
|
-
const editorNode = {
|
|
1674
|
-
type: 'leaf',
|
|
1675
|
-
data: { type: "workbench.parts.editor" },
|
|
1676
|
-
size: 0,
|
|
1677
|
-
visible: !this.stateModel.getRuntimeValue(LayoutStateKeys.EDITOR_HIDDEN)
|
|
1678
|
-
};
|
|
1679
|
-
const panelNode = {
|
|
1680
|
-
type: 'leaf',
|
|
1681
|
-
data: { type: "workbench.parts.panel" },
|
|
1682
|
-
size: panelSize,
|
|
1683
|
-
visible: !this.stateModel.getRuntimeValue(LayoutStateKeys.PANEL_HIDDEN)
|
|
1684
|
-
};
|
|
1685
|
-
const middleSection = this.arrangeMiddleSectionNodes({
|
|
1686
|
-
activityBar: activityBarNode,
|
|
1687
|
-
auxiliaryBar: auxiliaryBarNode,
|
|
1688
|
-
editor: editorNode,
|
|
1689
|
-
panel: panelNode,
|
|
1690
|
-
sideBar: sideBarNode
|
|
1691
|
-
}, width, middleSectionHeight);
|
|
1692
|
-
const result = {
|
|
1693
|
-
root: {
|
|
1694
|
-
type: 'branch',
|
|
1695
|
-
size: width,
|
|
1696
|
-
data: [
|
|
1697
|
-
...(this.shouldShowBannerFirst() ? titleAndBanner.reverse() : titleAndBanner),
|
|
1698
|
-
{
|
|
1699
|
-
type: 'branch',
|
|
1700
|
-
data: middleSection,
|
|
1701
|
-
size: middleSectionHeight
|
|
1702
|
-
},
|
|
1703
|
-
{
|
|
1704
|
-
type: 'leaf',
|
|
1705
|
-
data: { type: "workbench.parts.statusbar" },
|
|
1706
|
-
size: statusBarHeight,
|
|
1707
|
-
visible: !this.stateModel.getRuntimeValue(LayoutStateKeys.STATUSBAR_HIDDEN)
|
|
1708
|
-
}
|
|
1709
|
-
]
|
|
1710
|
-
},
|
|
1711
|
-
orientation: 0 ,
|
|
1712
|
-
width,
|
|
1713
|
-
height
|
|
1714
|
-
};
|
|
1715
|
-
const layoutDescriptor = {
|
|
1716
|
-
activityBarVisible: !this.stateModel.getRuntimeValue(LayoutStateKeys.ACTIVITYBAR_HIDDEN),
|
|
1717
|
-
sideBarVisible: !this.stateModel.getRuntimeValue(LayoutStateKeys.SIDEBAR_HIDDEN),
|
|
1718
|
-
auxiliaryBarVisible: !this.stateModel.getRuntimeValue(LayoutStateKeys.AUXILIARYBAR_HIDDEN),
|
|
1719
|
-
panelVisible: !this.stateModel.getRuntimeValue(LayoutStateKeys.PANEL_HIDDEN),
|
|
1720
|
-
statusbarVisible: !this.stateModel.getRuntimeValue(LayoutStateKeys.STATUSBAR_HIDDEN),
|
|
1721
|
-
sideBarPosition: positionToString(this.stateModel.getRuntimeValue(LayoutStateKeys.SIDEBAR_POSITON)),
|
|
1722
|
-
panelPosition: positionToString(this.stateModel.getRuntimeValue(LayoutStateKeys.PANEL_POSITION)),
|
|
1723
|
-
};
|
|
1724
|
-
this.telemetryService.publicLog2('startupLayout', layoutDescriptor);
|
|
1725
|
-
return result;
|
|
1726
|
-
}
|
|
1727
|
-
dispose() {
|
|
1728
|
-
super.dispose();
|
|
1729
|
-
this.disposed = true;
|
|
1730
|
-
}
|
|
1731
|
-
}
|
|
1732
|
-
function getZenModeConfiguration(configurationService) {
|
|
1733
|
-
return configurationService.getValue(WorkbenchLayoutSettings.ZEN_MODE_CONFIG);
|
|
1734
|
-
}
|
|
1735
|
-
class WorkbenchLayoutStateKey {
|
|
1736
|
-
constructor(name, scope, target, defaultValue) {
|
|
1737
|
-
this.name = name;
|
|
1738
|
-
this.scope = scope;
|
|
1739
|
-
this.target = target;
|
|
1740
|
-
this.defaultValue = defaultValue;
|
|
1741
|
-
}
|
|
1742
|
-
}
|
|
1743
|
-
class RuntimeStateKey extends WorkbenchLayoutStateKey {
|
|
1744
|
-
constructor(name, scope, target, defaultValue, zenModeIgnore) {
|
|
1745
|
-
super(name, scope, target, defaultValue);
|
|
1746
|
-
this.zenModeIgnore = zenModeIgnore;
|
|
1747
|
-
this.runtime = true;
|
|
1748
|
-
}
|
|
1749
|
-
}
|
|
1750
|
-
class InitializationStateKey extends WorkbenchLayoutStateKey {
|
|
1751
|
-
constructor() {
|
|
1752
|
-
super(...arguments);
|
|
1753
|
-
this.runtime = false;
|
|
1754
|
-
}
|
|
1755
|
-
}
|
|
1756
|
-
const LayoutStateKeys = {
|
|
1757
|
-
MAIN_EDITOR_CENTERED: ( new RuntimeStateKey(
|
|
1758
|
-
'editor.centered',
|
|
1759
|
-
1 ,
|
|
1760
|
-
1 ,
|
|
1761
|
-
false
|
|
1762
|
-
)),
|
|
1763
|
-
ZEN_MODE_ACTIVE: ( new RuntimeStateKey(
|
|
1764
|
-
'zenMode.active',
|
|
1765
|
-
1 ,
|
|
1766
|
-
1 ,
|
|
1767
|
-
false
|
|
1768
|
-
)),
|
|
1769
|
-
ZEN_MODE_EXIT_INFO: ( new RuntimeStateKey(
|
|
1770
|
-
'zenMode.exitInfo',
|
|
1771
|
-
1 ,
|
|
1772
|
-
1 ,
|
|
1773
|
-
{
|
|
1774
|
-
transitionedToCenteredEditorLayout: false,
|
|
1775
|
-
transitionedToFullScreen: false,
|
|
1776
|
-
handleNotificationsDoNotDisturbMode: false,
|
|
1777
|
-
wasVisible: {
|
|
1778
|
-
auxiliaryBar: false,
|
|
1779
|
-
panel: false,
|
|
1780
|
-
sideBar: false,
|
|
1781
|
-
},
|
|
1782
|
-
}
|
|
1783
|
-
)),
|
|
1784
|
-
GRID_SIZE: ( new InitializationStateKey(
|
|
1785
|
-
'grid.size',
|
|
1786
|
-
0 ,
|
|
1787
|
-
1 ,
|
|
1788
|
-
{ width: 800, height: 600 }
|
|
1789
|
-
)),
|
|
1790
|
-
SIDEBAR_SIZE: ( new InitializationStateKey(
|
|
1791
|
-
'sideBar.size',
|
|
1792
|
-
0 ,
|
|
1793
|
-
1 ,
|
|
1794
|
-
200
|
|
1795
|
-
)),
|
|
1796
|
-
AUXILIARYBAR_SIZE: ( new InitializationStateKey(
|
|
1797
|
-
'auxiliaryBar.size',
|
|
1798
|
-
0 ,
|
|
1799
|
-
1 ,
|
|
1800
|
-
200
|
|
1801
|
-
)),
|
|
1802
|
-
PANEL_SIZE: ( new InitializationStateKey(
|
|
1803
|
-
'panel.size',
|
|
1804
|
-
0 ,
|
|
1805
|
-
1 ,
|
|
1806
|
-
300
|
|
1807
|
-
)),
|
|
1808
|
-
PANEL_LAST_NON_MAXIMIZED_HEIGHT: ( new RuntimeStateKey(
|
|
1809
|
-
'panel.lastNonMaximizedHeight',
|
|
1810
|
-
0 ,
|
|
1811
|
-
1 ,
|
|
1812
|
-
300
|
|
1813
|
-
)),
|
|
1814
|
-
PANEL_LAST_NON_MAXIMIZED_WIDTH: ( new RuntimeStateKey(
|
|
1815
|
-
'panel.lastNonMaximizedWidth',
|
|
1816
|
-
0 ,
|
|
1817
|
-
1 ,
|
|
1818
|
-
300
|
|
1819
|
-
)),
|
|
1820
|
-
PANEL_WAS_LAST_MAXIMIZED: ( new RuntimeStateKey(
|
|
1821
|
-
'panel.wasLastMaximized',
|
|
1822
|
-
1 ,
|
|
1823
|
-
1 ,
|
|
1824
|
-
false
|
|
1825
|
-
)),
|
|
1826
|
-
SIDEBAR_POSITON: ( new RuntimeStateKey(
|
|
1827
|
-
'sideBar.position',
|
|
1828
|
-
1 ,
|
|
1829
|
-
1 ,
|
|
1830
|
-
0
|
|
1831
|
-
)),
|
|
1832
|
-
PANEL_POSITION: ( new RuntimeStateKey(
|
|
1833
|
-
'panel.position',
|
|
1834
|
-
1 ,
|
|
1835
|
-
1 ,
|
|
1836
|
-
2
|
|
1837
|
-
)),
|
|
1838
|
-
PANEL_ALIGNMENT: ( new RuntimeStateKey(
|
|
1839
|
-
'panel.alignment',
|
|
1840
|
-
0 ,
|
|
1841
|
-
0 ,
|
|
1842
|
-
'center'
|
|
1843
|
-
)),
|
|
1844
|
-
ACTIVITYBAR_HIDDEN: ( new RuntimeStateKey(
|
|
1845
|
-
'activityBar.hidden',
|
|
1846
|
-
1 ,
|
|
1847
|
-
1 ,
|
|
1848
|
-
false,
|
|
1849
|
-
true
|
|
1850
|
-
)),
|
|
1851
|
-
SIDEBAR_HIDDEN: ( new RuntimeStateKey(
|
|
1852
|
-
'sideBar.hidden',
|
|
1853
|
-
1 ,
|
|
1854
|
-
1 ,
|
|
1855
|
-
false
|
|
1856
|
-
)),
|
|
1857
|
-
EDITOR_HIDDEN: ( new RuntimeStateKey(
|
|
1858
|
-
'editor.hidden',
|
|
1859
|
-
1 ,
|
|
1860
|
-
1 ,
|
|
1861
|
-
false
|
|
1862
|
-
)),
|
|
1863
|
-
PANEL_HIDDEN: ( new RuntimeStateKey(
|
|
1864
|
-
'panel.hidden',
|
|
1865
|
-
1 ,
|
|
1866
|
-
1 ,
|
|
1867
|
-
true
|
|
1868
|
-
)),
|
|
1869
|
-
AUXILIARYBAR_HIDDEN: ( new RuntimeStateKey(
|
|
1870
|
-
'auxiliaryBar.hidden',
|
|
1871
|
-
1 ,
|
|
1872
|
-
1 ,
|
|
1873
|
-
true
|
|
1874
|
-
)),
|
|
1875
|
-
STATUSBAR_HIDDEN: ( new RuntimeStateKey(
|
|
1876
|
-
'statusBar.hidden',
|
|
1877
|
-
1 ,
|
|
1878
|
-
1 ,
|
|
1879
|
-
false,
|
|
1880
|
-
true
|
|
1881
|
-
))
|
|
1882
|
-
};
|
|
1883
|
-
var WorkbenchLayoutSettings;
|
|
1884
|
-
( (function(WorkbenchLayoutSettings) {
|
|
1885
|
-
WorkbenchLayoutSettings["PANEL_POSITION"] = "workbench.panel.defaultLocation";
|
|
1886
|
-
WorkbenchLayoutSettings["PANEL_OPENS_MAXIMIZED"] = "workbench.panel.opensMaximized";
|
|
1887
|
-
WorkbenchLayoutSettings["ZEN_MODE_CONFIG"] = "zenMode";
|
|
1888
|
-
WorkbenchLayoutSettings["EDITOR_CENTERED_LAYOUT_AUTO_RESIZE"] = "workbench.editor.centeredLayoutAutoResize";
|
|
1889
|
-
})(WorkbenchLayoutSettings || (WorkbenchLayoutSettings = {})));
|
|
1890
|
-
var LegacyWorkbenchLayoutSettings;
|
|
1891
|
-
( (function(LegacyWorkbenchLayoutSettings) {
|
|
1892
|
-
LegacyWorkbenchLayoutSettings["STATUSBAR_VISIBLE"] = "workbench.statusBar.visible";
|
|
1893
|
-
LegacyWorkbenchLayoutSettings["SIDEBAR_POSITION"] = "workbench.sideBar.location";
|
|
1894
|
-
})(LegacyWorkbenchLayoutSettings || (LegacyWorkbenchLayoutSettings = {})));
|
|
1895
|
-
class LayoutStateModel extends Disposable {
|
|
1896
|
-
static { this.STORAGE_PREFIX = 'workbench.'; }
|
|
1897
|
-
constructor(storageService, configurationService, contextService, container) {
|
|
1898
|
-
super();
|
|
1899
|
-
this.storageService = storageService;
|
|
1900
|
-
this.configurationService = configurationService;
|
|
1901
|
-
this.contextService = contextService;
|
|
1902
|
-
this.container = container;
|
|
1903
|
-
this._onDidChangeState = this._register(( new Emitter()));
|
|
1904
|
-
this.onDidChangeState = this._onDidChangeState.event;
|
|
1905
|
-
this.stateCache = ( new Map());
|
|
1906
|
-
this._register(this.configurationService.onDidChangeConfiguration(configurationChange => this.updateStateFromLegacySettings(configurationChange)));
|
|
1907
|
-
}
|
|
1908
|
-
updateStateFromLegacySettings(configurationChangeEvent) {
|
|
1909
|
-
const isZenMode = this.getRuntimeValue(LayoutStateKeys.ZEN_MODE_ACTIVE);
|
|
1910
|
-
if (configurationChangeEvent.affectsConfiguration("workbench.activityBar.location" ) && !isZenMode) {
|
|
1911
|
-
this.setRuntimeValueAndFire(LayoutStateKeys.ACTIVITYBAR_HIDDEN, this.isActivityBarHidden());
|
|
1912
|
-
}
|
|
1913
|
-
if (configurationChangeEvent.affectsConfiguration(LegacyWorkbenchLayoutSettings.STATUSBAR_VISIBLE) && !isZenMode) {
|
|
1914
|
-
this.setRuntimeValueAndFire(LayoutStateKeys.STATUSBAR_HIDDEN, !this.configurationService.getValue(LegacyWorkbenchLayoutSettings.STATUSBAR_VISIBLE));
|
|
1915
|
-
}
|
|
1916
|
-
if (configurationChangeEvent.affectsConfiguration(LegacyWorkbenchLayoutSettings.SIDEBAR_POSITION)) {
|
|
1917
|
-
this.setRuntimeValueAndFire(LayoutStateKeys.SIDEBAR_POSITON, positionFromString(this.configurationService.getValue(LegacyWorkbenchLayoutSettings.SIDEBAR_POSITION) ?? 'left'));
|
|
1918
|
-
}
|
|
1919
|
-
}
|
|
1920
|
-
updateLegacySettingsFromState(key, value) {
|
|
1921
|
-
const isZenMode = this.getRuntimeValue(LayoutStateKeys.ZEN_MODE_ACTIVE);
|
|
1922
|
-
if (key.zenModeIgnore && isZenMode) {
|
|
1923
|
-
return;
|
|
1924
|
-
}
|
|
1925
|
-
if (key === LayoutStateKeys.ACTIVITYBAR_HIDDEN) {
|
|
1926
|
-
this.configurationService.updateValue("workbench.activityBar.location" , value ? "hidden" : undefined);
|
|
1927
|
-
}
|
|
1928
|
-
else if (key === LayoutStateKeys.STATUSBAR_HIDDEN) {
|
|
1929
|
-
this.configurationService.updateValue(LegacyWorkbenchLayoutSettings.STATUSBAR_VISIBLE, !value);
|
|
1930
|
-
}
|
|
1931
|
-
else if (key === LayoutStateKeys.SIDEBAR_POSITON) {
|
|
1932
|
-
this.configurationService.updateValue(LegacyWorkbenchLayoutSettings.SIDEBAR_POSITION, positionToString(value));
|
|
1933
|
-
}
|
|
1934
|
-
}
|
|
1935
|
-
load() {
|
|
1936
|
-
let key;
|
|
1937
|
-
for (key in LayoutStateKeys) {
|
|
1938
|
-
const stateKey = LayoutStateKeys[key];
|
|
1939
|
-
const value = this.loadKeyFromStorage(stateKey);
|
|
1940
|
-
if (value !== undefined) {
|
|
1941
|
-
this.stateCache.set(stateKey.name, value);
|
|
1942
|
-
}
|
|
1943
|
-
}
|
|
1944
|
-
this.stateCache.set(LayoutStateKeys.ACTIVITYBAR_HIDDEN.name, this.isActivityBarHidden());
|
|
1945
|
-
this.stateCache.set(LayoutStateKeys.STATUSBAR_HIDDEN.name, !this.configurationService.getValue(LegacyWorkbenchLayoutSettings.STATUSBAR_VISIBLE));
|
|
1946
|
-
this.stateCache.set(LayoutStateKeys.SIDEBAR_POSITON.name, positionFromString(this.configurationService.getValue(LegacyWorkbenchLayoutSettings.SIDEBAR_POSITION) ?? 'left'));
|
|
1947
|
-
const workbenchDimensions = getClientArea(this.container);
|
|
1948
|
-
LayoutStateKeys.PANEL_POSITION.defaultValue = positionFromString(this.configurationService.getValue(WorkbenchLayoutSettings.PANEL_POSITION) ?? 'bottom');
|
|
1949
|
-
LayoutStateKeys.GRID_SIZE.defaultValue = { height: workbenchDimensions.height, width: workbenchDimensions.width };
|
|
1950
|
-
LayoutStateKeys.SIDEBAR_SIZE.defaultValue = Math.min(300, workbenchDimensions.width / 4);
|
|
1951
|
-
LayoutStateKeys.AUXILIARYBAR_SIZE.defaultValue = Math.min(300, workbenchDimensions.width / 4);
|
|
1952
|
-
LayoutStateKeys.PANEL_SIZE.defaultValue = (this.stateCache.get(LayoutStateKeys.PANEL_POSITION.name) ?? LayoutStateKeys.PANEL_POSITION.defaultValue) === 2 ? workbenchDimensions.height / 3 : workbenchDimensions.width / 4;
|
|
1953
|
-
LayoutStateKeys.SIDEBAR_HIDDEN.defaultValue = this.contextService.getWorkbenchState() === 1 ;
|
|
1954
|
-
for (key in LayoutStateKeys) {
|
|
1955
|
-
const stateKey = LayoutStateKeys[key];
|
|
1956
|
-
if (this.stateCache.get(stateKey.name) === undefined) {
|
|
1957
|
-
this.stateCache.set(stateKey.name, stateKey.defaultValue);
|
|
1958
|
-
}
|
|
1959
|
-
}
|
|
1960
|
-
this._register(this.storageService.onDidChangeValue(0 , undefined, this._register(( new DisposableStore())))(storageChangeEvent => {
|
|
1961
|
-
let key;
|
|
1962
|
-
for (key in LayoutStateKeys) {
|
|
1963
|
-
const stateKey = LayoutStateKeys[key];
|
|
1964
|
-
if (stateKey instanceof RuntimeStateKey && stateKey.scope === 0 && stateKey.target === 0 ) {
|
|
1965
|
-
if (`${LayoutStateModel.STORAGE_PREFIX}${stateKey.name}` === storageChangeEvent.key) {
|
|
1966
|
-
const value = this.loadKeyFromStorage(stateKey) ?? stateKey.defaultValue;
|
|
1967
|
-
if (this.stateCache.get(stateKey.name) !== value) {
|
|
1968
|
-
this.stateCache.set(stateKey.name, value);
|
|
1969
|
-
this._onDidChangeState.fire({ key: stateKey, value });
|
|
1970
|
-
}
|
|
1971
|
-
}
|
|
1972
|
-
}
|
|
1973
|
-
}
|
|
1974
|
-
}));
|
|
1975
|
-
}
|
|
1976
|
-
save(workspace, global) {
|
|
1977
|
-
let key;
|
|
1978
|
-
const isZenMode = this.getRuntimeValue(LayoutStateKeys.ZEN_MODE_ACTIVE);
|
|
1979
|
-
for (key in LayoutStateKeys) {
|
|
1980
|
-
const stateKey = LayoutStateKeys[key];
|
|
1981
|
-
if (((workspace && stateKey.scope === 1) ) ||
|
|
1982
|
-
((global && stateKey.scope === 0) )) {
|
|
1983
|
-
if (isZenMode && stateKey instanceof RuntimeStateKey && stateKey.zenModeIgnore) {
|
|
1984
|
-
continue;
|
|
1985
|
-
}
|
|
1986
|
-
this.saveKeyToStorage(stateKey);
|
|
1987
|
-
}
|
|
1988
|
-
}
|
|
1989
|
-
}
|
|
1990
|
-
getInitializationValue(key) {
|
|
1991
|
-
return this.stateCache.get(key.name);
|
|
1992
|
-
}
|
|
1993
|
-
setInitializationValue(key, value) {
|
|
1994
|
-
this.stateCache.set(key.name, value);
|
|
1995
|
-
}
|
|
1996
|
-
getRuntimeValue(key, fallbackToSetting) {
|
|
1997
|
-
if (fallbackToSetting) {
|
|
1998
|
-
switch (key) {
|
|
1999
|
-
case LayoutStateKeys.ACTIVITYBAR_HIDDEN:
|
|
2000
|
-
this.stateCache.set(key.name, this.isActivityBarHidden());
|
|
2001
|
-
break;
|
|
2002
|
-
case LayoutStateKeys.STATUSBAR_HIDDEN:
|
|
2003
|
-
this.stateCache.set(key.name, !this.configurationService.getValue(LegacyWorkbenchLayoutSettings.STATUSBAR_VISIBLE));
|
|
2004
|
-
break;
|
|
2005
|
-
case LayoutStateKeys.SIDEBAR_POSITON:
|
|
2006
|
-
this.stateCache.set(key.name, this.configurationService.getValue(LegacyWorkbenchLayoutSettings.SIDEBAR_POSITION) ?? 'left');
|
|
2007
|
-
break;
|
|
2008
|
-
}
|
|
2009
|
-
}
|
|
2010
|
-
return this.stateCache.get(key.name);
|
|
2011
|
-
}
|
|
2012
|
-
setRuntimeValue(key, value) {
|
|
2013
|
-
this.stateCache.set(key.name, value);
|
|
2014
|
-
const isZenMode = this.getRuntimeValue(LayoutStateKeys.ZEN_MODE_ACTIVE);
|
|
2015
|
-
if (key.scope === 0 ) {
|
|
2016
|
-
if (!isZenMode || !key.zenModeIgnore) {
|
|
2017
|
-
this.saveKeyToStorage(key);
|
|
2018
|
-
this.updateLegacySettingsFromState(key, value);
|
|
2019
|
-
}
|
|
2020
|
-
}
|
|
2021
|
-
}
|
|
2022
|
-
isActivityBarHidden() {
|
|
2023
|
-
const oldValue = this.configurationService.getValue('workbench.activityBar.visible');
|
|
2024
|
-
if (oldValue !== undefined) {
|
|
2025
|
-
return !oldValue;
|
|
2026
|
-
}
|
|
2027
|
-
return this.configurationService.getValue("workbench.activityBar.location" ) !== "default" ;
|
|
2028
|
-
}
|
|
2029
|
-
setRuntimeValueAndFire(key, value) {
|
|
2030
|
-
const previousValue = this.stateCache.get(key.name);
|
|
2031
|
-
if (previousValue === value) {
|
|
2032
|
-
return;
|
|
2033
|
-
}
|
|
2034
|
-
this.setRuntimeValue(key, value);
|
|
2035
|
-
this._onDidChangeState.fire({ key, value });
|
|
2036
|
-
}
|
|
2037
|
-
saveKeyToStorage(key) {
|
|
2038
|
-
const value = this.stateCache.get(key.name);
|
|
2039
|
-
this.storageService.store(`${LayoutStateModel.STORAGE_PREFIX}${key.name}`, typeof value === 'object' ? JSON.stringify(value) : value, key.scope, key.target);
|
|
2040
|
-
}
|
|
2041
|
-
loadKeyFromStorage(key) {
|
|
2042
|
-
let value = this.storageService.get(`${LayoutStateModel.STORAGE_PREFIX}${key.name}`, key.scope);
|
|
2043
|
-
if (value !== undefined) {
|
|
2044
|
-
switch (typeof key.defaultValue) {
|
|
2045
|
-
case 'boolean':
|
|
2046
|
-
value = value === 'true';
|
|
2047
|
-
break;
|
|
2048
|
-
case 'number':
|
|
2049
|
-
value = parseInt(value);
|
|
2050
|
-
break;
|
|
2051
|
-
case 'object':
|
|
2052
|
-
value = JSON.parse(value);
|
|
2053
|
-
break;
|
|
2054
|
-
}
|
|
2055
|
-
}
|
|
2056
|
-
return value;
|
|
2057
|
-
}
|
|
2058
|
-
}
|
|
2059
|
-
export { Layout, TITLE_BAR_SETTINGS };
|