@codingame/monaco-vscode-api 1.79.1 → 1.79.2-next.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -2
- package/dist/api.js +10 -8
- package/dist/composite.d.ts +65 -0
- package/dist/configurationRegistry.d.ts +212 -0
- package/dist/contextkey.d.ts +1 -1
- package/dist/default-extensions/json.js +1 -0
- package/dist/default-extensions/theme-defaults.js +2 -2
- package/dist/editorBrowser.d.ts +272 -3
- package/dist/event.d.ts +6 -1
- package/dist/{extension-tools-0c4c1ad7.js → extension-tools-3c2bf0a4.js} +698 -507
- package/dist/extensions.d.ts +3 -2
- package/dist/extensions.d2.ts +6 -17
- package/dist/extensionsRegistry.d.ts +15 -9
- package/dist/files.d.ts +71 -7
- package/dist/jsonSchema.d.ts +1 -1
- package/dist/keybinding.d.ts +2 -2
- package/dist/languageFeatures.d.ts +703 -61
- package/dist/monaco.d.ts +5 -4
- package/dist/override/vs/workbench/contrib/notebook/browser/contrib/find/findMatchDecorationModel.js +2 -0
- package/dist/override/vs/workbench/contrib/notebook/browser/notebookEditor.js +2 -0
- package/dist/override/vs/workbench/contrib/notebook/browser/notebookEditorWidget.js +2 -0
- package/dist/override/vs/workbench/contrib/notebook/common/notebookEditorInput.js +2 -1
- package/dist/platform.d.ts +11 -0
- package/dist/rollup-extension-directory-plugin.js +1 -1
- package/dist/rollup-vsix-plugin.js +2 -2
- package/dist/service-override/configuration.d.ts +5 -206
- package/dist/service-override/dialogs.js +16 -1
- package/dist/service-override/files.d.ts +2 -2
- package/dist/service-override/files.js +1 -1
- package/dist/service-override/markers.d.ts +7 -0
- package/dist/service-override/markers.js +6 -0
- package/dist/service-override/output.d.ts +7 -0
- package/dist/service-override/output.js +22 -0
- package/dist/service-override/preferences.js +7 -1
- package/dist/service-override/quickaccess.js +0 -9
- package/dist/service-override/search.d.ts +7 -0
- package/dist/service-override/search.js +19 -0
- package/dist/service-override/terminal.d.ts +607 -0
- package/dist/service-override/terminal.js +98 -0
- package/dist/service-override/tools/editor.js +1 -1
- package/dist/service-override/views.d.ts +561 -335
- package/dist/service-override/views.js +51 -11
- package/dist/services.d.ts +2627 -108
- package/dist/services.js +3 -0
- package/dist/severity.d.ts +16 -0
- package/dist/uri.d.ts +22 -11
- package/dist/views.d.ts +270 -0
- package/dist/vscode/vs/base/common/processes.js +24 -0
- package/dist/vscode/vs/editor/browser/widget/diffEditorWidget2/decorations.js +20 -0
- package/dist/vscode/vs/editor/browser/widget/diffEditorWidget2/delegatingEditorImpl.js +106 -0
- package/dist/vscode/vs/editor/browser/widget/diffEditorWidget2/diffEditorSash.js +59 -0
- package/dist/vscode/vs/editor/browser/widget/diffEditorWidget2/diffEditorWidget2.contribution.js +41 -0
- package/dist/vscode/vs/editor/browser/widget/diffEditorWidget2/diffEditorWidget2.js +369 -0
- package/dist/vscode/vs/editor/browser/widget/diffEditorWidget2/diffModel.js +247 -0
- package/dist/vscode/vs/editor/browser/widget/diffEditorWidget2/lineAlignment.js +179 -0
- package/dist/vscode/vs/editor/browser/widget/diffEditorWidget2/overviewRulerPart.js +121 -0
- package/dist/vscode/vs/editor/browser/widget/diffEditorWidget2/style.css.js +4 -0
- package/dist/vscode/vs/editor/browser/widget/diffEditorWidget2/unchangedRanges.js +184 -0
- package/dist/vscode/vs/editor/browser/widget/diffEditorWidget2/utils.js +88 -0
- package/dist/vscode/vs/platform/extensionManagement/common/extensionManagement.js +38 -1
- package/dist/vscode/vs/platform/extensionManagement/common/extensionManagementUtil.js +5 -1
- package/dist/vscode/vs/platform/extensionResourceLoader/common/extensionResourceLoader.js +13 -5
- package/dist/vscode/vs/platform/files/common/fileService.js +43 -5
- package/dist/vscode/vs/platform/files/common/files.js +3 -1
- package/dist/vscode/vs/platform/languagePacks/common/languagePacks.js +4 -1
- package/dist/vscode/vs/platform/log/common/bufferLog.js +34 -0
- package/dist/vscode/vs/platform/log/common/fileLog.js +105 -0
- package/dist/vscode/vs/platform/quickinput/browser/quickPickPin.js +1 -1
- package/dist/vscode/vs/platform/remote/common/remoteAuthorityResolver.js +20 -1
- package/dist/vscode/vs/platform/request/browser/requestService.js +1 -1
- package/dist/vscode/vs/platform/request/common/request.js +3 -3
- package/dist/vscode/vs/platform/storage/common/storage.js +3 -0
- package/dist/vscode/vs/platform/terminal/common/capabilities/bufferMarkCapability.js +39 -0
- package/dist/vscode/vs/platform/terminal/common/capabilities/commandDetectionCapability.js +565 -0
- package/dist/vscode/vs/platform/terminal/common/capabilities/cwdDetectionCapability.js +27 -0
- package/dist/vscode/vs/platform/terminal/common/capabilities/naiveCwdDetectionCapability.js +22 -0
- package/dist/vscode/vs/platform/terminal/common/capabilities/partialCommandDetectionCapability.js +46 -0
- package/dist/vscode/vs/platform/terminal/common/capabilities/terminalCapabilityStore.js +80 -0
- package/dist/vscode/vs/platform/terminal/common/environmentVariable.js +7 -0
- package/dist/vscode/vs/platform/terminal/common/environmentVariableCollection.js +196 -0
- package/dist/vscode/vs/platform/terminal/common/environmentVariableShared.js +23 -0
- package/dist/vscode/vs/platform/terminal/common/terminal.js +21 -1
- package/dist/vscode/vs/platform/terminal/common/terminalDataBuffering.js +45 -0
- package/dist/vscode/vs/platform/terminal/common/terminalEnvironment.js +37 -0
- package/dist/vscode/vs/platform/terminal/common/terminalPlatformConfiguration.js +622 -0
- package/dist/vscode/vs/platform/terminal/common/terminalProfiles.js +107 -0
- package/dist/vscode/vs/platform/terminal/common/terminalRecorder.js +66 -0
- package/dist/vscode/vs/platform/terminal/common/terminalStrings.js +16 -0
- package/dist/vscode/vs/platform/terminal/common/xterm/shellIntegrationAddon.js +321 -0
- package/dist/vscode/vs/platform/userDataSync/common/settingsMerge.js +39 -1
- package/dist/vscode/vs/platform/userDataSync/common/userDataSync.js +19 -0
- package/dist/vscode/vs/platform/window/common/window.js +7 -1
- package/dist/vscode/vs/platform/workspace/common/canonicalUri.js +3 -0
- package/dist/vscode/vs/platform/workspace/common/virtualWorkspace.js +4 -1
- package/dist/vscode/vs/platform/workspaces/common/workspaces.js +2 -2
- package/dist/vscode/vs/workbench/api/browser/mainThreadCommands.js +2 -3
- package/dist/vscode/vs/workbench/api/browser/mainThreadEditorTabs.js +473 -0
- package/dist/vscode/vs/workbench/api/browser/mainThreadLanguageFeatures.js +45 -38
- package/dist/vscode/vs/workbench/api/browser/mainThreadSearch.js +146 -0
- package/dist/vscode/vs/workbench/api/browser/mainThreadStatusBar.js +33 -52
- package/dist/vscode/vs/workbench/api/browser/mainThreadTerminalService.js +395 -0
- package/dist/vscode/vs/workbench/api/browser/mainThreadTheming.js +22 -0
- package/dist/vscode/vs/workbench/api/browser/mainThreadTreeViews.js +10 -5
- package/dist/vscode/vs/workbench/api/browser/mainThreadWindow.js +11 -4
- package/dist/vscode/vs/workbench/api/browser/mainThreadWorkspace.js +34 -11
- package/dist/vscode/vs/workbench/api/browser/statusBarExtensionPoint.js +81 -0
- package/dist/vscode/vs/workbench/api/common/extHost.protocol.js +7 -2
- package/dist/vscode/vs/workbench/api/common/extHostDebugService.js +4 -13
- package/dist/vscode/vs/workbench/api/common/extHostExtensionService.js +30 -15
- package/dist/vscode/vs/workbench/api/common/extHostFileSystemConsumer.js +20 -6
- package/dist/vscode/vs/workbench/api/common/extHostLanguageFeatures.js +41 -8
- package/dist/vscode/vs/workbench/api/common/extHostManagedSockets.js +3 -0
- package/dist/vscode/vs/workbench/api/common/extHostSearch.js +109 -0
- package/dist/vscode/vs/workbench/api/common/extHostStatusBar.js +33 -6
- package/dist/vscode/vs/workbench/api/common/extHostTerminalService.js +879 -1
- package/dist/vscode/vs/workbench/api/common/extHostTheming.js +38 -0
- package/dist/vscode/vs/workbench/api/common/extHostTreeViews.js +8 -5
- package/dist/vscode/vs/workbench/api/common/extHostTypeConverters.js +15 -17
- package/dist/vscode/vs/workbench/api/common/extHostTypes.js +117 -4
- package/dist/vscode/vs/workbench/api/common/extHostWindow.js +28 -6
- package/dist/vscode/vs/workbench/api/common/extHostWorkspace.js +28 -0
- package/dist/vscode/vs/workbench/api/common/shared/dataTransferCache.js +11 -14
- package/dist/vscode/vs/workbench/api/node/extHostTerminalService.js +22 -0
- package/dist/vscode/vs/workbench/browser/actions/layoutActions.js +2 -1
- package/dist/vscode/vs/workbench/browser/actions/windowActions.js +2 -2
- package/dist/vscode/vs/workbench/browser/dnd.js +56 -2
- package/dist/vscode/vs/workbench/browser/parts/compositePart.js +1 -1
- package/dist/vscode/vs/workbench/browser/parts/dialogs/dialogHandler.js +2 -2
- package/dist/vscode/vs/workbench/browser/parts/editor/editor.contribution.js +1 -0
- package/dist/vscode/vs/workbench/browser/parts/editor/editor.js +1 -0
- package/dist/vscode/vs/workbench/browser/parts/editor/editorCommands.js +9 -10
- package/dist/vscode/vs/workbench/browser/parts/editor/editorGroupView.js +15 -9
- package/dist/vscode/vs/workbench/browser/parts/editor/editorGroupWatermark.js +13 -17
- package/dist/vscode/vs/workbench/browser/parts/editor/editorStatus.js +1 -1
- package/dist/vscode/vs/workbench/browser/parts/editor/editorsObserver.js +2 -2
- package/dist/vscode/vs/workbench/browser/parts/editor/media/editorgroupview.css.js +1 -1
- package/dist/vscode/vs/workbench/browser/parts/editor/media/tabstitlecontrol.css.js +1 -1
- package/dist/vscode/vs/workbench/browser/parts/editor/noTabsTitleControl.js +3 -1
- package/dist/vscode/vs/workbench/browser/parts/editor/tabsTitleControl.js +60 -11
- package/dist/vscode/vs/workbench/browser/parts/editor/textDiffEditor.js +16 -10
- package/dist/vscode/vs/workbench/browser/parts/editor/textResourceEditor.js +1 -1
- package/dist/vscode/vs/workbench/browser/parts/statusbar/media/statusbarpart.css.js +1 -1
- package/dist/vscode/vs/workbench/browser/parts/views/checkbox.js +10 -0
- package/dist/vscode/vs/workbench/browser/parts/views/treeView.js +78 -14
- package/dist/vscode/vs/workbench/browser/parts/views/viewPaneContainer.js +1 -1
- package/dist/vscode/vs/workbench/browser/workbench.contribution.js +65 -6
- package/dist/vscode/vs/workbench/common/configuration.js +8 -1
- package/dist/vscode/vs/workbench/common/contextkeys.js +9 -1
- package/dist/vscode/vs/workbench/common/editor/editorGroupModel.js +5 -1
- package/dist/vscode/vs/workbench/common/editor/resourceEditorInput.js +6 -3
- package/dist/vscode/vs/workbench/common/editor/textResourceEditorInput.js +9 -6
- package/dist/vscode/vs/workbench/common/editor.js +1 -5
- package/dist/vscode/vs/workbench/common/resources.js +111 -34
- package/dist/vscode/vs/workbench/contrib/bulkEdit/browser/bulkEditService.js +1 -1
- package/dist/vscode/vs/workbench/contrib/bulkEdit/browser/bulkTextEdits.js +1 -1
- package/dist/vscode/vs/workbench/contrib/chat/browser/chat.js +3 -0
- package/dist/vscode/vs/workbench/contrib/chat/common/chatService.js +3 -0
- package/dist/vscode/vs/workbench/contrib/codeEditor/browser/languageConfigurationExtensionPoint.js +6 -4
- package/dist/vscode/vs/workbench/contrib/codeEditor/browser/suggestEnabledInput/suggestEnabledInput.css.js +4 -0
- package/dist/vscode/vs/workbench/contrib/codeEditor/browser/suggestEnabledInput/suggestEnabledInput.js +250 -0
- package/dist/vscode/vs/workbench/contrib/customEditor/browser/customEditorInput.js +290 -0
- package/dist/vscode/vs/workbench/contrib/customEditor/common/customEditor.js +3 -0
- package/dist/vscode/vs/workbench/contrib/debug/browser/debugActionViewItems.js +1 -0
- package/dist/vscode/vs/workbench/contrib/debug/browser/debugCommands.js +2 -1
- package/dist/vscode/vs/workbench/contrib/debug/browser/debugConfigurationManager.js +20 -20
- package/dist/vscode/vs/workbench/contrib/debug/browser/debugEditorActions.js +5 -3
- package/dist/vscode/vs/workbench/contrib/debug/browser/debugEditorContribution.js +5 -2
- package/dist/vscode/vs/workbench/contrib/debug/browser/debugHover.js +33 -6
- package/dist/vscode/vs/workbench/contrib/debug/browser/debugSession.js +1 -1
- package/dist/vscode/vs/workbench/contrib/debug/browser/debugTaskRunner.js +1 -1
- package/dist/vscode/vs/workbench/contrib/debug/browser/repl.js +3 -3
- package/dist/vscode/vs/workbench/contrib/debug/common/debugModel.js +29 -17
- package/dist/vscode/vs/workbench/contrib/debug/common/debugStorage.js +11 -10
- package/dist/vscode/vs/workbench/contrib/debug/common/debugger.js +10 -6
- package/dist/vscode/vs/workbench/contrib/extensions/browser/extensionsActions.js +2514 -0
- package/dist/vscode/vs/workbench/contrib/extensions/browser/extensionsIcons.js +82 -0
- package/dist/vscode/vs/workbench/contrib/extensions/browser/media/extensionActions.css.js +4 -0
- package/dist/vscode/vs/workbench/contrib/extensions/common/extensions.js +6 -1
- package/dist/vscode/vs/workbench/contrib/extensions/common/extensionsFileTemplate.js +16 -0
- package/dist/vscode/vs/workbench/contrib/files/browser/editors/fileEditorInput.js +2 -3
- package/dist/vscode/vs/workbench/contrib/files/browser/editors/textFileSaveErrorHandler.js +2 -0
- package/dist/vscode/vs/workbench/contrib/files/browser/explorerService.js +10 -6
- package/dist/vscode/vs/workbench/contrib/files/browser/explorerViewlet.js +3 -18
- package/dist/vscode/vs/workbench/contrib/files/browser/fileActions.contribution.js +37 -2
- package/dist/vscode/vs/workbench/contrib/files/browser/fileActions.js +65 -3
- package/dist/vscode/vs/workbench/contrib/files/browser/fileCommands.js +3 -3
- package/dist/vscode/vs/workbench/contrib/files/browser/fileConstants.js +3 -1
- package/dist/vscode/vs/workbench/contrib/files/browser/files.contribution.js +41 -6
- package/dist/vscode/vs/workbench/contrib/files/browser/files.js +1 -0
- package/dist/vscode/vs/workbench/contrib/files/browser/views/explorerView.js +3 -3
- package/dist/vscode/vs/workbench/contrib/files/browser/views/explorerViewer.js +6 -2
- package/dist/vscode/vs/workbench/contrib/files/common/explorerModel.js +16 -9
- package/dist/vscode/vs/workbench/contrib/files/common/files.js +1 -6
- package/dist/vscode/vs/workbench/contrib/interactive/browser/interactiveDocumentService.js +3 -0
- package/dist/vscode/vs/workbench/contrib/interactive/browser/interactiveEditorInput.js +200 -0
- package/dist/vscode/vs/workbench/contrib/interactive/browser/interactiveHistoryService.js +3 -0
- package/dist/vscode/vs/workbench/contrib/markers/browser/markers.contribution.js +586 -0
- package/dist/vscode/vs/workbench/contrib/markers/browser/markersFilterOptions.js +75 -0
- package/dist/vscode/vs/workbench/contrib/markers/browser/markersModel.js +201 -0
- package/dist/vscode/vs/workbench/contrib/markers/browser/markersTable.js +451 -0
- package/dist/vscode/vs/workbench/contrib/markers/browser/markersTreeViewer.js +670 -0
- package/dist/vscode/vs/workbench/contrib/markers/browser/markersView.js +857 -0
- package/dist/vscode/vs/workbench/contrib/markers/browser/markersViewActions.css.js +4 -0
- package/dist/vscode/vs/workbench/contrib/markers/browser/markersViewActions.js +132 -0
- package/dist/vscode/vs/workbench/contrib/markers/browser/media/markers.css.js +4 -0
- package/dist/vscode/vs/workbench/contrib/markers/browser/messages.js +171 -0
- package/dist/vscode/vs/workbench/contrib/markers/common/markers.js +15 -1
- package/dist/vscode/vs/workbench/contrib/mergeEditor/browser/mergeEditorInput.js +135 -0
- package/dist/vscode/vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel.js +421 -0
- package/dist/vscode/vs/workbench/contrib/mergeEditor/browser/mergeMarkers/mergeMarkersController.js +5 -0
- package/dist/vscode/vs/workbench/contrib/mergeEditor/browser/model/diffComputer.js +55 -0
- package/dist/vscode/vs/workbench/contrib/mergeEditor/browser/model/editing.js +54 -0
- package/dist/vscode/vs/workbench/contrib/mergeEditor/browser/model/lineRange.js +108 -0
- package/dist/vscode/vs/workbench/contrib/mergeEditor/browser/model/mapping.js +334 -0
- package/dist/vscode/vs/workbench/contrib/mergeEditor/browser/model/mergeEditorModel.js +606 -0
- package/dist/vscode/vs/workbench/contrib/mergeEditor/browser/model/modifiedBaseRange.js +307 -0
- package/dist/vscode/vs/workbench/contrib/mergeEditor/browser/model/rangeUtils.js +36 -0
- package/dist/vscode/vs/workbench/contrib/mergeEditor/browser/model/textModelDiffs.js +165 -0
- package/dist/vscode/vs/workbench/contrib/mergeEditor/browser/telemetry.js +78 -0
- package/dist/vscode/vs/workbench/contrib/mergeEditor/browser/utils.js +68 -0
- package/dist/vscode/vs/workbench/contrib/mergeEditor/common/mergeEditor.js +2 -0
- package/dist/vscode/vs/workbench/contrib/notebook/browser/contrib/find/findFilters.js +70 -0
- package/dist/vscode/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindReplaceWidget.css.js +4 -0
- package/dist/vscode/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindReplaceWidget.js +158 -0
- package/dist/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser.js +6 -1
- package/dist/vscode/vs/workbench/contrib/notebook/browser/services/notebookEditorService.js +3 -0
- package/dist/vscode/vs/workbench/contrib/notebook/common/notebookCommon.js +16 -1
- package/dist/vscode/vs/workbench/contrib/notebook/common/notebookService.js +3 -0
- package/dist/vscode/vs/workbench/contrib/output/browser/logViewer.js +64 -0
- package/dist/vscode/vs/workbench/contrib/output/browser/output.contribution.js +378 -0
- package/dist/vscode/vs/workbench/contrib/output/browser/outputServices.js +39 -3
- package/dist/vscode/vs/workbench/contrib/output/browser/outputView.js +220 -0
- package/dist/vscode/vs/workbench/contrib/output/common/outputChannelModel.js +12 -3
- package/dist/vscode/vs/workbench/contrib/output/common/outputLinkComputer.js +129 -0
- package/dist/vscode/vs/workbench/contrib/preferences/browser/keybindingWidgets.js +270 -0
- package/dist/vscode/vs/workbench/contrib/preferences/browser/keybindingsEditor.js +1080 -0
- package/dist/vscode/vs/workbench/contrib/preferences/browser/media/keybindings.css.js +4 -0
- package/dist/vscode/vs/workbench/contrib/preferences/browser/media/keybindingsEditor.css.js +4 -0
- package/dist/vscode/vs/workbench/contrib/preferences/browser/media/preferences.css.js +4 -0
- package/dist/vscode/vs/workbench/contrib/preferences/browser/media/settingsEditor2.css.js +4 -0
- package/dist/vscode/vs/workbench/contrib/preferences/browser/media/settingsWidgets.css.js +4 -0
- package/dist/vscode/vs/workbench/contrib/preferences/browser/preferences.contribution.js +1154 -0
- package/dist/vscode/vs/workbench/contrib/preferences/browser/preferencesActions.js +94 -0
- package/dist/vscode/vs/workbench/contrib/preferences/browser/preferencesEditor.js +47 -0
- package/dist/vscode/vs/workbench/contrib/preferences/browser/preferencesIcons.js +37 -0
- package/dist/vscode/vs/workbench/contrib/preferences/browser/preferencesRenderers.js +731 -0
- package/dist/vscode/vs/workbench/contrib/preferences/browser/preferencesSearch.js +271 -0
- package/dist/vscode/vs/workbench/contrib/preferences/browser/preferencesWidgets.js +479 -0
- package/dist/vscode/vs/workbench/contrib/preferences/browser/settingsEditor2.js +1465 -0
- package/dist/vscode/vs/workbench/contrib/preferences/browser/settingsEditorSettingIndicators.js +506 -0
- package/dist/vscode/vs/workbench/contrib/preferences/browser/settingsLayout.js +296 -0
- package/dist/vscode/vs/workbench/contrib/preferences/browser/settingsSearchMenu.js +79 -0
- package/dist/vscode/vs/workbench/contrib/preferences/browser/settingsTree.js +1984 -0
- package/dist/vscode/vs/workbench/contrib/preferences/browser/settingsTreeModels.js +759 -0
- package/dist/vscode/vs/workbench/contrib/preferences/browser/settingsWidgets.js +1008 -0
- package/dist/vscode/vs/workbench/contrib/preferences/browser/tocTree.js +196 -0
- package/dist/vscode/vs/workbench/contrib/preferences/common/preferences.js +68 -0
- package/dist/vscode/vs/workbench/contrib/preferences/common/preferencesContribution.js +157 -0
- package/dist/vscode/vs/workbench/contrib/preferences/common/settingsEditorColorRegistry.js +67 -0
- package/dist/vscode/vs/workbench/contrib/quickaccess/browser/commandsQuickAccess.js +16 -16
- package/dist/vscode/vs/workbench/contrib/quickaccess/browser/quickAccess.contribution.js +1 -2
- package/dist/vscode/vs/workbench/contrib/remote/browser/remoteExplorer.js +23 -2
- package/dist/vscode/vs/workbench/contrib/remote/browser/tunnelView.js +5 -5
- package/dist/vscode/vs/workbench/contrib/search/browser/media/searchview.css.js +4 -0
- package/dist/vscode/vs/workbench/contrib/search/browser/patternInputWidget.js +217 -0
- package/dist/vscode/vs/workbench/contrib/search/browser/replace.js +3 -0
- package/dist/vscode/vs/workbench/contrib/search/browser/replaceContributions.js +7 -0
- package/dist/vscode/vs/workbench/contrib/search/browser/replaceService.js +222 -0
- package/dist/vscode/vs/workbench/contrib/search/browser/search.contribution.js +54 -15
- package/dist/vscode/vs/workbench/contrib/search/browser/searchActionsBase.js +17 -0
- package/dist/vscode/vs/workbench/contrib/search/browser/searchFindInput.js +41 -0
- package/dist/vscode/vs/workbench/contrib/search/browser/searchIcons.js +35 -0
- package/dist/vscode/vs/workbench/contrib/search/browser/searchMessage.js +58 -0
- package/dist/vscode/vs/workbench/contrib/search/browser/searchModel.js +1842 -0
- package/dist/vscode/vs/workbench/contrib/search/browser/searchNotebookHelpers.js +49 -0
- package/dist/vscode/vs/workbench/contrib/search/browser/searchResultsView.js +379 -0
- package/dist/vscode/vs/workbench/contrib/search/browser/searchView.js +1867 -0
- package/dist/vscode/vs/workbench/contrib/search/browser/searchWidget.js +628 -0
- package/dist/vscode/vs/workbench/contrib/search/common/constants.js +30 -1
- package/dist/vscode/vs/workbench/contrib/search/common/search.js +9 -1
- package/dist/vscode/vs/workbench/contrib/search/common/searchHistoryService.js +42 -0
- package/dist/vscode/vs/workbench/contrib/searchEditor/browser/constants.js +11 -0
- package/dist/vscode/vs/workbench/contrib/searchEditor/browser/media/searchEditor.css.js +4 -0
- package/dist/vscode/vs/workbench/contrib/searchEditor/browser/searchEditor.contribution.js +477 -0
- package/dist/vscode/vs/workbench/contrib/searchEditor/browser/searchEditor.js +697 -0
- package/dist/vscode/vs/workbench/contrib/searchEditor/browser/searchEditorActions.js +188 -0
- package/dist/vscode/vs/workbench/contrib/searchEditor/browser/searchEditorInput.js +295 -0
- package/dist/vscode/vs/workbench/contrib/searchEditor/browser/searchEditorModel.js +135 -0
- package/dist/vscode/vs/workbench/contrib/searchEditor/browser/searchEditorSerialization.js +268 -0
- package/dist/vscode/vs/workbench/contrib/snippets/browser/tabCompletion.js +2 -2
- package/dist/vscode/vs/workbench/contrib/tasks/common/taskService.js +16 -1
- package/dist/vscode/vs/workbench/contrib/terminal/browser/environmentVariableInfo.js +119 -0
- package/dist/vscode/vs/workbench/contrib/terminal/browser/media/scrollbar.css.js +4 -0
- package/dist/vscode/vs/workbench/contrib/terminal/browser/media/terminal.css.js +4 -0
- package/dist/vscode/vs/workbench/contrib/terminal/browser/media/widgets.css.js +4 -0
- package/dist/vscode/vs/workbench/contrib/terminal/browser/media/xterm.css.js +4 -0
- package/dist/vscode/vs/workbench/contrib/terminal/browser/terminal.contribution.js +238 -0
- package/dist/vscode/vs/workbench/contrib/terminal/browser/terminal.js +4 -1
- package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalActions.js +1930 -0
- package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalCommands.js +22 -0
- package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalConfigHelper.js +213 -0
- package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalContextMenu.js +17 -0
- package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalEditor.js +186 -0
- package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalEditorInput.js +199 -0
- package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalEditorService.js +239 -0
- package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalExtensions.js +22 -0
- package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalGroup.js +482 -0
- package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalGroupService.js +372 -0
- package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalIcon.js +60 -1
- package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalIcons.js +37 -0
- package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalInstance.js +2123 -0
- package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalInstanceService.js +79 -0
- package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalMainContribution.js +82 -0
- package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalMenus.js +850 -0
- package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalProcessExtHostProxy.js +142 -0
- package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalProcessManager.js +618 -0
- package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalProfileQuickpick.js +278 -0
- package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalProfileResolverService.js +417 -0
- package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalProfileService.js +213 -0
- package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalQuickAccess.js +144 -0
- package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalRunRecentQuickPick.js +267 -0
- package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalService.js +1063 -0
- package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalStatusList.js +108 -0
- package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalTabbedView.js +417 -0
- package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalTabsList.js +680 -0
- package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalTooltip.js +72 -0
- package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalUri.js +39 -0
- package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalView.js +535 -0
- package/dist/vscode/vs/workbench/contrib/terminal/browser/widgets/widgetManager.js +36 -0
- package/dist/vscode/vs/workbench/contrib/terminal/browser/xterm/decorationAddon.js +469 -0
- package/dist/vscode/vs/workbench/contrib/terminal/browser/xterm/decorationStyles.js +97 -0
- package/dist/vscode/vs/workbench/contrib/terminal/browser/xterm/lineDataEventAddon.js +56 -0
- package/dist/vscode/vs/workbench/contrib/terminal/browser/xterm/markNavigationAddon.js +416 -0
- package/dist/vscode/vs/workbench/contrib/terminal/browser/xterm/suggestAddon.js +390 -0
- package/dist/vscode/vs/workbench/contrib/terminal/browser/xterm/xtermTerminal.js +587 -0
- package/dist/vscode/vs/workbench/contrib/terminal/common/environmentVariable.js +3 -0
- package/dist/vscode/vs/workbench/contrib/terminal/common/environmentVariableService.js +94 -0
- package/dist/vscode/vs/workbench/contrib/terminal/common/history.js +356 -0
- package/dist/vscode/vs/workbench/contrib/terminal/common/terminal.js +266 -0
- package/dist/vscode/vs/workbench/contrib/terminal/common/terminalColorRegistry.js +23 -16
- package/dist/vscode/vs/workbench/contrib/terminal/common/terminalConfiguration.js +965 -0
- package/dist/vscode/vs/workbench/contrib/terminal/common/terminalContextKey.js +157 -0
- package/dist/vscode/vs/workbench/contrib/terminal/common/terminalEnvironment.js +272 -0
- package/dist/vscode/vs/workbench/contrib/terminal/common/terminalExtensionPoints.js +27 -0
- package/dist/vscode/vs/workbench/contrib/terminal/common/terminalStrings.js +86 -0
- package/dist/vscode/vs/workbench/contrib/terminal/electron-sandbox/terminalProfileResolverService.js +46 -0
- package/dist/vscode/vs/workbench/contrib/terminalContrib/links/browser/links.js +3 -0
- package/dist/vscode/vs/workbench/contrib/terminalContrib/links/browser/terminalLinkProviderService.js +26 -0
- package/dist/vscode/vs/workbench/contrib/terminalContrib/quickFix/browser/quickFix.js +3 -0
- package/dist/vscode/vs/workbench/contrib/terminalContrib/quickFix/browser/terminalQuickFixService.js +143 -0
- package/dist/vscode/vs/workbench/contrib/webviewPanel/browser/webviewEditorInput.js +85 -0
- package/dist/vscode/vs/workbench/contrib/webviewPanel/browser/webviewWorkbenchService.js +52 -0
- package/dist/vscode/vs/workbench/services/actions/common/menusExtensionPoint.js +14 -6
- package/dist/vscode/vs/workbench/services/assignment/common/assignmentService.js +3 -0
- package/dist/vscode/vs/workbench/services/configuration/browser/configurationService.js +13 -13
- package/dist/vscode/vs/workbench/services/configuration/common/configuration.js +2 -1
- package/dist/vscode/vs/workbench/services/configuration/common/configurationEditing.js +2 -2
- package/dist/vscode/vs/workbench/services/configuration/common/jsonEditingService.js +2 -2
- package/dist/vscode/vs/workbench/services/dialogs/browser/abstractFileDialogService.js +302 -0
- package/dist/vscode/vs/workbench/services/dialogs/browser/simpleFileDialog.js +971 -0
- package/dist/vscode/vs/workbench/services/extensionManagement/common/extensionManagement.js +3 -2
- package/dist/vscode/vs/workbench/services/extensionRecommendations/common/extensionRecommendations.js +4 -0
- package/dist/vscode/vs/workbench/services/extensionRecommendations/common/workspaceExtensionsConfig.js +2 -0
- package/dist/vscode/vs/workbench/services/extensions/common/extensionManifestPropertiesService.js +3 -0
- package/dist/vscode/vs/workbench/services/extensions/common/extensions.js +14 -2
- package/dist/vscode/vs/workbench/services/extensions/common/extensionsApiProposals.js +10 -1
- package/dist/vscode/vs/workbench/services/filesConfiguration/common/filesConfigurationService.js +70 -3
- package/dist/vscode/vs/workbench/services/hover/browser/hoverService.js +1 -1
- package/dist/vscode/vs/workbench/services/hover/browser/hoverWidget.js +2 -1
- package/dist/vscode/vs/workbench/services/hover/browser/media/hover.css.js +1 -1
- package/dist/vscode/vs/workbench/services/keybinding/common/keybindingEditing.js +275 -0
- package/dist/vscode/vs/workbench/services/localization/common/locale.js +3 -0
- package/dist/vscode/vs/workbench/services/log/common/logConstants.js +2 -0
- package/dist/vscode/vs/workbench/services/output/common/output.js +4 -1
- package/dist/vscode/vs/workbench/services/preferences/common/preferences.js +22 -1
- package/dist/vscode/vs/workbench/services/preferences/common/preferencesModels.js +6 -0
- package/dist/vscode/vs/workbench/services/preferences/common/preferencesValidation.js +37 -1
- package/dist/vscode/vs/workbench/services/remote/common/remoteAgentService.js +69 -0
- package/dist/vscode/vs/workbench/services/remote/common/remoteExplorerService.js +66 -27
- package/dist/vscode/vs/workbench/services/search/common/fileSearchManager.js +265 -0
- package/dist/vscode/vs/workbench/services/search/common/queryBuilder.js +6 -0
- package/dist/vscode/vs/workbench/services/search/common/replace.js +203 -0
- package/dist/vscode/vs/workbench/services/search/common/search.js +227 -1
- package/dist/vscode/vs/workbench/services/search/common/searchExtTypes.js +6 -0
- package/dist/vscode/vs/workbench/services/search/common/searchHelpers.js +72 -0
- package/dist/vscode/vs/workbench/services/search/common/searchService.js +355 -0
- package/dist/vscode/vs/workbench/services/search/common/textSearchManager.js +309 -0
- package/dist/vscode/vs/workbench/services/suggest/browser/media/suggest.css.js +4 -0
- package/dist/vscode/vs/workbench/services/suggest/browser/simpleCompletionItem.js +10 -0
- package/dist/vscode/vs/workbench/services/suggest/browser/simpleCompletionModel.js +98 -0
- package/dist/vscode/vs/workbench/services/suggest/browser/simpleSuggestWidget.js +399 -0
- package/dist/vscode/vs/workbench/services/suggest/browser/simpleSuggestWidgetRenderer.js +83 -0
- package/dist/vscode/vs/workbench/services/terminal/common/embedderTerminalService.js +3 -0
- package/dist/vscode/vs/workbench/services/textfile/browser/textFileService.js +1 -1
- package/dist/vscode/vs/workbench/services/textfile/common/textFileEditorModel.js +10 -3
- package/dist/vscode/vs/workbench/services/themes/browser/fileIconThemeData.js +3 -3
- package/dist/vscode/vs/workbench/services/themes/browser/productIconThemeData.js +3 -3
- package/dist/vscode/vs/workbench/services/themes/common/colorThemeData.js +3 -3
- package/dist/vscode/vs/workbench/services/untitled/common/untitledTextEditorInput.js +6 -4
- package/dist/vscode/vs/workbench/services/untitled/common/untitledTextEditorModel.js +3 -0
- package/dist/vscode/vs/workbench/services/untitled/common/untitledTextEditorService.js +4 -0
- package/dist/vscode/vs/workbench/services/userActivity/common/userActivityRegistry.js +15 -0
- package/dist/vscode/vs/workbench/services/userActivity/common/userActivityService.js +37 -0
- package/dist/vscode/vs/workbench/services/userDataSync/common/userDataSync.js +7 -0
- package/dist/vscode/vs/workbench/services/workingCopy/common/workingCopyEditorService.js +40 -0
- package/dist/vscode/vs/workbench/services/workingCopy/common/workingCopyService.js +12 -0
- package/dist/vscode/vs/workbench/services/workspaces/common/canonicalUriService.js +19 -0
- package/dist/vscode-default-extensions/css/syntaxes/css.tmLanguage.json.extensionResource.js +1 -1
- package/dist/vscode-default-extensions/json/package.json.js +1 -1
- package/dist/vscode-default-extensions/json/syntaxes/JSONC.tmLanguage.json.extensionResource.js +1 -1
- package/dist/vscode-default-extensions/json/syntaxes/JSONL.tmLanguage.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/latex/syntaxes/Bibtex.tmLanguage.json.extensionResource.js +1 -1
- package/dist/vscode-default-extensions/latex/syntaxes/LaTeX.tmLanguage.json.extensionResource.js +1 -1
- package/dist/vscode-default-extensions/latex/syntaxes/TeX.tmLanguage.json.extensionResource.js +1 -1
- package/dist/vscode-default-extensions/latex/syntaxes/cpp-grammar-bailout.tmLanguage.json.extensionResource.js +1 -1
- package/dist/vscode-default-extensions/latex/syntaxes/markdown-latex-combined.tmLanguage.json.extensionResource.js +1 -1
- package/dist/vscode-default-extensions/lua/syntaxes/lua.tmLanguage.json.extensionResource.js +1 -1
- package/dist/vscode-default-extensions/perl/package.json.js +1 -1
- package/dist/vscode-default-extensions/php/snippets/php.code-snippets.extensionResource.js +1 -1
- package/dist/vscode-default-extensions/sql/language-configuration.json.extensionResource.js +1 -1
- package/dist/vscode-default-extensions/theme-abyss/themes/abyss-color-theme.json.extensionResource.js +1 -1
- package/dist/vscode-default-extensions/theme-defaults/package.json.js +1 -1
- package/dist/vscode-default-extensions/theme-defaults/themes/dark_modern.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/theme-defaults/themes/dark_vs.json.extensionResource.js +1 -1
- package/dist/vscode-default-extensions/theme-defaults/themes/hc_black.json.extensionResource.js +1 -1
- package/dist/vscode-default-extensions/theme-defaults/themes/hc_light.json.extensionResource.js +1 -1
- package/dist/vscode-default-extensions/theme-defaults/themes/light_modern.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/theme-defaults/themes/light_vs.json.extensionResource.js +1 -1
- package/dist/vscode-default-extensions/theme-kimbie-dark/themes/kimbie-dark-color-theme.json.extensionResource.js +1 -1
- package/dist/vscode-default-extensions/theme-monokai/themes/monokai-color-theme.json.extensionResource.js +1 -1
- package/dist/vscode-default-extensions/theme-monokai-dimmed/themes/dimmed-monokai-color-theme.json.extensionResource.js +1 -1
- package/dist/vscode-default-extensions/theme-quietlight/themes/quietlight-color-theme.json.extensionResource.js +1 -1
- package/dist/vscode-default-extensions/theme-red/themes/Red-color-theme.json.extensionResource.js +1 -1
- package/dist/vscode-default-extensions/theme-seti/icons/vs-seti-icon-theme.json.extensionResource.js +1 -1
- package/dist/vscode-default-extensions/theme-solarized-dark/themes/solarized-dark-color-theme.json.extensionResource.js +1 -1
- package/dist/vscode-default-extensions/theme-solarized-light/themes/solarized-light-color-theme.json.extensionResource.js +1 -1
- package/dist/vscode-default-extensions/theme-tomorrow-night-blue/themes/tomorrow-night-blue-color-theme.json.extensionResource.js +1 -1
- package/dist/vscode-default-extensions/vb/language-configuration.json.extensionResource.js +1 -1
- package/dist/vscode-services/env.js +4 -2
- package/dist/vscode-services/extHost.js +32 -48
- package/dist/vscode-services/missing-services.js +407 -29
- package/dist/vscode-services/window.js +59 -65
- package/dist/vscode-services/workspace.js +19 -5
- package/dist/workers/outputLinkComputer.worker.d.ts +2 -0
- package/dist/workers/outputLinkComputer.worker.js +3 -0
- package/dist/workspace.d.ts +1 -1
- package/monaco-editor-treemending.patch +1305 -1184
- package/package.json +65 -19
- package/dist/activity.d.ts +0 -2802
- package/dist/collections.d.ts +0 -7
- package/dist/colorRegistry.d.ts +0 -710
- package/dist/vscode/vs/platform/product/common/product.js +0 -48
- package/dist/vscode/vs/workbench/contrib/interactiveSession/browser/interactiveSessionFollowups.js +0 -30
- package/dist/vscode/vs/workbench/contrib/interactiveSession/browser/interactiveSessionInputPart.js +0 -196
- package/dist/vscode/vs/workbench/contrib/interactiveSession/browser/interactiveSessionListRenderer.js +0 -622
- package/dist/vscode/vs/workbench/contrib/interactiveSession/browser/interactiveSessionOptions.js +0 -77
- package/dist/vscode/vs/workbench/contrib/interactiveSession/browser/interactiveSessionWidget.js +0 -311
- package/dist/vscode/vs/workbench/contrib/interactiveSession/browser/media/interactiveSession.css.js +0 -4
- package/dist/vscode/vs/workbench/contrib/interactiveSession/common/interactiveSessionContextKeys.js +0 -56
- package/dist/vscode/vs/workbench/contrib/interactiveSession/common/interactiveSessionModel.js +0 -305
- package/dist/vscode/vs/workbench/contrib/interactiveSession/common/interactiveSessionService.js +0 -13
- package/dist/vscode/vs/workbench/contrib/interactiveSession/common/interactiveSessionServiceImpl.js +0 -379
- package/dist/vscode/vs/workbench/contrib/interactiveSession/common/interactiveSessionViewModel.js +0 -207
- package/dist/vscode/vs/workbench/contrib/interactiveSession/common/interactiveSessionWidgetHistoryService.js +0 -3
- package/dist/vscode/vs/workbench/contrib/interactiveSession/common/interactiveSessionWordCounter.js +0 -25
- package/dist/vscode-default-extensions/theme-defaults/themes/dark_plus_experimental.json.extensionResource.js +0 -2
- package/dist/vscode-default-extensions/theme-defaults/themes/light_plus_experimental.json.extensionResource.js +0 -2
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { __decorate, __param } from '../../../../../../node_modules/tslib/tslib.es6.js';
|
|
2
|
+
import { Codicon } from 'monaco-editor/esm/vs/base/common/codicons.js';
|
|
3
|
+
import { Emitter } from 'monaco-editor/esm/vs/base/common/event.js';
|
|
4
|
+
import { Disposable } from 'monaco-editor/esm/vs/base/common/lifecycle.js';
|
|
5
|
+
import Severity from 'monaco-editor/esm/vs/base/common/severity.js';
|
|
6
|
+
import { IConfigurationService } from 'monaco-editor/esm/vs/platform/configuration/common/configuration.js';
|
|
7
|
+
import { listWarningForeground, listErrorForeground } from 'monaco-editor/esm/vs/platform/theme/common/colorRegistry.js';
|
|
8
|
+
import { spinningLoading } from 'monaco-editor/esm/vs/platform/theme/common/iconRegistry.js';
|
|
9
|
+
import { ThemeIcon } from 'monaco-editor/esm/vs/base/common/themables.js';
|
|
10
|
+
let TerminalStatusList = class TerminalStatusList extends Disposable {
|
|
11
|
+
get onDidAddStatus() { return this._onDidAddStatus.event; }
|
|
12
|
+
get onDidRemoveStatus() { return this._onDidRemoveStatus.event; }
|
|
13
|
+
get onDidChangePrimaryStatus() { return this._onDidChangePrimaryStatus.event; }
|
|
14
|
+
constructor(_configurationService) {
|
|
15
|
+
super();
|
|
16
|
+
this._configurationService = _configurationService;
|
|
17
|
+
this._statuses = ( new Map());
|
|
18
|
+
this._statusTimeouts = ( new Map());
|
|
19
|
+
this._onDidAddStatus = this._register(( new Emitter()));
|
|
20
|
+
this._onDidRemoveStatus = this._register(( new Emitter()));
|
|
21
|
+
this._onDidChangePrimaryStatus = this._register(( new Emitter()));
|
|
22
|
+
}
|
|
23
|
+
get primary() {
|
|
24
|
+
let result;
|
|
25
|
+
for (const s of ( this._statuses.values())) {
|
|
26
|
+
if (!result || s.severity >= result.severity) {
|
|
27
|
+
result = s;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
return result;
|
|
31
|
+
}
|
|
32
|
+
get statuses() { return Array.from(( this._statuses.values())); }
|
|
33
|
+
add(status, duration) {
|
|
34
|
+
status = this._applyAnimationSetting(status);
|
|
35
|
+
const outTimeout = this._statusTimeouts.get(status.id);
|
|
36
|
+
if (outTimeout) {
|
|
37
|
+
window.clearTimeout(outTimeout);
|
|
38
|
+
this._statusTimeouts.delete(status.id);
|
|
39
|
+
}
|
|
40
|
+
if (duration && duration > 0) {
|
|
41
|
+
const timeout = window.setTimeout(() => this.remove(status), duration);
|
|
42
|
+
this._statusTimeouts.set(status.id, timeout);
|
|
43
|
+
}
|
|
44
|
+
const existingStatus = this._statuses.get(status.id);
|
|
45
|
+
if (existingStatus && existingStatus !== status) {
|
|
46
|
+
this._onDidRemoveStatus.fire(existingStatus);
|
|
47
|
+
this._statuses.delete(existingStatus.id);
|
|
48
|
+
}
|
|
49
|
+
if (!( this._statuses.has(status.id))) {
|
|
50
|
+
const oldPrimary = this.primary;
|
|
51
|
+
this._statuses.set(status.id, status);
|
|
52
|
+
this._onDidAddStatus.fire(status);
|
|
53
|
+
const newPrimary = this.primary;
|
|
54
|
+
if (oldPrimary !== newPrimary) {
|
|
55
|
+
this._onDidChangePrimaryStatus.fire(newPrimary);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
remove(statusOrId) {
|
|
60
|
+
const status = typeof statusOrId === 'string' ? this._statuses.get(statusOrId) : statusOrId;
|
|
61
|
+
if (status && this._statuses.get(status.id)) {
|
|
62
|
+
const wasPrimary = this.primary?.id === status.id;
|
|
63
|
+
this._statuses.delete(status.id);
|
|
64
|
+
this._onDidRemoveStatus.fire(status);
|
|
65
|
+
if (wasPrimary) {
|
|
66
|
+
this._onDidChangePrimaryStatus.fire(this.primary);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
toggle(status, value) {
|
|
71
|
+
if (value) {
|
|
72
|
+
this.add(status);
|
|
73
|
+
}
|
|
74
|
+
else {
|
|
75
|
+
this.remove(status);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
_applyAnimationSetting(status) {
|
|
79
|
+
if (!status.icon || ThemeIcon.getModifier(status.icon) !== 'spin' || this._configurationService.getValue("terminal.integrated.tabs.enableAnimation" )) {
|
|
80
|
+
return status;
|
|
81
|
+
}
|
|
82
|
+
let icon;
|
|
83
|
+
if (status.icon.id === spinningLoading.id) {
|
|
84
|
+
icon = Codicon.play;
|
|
85
|
+
}
|
|
86
|
+
else {
|
|
87
|
+
icon = ThemeIcon.modify(status.icon, undefined);
|
|
88
|
+
}
|
|
89
|
+
return {
|
|
90
|
+
...status,
|
|
91
|
+
icon
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
};
|
|
95
|
+
TerminalStatusList = ( __decorate([
|
|
96
|
+
( __param(0, IConfigurationService))
|
|
97
|
+
], TerminalStatusList));
|
|
98
|
+
function getColorForSeverity(severity) {
|
|
99
|
+
switch (severity) {
|
|
100
|
+
case Severity.Error:
|
|
101
|
+
return listErrorForeground;
|
|
102
|
+
case Severity.Warning:
|
|
103
|
+
return listWarningForeground;
|
|
104
|
+
default:
|
|
105
|
+
return '';
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
export { TerminalStatusList, getColorForSeverity };
|
|
@@ -0,0 +1,417 @@
|
|
|
1
|
+
import { __decorate, __param } from '../../../../../../node_modules/tslib/tslib.es6.js';
|
|
2
|
+
import { SplitView, Sizing } from 'monaco-editor/esm/vs/base/browser/ui/splitview/splitview.js';
|
|
3
|
+
import { Disposable, dispose } from 'monaco-editor/esm/vs/base/common/lifecycle.js';
|
|
4
|
+
import { IConfigurationService } from 'monaco-editor/esm/vs/platform/configuration/common/configuration.js';
|
|
5
|
+
import { IInstantiationService } from 'monaco-editor/esm/vs/platform/instantiation/common/instantiation.js';
|
|
6
|
+
import { ITerminalService, ITerminalGroupService } from './terminal.js';
|
|
7
|
+
import { TerminalTabList } from './terminalTabsList.js';
|
|
8
|
+
import { isLinux, isMacintosh } from 'monaco-editor/esm/vs/base/common/platform.js';
|
|
9
|
+
import * as dom from 'monaco-editor/esm/vs/base/browser/dom.js';
|
|
10
|
+
import { BrowserFeatures } from 'monaco-editor/esm/vs/base/browser/canIUse.js';
|
|
11
|
+
import { INotificationService } from 'monaco-editor/esm/vs/platform/notification/common/notification.js';
|
|
12
|
+
import { Separator, Action } from 'monaco-editor/esm/vs/base/common/actions.js';
|
|
13
|
+
import { MenuId, IMenuService } from 'monaco-editor/esm/vs/platform/actions/common/actions.js';
|
|
14
|
+
import { IContextKeyService } from 'monaco-editor/esm/vs/platform/contextkey/common/contextkey.js';
|
|
15
|
+
import { IContextMenuService } from 'monaco-editor/esm/vs/platform/contextview/browser/contextView.js';
|
|
16
|
+
import { IStorageService } from 'monaco-editor/esm/vs/platform/storage/common/storage.js';
|
|
17
|
+
import { localize } from 'monaco-editor/esm/vs/nls.js';
|
|
18
|
+
import { openContextMenu } from './terminalContextMenu.js';
|
|
19
|
+
import { TerminalContextKeys } from '../common/terminalContextKey.js';
|
|
20
|
+
import { getInstanceHoverInfo } from './terminalTooltip.js';
|
|
21
|
+
import { IHoverService } from '../../../services/hover/browser/hover.js';
|
|
22
|
+
const $ = dom.$;
|
|
23
|
+
let TerminalTabbedView = class TerminalTabbedView extends Disposable {
|
|
24
|
+
constructor(parentElement, _terminalService, _terminalGroupService, _instantiationService, _notificationService, _contextMenuService, _configurationService, menuService, _storageService, contextKeyService, _hoverService) {
|
|
25
|
+
super();
|
|
26
|
+
this._terminalService = _terminalService;
|
|
27
|
+
this._terminalGroupService = _terminalGroupService;
|
|
28
|
+
this._instantiationService = _instantiationService;
|
|
29
|
+
this._notificationService = _notificationService;
|
|
30
|
+
this._contextMenuService = _contextMenuService;
|
|
31
|
+
this._configurationService = _configurationService;
|
|
32
|
+
this._storageService = _storageService;
|
|
33
|
+
this._hoverService = _hoverService;
|
|
34
|
+
this._cancelContextMenu = false;
|
|
35
|
+
this._parentElement = parentElement;
|
|
36
|
+
this._tabContainer = $('.tabs-container');
|
|
37
|
+
const tabListContainer = $('.tabs-list-container');
|
|
38
|
+
this._tabListElement = $('.tabs-list');
|
|
39
|
+
tabListContainer.appendChild(this._tabListElement);
|
|
40
|
+
this._tabContainer.appendChild(tabListContainer);
|
|
41
|
+
this._instanceMenu = this._register(menuService.createMenu(MenuId.TerminalInstanceContext, contextKeyService));
|
|
42
|
+
this._tabsListMenu = this._register(menuService.createMenu(MenuId.TerminalTabContext, contextKeyService));
|
|
43
|
+
this._tabsListEmptyMenu = this._register(menuService.createMenu(MenuId.TerminalTabEmptyAreaContext, contextKeyService));
|
|
44
|
+
this._tabList = this._register(this._instantiationService.createInstance(TerminalTabList, this._tabListElement));
|
|
45
|
+
const terminalOuterContainer = $('.terminal-outer-container');
|
|
46
|
+
this._terminalContainer = $('.terminal-groups-container');
|
|
47
|
+
terminalOuterContainer.appendChild(this._terminalContainer);
|
|
48
|
+
this._terminalService.setContainers(parentElement, this._terminalContainer);
|
|
49
|
+
this._terminalIsTabsNarrowContextKey = TerminalContextKeys.tabsNarrow.bindTo(contextKeyService);
|
|
50
|
+
this._terminalTabsFocusContextKey = TerminalContextKeys.tabsFocus.bindTo(contextKeyService);
|
|
51
|
+
this._terminalTabsMouseContextKey = TerminalContextKeys.tabsMouse.bindTo(contextKeyService);
|
|
52
|
+
this._tabTreeIndex = this._terminalService.configHelper.config.tabs.location === 'left' ? 0 : 1;
|
|
53
|
+
this._terminalContainerIndex = this._terminalService.configHelper.config.tabs.location === 'left' ? 1 : 0;
|
|
54
|
+
_configurationService.onDidChangeConfiguration(e => {
|
|
55
|
+
if (e.affectsConfiguration("terminal.integrated.tabs.enabled" ) ||
|
|
56
|
+
e.affectsConfiguration("terminal.integrated.tabs.hideCondition" )) {
|
|
57
|
+
this._refreshShowTabs();
|
|
58
|
+
}
|
|
59
|
+
else if (e.affectsConfiguration("terminal.integrated.tabs.location" )) {
|
|
60
|
+
this._tabTreeIndex = this._terminalService.configHelper.config.tabs.location === 'left' ? 0 : 1;
|
|
61
|
+
this._terminalContainerIndex = this._terminalService.configHelper.config.tabs.location === 'left' ? 1 : 0;
|
|
62
|
+
if (this._shouldShowTabs()) {
|
|
63
|
+
this._splitView.swapViews(0, 1);
|
|
64
|
+
this._removeSashListener();
|
|
65
|
+
this._addSashListener();
|
|
66
|
+
this._splitView.resizeView(this._tabTreeIndex, this._getLastListWidth());
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
this._register(this._terminalGroupService.onDidChangeInstances(() => this._refreshShowTabs()));
|
|
71
|
+
this._register(this._terminalGroupService.onDidChangeGroups(() => this._refreshShowTabs()));
|
|
72
|
+
this._attachEventListeners(parentElement, this._terminalContainer);
|
|
73
|
+
this._terminalGroupService.onDidChangePanelOrientation((orientation) => {
|
|
74
|
+
this._panelOrientation = orientation;
|
|
75
|
+
if (this._panelOrientation === 0 ) {
|
|
76
|
+
this._terminalContainer.classList.add("terminal-side-view" );
|
|
77
|
+
}
|
|
78
|
+
else {
|
|
79
|
+
this._terminalContainer.classList.remove("terminal-side-view" );
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
this._splitView = ( new SplitView(
|
|
83
|
+
parentElement,
|
|
84
|
+
{ orientation: 1 , proportionalLayout: false }
|
|
85
|
+
));
|
|
86
|
+
this._setupSplitView(terminalOuterContainer);
|
|
87
|
+
}
|
|
88
|
+
_shouldShowTabs() {
|
|
89
|
+
const enabled = this._terminalService.configHelper.config.tabs.enabled;
|
|
90
|
+
const hide = this._terminalService.configHelper.config.tabs.hideCondition;
|
|
91
|
+
if (!enabled) {
|
|
92
|
+
return false;
|
|
93
|
+
}
|
|
94
|
+
if (hide === 'never') {
|
|
95
|
+
return true;
|
|
96
|
+
}
|
|
97
|
+
if (hide === 'singleTerminal' && this._terminalGroupService.instances.length > 1) {
|
|
98
|
+
return true;
|
|
99
|
+
}
|
|
100
|
+
if (hide === 'singleGroup' && this._terminalGroupService.groups.length > 1) {
|
|
101
|
+
return true;
|
|
102
|
+
}
|
|
103
|
+
return false;
|
|
104
|
+
}
|
|
105
|
+
_refreshShowTabs() {
|
|
106
|
+
if (this._shouldShowTabs()) {
|
|
107
|
+
if (this._splitView.length === 1) {
|
|
108
|
+
this._addTabTree();
|
|
109
|
+
this._addSashListener();
|
|
110
|
+
this._splitView.resizeView(this._tabTreeIndex, this._getLastListWidth());
|
|
111
|
+
this.rerenderTabs();
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
else {
|
|
115
|
+
if (this._splitView.length === 2 && !this._terminalTabsMouseContextKey.get()) {
|
|
116
|
+
this._splitView.removeView(this._tabTreeIndex);
|
|
117
|
+
if (this._plusButton) {
|
|
118
|
+
this._tabContainer.removeChild(this._plusButton);
|
|
119
|
+
}
|
|
120
|
+
this._removeSashListener();
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
_getLastListWidth() {
|
|
125
|
+
const widthKey = this._panelOrientation === 0 ? "tabs-list-width-vertical" : "tabs-list-width-horizontal" ;
|
|
126
|
+
const storedValue = this._storageService.get(widthKey, 0 );
|
|
127
|
+
if (!storedValue || !parseInt(storedValue)) {
|
|
128
|
+
return this._panelOrientation === 0 ? 46 : 120 ;
|
|
129
|
+
}
|
|
130
|
+
return parseInt(storedValue);
|
|
131
|
+
}
|
|
132
|
+
_handleOnDidSashReset() {
|
|
133
|
+
let idealWidth = 80 ;
|
|
134
|
+
const offscreenCanvas = document.createElement('canvas');
|
|
135
|
+
offscreenCanvas.width = 1;
|
|
136
|
+
offscreenCanvas.height = 1;
|
|
137
|
+
const ctx = offscreenCanvas.getContext('2d');
|
|
138
|
+
if (ctx) {
|
|
139
|
+
const style = window.getComputedStyle(this._tabListElement);
|
|
140
|
+
ctx.font = `${style.fontStyle} ${style.fontSize} ${style.fontFamily}`;
|
|
141
|
+
const maxInstanceWidth = this._terminalGroupService.instances.reduce((p, c) => {
|
|
142
|
+
return Math.max(p, ctx.measureText(c.title + (c.description || '')).width + this._getAdditionalWidth(c));
|
|
143
|
+
}, 0);
|
|
144
|
+
idealWidth = Math.ceil(Math.max(maxInstanceWidth, 80 ));
|
|
145
|
+
}
|
|
146
|
+
const currentWidth = Math.ceil(this._splitView.getViewSize(this._tabTreeIndex));
|
|
147
|
+
if (currentWidth === idealWidth) {
|
|
148
|
+
idealWidth = 46 ;
|
|
149
|
+
}
|
|
150
|
+
this._splitView.resizeView(this._tabTreeIndex, idealWidth);
|
|
151
|
+
this._updateListWidth(idealWidth);
|
|
152
|
+
}
|
|
153
|
+
_getAdditionalWidth(instance) {
|
|
154
|
+
const additionalWidth = 40;
|
|
155
|
+
const statusIconWidth = instance.statusList.statuses.length > 0 ? 30 : 0;
|
|
156
|
+
const splitAnnotationWidth = (this._terminalGroupService.getGroupForInstance(instance)?.terminalInstances.length || 0) > 1 ? 30 : 0;
|
|
157
|
+
return additionalWidth + splitAnnotationWidth + statusIconWidth;
|
|
158
|
+
}
|
|
159
|
+
_handleOnDidSashChange() {
|
|
160
|
+
const listWidth = this._splitView.getViewSize(this._tabTreeIndex);
|
|
161
|
+
if (!this._width || listWidth <= 0) {
|
|
162
|
+
return;
|
|
163
|
+
}
|
|
164
|
+
this._updateListWidth(listWidth);
|
|
165
|
+
}
|
|
166
|
+
_updateListWidth(width) {
|
|
167
|
+
if (width < 63 && width >= 46 ) {
|
|
168
|
+
width = 46 ;
|
|
169
|
+
this._splitView.resizeView(this._tabTreeIndex, width);
|
|
170
|
+
}
|
|
171
|
+
else if (width >= 63 && width < 80 ) {
|
|
172
|
+
width = 80 ;
|
|
173
|
+
this._splitView.resizeView(this._tabTreeIndex, width);
|
|
174
|
+
}
|
|
175
|
+
this.rerenderTabs();
|
|
176
|
+
const widthKey = this._panelOrientation === 0 ? "tabs-list-width-vertical" : "tabs-list-width-horizontal" ;
|
|
177
|
+
this._storageService.store(widthKey, width, 0 , 0 );
|
|
178
|
+
}
|
|
179
|
+
_setupSplitView(terminalOuterContainer) {
|
|
180
|
+
this._register(this._splitView.onDidSashReset(() => this._handleOnDidSashReset()));
|
|
181
|
+
this._register(this._splitView.onDidSashChange(() => this._handleOnDidSashChange()));
|
|
182
|
+
if (this._shouldShowTabs()) {
|
|
183
|
+
this._addTabTree();
|
|
184
|
+
}
|
|
185
|
+
this._splitView.addView({
|
|
186
|
+
element: terminalOuterContainer,
|
|
187
|
+
layout: width => this._terminalGroupService.groups.forEach(tab => tab.layout(width, this._height || 0)),
|
|
188
|
+
minimumSize: 120,
|
|
189
|
+
maximumSize: Number.POSITIVE_INFINITY,
|
|
190
|
+
onDidChange: () => Disposable.None,
|
|
191
|
+
priority: 2
|
|
192
|
+
}, Sizing.Distribute, this._terminalContainerIndex);
|
|
193
|
+
if (this._shouldShowTabs()) {
|
|
194
|
+
this._addSashListener();
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
_addTabTree() {
|
|
198
|
+
this._splitView.addView({
|
|
199
|
+
element: this._tabContainer,
|
|
200
|
+
layout: width => this._tabList.layout(this._height || 0, width),
|
|
201
|
+
minimumSize: 46 ,
|
|
202
|
+
maximumSize: 500 ,
|
|
203
|
+
onDidChange: () => Disposable.None,
|
|
204
|
+
priority: 1
|
|
205
|
+
}, Sizing.Distribute, this._tabTreeIndex);
|
|
206
|
+
this.rerenderTabs();
|
|
207
|
+
}
|
|
208
|
+
rerenderTabs() {
|
|
209
|
+
this._updateHasText();
|
|
210
|
+
this._tabList.refresh();
|
|
211
|
+
}
|
|
212
|
+
_addSashListener() {
|
|
213
|
+
let interval;
|
|
214
|
+
this._sashDisposables = [
|
|
215
|
+
this._splitView.sashes[0].onDidStart(e => {
|
|
216
|
+
interval = window.setInterval(() => {
|
|
217
|
+
this.rerenderTabs();
|
|
218
|
+
}, 100);
|
|
219
|
+
}),
|
|
220
|
+
this._splitView.sashes[0].onDidEnd(e => {
|
|
221
|
+
window.clearInterval(interval);
|
|
222
|
+
interval = 0;
|
|
223
|
+
})
|
|
224
|
+
];
|
|
225
|
+
}
|
|
226
|
+
_removeSashListener() {
|
|
227
|
+
if (this._sashDisposables) {
|
|
228
|
+
dispose(this._sashDisposables);
|
|
229
|
+
this._sashDisposables = undefined;
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
_updateHasText() {
|
|
233
|
+
const hasText = this._tabListElement.clientWidth > 63 ;
|
|
234
|
+
this._tabContainer.classList.toggle('has-text', hasText);
|
|
235
|
+
this._terminalIsTabsNarrowContextKey.set(!hasText);
|
|
236
|
+
}
|
|
237
|
+
layout(width, height) {
|
|
238
|
+
this._height = height;
|
|
239
|
+
this._width = width;
|
|
240
|
+
this._splitView.layout(width);
|
|
241
|
+
if (this._shouldShowTabs()) {
|
|
242
|
+
this._splitView.resizeView(this._tabTreeIndex, this._getLastListWidth());
|
|
243
|
+
}
|
|
244
|
+
this._updateHasText();
|
|
245
|
+
}
|
|
246
|
+
_attachEventListeners(parentDomElement, terminalContainer) {
|
|
247
|
+
this._register(dom.addDisposableListener(this._tabContainer, 'mouseleave', async (event) => {
|
|
248
|
+
this._terminalTabsMouseContextKey.set(false);
|
|
249
|
+
this._refreshShowTabs();
|
|
250
|
+
event.stopPropagation();
|
|
251
|
+
}));
|
|
252
|
+
this._register(dom.addDisposableListener(this._tabContainer, 'mouseenter', async (event) => {
|
|
253
|
+
this._terminalTabsMouseContextKey.set(true);
|
|
254
|
+
event.stopPropagation();
|
|
255
|
+
}));
|
|
256
|
+
this._register(dom.addDisposableListener(terminalContainer, 'mousedown', async (event) => {
|
|
257
|
+
const terminal = this._terminalGroupService.activeInstance;
|
|
258
|
+
if (this._terminalGroupService.instances.length === 0 || !terminal) {
|
|
259
|
+
this._cancelContextMenu = true;
|
|
260
|
+
return;
|
|
261
|
+
}
|
|
262
|
+
if (event.which === 2 && isLinux) {
|
|
263
|
+
terminal.focus();
|
|
264
|
+
}
|
|
265
|
+
else if (event.which === 3) {
|
|
266
|
+
const rightClickBehavior = this._terminalService.configHelper.config.rightClickBehavior;
|
|
267
|
+
if (rightClickBehavior === 'nothing') {
|
|
268
|
+
if (!event.shiftKey) {
|
|
269
|
+
this._cancelContextMenu = true;
|
|
270
|
+
}
|
|
271
|
+
return;
|
|
272
|
+
}
|
|
273
|
+
else if (rightClickBehavior === 'copyPaste' || rightClickBehavior === 'paste') {
|
|
274
|
+
if (rightClickBehavior === 'copyPaste' && event.shiftKey) {
|
|
275
|
+
openContextMenu(event, this._parentElement, this._instanceMenu, this._contextMenuService);
|
|
276
|
+
return;
|
|
277
|
+
}
|
|
278
|
+
if (rightClickBehavior === 'copyPaste' && terminal.hasSelection()) {
|
|
279
|
+
await terminal.copySelection();
|
|
280
|
+
terminal.clearSelection();
|
|
281
|
+
}
|
|
282
|
+
else {
|
|
283
|
+
if (BrowserFeatures.clipboard.readText) {
|
|
284
|
+
terminal.paste();
|
|
285
|
+
}
|
|
286
|
+
else {
|
|
287
|
+
this._notificationService.info(`This browser doesn't support the clipboard.readText API needed to trigger a paste, try ${isMacintosh ? '⌘' : 'Ctrl'}+V instead.`);
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
if (isMacintosh) {
|
|
291
|
+
setTimeout(() => {
|
|
292
|
+
terminal.clearSelection();
|
|
293
|
+
}, 0);
|
|
294
|
+
}
|
|
295
|
+
this._cancelContextMenu = true;
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
}));
|
|
299
|
+
this._register(dom.addDisposableListener(terminalContainer, 'contextmenu', (event) => {
|
|
300
|
+
const rightClickBehavior = this._terminalService.configHelper.config.rightClickBehavior;
|
|
301
|
+
if (rightClickBehavior === 'nothing' && !event.shiftKey) {
|
|
302
|
+
this._cancelContextMenu = true;
|
|
303
|
+
}
|
|
304
|
+
if (!this._cancelContextMenu) {
|
|
305
|
+
openContextMenu(event, this._parentElement, this._instanceMenu, this._contextMenuService);
|
|
306
|
+
}
|
|
307
|
+
event.preventDefault();
|
|
308
|
+
event.stopImmediatePropagation();
|
|
309
|
+
this._cancelContextMenu = false;
|
|
310
|
+
}));
|
|
311
|
+
this._register(dom.addDisposableListener(this._tabContainer, 'contextmenu', (event) => {
|
|
312
|
+
const rightClickBehavior = this._terminalService.configHelper.config.rightClickBehavior;
|
|
313
|
+
if (rightClickBehavior === 'nothing' && !event.shiftKey) {
|
|
314
|
+
this._cancelContextMenu = true;
|
|
315
|
+
}
|
|
316
|
+
if (!this._cancelContextMenu) {
|
|
317
|
+
const emptyList = this._tabList.getFocus().length === 0;
|
|
318
|
+
openContextMenu(event, this._parentElement, emptyList ? this._tabsListEmptyMenu : this._tabsListMenu, this._contextMenuService, emptyList ? this._getTabActions() : undefined);
|
|
319
|
+
}
|
|
320
|
+
event.preventDefault();
|
|
321
|
+
event.stopImmediatePropagation();
|
|
322
|
+
this._cancelContextMenu = false;
|
|
323
|
+
}));
|
|
324
|
+
this._register(dom.addDisposableListener(document, 'keydown', (event) => {
|
|
325
|
+
terminalContainer.classList.toggle('alt-active', !!event.altKey);
|
|
326
|
+
}));
|
|
327
|
+
this._register(dom.addDisposableListener(document, 'keyup', (event) => {
|
|
328
|
+
terminalContainer.classList.toggle('alt-active', !!event.altKey);
|
|
329
|
+
}));
|
|
330
|
+
this._register(dom.addDisposableListener(parentDomElement, 'keyup', (event) => {
|
|
331
|
+
if (event.keyCode === 27) {
|
|
332
|
+
event.stopPropagation();
|
|
333
|
+
}
|
|
334
|
+
}));
|
|
335
|
+
this._register(dom.addDisposableListener(this._tabContainer, dom.EventType.FOCUS_IN, () => {
|
|
336
|
+
this._terminalTabsFocusContextKey.set(true);
|
|
337
|
+
}));
|
|
338
|
+
this._register(dom.addDisposableListener(this._tabContainer, dom.EventType.FOCUS_OUT, () => {
|
|
339
|
+
this._terminalTabsFocusContextKey.set(false);
|
|
340
|
+
}));
|
|
341
|
+
}
|
|
342
|
+
_getTabActions() {
|
|
343
|
+
return [
|
|
344
|
+
( new Separator()),
|
|
345
|
+
this._configurationService.inspect("terminal.integrated.tabs.location" ).userValue === 'left' ?
|
|
346
|
+
( new Action('moveRight', ( localize('moveTabsRight', "Move Tabs Right")), undefined, undefined, async () => {
|
|
347
|
+
this._configurationService.updateValue("terminal.integrated.tabs.location" , 'right');
|
|
348
|
+
})) :
|
|
349
|
+
( new Action('moveLeft', ( localize('moveTabsLeft', "Move Tabs Left")), undefined, undefined, async () => {
|
|
350
|
+
this._configurationService.updateValue("terminal.integrated.tabs.location" , 'left');
|
|
351
|
+
})),
|
|
352
|
+
( new Action('hideTabs', ( localize('hideTabs', "Hide Tabs")), undefined, undefined, async () => {
|
|
353
|
+
this._configurationService.updateValue("terminal.integrated.tabs.enabled" , false);
|
|
354
|
+
}))
|
|
355
|
+
];
|
|
356
|
+
}
|
|
357
|
+
setEditable(isEditing) {
|
|
358
|
+
if (!isEditing) {
|
|
359
|
+
this._tabList.domFocus();
|
|
360
|
+
}
|
|
361
|
+
this._tabList.refresh(false);
|
|
362
|
+
}
|
|
363
|
+
focusTabs() {
|
|
364
|
+
if (!this._shouldShowTabs()) {
|
|
365
|
+
return;
|
|
366
|
+
}
|
|
367
|
+
this._terminalTabsFocusContextKey.set(true);
|
|
368
|
+
const selected = this._tabList.getSelection();
|
|
369
|
+
this._tabList.domFocus();
|
|
370
|
+
if (selected) {
|
|
371
|
+
this._tabList.setFocus(selected);
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
focus() {
|
|
375
|
+
if (this._terminalService.connectionState === 0 ) {
|
|
376
|
+
const activeElement = document.activeElement;
|
|
377
|
+
this._register(this._terminalService.onDidChangeConnectionState(() => {
|
|
378
|
+
if (document.activeElement === activeElement) {
|
|
379
|
+
this._focus();
|
|
380
|
+
}
|
|
381
|
+
}));
|
|
382
|
+
return;
|
|
383
|
+
}
|
|
384
|
+
this._focus();
|
|
385
|
+
}
|
|
386
|
+
focusHover() {
|
|
387
|
+
if (this._shouldShowTabs()) {
|
|
388
|
+
this._tabList.focusHover();
|
|
389
|
+
return;
|
|
390
|
+
}
|
|
391
|
+
const instance = this._terminalGroupService.activeInstance;
|
|
392
|
+
if (!instance) {
|
|
393
|
+
return;
|
|
394
|
+
}
|
|
395
|
+
this._hoverService.showHover({
|
|
396
|
+
...getInstanceHoverInfo(instance),
|
|
397
|
+
target: this._terminalContainer,
|
|
398
|
+
trapFocus: true
|
|
399
|
+
}, true);
|
|
400
|
+
}
|
|
401
|
+
_focus() {
|
|
402
|
+
this._terminalGroupService.activeInstance?.focusWhenReady();
|
|
403
|
+
}
|
|
404
|
+
};
|
|
405
|
+
TerminalTabbedView = ( __decorate([
|
|
406
|
+
( __param(1, ITerminalService)),
|
|
407
|
+
( __param(2, ITerminalGroupService)),
|
|
408
|
+
( __param(3, IInstantiationService)),
|
|
409
|
+
( __param(4, INotificationService)),
|
|
410
|
+
( __param(5, IContextMenuService)),
|
|
411
|
+
( __param(6, IConfigurationService)),
|
|
412
|
+
( __param(7, IMenuService)),
|
|
413
|
+
( __param(8, IStorageService)),
|
|
414
|
+
( __param(9, IContextKeyService)),
|
|
415
|
+
( __param(10, IHoverService))
|
|
416
|
+
], TerminalTabbedView));
|
|
417
|
+
export { TerminalTabbedView };
|