@codingame/monaco-vscode-api 1.79.1 → 1.79.2-next.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +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 +1 -1
- package/dist/service-override/configuration.d.ts +5 -206
- 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/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/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,356 @@
|
|
|
1
|
+
import { __decorate, __param } from '../../../../../../node_modules/tslib/tslib.es6.js';
|
|
2
|
+
import { env } from 'monaco-editor/esm/vs/base/common/process.js';
|
|
3
|
+
import { Disposable } from 'monaco-editor/esm/vs/base/common/lifecycle.js';
|
|
4
|
+
import { LRUCache } from 'monaco-editor/esm/vs/base/common/map.js';
|
|
5
|
+
import { IConfigurationService } from 'monaco-editor/esm/vs/platform/configuration/common/configuration.js';
|
|
6
|
+
import { IFileService, FileOperationError } from 'monaco-editor/esm/vs/platform/files/common/files.js';
|
|
7
|
+
import { IInstantiationService } from 'monaco-editor/esm/vs/platform/instantiation/common/instantiation.js';
|
|
8
|
+
import { IStorageService } from 'monaco-editor/esm/vs/platform/storage/common/storage.js';
|
|
9
|
+
import { URI } from 'monaco-editor/esm/vs/base/common/uri.js';
|
|
10
|
+
import { IRemoteAgentService } from '../../../services/remote/common/remoteAgentService.js';
|
|
11
|
+
import { Schemas } from 'monaco-editor/esm/vs/base/common/network.js';
|
|
12
|
+
import { isWindows } from 'monaco-editor/esm/vs/base/common/platform.js';
|
|
13
|
+
import { win32, posix } from 'monaco-editor/esm/vs/base/common/path.js';
|
|
14
|
+
let commandHistory = undefined;
|
|
15
|
+
function getCommandHistory(accessor) {
|
|
16
|
+
if (!commandHistory) {
|
|
17
|
+
commandHistory = accessor.get(IInstantiationService).createInstance(TerminalPersistedHistory, 'commands');
|
|
18
|
+
}
|
|
19
|
+
return commandHistory;
|
|
20
|
+
}
|
|
21
|
+
let directoryHistory = undefined;
|
|
22
|
+
function getDirectoryHistory(accessor) {
|
|
23
|
+
if (!directoryHistory) {
|
|
24
|
+
directoryHistory = accessor.get(IInstantiationService).createInstance(TerminalPersistedHistory, 'dirs');
|
|
25
|
+
}
|
|
26
|
+
return directoryHistory;
|
|
27
|
+
}
|
|
28
|
+
const shellFileHistory = ( new Map());
|
|
29
|
+
async function getShellFileHistory(accessor, shellType) {
|
|
30
|
+
const cached = shellFileHistory.get(shellType);
|
|
31
|
+
if (cached === null) {
|
|
32
|
+
return [];
|
|
33
|
+
}
|
|
34
|
+
if (cached !== undefined) {
|
|
35
|
+
return cached;
|
|
36
|
+
}
|
|
37
|
+
let result;
|
|
38
|
+
switch (shellType) {
|
|
39
|
+
case "bash" :
|
|
40
|
+
result = await fetchBashHistory(accessor);
|
|
41
|
+
break;
|
|
42
|
+
case "pwsh" :
|
|
43
|
+
result = await fetchPwshHistory(accessor);
|
|
44
|
+
break;
|
|
45
|
+
case "zsh" :
|
|
46
|
+
result = await fetchZshHistory(accessor);
|
|
47
|
+
break;
|
|
48
|
+
case "fish" :
|
|
49
|
+
result = await fetchFishHistory(accessor);
|
|
50
|
+
break;
|
|
51
|
+
default: return [];
|
|
52
|
+
}
|
|
53
|
+
if (result === undefined) {
|
|
54
|
+
shellFileHistory.set(shellType, null);
|
|
55
|
+
return [];
|
|
56
|
+
}
|
|
57
|
+
const array = Array.from(result);
|
|
58
|
+
shellFileHistory.set(shellType, array);
|
|
59
|
+
return array;
|
|
60
|
+
}
|
|
61
|
+
function clearShellFileHistory() {
|
|
62
|
+
shellFileHistory.clear();
|
|
63
|
+
}
|
|
64
|
+
let TerminalPersistedHistory = class TerminalPersistedHistory extends Disposable {
|
|
65
|
+
get entries() {
|
|
66
|
+
this._ensureUpToDate();
|
|
67
|
+
return this._entries.entries();
|
|
68
|
+
}
|
|
69
|
+
constructor(_storageDataKey, _configurationService, _storageService) {
|
|
70
|
+
super();
|
|
71
|
+
this._storageDataKey = _storageDataKey;
|
|
72
|
+
this._configurationService = _configurationService;
|
|
73
|
+
this._storageService = _storageService;
|
|
74
|
+
this._timestamp = 0;
|
|
75
|
+
this._isReady = false;
|
|
76
|
+
this._isStale = true;
|
|
77
|
+
this._entries = ( new LRUCache(this._getHistoryLimit()));
|
|
78
|
+
this._configurationService.onDidChangeConfiguration(e => {
|
|
79
|
+
if (e.affectsConfiguration("terminal.integrated.shellIntegration.history" )) {
|
|
80
|
+
this._entries.limit = this._getHistoryLimit();
|
|
81
|
+
}
|
|
82
|
+
});
|
|
83
|
+
this._storageService.onDidChangeValue(e => {
|
|
84
|
+
if (e.key === this._getTimestampStorageKey() && !this._isStale) {
|
|
85
|
+
this._isStale = this._storageService.getNumber(this._getTimestampStorageKey(), -1 , 0) !== this._timestamp;
|
|
86
|
+
}
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
add(key, value) {
|
|
90
|
+
this._ensureUpToDate();
|
|
91
|
+
this._entries.set(key, value);
|
|
92
|
+
this._saveState();
|
|
93
|
+
}
|
|
94
|
+
remove(key) {
|
|
95
|
+
this._ensureUpToDate();
|
|
96
|
+
this._entries.delete(key);
|
|
97
|
+
this._saveState();
|
|
98
|
+
}
|
|
99
|
+
clear() {
|
|
100
|
+
this._ensureUpToDate();
|
|
101
|
+
this._entries.clear();
|
|
102
|
+
this._saveState();
|
|
103
|
+
}
|
|
104
|
+
_ensureUpToDate() {
|
|
105
|
+
if (!this._isReady) {
|
|
106
|
+
this._loadState();
|
|
107
|
+
this._isReady = true;
|
|
108
|
+
}
|
|
109
|
+
if (this._isStale) {
|
|
110
|
+
this._entries.clear();
|
|
111
|
+
this._loadState();
|
|
112
|
+
this._isStale = false;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
_loadState() {
|
|
116
|
+
this._timestamp = this._storageService.getNumber(this._getTimestampStorageKey(), -1 , 0);
|
|
117
|
+
const serialized = this._loadPersistedState();
|
|
118
|
+
if (serialized) {
|
|
119
|
+
for (const entry of serialized.entries) {
|
|
120
|
+
this._entries.set(entry.key, entry.value);
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
_loadPersistedState() {
|
|
125
|
+
const raw = this._storageService.get(this._getEntriesStorageKey(), -1 );
|
|
126
|
+
if (raw === undefined || raw.length === 0) {
|
|
127
|
+
return undefined;
|
|
128
|
+
}
|
|
129
|
+
let serialized = undefined;
|
|
130
|
+
try {
|
|
131
|
+
serialized = JSON.parse(raw);
|
|
132
|
+
}
|
|
133
|
+
catch {
|
|
134
|
+
return undefined;
|
|
135
|
+
}
|
|
136
|
+
return serialized;
|
|
137
|
+
}
|
|
138
|
+
_saveState() {
|
|
139
|
+
const serialized = { entries: [] };
|
|
140
|
+
this._entries.forEach((value, key) => serialized.entries.push({ key, value }));
|
|
141
|
+
this._storageService.store(this._getEntriesStorageKey(), JSON.stringify(serialized), -1 , 1 );
|
|
142
|
+
this._timestamp = Date.now();
|
|
143
|
+
this._storageService.store(this._getTimestampStorageKey(), this._timestamp, -1 , 1 );
|
|
144
|
+
}
|
|
145
|
+
_getHistoryLimit() {
|
|
146
|
+
const historyLimit = this._configurationService.getValue("terminal.integrated.shellIntegration.history" );
|
|
147
|
+
return typeof historyLimit === 'number' ? historyLimit : 100 ;
|
|
148
|
+
}
|
|
149
|
+
_getTimestampStorageKey() {
|
|
150
|
+
return `${"terminal.history.timestamp" }.${this._storageDataKey}`;
|
|
151
|
+
}
|
|
152
|
+
_getEntriesStorageKey() {
|
|
153
|
+
return `${"terminal.history.entries" }.${this._storageDataKey}`;
|
|
154
|
+
}
|
|
155
|
+
};
|
|
156
|
+
TerminalPersistedHistory = ( __decorate([
|
|
157
|
+
( __param(1, IConfigurationService)),
|
|
158
|
+
( __param(2, IStorageService))
|
|
159
|
+
], TerminalPersistedHistory));
|
|
160
|
+
async function fetchBashHistory(accessor) {
|
|
161
|
+
const fileService = accessor.get(IFileService);
|
|
162
|
+
const remoteAgentService = accessor.get(IRemoteAgentService);
|
|
163
|
+
const remoteEnvironment = await remoteAgentService.getEnvironment();
|
|
164
|
+
if (remoteEnvironment?.os === 1 || !remoteEnvironment && isWindows) {
|
|
165
|
+
return undefined;
|
|
166
|
+
}
|
|
167
|
+
const content = await fetchFileContents(env['HOME'], '.bash_history', false, fileService, remoteAgentService);
|
|
168
|
+
if (content === undefined) {
|
|
169
|
+
return undefined;
|
|
170
|
+
}
|
|
171
|
+
const fileLines = content.split('\n');
|
|
172
|
+
const result = ( new Set());
|
|
173
|
+
let currentLine;
|
|
174
|
+
let currentCommand = undefined;
|
|
175
|
+
let wrapChar = undefined;
|
|
176
|
+
for (let i = 0; i < fileLines.length; i++) {
|
|
177
|
+
currentLine = fileLines[i];
|
|
178
|
+
if (currentCommand === undefined) {
|
|
179
|
+
currentCommand = currentLine;
|
|
180
|
+
}
|
|
181
|
+
else {
|
|
182
|
+
currentCommand += `\n${currentLine}`;
|
|
183
|
+
}
|
|
184
|
+
for (let c = 0; c < currentLine.length; c++) {
|
|
185
|
+
if (wrapChar) {
|
|
186
|
+
if (currentLine[c] === wrapChar) {
|
|
187
|
+
wrapChar = undefined;
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
else {
|
|
191
|
+
if (currentLine[c].match(/['"]/)) {
|
|
192
|
+
wrapChar = currentLine[c];
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
if (wrapChar === undefined) {
|
|
197
|
+
if (currentCommand.length > 0) {
|
|
198
|
+
result.add(currentCommand.trim());
|
|
199
|
+
}
|
|
200
|
+
currentCommand = undefined;
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
return ( result.values());
|
|
204
|
+
}
|
|
205
|
+
async function fetchZshHistory(accessor) {
|
|
206
|
+
const fileService = accessor.get(IFileService);
|
|
207
|
+
const remoteAgentService = accessor.get(IRemoteAgentService);
|
|
208
|
+
const remoteEnvironment = await remoteAgentService.getEnvironment();
|
|
209
|
+
if (remoteEnvironment?.os === 1 || !remoteEnvironment && isWindows) {
|
|
210
|
+
return undefined;
|
|
211
|
+
}
|
|
212
|
+
const content = await fetchFileContents(env['HOME'], '.zsh_history', false, fileService, remoteAgentService);
|
|
213
|
+
if (content === undefined) {
|
|
214
|
+
return undefined;
|
|
215
|
+
}
|
|
216
|
+
const fileLines = content.split(/\:\s\d+\:\d+;/);
|
|
217
|
+
const result = ( new Set());
|
|
218
|
+
for (let i = 0; i < fileLines.length; i++) {
|
|
219
|
+
const sanitized = fileLines[i].replace(/\\\n/g, '\n').trim();
|
|
220
|
+
if (sanitized.length > 0) {
|
|
221
|
+
result.add(sanitized);
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
return ( result.values());
|
|
225
|
+
}
|
|
226
|
+
async function fetchPwshHistory(accessor) {
|
|
227
|
+
const fileService = accessor.get(IFileService);
|
|
228
|
+
const remoteAgentService = accessor.get(IRemoteAgentService);
|
|
229
|
+
let folderPrefix;
|
|
230
|
+
let filePath;
|
|
231
|
+
const remoteEnvironment = await remoteAgentService.getEnvironment();
|
|
232
|
+
const isFileWindows = remoteEnvironment?.os === 1 || !remoteEnvironment && isWindows;
|
|
233
|
+
if (isFileWindows) {
|
|
234
|
+
folderPrefix = env['APPDATA'];
|
|
235
|
+
filePath = '\\Microsoft\\Windows\\PowerShell\\PSReadLine\\ConsoleHost_history.txt';
|
|
236
|
+
}
|
|
237
|
+
else {
|
|
238
|
+
folderPrefix = env['HOME'];
|
|
239
|
+
filePath = '.local/share/powershell/PSReadline/ConsoleHost_history.txt';
|
|
240
|
+
}
|
|
241
|
+
const content = await fetchFileContents(folderPrefix, filePath, isFileWindows, fileService, remoteAgentService);
|
|
242
|
+
if (content === undefined) {
|
|
243
|
+
return undefined;
|
|
244
|
+
}
|
|
245
|
+
const fileLines = content.split('\n');
|
|
246
|
+
const result = ( new Set());
|
|
247
|
+
let currentLine;
|
|
248
|
+
let currentCommand = undefined;
|
|
249
|
+
let wrapChar = undefined;
|
|
250
|
+
for (let i = 0; i < fileLines.length; i++) {
|
|
251
|
+
currentLine = fileLines[i];
|
|
252
|
+
if (currentCommand === undefined) {
|
|
253
|
+
currentCommand = currentLine;
|
|
254
|
+
}
|
|
255
|
+
else {
|
|
256
|
+
currentCommand += `\n${currentLine}`;
|
|
257
|
+
}
|
|
258
|
+
if (!currentLine.endsWith('`')) {
|
|
259
|
+
const sanitized = currentCommand.trim();
|
|
260
|
+
if (sanitized.length > 0) {
|
|
261
|
+
result.add(sanitized);
|
|
262
|
+
}
|
|
263
|
+
currentCommand = undefined;
|
|
264
|
+
continue;
|
|
265
|
+
}
|
|
266
|
+
for (let c = 0; c < currentLine.length; c++) {
|
|
267
|
+
if (wrapChar) {
|
|
268
|
+
if (currentLine[c] === wrapChar) {
|
|
269
|
+
wrapChar = undefined;
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
else {
|
|
273
|
+
if (currentLine[c].match(/`/)) {
|
|
274
|
+
wrapChar = currentLine[c];
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
if (!wrapChar) {
|
|
279
|
+
const sanitized = currentCommand.trim();
|
|
280
|
+
if (sanitized.length > 0) {
|
|
281
|
+
result.add(sanitized);
|
|
282
|
+
}
|
|
283
|
+
currentCommand = undefined;
|
|
284
|
+
}
|
|
285
|
+
else {
|
|
286
|
+
currentCommand = currentCommand.replace(/`$/, '');
|
|
287
|
+
wrapChar = undefined;
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
return ( result.values());
|
|
291
|
+
}
|
|
292
|
+
async function fetchFishHistory(accessor) {
|
|
293
|
+
const fileService = accessor.get(IFileService);
|
|
294
|
+
const remoteAgentService = accessor.get(IRemoteAgentService);
|
|
295
|
+
const remoteEnvironment = await remoteAgentService.getEnvironment();
|
|
296
|
+
if (remoteEnvironment?.os === 1 || !remoteEnvironment && isWindows) {
|
|
297
|
+
return undefined;
|
|
298
|
+
}
|
|
299
|
+
const overridenDataHome = env['XDG_DATA_HOME'];
|
|
300
|
+
const content = await (overridenDataHome
|
|
301
|
+
? fetchFileContents(env['XDG_DATA_HOME'], 'fish/fish_history', false, fileService, remoteAgentService)
|
|
302
|
+
: fetchFileContents(env['HOME'], '.local/share/fish/fish_history', false, fileService, remoteAgentService));
|
|
303
|
+
if (content === undefined) {
|
|
304
|
+
return undefined;
|
|
305
|
+
}
|
|
306
|
+
const result = ( new Set());
|
|
307
|
+
const cmds = ( content.split('\n')
|
|
308
|
+
.filter(x => x.startsWith('- cmd:'))
|
|
309
|
+
.map(x => x.substring(6).trimStart()));
|
|
310
|
+
for (let i = 0; i < cmds.length; i++) {
|
|
311
|
+
const sanitized = sanitizeFishHistoryCmd(cmds[i]).trim();
|
|
312
|
+
if (sanitized.length > 0) {
|
|
313
|
+
result.add(sanitized);
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
return ( result.values());
|
|
317
|
+
}
|
|
318
|
+
function sanitizeFishHistoryCmd(cmd) {
|
|
319
|
+
return repeatedReplace(/(^|[^\\])((?:\\\\)*)(\\n)/g, cmd, '$1$2\n');
|
|
320
|
+
}
|
|
321
|
+
function repeatedReplace(pattern, value, replaceValue) {
|
|
322
|
+
let last;
|
|
323
|
+
let current = value;
|
|
324
|
+
while (true) {
|
|
325
|
+
last = current;
|
|
326
|
+
current = current.replace(pattern, replaceValue);
|
|
327
|
+
if (current === last) {
|
|
328
|
+
return current;
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
async function fetchFileContents(folderPrefix, filePath, isFileWindows, fileService, remoteAgentService) {
|
|
333
|
+
if (!folderPrefix) {
|
|
334
|
+
return undefined;
|
|
335
|
+
}
|
|
336
|
+
const isRemote = !!remoteAgentService.getConnection()?.remoteAuthority;
|
|
337
|
+
const historyFileUri = ( URI.from({
|
|
338
|
+
scheme: isRemote ? Schemas.vscodeRemote : Schemas.file,
|
|
339
|
+
path: (isFileWindows ? win32.join : posix.join)(folderPrefix, filePath)
|
|
340
|
+
}));
|
|
341
|
+
let content;
|
|
342
|
+
try {
|
|
343
|
+
content = await fileService.readFile(historyFileUri);
|
|
344
|
+
}
|
|
345
|
+
catch (e) {
|
|
346
|
+
if (e instanceof FileOperationError && e.fileOperationResult === 1 ) {
|
|
347
|
+
return undefined;
|
|
348
|
+
}
|
|
349
|
+
throw e;
|
|
350
|
+
}
|
|
351
|
+
if (content === undefined) {
|
|
352
|
+
return undefined;
|
|
353
|
+
}
|
|
354
|
+
return ( content.value.toString());
|
|
355
|
+
}
|
|
356
|
+
export { TerminalPersistedHistory, clearShellFileHistory, fetchBashHistory, fetchFishHistory, fetchPwshHistory, fetchZshHistory, getCommandHistory, getDirectoryHistory, getShellFileHistory, sanitizeFishHistoryCmd };
|
|
@@ -0,0 +1,266 @@
|
|
|
1
|
+
import * as nls from 'monaco-editor/esm/vs/nls.js';
|
|
2
|
+
import { createDecorator } from 'monaco-editor/esm/vs/platform/instantiation/common/instantiation.js';
|
|
3
|
+
import { Registry } from 'monaco-editor/esm/vs/platform/registry/common/platform.js';
|
|
4
|
+
const TERMINAL_VIEW_ID = 'terminal';
|
|
5
|
+
const TERMINAL_CREATION_COMMANDS = ['workbench.action.terminal.toggleTerminal', 'workbench.action.terminal.new', 'workbench.action.togglePanel', 'workbench.action.terminal.focus'];
|
|
6
|
+
const TerminalCursorStyle = {
|
|
7
|
+
BLOCK: 'block',
|
|
8
|
+
LINE: 'line',
|
|
9
|
+
UNDERLINE: 'underline'
|
|
10
|
+
};
|
|
11
|
+
const TERMINAL_CONFIG_SECTION = 'terminal.integrated';
|
|
12
|
+
const DEFAULT_LETTER_SPACING = 0;
|
|
13
|
+
const MINIMUM_LETTER_SPACING = -5;
|
|
14
|
+
const DEFAULT_LINE_HEIGHT = 1;
|
|
15
|
+
const MINIMUM_FONT_WEIGHT = 1;
|
|
16
|
+
const MAXIMUM_FONT_WEIGHT = 1000;
|
|
17
|
+
const DEFAULT_FONT_WEIGHT = 'normal';
|
|
18
|
+
const DEFAULT_BOLD_FONT_WEIGHT = 'bold';
|
|
19
|
+
const SUGGESTIONS_FONT_WEIGHT = ['normal', 'bold', '100', '200', '300', '400', '500', '600', '700', '800', '900'];
|
|
20
|
+
const ITerminalProfileResolverService = ( createDecorator('terminalProfileResolverService'));
|
|
21
|
+
const ITerminalProfileService = ( createDecorator('terminalProfileService'));
|
|
22
|
+
const TerminalExtensions = {
|
|
23
|
+
Backend: 'workbench.contributions.terminal.processBackend'
|
|
24
|
+
};
|
|
25
|
+
class TerminalBackendRegistry {
|
|
26
|
+
constructor() {
|
|
27
|
+
this._backends = ( new Map());
|
|
28
|
+
}
|
|
29
|
+
registerTerminalBackend(backend) {
|
|
30
|
+
const key = this._sanitizeRemoteAuthority(backend.remoteAuthority);
|
|
31
|
+
if (( this._backends.has(key))) {
|
|
32
|
+
throw new Error(`A terminal backend with remote authority '${key}' was already registered.`);
|
|
33
|
+
}
|
|
34
|
+
this._backends.set(key, backend);
|
|
35
|
+
}
|
|
36
|
+
getTerminalBackend(remoteAuthority) {
|
|
37
|
+
return this._backends.get(this._sanitizeRemoteAuthority(remoteAuthority));
|
|
38
|
+
}
|
|
39
|
+
_sanitizeRemoteAuthority(remoteAuthority) {
|
|
40
|
+
return remoteAuthority?.toLowerCase() ?? '';
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
Registry.add(TerminalExtensions.Backend, ( new TerminalBackendRegistry()));
|
|
44
|
+
const DEFAULT_LOCAL_ECHO_EXCLUDE = ['vim', 'vi', 'nano', 'tmux'];
|
|
45
|
+
const DEFAULT_COMMANDS_TO_SKIP_SHELL = [
|
|
46
|
+
"workbench.action.terminal.clearSelection" ,
|
|
47
|
+
"workbench.action.terminal.clear" ,
|
|
48
|
+
"workbench.action.terminal.copyAndClearSelection" ,
|
|
49
|
+
"workbench.action.terminal.copySelection" ,
|
|
50
|
+
"workbench.action.terminal.copySelectionAsHtml" ,
|
|
51
|
+
"workbench.action.terminal.copyLastCommandOutput" ,
|
|
52
|
+
"workbench.action.terminal.deleteToLineStart" ,
|
|
53
|
+
"workbench.action.terminal.deleteWordLeft" ,
|
|
54
|
+
"workbench.action.terminal.deleteWordRight" ,
|
|
55
|
+
"workbench.action.terminal.focusFind" ,
|
|
56
|
+
"workbench.action.terminal.hideFind" ,
|
|
57
|
+
"workbench.action.terminal.findNext" ,
|
|
58
|
+
"workbench.action.terminal.findPrevious" ,
|
|
59
|
+
"workbench.action.terminal.goToRecentDirectory" ,
|
|
60
|
+
"workbench.action.terminal.toggleFindRegex" ,
|
|
61
|
+
"workbench.action.terminal.toggleFindWholeWord" ,
|
|
62
|
+
"workbench.action.terminal.toggleFindCaseSensitive" ,
|
|
63
|
+
"workbench.action.terminal.focusNextPane" ,
|
|
64
|
+
"workbench.action.terminal.focusNext" ,
|
|
65
|
+
"workbench.action.terminal.focusPreviousPane" ,
|
|
66
|
+
"workbench.action.terminal.focusPrevious" ,
|
|
67
|
+
"workbench.action.terminal.focus" ,
|
|
68
|
+
"workbench.action.terminal.sizeToContentWidth" ,
|
|
69
|
+
"workbench.action.terminal.kill" ,
|
|
70
|
+
"workbench.action.terminal.killEditor" ,
|
|
71
|
+
"workbench.action.terminal.moveToEditor" ,
|
|
72
|
+
"workbench.action.terminal.moveToLineEnd" ,
|
|
73
|
+
"workbench.action.terminal.moveToLineStart" ,
|
|
74
|
+
"workbench.action.terminal.moveToTerminalPanel" ,
|
|
75
|
+
"workbench.action.terminal.newInActiveWorkspace" ,
|
|
76
|
+
"workbench.action.terminal.new" ,
|
|
77
|
+
"workbench.action.terminal.paste" ,
|
|
78
|
+
"workbench.action.terminal.pasteSelection" ,
|
|
79
|
+
"workbench.action.terminal.resizePaneDown" ,
|
|
80
|
+
"workbench.action.terminal.resizePaneLeft" ,
|
|
81
|
+
"workbench.action.terminal.resizePaneRight" ,
|
|
82
|
+
"workbench.action.terminal.resizePaneUp" ,
|
|
83
|
+
"workbench.action.terminal.runActiveFile" ,
|
|
84
|
+
"workbench.action.terminal.runSelectedText" ,
|
|
85
|
+
"workbench.action.terminal.runRecentCommand" ,
|
|
86
|
+
"workbench.action.terminal.scrollDown" ,
|
|
87
|
+
"workbench.action.terminal.scrollDownPage" ,
|
|
88
|
+
"workbench.action.terminal.scrollToBottom" ,
|
|
89
|
+
"workbench.action.terminal.scrollToNextCommand" ,
|
|
90
|
+
"workbench.action.terminal.scrollToPreviousCommand" ,
|
|
91
|
+
"workbench.action.terminal.scrollToTop" ,
|
|
92
|
+
"workbench.action.terminal.scrollUp" ,
|
|
93
|
+
"workbench.action.terminal.scrollUpPage" ,
|
|
94
|
+
"workbench.action.terminal.sendSequence" ,
|
|
95
|
+
"workbench.action.terminal.selectAll" ,
|
|
96
|
+
"workbench.action.terminal.selectToNextCommand" ,
|
|
97
|
+
"workbench.action.terminal.selectToNextLine" ,
|
|
98
|
+
"workbench.action.terminal.selectToPreviousCommand" ,
|
|
99
|
+
"workbench.action.terminal.selectToPreviousLine" ,
|
|
100
|
+
"workbench.action.terminal.splitInActiveWorkspace" ,
|
|
101
|
+
"workbench.action.terminal.split" ,
|
|
102
|
+
"workbench.action.terminal.toggleTerminal" ,
|
|
103
|
+
"workbench.action.terminal.selectPrevSuggestion" ,
|
|
104
|
+
"workbench.action.terminal.selectPrevPageSuggestion" ,
|
|
105
|
+
"workbench.action.terminal.selectNextSuggestion" ,
|
|
106
|
+
"workbench.action.terminal.selectNextPageSuggestion" ,
|
|
107
|
+
"workbench.action.terminal.acceptSelectedSuggestion" ,
|
|
108
|
+
"workbench.action.terminal.hideSuggestWidget" ,
|
|
109
|
+
"workbench.action.terminal.showAccessibilityHelp" ,
|
|
110
|
+
"workbench.action.terminal.focusHover" ,
|
|
111
|
+
'editor.action.toggleTabFocusMode',
|
|
112
|
+
'notifications.hideList',
|
|
113
|
+
'notifications.hideToasts',
|
|
114
|
+
'workbench.action.closeQuickOpen',
|
|
115
|
+
'workbench.action.quickOpen',
|
|
116
|
+
'workbench.action.quickOpenPreviousEditor',
|
|
117
|
+
'workbench.action.showCommands',
|
|
118
|
+
'workbench.action.tasks.build',
|
|
119
|
+
'workbench.action.tasks.restartTask',
|
|
120
|
+
'workbench.action.tasks.runTask',
|
|
121
|
+
'workbench.action.tasks.reRunTask',
|
|
122
|
+
'workbench.action.tasks.showLog',
|
|
123
|
+
'workbench.action.tasks.showTasks',
|
|
124
|
+
'workbench.action.tasks.terminate',
|
|
125
|
+
'workbench.action.tasks.test',
|
|
126
|
+
'workbench.action.toggleFullScreen',
|
|
127
|
+
'workbench.action.terminal.focusAtIndex1',
|
|
128
|
+
'workbench.action.terminal.focusAtIndex2',
|
|
129
|
+
'workbench.action.terminal.focusAtIndex3',
|
|
130
|
+
'workbench.action.terminal.focusAtIndex4',
|
|
131
|
+
'workbench.action.terminal.focusAtIndex5',
|
|
132
|
+
'workbench.action.terminal.focusAtIndex6',
|
|
133
|
+
'workbench.action.terminal.focusAtIndex7',
|
|
134
|
+
'workbench.action.terminal.focusAtIndex8',
|
|
135
|
+
'workbench.action.terminal.focusAtIndex9',
|
|
136
|
+
'workbench.action.focusSecondEditorGroup',
|
|
137
|
+
'workbench.action.focusThirdEditorGroup',
|
|
138
|
+
'workbench.action.focusFourthEditorGroup',
|
|
139
|
+
'workbench.action.focusFifthEditorGroup',
|
|
140
|
+
'workbench.action.focusSixthEditorGroup',
|
|
141
|
+
'workbench.action.focusSeventhEditorGroup',
|
|
142
|
+
'workbench.action.focusEighthEditorGroup',
|
|
143
|
+
'workbench.action.focusNextPart',
|
|
144
|
+
'workbench.action.focusPreviousPart',
|
|
145
|
+
'workbench.action.nextPanelView',
|
|
146
|
+
'workbench.action.previousPanelView',
|
|
147
|
+
'workbench.action.nextSideBarView',
|
|
148
|
+
'workbench.action.previousSideBarView',
|
|
149
|
+
'workbench.action.debug.start',
|
|
150
|
+
'workbench.action.debug.stop',
|
|
151
|
+
'workbench.action.debug.run',
|
|
152
|
+
'workbench.action.debug.restart',
|
|
153
|
+
'workbench.action.debug.continue',
|
|
154
|
+
'workbench.action.debug.pause',
|
|
155
|
+
'workbench.action.debug.stepInto',
|
|
156
|
+
'workbench.action.debug.stepOut',
|
|
157
|
+
'workbench.action.debug.stepOver',
|
|
158
|
+
'workbench.action.nextEditor',
|
|
159
|
+
'workbench.action.previousEditor',
|
|
160
|
+
'workbench.action.nextEditorInGroup',
|
|
161
|
+
'workbench.action.previousEditorInGroup',
|
|
162
|
+
'workbench.action.openNextRecentlyUsedEditor',
|
|
163
|
+
'workbench.action.openPreviousRecentlyUsedEditor',
|
|
164
|
+
'workbench.action.openNextRecentlyUsedEditorInGroup',
|
|
165
|
+
'workbench.action.openPreviousRecentlyUsedEditorInGroup',
|
|
166
|
+
'workbench.action.quickOpenPreviousRecentlyUsedEditor',
|
|
167
|
+
'workbench.action.quickOpenLeastRecentlyUsedEditor',
|
|
168
|
+
'workbench.action.quickOpenPreviousRecentlyUsedEditorInGroup',
|
|
169
|
+
'workbench.action.quickOpenLeastRecentlyUsedEditorInGroup',
|
|
170
|
+
'workbench.action.focusActiveEditorGroup',
|
|
171
|
+
'workbench.action.focusFirstEditorGroup',
|
|
172
|
+
'workbench.action.focusLastEditorGroup',
|
|
173
|
+
'workbench.action.firstEditorInGroup',
|
|
174
|
+
'workbench.action.lastEditorInGroup',
|
|
175
|
+
'workbench.action.navigateUp',
|
|
176
|
+
'workbench.action.navigateDown',
|
|
177
|
+
'workbench.action.navigateRight',
|
|
178
|
+
'workbench.action.navigateLeft',
|
|
179
|
+
'workbench.action.togglePanel',
|
|
180
|
+
'workbench.action.quickOpenView',
|
|
181
|
+
'workbench.action.toggleMaximizedPanel',
|
|
182
|
+
'notification.acceptPrimaryAction',
|
|
183
|
+
'runCommands'
|
|
184
|
+
];
|
|
185
|
+
const terminalContributionsDescriptor = {
|
|
186
|
+
extensionPoint: 'terminal',
|
|
187
|
+
defaultExtensionKind: ['workspace'],
|
|
188
|
+
activationEventsGenerator: (contribs, result) => {
|
|
189
|
+
for (const contrib of contribs) {
|
|
190
|
+
for (const profileContrib of (contrib.profiles ?? [])) {
|
|
191
|
+
result.push(`onTerminalProfile:${profileContrib.id}`);
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
},
|
|
195
|
+
jsonSchema: {
|
|
196
|
+
description: ( nls.localize(
|
|
197
|
+
'vscode.extension.contributes.terminal',
|
|
198
|
+
'Contributes terminal functionality.'
|
|
199
|
+
)),
|
|
200
|
+
type: 'object',
|
|
201
|
+
properties: {
|
|
202
|
+
profiles: {
|
|
203
|
+
type: 'array',
|
|
204
|
+
description: ( nls.localize(
|
|
205
|
+
'vscode.extension.contributes.terminal.profiles',
|
|
206
|
+
"Defines additional terminal profiles that the user can create."
|
|
207
|
+
)),
|
|
208
|
+
items: {
|
|
209
|
+
type: 'object',
|
|
210
|
+
required: ['id', 'title'],
|
|
211
|
+
defaultSnippets: [{
|
|
212
|
+
body: {
|
|
213
|
+
id: '$1',
|
|
214
|
+
title: '$2'
|
|
215
|
+
}
|
|
216
|
+
}],
|
|
217
|
+
properties: {
|
|
218
|
+
id: {
|
|
219
|
+
description: ( nls.localize(
|
|
220
|
+
'vscode.extension.contributes.terminal.profiles.id',
|
|
221
|
+
"The ID of the terminal profile provider."
|
|
222
|
+
)),
|
|
223
|
+
type: 'string',
|
|
224
|
+
},
|
|
225
|
+
title: {
|
|
226
|
+
description: ( nls.localize(
|
|
227
|
+
'vscode.extension.contributes.terminal.profiles.title',
|
|
228
|
+
"Title for this terminal profile."
|
|
229
|
+
)),
|
|
230
|
+
type: 'string',
|
|
231
|
+
},
|
|
232
|
+
icon: {
|
|
233
|
+
description: ( nls.localize(
|
|
234
|
+
'vscode.extension.contributes.terminal.types.icon',
|
|
235
|
+
"A codicon, URI, or light and dark URIs to associate with this terminal type."
|
|
236
|
+
)),
|
|
237
|
+
anyOf: [{
|
|
238
|
+
type: 'string',
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
type: 'object',
|
|
242
|
+
properties: {
|
|
243
|
+
light: {
|
|
244
|
+
description: ( nls.localize(
|
|
245
|
+
'vscode.extension.contributes.terminal.types.icon.light',
|
|
246
|
+
'Icon path when a light theme is used'
|
|
247
|
+
)),
|
|
248
|
+
type: 'string'
|
|
249
|
+
},
|
|
250
|
+
dark: {
|
|
251
|
+
description: ( nls.localize(
|
|
252
|
+
'vscode.extension.contributes.terminal.types.icon.dark',
|
|
253
|
+
'Icon path when a dark theme is used'
|
|
254
|
+
)),
|
|
255
|
+
type: 'string'
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
}]
|
|
259
|
+
},
|
|
260
|
+
},
|
|
261
|
+
},
|
|
262
|
+
},
|
|
263
|
+
},
|
|
264
|
+
},
|
|
265
|
+
};
|
|
266
|
+
export { DEFAULT_BOLD_FONT_WEIGHT, DEFAULT_COMMANDS_TO_SKIP_SHELL, DEFAULT_FONT_WEIGHT, DEFAULT_LETTER_SPACING, DEFAULT_LINE_HEIGHT, DEFAULT_LOCAL_ECHO_EXCLUDE, ITerminalProfileResolverService, ITerminalProfileService, MAXIMUM_FONT_WEIGHT, MINIMUM_FONT_WEIGHT, MINIMUM_LETTER_SPACING, SUGGESTIONS_FONT_WEIGHT, TERMINAL_CONFIG_SECTION, TERMINAL_CREATION_COMMANDS, TERMINAL_VIEW_ID, TerminalCursorStyle, TerminalExtensions, terminalContributionsDescriptor };
|