@codingame/monaco-vscode-api 10.1.0 → 10.1.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 +27 -0
- package/package.json +8 -15
- package/vscode/src/vs/base/browser/ui/actionbar/actionViewItems.js +1 -1
- package/vscode/src/vs/base/browser/ui/dropdown/dropdownActionViewItem.js +1 -1
- package/vscode/src/vs/base/browser/ui/splitview/paneview.js +1 -1
- package/vscode/src/vs/base/browser/ui/toolbar/toolbar.js +1 -1
- package/vscode/src/vs/base/browser/ui/tree/abstractTree.js +9 -9
- package/vscode/src/vs/base/common/date.js +61 -61
- package/vscode/src/vs/editor/browser/controller/editContext/native/screenReaderSupport.js +1 -1
- package/vscode/src/vs/editor/browser/controller/editContext/screenReaderUtils.js +4 -4
- package/vscode/src/vs/editor/browser/gpu/viewGpuContext.js +1 -1
- package/vscode/src/vs/editor/browser/services/hoverService/hoverWidget.js +1 -1
- package/vscode/src/vs/editor/browser/services/hoverService/updatableHoverWidget.js +1 -1
- package/vscode/src/vs/editor/browser/widget/codeEditor/codeEditorWidget.js +2 -2
- package/vscode/src/vs/editor/browser/widget/diffEditor/commands.js +12 -12
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/accessibleDiffViewer.js +14 -14
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorEditors.js +1 -1
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditor.contribution.js +5 -5
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/hideUnchangedRegionsFeature.js +7 -7
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/movedBlocksLinesFeature.js +4 -4
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/revertButtonsFeature.js +2 -2
- package/vscode/src/vs/editor/browser/widget/diffEditor/registrations.contribution.js +5 -5
- package/vscode/src/vs/editor/browser/widget/multiDiffEditor/colors.js +3 -3
- package/vscode/src/vs/editor/browser/widget/multiDiffEditor/multiDiffEditorWidgetImpl.js +2 -2
- package/vscode/src/vs/editor/common/config/editorConfigurationSchema.js +51 -51
- package/vscode/src/vs/editor/common/core/editorColorRegistry.js +71 -71
- package/vscode/src/vs/editor/common/model/editStack.js +1 -1
- package/vscode/src/vs/editor/common/standaloneStrings.js +32 -32
- package/vscode/src/vs/editor/common/viewLayout/viewLineRenderer.js +2 -2
- package/vscode/src/vs/editor/contrib/anchorSelect/browser/anchorSelect.js +6 -6
- package/vscode/src/vs/editor/contrib/bracketMatching/browser/bracketMatching.js +6 -6
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionCommands.js +28 -28
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionController.js +3 -3
- package/vscode/src/vs/editor/contrib/codeAction/browser/lightBulbWidget.js +9 -9
- package/vscode/src/vs/editor/contrib/colorPicker/browser/hoverColorPicker/hoverColorPickerParticipant.js +1 -1
- package/vscode/src/vs/editor/contrib/colorPicker/browser/standaloneColorPicker/standaloneColorPickerActions.js +7 -7
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/copyPasteController.js +7 -7
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/defaultProviders.js +8 -8
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/dropIntoEditorController.js +3 -3
- package/vscode/src/vs/editor/contrib/editorState/browser/keybindingCancellation.js +1 -1
- package/vscode/src/vs/editor/contrib/find/browser/findWidget.js +27 -27
- package/vscode/src/vs/editor/contrib/gotoError/browser/gotoErrorWidget.js +14 -14
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/referencesModel.js +8 -8
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/symbolNavigation.js +3 -3
- package/vscode/src/vs/editor/contrib/hover/browser/hoverAccessibleViews.js +2 -2
- package/vscode/src/vs/editor/contrib/hover/browser/hoverActions.js +23 -23
- package/vscode/src/vs/editor/contrib/hover/browser/markdownHoverParticipant.js +9 -9
- package/vscode/src/vs/editor/contrib/hover/browser/markerHoverParticipant.js +5 -5
- package/vscode/src/vs/editor/contrib/inlayHints/browser/inlayHintsHover.js +8 -8
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/commands.js +14 -14
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionsController.js +1 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hintsWidget/hoverParticipant.js +2 -2
- package/vscode/src/vs/editor/contrib/message/browser/messageController.js +1 -1
- package/vscode/src/vs/editor/contrib/parameterHints/browser/parameterHintsWidget.js +4 -4
- package/vscode/src/vs/editor/contrib/peekView/browser/peekView.js +17 -17
- package/vscode/src/vs/editor/contrib/quickAccess/browser/gotoLineQuickAccess.js +5 -5
- package/vscode/src/vs/editor/contrib/quickAccess/browser/gotoSymbolQuickAccess.js +32 -32
- package/vscode/src/vs/editor/contrib/rename/browser/renameWidget.js +6 -6
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollActions.js +11 -11
- package/vscode/src/vs/editor/contrib/suggest/browser/suggest.js +8 -8
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidget.js +16 -16
- package/vscode/src/vs/editor/contrib/toggleTabFocusMode/browser/toggleTabFocusMode.js +4 -4
- package/vscode/src/vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter.js +24 -24
- package/vscode/src/vs/editor/contrib/wordHighlighter/browser/highlightDecorations.js +9 -9
- package/vscode/src/vs/platform/accessibilitySignal/browser/accessibilitySignalService.js +49 -49
- package/vscode/src/vs/platform/actions/browser/menuEntryActionViewItem.js +5 -5
- package/vscode/src/vs/platform/actions/browser/toolbar.js +2 -2
- package/vscode/src/vs/platform/actions/common/menuResetAction.js +1 -1
- package/vscode/src/vs/platform/actions/common/menuService.js +2 -2
- package/vscode/src/vs/platform/contextkey/browser/contextKeyService.js +1 -1
- package/vscode/src/vs/platform/contextkey/common/contextkey.js +11 -11
- package/vscode/src/vs/platform/contextkey/common/contextkeys.js +9 -9
- package/vscode/src/vs/platform/dialogs/common/dialogs.js +9 -9
- package/vscode/src/vs/platform/dnd/browser/dnd.js +1 -1
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.js +2 -2
- package/vscode/src/vs/platform/keybinding/common/abstractKeybindingService.js +4 -4
- package/vscode/src/vs/platform/list/browser/listService.js +27 -27
- package/vscode/src/vs/platform/markers/common/markers.js +3 -3
- package/vscode/src/vs/platform/quickinput/browser/quickInput.js +8 -8
- package/vscode/src/vs/platform/quickinput/browser/quickInputController.js +6 -6
- package/vscode/src/vs/platform/request/common/request.js +14 -14
- package/vscode/src/vs/platform/theme/common/colors/baseColors.js +17 -17
- package/vscode/src/vs/platform/theme/common/colors/chartsColors.js +8 -8
- package/vscode/src/vs/platform/theme/common/iconRegistry.js +5 -5
- package/vscode/src/vs/platform/theme/common/tokenClassificationRegistry.js +42 -42
- package/vscode/src/vs/platform/undoRedo/common/undoRedoService.js +20 -20
- package/vscode/src/vs/platform/userDataSync/common/userDataSync.js +5 -5
- package/vscode/src/vs/platform/workspace/common/workspace.js +1 -1
- package/vscode/src/vs/workbench/browser/actions/layoutActions.js +129 -129
- package/vscode/src/vs/workbench/browser/actions/windowActions.js +25 -25
- package/vscode/src/vs/workbench/browser/actions/workspaceActions.js +21 -21
- package/vscode/src/vs/workbench/browser/actions/workspaceCommands.js +4 -4
- package/vscode/src/vs/workbench/browser/editor.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbs.js +41 -41
- package/vscode/src/vs/workbench/browser/parts/editor/editorCommands.js +16 -16
- package/vscode/src/vs/workbench/browser/parts/editor/editorTabsControl.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/globalCompositeBar.js +15 -15
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsActions.js +17 -17
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsAlerts.js +3 -3
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsCenter.js +6 -6
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsCommands.js +9 -9
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsList.js +6 -6
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsStatus.js +13 -13
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsToasts.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/titlebar/menubarControl.js +18 -18
- package/vscode/src/vs/workbench/browser/parts/titlebar/windowTitle.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/views/viewFilter.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/views/viewPane.js +4 -4
- package/vscode/src/vs/workbench/browser/parts/views/viewPaneContainer.js +6 -6
- package/vscode/src/vs/workbench/browser/quickaccess.js +1 -1
- package/vscode/src/vs/workbench/browser/workbench.contribution.js +217 -217
- package/vscode/src/vs/workbench/common/contextkeys.js +70 -70
- package/vscode/src/vs/workbench/common/editor/diffEditorInput.js +1 -1
- package/vscode/src/vs/workbench/common/editor/sideBySideEditorInput.js +1 -1
- package/vscode/src/vs/workbench/common/views.js +4 -4
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.js +131 -131
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatActions.js +17 -18
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatConstants.js +5 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatExecuteActions.js +7 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatTitleActions.js +8 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/chat.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatAccessibilityProvider.js +9 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/chatAgentHover.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatAttachmentsContentPart.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatCodeCitationContentPart.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatCommandContentPart.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatConfirmationContentPart.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatReferencesContentPart.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatTextEditContentPart.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatToolInvocationPart.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatTreeContentPart.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDragAndDrop.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditingService.js +13 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditorInput.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatFollowups.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatImagePaste.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatInlineAnchorWidget.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/chatInputPart.js +12 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/chatListRenderer.js +12 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/chatWidget.js +3 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/codeBlockPart.js +15 -15
- package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatDynamicVariables.js +4 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatDynamicVariablesConstant.js +2 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatInputCompletions.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatColors.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/common/chatContextKeys.js +21 -21
- package/vscode/src/vs/workbench/contrib/chat/common/chatModel.js +3 -3
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/dictation/editorDictation.js +4 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/find/simpleFindWidget.js +10 -10
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/inspectEditorTokens/inspectEditorTokens.js +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/quickaccess/gotoSymbolQuickAccess.js +6 -6
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/saveParticipants.js +4 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMinimap.js +2 -2
- package/vscode/src/vs/workbench/contrib/comments/browser/commentReply.js +4 -4
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsAccessibility.js +12 -12
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsController.js +5 -5
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsModel.js +1 -1
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsTreeViewer.js +9 -9
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsView.js +13 -13
- package/vscode/src/vs/workbench/contrib/comments/common/commentContextKeys.js +10 -10
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointEditorContribution.js +29 -29
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointsView.js +65 -65
- package/vscode/src/vs/workbench/contrib/debug/browser/callStackEditorContribution.js +2 -2
- package/vscode/src/vs/workbench/contrib/debug/browser/debugColors.js +12 -12
- package/vscode/src/vs/workbench/contrib/debug/browser/debugCommands.js +34 -34
- package/vscode/src/vs/workbench/contrib/debug/browser/debugIcons.js +57 -57
- package/vscode/src/vs/workbench/contrib/debug/browser/debugSessionPicker.js +3 -3
- package/vscode/src/vs/workbench/contrib/debug/common/debugModel.js +6 -6
- package/vscode/src/vs/workbench/contrib/debug/common/debugSource.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/common/disassemblyViewInput.js +2 -2
- package/vscode/src/vs/workbench/contrib/debug/common/loadedScriptsPicker.js +1 -1
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsActions.js +173 -173
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsIcons.js +24 -24
- package/vscode/src/vs/workbench/contrib/extensions/common/extensionsFileTemplate.js +5 -5
- package/vscode/src/vs/workbench/contrib/extensions/common/extensionsInput.js +2 -2
- package/vscode/src/vs/workbench/contrib/extensions/common/extensionsUtils.js +3 -3
- package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileSaveErrorHandler.js +18 -18
- package/vscode/src/vs/workbench/contrib/files/browser/explorerViewlet.js +14 -14
- package/vscode/src/vs/workbench/contrib/files/browser/fileActions.js +84 -84
- package/vscode/src/vs/workbench/contrib/files/browser/fileConstants.js +6 -6
- package/vscode/src/vs/workbench/contrib/files/browser/fileImportExport.js +33 -33
- package/vscode/src/vs/workbench/contrib/files/browser/files.contribution._editorPane.js +2 -2
- package/vscode/src/vs/workbench/contrib/files/browser/views/emptyView.js +1 -1
- package/vscode/src/vs/workbench/contrib/files/browser/views/explorerView.js +8 -8
- package/vscode/src/vs/workbench/contrib/files/browser/views/openEditorsView.js +7 -7
- package/vscode/src/vs/workbench/contrib/files/common/files.js +14 -14
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatActions.js +19 -19
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatController.js +6 -6
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatZoneWidget.js +1 -1
- package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChat.js +41 -41
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInput.js +1 -1
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel.js +29 -29
- package/vscode/src/vs/workbench/contrib/mergeEditor/common/mergeEditor.js +8 -8
- package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/multiDiffEditorInput.js +2 -2
- package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/scmMultiDiffSourceResolver.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/executionStatusBarItemController.js +6 -6
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindWidget.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOperations.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOutputActions.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebookChatContext.js +5 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebookChatController.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/coreActions.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/foldingController.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditor.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditorBrowser.js +5 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffList.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookMultiDiffEditor.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibilityProvider.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditor.js +8 -8
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditorWidget.js +24 -24
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookIcons.js +28 -28
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellEditorOptions.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCell.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCellRunToolbar.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/collapsedCellOutput.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/foldedCellHint.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/markupCell.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/backLayerWebView.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/cellRenderer.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookKernelQuickPickStrategy.js +15 -15
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookKernelView.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorInput.js +2 -2
- package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesIcons.js +12 -12
- package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesWidgets.js +10 -10
- package/vscode/src/vs/workbench/contrib/preferences/browser/settingsLayout.js +50 -50
- package/vscode/src/vs/workbench/contrib/scm/browser/dirtyDiffSwitcher.js +2 -2
- package/vscode/src/vs/workbench/contrib/scm/browser/dirtydiffDecorator.js +23 -23
- package/vscode/src/vs/workbench/contrib/search/browser/anythingQuickAccess.js +5 -1
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsFind.js +10 -10
- package/vscode/src/vs/workbench/contrib/snippets/browser/commands/fileTemplateSnippets.js +2 -2
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetCompletionProvider.js +3 -3
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsFile.js +3 -3
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsService.js +9 -9
- package/vscode/src/vs/workbench/contrib/speech/common/speechService.js +29 -29
- package/vscode/src/vs/workbench/contrib/tasks/common/taskDefinitionRegistry.js +5 -5
- package/vscode/src/vs/workbench/contrib/tasks/common/taskService.js +5 -5
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalEditorInput.js +4 -4
- package/vscode/src/vs/workbench/contrib/terminal/common/terminal.js +7 -7
- package/vscode/src/vs/workbench/contrib/terminal/common/terminalContextKey.js +16 -16
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatControllerHolder.js +5 -0
- package/vscode/src/vs/workbench/contrib/testing/common/testResult.js +2 -2
- package/vscode/src/vs/workbench/contrib/url/browser/trustedDomains.js +6 -6
- package/vscode/src/vs/workbench/contrib/webview/browser/webview.contribution.js +3 -3
- package/vscode/src/vs/workbench/contrib/workspace/common/workspace.js +2 -2
- package/vscode/src/vs/workbench/services/activity/common/activity.js +4 -4
- package/vscode/src/vs/workbench/services/authentication/browser/authenticationService.js +3 -3
- package/vscode/src/vs/workbench/services/auxiliaryWindow/browser/auxiliaryWindowService.js +5 -5
- package/vscode/src/vs/workbench/services/editor/common/editorResolverService.js +1 -1
- package/vscode/src/vs/workbench/services/extensionManagement/common/extensionManagement.js +1 -1
- package/vscode/src/vs/workbench/services/language/common/languageService.js +28 -28
- package/vscode/src/vs/workbench/services/preferences/browser/keybindingsEditorInput.js +2 -2
- package/vscode/src/vs/workbench/services/preferences/browser/keybindingsEditorModel.js +7 -7
- package/vscode/src/vs/workbench/services/preferences/common/preferencesEditorInput.js +2 -2
- package/vscode/src/vs/workbench/services/textMate/common/TMGrammars.js +9 -9
- package/vscode/src/vs/workbench/services/textfile/common/textFileEditorModel.js +3 -3
- package/vscode/src/vs/workbench/services/themes/common/colorThemeData.js +8 -8
- package/vscode/src/vs/workbench/services/userDataProfile/common/userDataProfile.js +3 -3
- package/vscode/src/vs/workbench/services/views/browser/viewsService.js +7 -7
- package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopy.js +17 -17
- package/vscode/src/vs/base/common/processes.js +0 -25
- package/vscode/src/vs/platform/terminal/common/capabilities/bufferMarkCapability.js +0 -41
- package/vscode/src/vs/platform/terminal/common/capabilities/commandDetection/promptInputModel.js +0 -345
- package/vscode/src/vs/platform/terminal/common/capabilities/commandDetection/terminalCommand.js +0 -296
- package/vscode/src/vs/platform/terminal/common/capabilities/commandDetectionCapability.js +0 -761
- package/vscode/src/vs/platform/terminal/common/capabilities/cwdDetectionCapability.js +0 -29
- package/vscode/src/vs/platform/terminal/common/capabilities/naiveCwdDetectionCapability.js +0 -22
- package/vscode/src/vs/platform/terminal/common/capabilities/partialCommandDetectionCapability.js +0 -48
- package/vscode/src/vs/platform/terminal/common/capabilities/terminalCapabilityStore.js +0 -94
- package/vscode/src/vs/platform/terminal/common/environmentVariable.js +0 -7
- package/vscode/src/vs/platform/terminal/common/environmentVariableCollection.js +0 -196
- package/vscode/src/vs/platform/terminal/common/terminalEnvironment.js +0 -40
- package/vscode/src/vs/platform/terminal/common/terminalProfiles.js +0 -107
- package/vscode/src/vs/platform/terminal/common/terminalRecorder.js +0 -67
- package/vscode/src/vs/platform/terminal/common/xterm/shellIntegrationAddon.js +0 -346
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQuickInputActions.js +0 -167
- package/vscode/src/vs/workbench/contrib/terminal/browser/environmentVariableInfo.js +0 -119
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalActions.js +0 -1770
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalContextMenu.js +0 -40
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalExtensions.js +0 -25
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalIconPicker.js +0 -72
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalIcons.js +0 -16
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalInstance.js +0 -2218
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalProcessManager.js +0 -628
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalQuickAccess.js +0 -143
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalResizeDebouncer.js +0 -61
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalRunRecentQuickPick.js +0 -315
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalStatusList.js +0 -121
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalUri.js +0 -39
- package/vscode/src/vs/workbench/contrib/terminal/browser/widgets/widgetManager.js +0 -36
- package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/decorationAddon.js +0 -498
- package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/decorationStyles.js +0 -123
- package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/lineDataEventAddon.js +0 -55
- package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/markNavigationAddon.js +0 -571
- package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/xtermTerminal.js +0 -732
- package/vscode/src/vs/workbench/contrib/terminal/common/history.js +0 -378
- package/vscode/src/vs/workbench/contrib/terminal/common/terminalClipboard.js +0 -80
- package/vscode/src/vs/workbench/contrib/terminal/common/terminalEnvironment.js +0 -282
- package/vscode/src/vs/workbench/contrib/terminal/common/terminalStrings.js +0 -36
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/media/terminalChatWidget.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChat.js +0 -46
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatController.js +0 -303
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatWidget.js +0 -203
- package/vscode/src/vs/workbench/contrib/terminalContrib/stickyScroll/browser/media/stickyScroll.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/terminalContrib/stickyScroll/browser/terminalStickyScrollColorRegistry.js +0 -22
- package/vscode/src/vs/workbench/contrib/terminalContrib/stickyScroll/browser/terminalStickyScrollContribution.js +0 -97
- package/vscode/src/vs/workbench/contrib/terminalContrib/stickyScroll/browser/terminalStickyScrollOverlay.js +0 -372
|
@@ -1,346 +0,0 @@
|
|
|
1
|
-
import { Disposable, toDisposable, dispose } from '../../../../base/common/lifecycle.js';
|
|
2
|
-
import { TerminalCapabilityStore } from '../capabilities/terminalCapabilityStore.js';
|
|
3
|
-
import { CommandDetectionCapability } from '../capabilities/commandDetectionCapability.js';
|
|
4
|
-
import { CwdDetectionCapability } from '../capabilities/cwdDetectionCapability.js';
|
|
5
|
-
import { PartialCommandDetectionCapability } from '../capabilities/partialCommandDetectionCapability.js';
|
|
6
|
-
import { Emitter } from '../../../../base/common/event.js';
|
|
7
|
-
import { BufferMarkCapability } from '../capabilities/bufferMarkCapability.js';
|
|
8
|
-
import { URI } from '../../../../base/common/uri.js';
|
|
9
|
-
import { sanitizeCwd } from '../terminalEnvironment.js';
|
|
10
|
-
import { removeAnsiEscapeCodesFromPrompt } from '../../../../base/common/strings.js';
|
|
11
|
-
class ShellIntegrationAddon extends Disposable {
|
|
12
|
-
get status() { return this._status; }
|
|
13
|
-
constructor(_nonce, _disableTelemetry, _telemetryService, _logService) {
|
|
14
|
-
super();
|
|
15
|
-
this._nonce = _nonce;
|
|
16
|
-
this._disableTelemetry = _disableTelemetry;
|
|
17
|
-
this._telemetryService = _telemetryService;
|
|
18
|
-
this._logService = _logService;
|
|
19
|
-
this.capabilities = this._register(( new TerminalCapabilityStore()));
|
|
20
|
-
this._hasUpdatedTelemetry = false;
|
|
21
|
-
this._commonProtocolDisposables = [];
|
|
22
|
-
this._status = 0 ;
|
|
23
|
-
this._onDidChangeStatus = ( new Emitter());
|
|
24
|
-
this.onDidChangeStatus = this._onDidChangeStatus.event;
|
|
25
|
-
this._register(toDisposable(() => {
|
|
26
|
-
this._clearActivationTimeout();
|
|
27
|
-
this._disposeCommonProtocol();
|
|
28
|
-
}));
|
|
29
|
-
}
|
|
30
|
-
_disposeCommonProtocol() {
|
|
31
|
-
dispose(this._commonProtocolDisposables);
|
|
32
|
-
this._commonProtocolDisposables.length = 0;
|
|
33
|
-
}
|
|
34
|
-
activate(xterm) {
|
|
35
|
-
this._terminal = xterm;
|
|
36
|
-
this.capabilities.add(3 , this._register(( new PartialCommandDetectionCapability(this._terminal))));
|
|
37
|
-
this._register(xterm.parser.registerOscHandler(633 , data => this._handleVSCodeSequence(data)));
|
|
38
|
-
this._register(xterm.parser.registerOscHandler(1337 , data => this._doHandleITermSequence(data)));
|
|
39
|
-
this._commonProtocolDisposables.push(xterm.parser.registerOscHandler(133 , data => this._handleFinalTermSequence(data)));
|
|
40
|
-
this._register(xterm.parser.registerOscHandler(7 , data => this._doHandleSetCwd(data)));
|
|
41
|
-
this._register(xterm.parser.registerOscHandler(9 , data => this._doHandleSetWindowsFriendlyCwd(data)));
|
|
42
|
-
this._ensureCapabilitiesOrAddFailureTelemetry();
|
|
43
|
-
}
|
|
44
|
-
getMarkerId(terminal, vscodeMarkerId) {
|
|
45
|
-
this._createOrGetBufferMarkDetection(terminal).getMark(vscodeMarkerId);
|
|
46
|
-
}
|
|
47
|
-
_handleFinalTermSequence(data) {
|
|
48
|
-
const didHandle = this._doHandleFinalTermSequence(data);
|
|
49
|
-
if (this._status === 0 ) {
|
|
50
|
-
this._status = 1 ;
|
|
51
|
-
this._onDidChangeStatus.fire(this._status);
|
|
52
|
-
}
|
|
53
|
-
return didHandle;
|
|
54
|
-
}
|
|
55
|
-
_doHandleFinalTermSequence(data) {
|
|
56
|
-
if (!this._terminal) {
|
|
57
|
-
return false;
|
|
58
|
-
}
|
|
59
|
-
const [command, ...args] = data.split(';');
|
|
60
|
-
switch (command) {
|
|
61
|
-
case "A" :
|
|
62
|
-
this._createOrGetCommandDetection(this._terminal).handlePromptStart();
|
|
63
|
-
return true;
|
|
64
|
-
case "B" :
|
|
65
|
-
this._createOrGetCommandDetection(this._terminal).handleCommandStart({ ignoreCommandLine: true });
|
|
66
|
-
return true;
|
|
67
|
-
case "C" :
|
|
68
|
-
this._createOrGetCommandDetection(this._terminal).handleCommandExecuted();
|
|
69
|
-
return true;
|
|
70
|
-
case "D" : {
|
|
71
|
-
const exitCode = args.length === 1 ? parseInt(args[0]) : undefined;
|
|
72
|
-
this._createOrGetCommandDetection(this._terminal).handleCommandFinished(exitCode);
|
|
73
|
-
return true;
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
return false;
|
|
77
|
-
}
|
|
78
|
-
_handleVSCodeSequence(data) {
|
|
79
|
-
const didHandle = this._doHandleVSCodeSequence(data);
|
|
80
|
-
if (!this._hasUpdatedTelemetry && didHandle) {
|
|
81
|
-
this._telemetryService?.publicLog2('terminal/shellIntegrationActivationSucceeded');
|
|
82
|
-
this._hasUpdatedTelemetry = true;
|
|
83
|
-
this._clearActivationTimeout();
|
|
84
|
-
}
|
|
85
|
-
if (this._status !== 2 ) {
|
|
86
|
-
this._status = 2 ;
|
|
87
|
-
this._onDidChangeStatus.fire(this._status);
|
|
88
|
-
}
|
|
89
|
-
return didHandle;
|
|
90
|
-
}
|
|
91
|
-
async _ensureCapabilitiesOrAddFailureTelemetry() {
|
|
92
|
-
if (!this._telemetryService || this._disableTelemetry) {
|
|
93
|
-
return;
|
|
94
|
-
}
|
|
95
|
-
this._activationTimeout = setTimeout(() => {
|
|
96
|
-
if (!this.capabilities.get(2 ) && !this.capabilities.get(0 )) {
|
|
97
|
-
this._telemetryService?.publicLog2('terminal/shellIntegrationActivationTimeout');
|
|
98
|
-
this._logService.warn('Shell integration failed to add capabilities within 10 seconds');
|
|
99
|
-
}
|
|
100
|
-
this._hasUpdatedTelemetry = true;
|
|
101
|
-
}, 10000);
|
|
102
|
-
}
|
|
103
|
-
_clearActivationTimeout() {
|
|
104
|
-
if (this._activationTimeout !== undefined) {
|
|
105
|
-
clearTimeout(this._activationTimeout);
|
|
106
|
-
this._activationTimeout = undefined;
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
_doHandleVSCodeSequence(data) {
|
|
110
|
-
if (!this._terminal) {
|
|
111
|
-
return false;
|
|
112
|
-
}
|
|
113
|
-
const argsIndex = data.indexOf(';');
|
|
114
|
-
const sequenceCommand = argsIndex === -1 ? data : data.substring(0, argsIndex);
|
|
115
|
-
const args = argsIndex === -1 ? [] : data.substring(argsIndex + 1).split(';');
|
|
116
|
-
switch (sequenceCommand) {
|
|
117
|
-
case "A" :
|
|
118
|
-
this._createOrGetCommandDetection(this._terminal).handlePromptStart();
|
|
119
|
-
return true;
|
|
120
|
-
case "B" :
|
|
121
|
-
this._createOrGetCommandDetection(this._terminal).handleCommandStart();
|
|
122
|
-
return true;
|
|
123
|
-
case "C" :
|
|
124
|
-
this._createOrGetCommandDetection(this._terminal).handleCommandExecuted();
|
|
125
|
-
return true;
|
|
126
|
-
case "D" : {
|
|
127
|
-
const arg0 = args[0];
|
|
128
|
-
const exitCode = arg0 !== undefined ? parseInt(arg0) : undefined;
|
|
129
|
-
this._createOrGetCommandDetection(this._terminal).handleCommandFinished(exitCode);
|
|
130
|
-
return true;
|
|
131
|
-
}
|
|
132
|
-
case "E" : {
|
|
133
|
-
const arg0 = args[0];
|
|
134
|
-
const arg1 = args[1];
|
|
135
|
-
let commandLine;
|
|
136
|
-
if (arg0 !== undefined) {
|
|
137
|
-
commandLine = deserializeMessage(arg0);
|
|
138
|
-
}
|
|
139
|
-
else {
|
|
140
|
-
commandLine = '';
|
|
141
|
-
}
|
|
142
|
-
this._createOrGetCommandDetection(this._terminal).setCommandLine(commandLine, arg1 === this._nonce);
|
|
143
|
-
return true;
|
|
144
|
-
}
|
|
145
|
-
case "F" : {
|
|
146
|
-
this._createOrGetCommandDetection(this._terminal).handleContinuationStart();
|
|
147
|
-
return true;
|
|
148
|
-
}
|
|
149
|
-
case "G" : {
|
|
150
|
-
this._createOrGetCommandDetection(this._terminal).handleContinuationEnd();
|
|
151
|
-
return true;
|
|
152
|
-
}
|
|
153
|
-
case "H" : {
|
|
154
|
-
this._createOrGetCommandDetection(this._terminal).handleRightPromptStart();
|
|
155
|
-
return true;
|
|
156
|
-
}
|
|
157
|
-
case "I" : {
|
|
158
|
-
this._createOrGetCommandDetection(this._terminal).handleRightPromptEnd();
|
|
159
|
-
return true;
|
|
160
|
-
}
|
|
161
|
-
case "P" : {
|
|
162
|
-
const arg0 = args[0];
|
|
163
|
-
const deserialized = arg0 !== undefined ? deserializeMessage(arg0) : '';
|
|
164
|
-
const { key, value } = parseKeyValueAssignment(deserialized);
|
|
165
|
-
if (value === undefined) {
|
|
166
|
-
return true;
|
|
167
|
-
}
|
|
168
|
-
switch (key) {
|
|
169
|
-
case 'ContinuationPrompt': {
|
|
170
|
-
this._updateContinuationPrompt(removeAnsiEscapeCodesFromPrompt(value));
|
|
171
|
-
return true;
|
|
172
|
-
}
|
|
173
|
-
case 'Cwd': {
|
|
174
|
-
this._updateCwd(value);
|
|
175
|
-
return true;
|
|
176
|
-
}
|
|
177
|
-
case 'IsWindows': {
|
|
178
|
-
this._createOrGetCommandDetection(this._terminal).setIsWindowsPty(value === 'True' ? true : false);
|
|
179
|
-
return true;
|
|
180
|
-
}
|
|
181
|
-
case 'Prompt': {
|
|
182
|
-
const sanitizedValue = value.replace(/\x1b\[[0-9;]*m/g, '');
|
|
183
|
-
this._updatePromptTerminator(sanitizedValue);
|
|
184
|
-
return true;
|
|
185
|
-
}
|
|
186
|
-
case 'Task': {
|
|
187
|
-
this._createOrGetBufferMarkDetection(this._terminal);
|
|
188
|
-
this.capabilities.get(2 )?.setIsCommandStorageDisabled();
|
|
189
|
-
return true;
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
case "SetMark" : {
|
|
194
|
-
this._createOrGetBufferMarkDetection(this._terminal).addMark(parseMarkSequence(args));
|
|
195
|
-
return true;
|
|
196
|
-
}
|
|
197
|
-
}
|
|
198
|
-
return false;
|
|
199
|
-
}
|
|
200
|
-
_updateContinuationPrompt(value) {
|
|
201
|
-
if (!this._terminal) {
|
|
202
|
-
return;
|
|
203
|
-
}
|
|
204
|
-
this._createOrGetCommandDetection(this._terminal).setContinuationPrompt(value);
|
|
205
|
-
}
|
|
206
|
-
_updatePromptTerminator(prompt) {
|
|
207
|
-
if (!this._terminal) {
|
|
208
|
-
return;
|
|
209
|
-
}
|
|
210
|
-
const lastPromptLine = prompt.substring(prompt.lastIndexOf('\n') + 1);
|
|
211
|
-
const promptTerminator = lastPromptLine.substring(lastPromptLine.lastIndexOf(' '));
|
|
212
|
-
if (promptTerminator) {
|
|
213
|
-
this._createOrGetCommandDetection(this._terminal).setPromptTerminator(promptTerminator, lastPromptLine);
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
_updateCwd(value) {
|
|
217
|
-
value = sanitizeCwd(value);
|
|
218
|
-
this._createOrGetCwdDetection().updateCwd(value);
|
|
219
|
-
const commandDetection = this.capabilities.get(2 );
|
|
220
|
-
commandDetection?.setCwd(value);
|
|
221
|
-
}
|
|
222
|
-
_doHandleITermSequence(data) {
|
|
223
|
-
if (!this._terminal) {
|
|
224
|
-
return false;
|
|
225
|
-
}
|
|
226
|
-
const [command] = data.split(';');
|
|
227
|
-
switch (command) {
|
|
228
|
-
case "SetMark" : {
|
|
229
|
-
this._createOrGetBufferMarkDetection(this._terminal).addMark();
|
|
230
|
-
}
|
|
231
|
-
default: {
|
|
232
|
-
const { key, value } = parseKeyValueAssignment(command);
|
|
233
|
-
if (value === undefined) {
|
|
234
|
-
return true;
|
|
235
|
-
}
|
|
236
|
-
switch (key) {
|
|
237
|
-
case "CurrentDir" :
|
|
238
|
-
this._updateCwd(value);
|
|
239
|
-
return true;
|
|
240
|
-
}
|
|
241
|
-
}
|
|
242
|
-
}
|
|
243
|
-
return false;
|
|
244
|
-
}
|
|
245
|
-
_doHandleSetWindowsFriendlyCwd(data) {
|
|
246
|
-
if (!this._terminal) {
|
|
247
|
-
return false;
|
|
248
|
-
}
|
|
249
|
-
const [command, ...args] = data.split(';');
|
|
250
|
-
switch (command) {
|
|
251
|
-
case '9':
|
|
252
|
-
if (args.length) {
|
|
253
|
-
this._updateCwd(args[0]);
|
|
254
|
-
}
|
|
255
|
-
return true;
|
|
256
|
-
}
|
|
257
|
-
return false;
|
|
258
|
-
}
|
|
259
|
-
_doHandleSetCwd(data) {
|
|
260
|
-
if (!this._terminal) {
|
|
261
|
-
return false;
|
|
262
|
-
}
|
|
263
|
-
const [command] = data.split(';');
|
|
264
|
-
if (command.match(/^file:\/\/.*\//)) {
|
|
265
|
-
const uri = ( URI.parse(command));
|
|
266
|
-
if (uri.path && uri.path.length > 0) {
|
|
267
|
-
this._updateCwd(uri.path);
|
|
268
|
-
return true;
|
|
269
|
-
}
|
|
270
|
-
}
|
|
271
|
-
return false;
|
|
272
|
-
}
|
|
273
|
-
serialize() {
|
|
274
|
-
if (!this._terminal || !( this.capabilities.has(2 ))) {
|
|
275
|
-
return {
|
|
276
|
-
isWindowsPty: false,
|
|
277
|
-
commands: [],
|
|
278
|
-
promptInputModel: undefined,
|
|
279
|
-
};
|
|
280
|
-
}
|
|
281
|
-
const result = this._createOrGetCommandDetection(this._terminal).serialize();
|
|
282
|
-
return result;
|
|
283
|
-
}
|
|
284
|
-
deserialize(serialized) {
|
|
285
|
-
if (!this._terminal) {
|
|
286
|
-
throw ( new Error('Cannot restore commands before addon is activated'));
|
|
287
|
-
}
|
|
288
|
-
this._createOrGetCommandDetection(this._terminal).deserialize(serialized);
|
|
289
|
-
}
|
|
290
|
-
_createOrGetCwdDetection() {
|
|
291
|
-
let cwdDetection = this.capabilities.get(0 );
|
|
292
|
-
if (!cwdDetection) {
|
|
293
|
-
cwdDetection = this._register(( new CwdDetectionCapability()));
|
|
294
|
-
this.capabilities.add(0 , cwdDetection);
|
|
295
|
-
}
|
|
296
|
-
return cwdDetection;
|
|
297
|
-
}
|
|
298
|
-
_createOrGetCommandDetection(terminal) {
|
|
299
|
-
let commandDetection = this.capabilities.get(2 );
|
|
300
|
-
if (!commandDetection) {
|
|
301
|
-
commandDetection = this._register(( new CommandDetectionCapability(terminal, this._logService)));
|
|
302
|
-
this.capabilities.add(2 , commandDetection);
|
|
303
|
-
}
|
|
304
|
-
return commandDetection;
|
|
305
|
-
}
|
|
306
|
-
_createOrGetBufferMarkDetection(terminal) {
|
|
307
|
-
let bufferMarkDetection = this.capabilities.get(4 );
|
|
308
|
-
if (!bufferMarkDetection) {
|
|
309
|
-
bufferMarkDetection = this._register(( new BufferMarkCapability(terminal)));
|
|
310
|
-
this.capabilities.add(4 , bufferMarkDetection);
|
|
311
|
-
}
|
|
312
|
-
return bufferMarkDetection;
|
|
313
|
-
}
|
|
314
|
-
}
|
|
315
|
-
function deserializeMessage(message) {
|
|
316
|
-
return message.replaceAll(
|
|
317
|
-
/\\(\\|x([0-9a-f]{2}))/gi,
|
|
318
|
-
(_match, op, hex) => hex ? String.fromCharCode(parseInt(hex, 16)) : op);
|
|
319
|
-
}
|
|
320
|
-
function parseKeyValueAssignment(message) {
|
|
321
|
-
const separatorIndex = message.indexOf('=');
|
|
322
|
-
if (separatorIndex === -1) {
|
|
323
|
-
return { key: message, value: undefined };
|
|
324
|
-
}
|
|
325
|
-
return {
|
|
326
|
-
key: message.substring(0, separatorIndex),
|
|
327
|
-
value: message.substring(1 + separatorIndex)
|
|
328
|
-
};
|
|
329
|
-
}
|
|
330
|
-
function parseMarkSequence(sequence) {
|
|
331
|
-
let id = undefined;
|
|
332
|
-
let hidden = false;
|
|
333
|
-
for (const property of sequence) {
|
|
334
|
-
if (property === undefined) {
|
|
335
|
-
continue;
|
|
336
|
-
}
|
|
337
|
-
if (property === 'Hidden') {
|
|
338
|
-
hidden = true;
|
|
339
|
-
}
|
|
340
|
-
if (property.startsWith('Id=')) {
|
|
341
|
-
id = property.substring(3);
|
|
342
|
-
}
|
|
343
|
-
}
|
|
344
|
-
return { id, hidden };
|
|
345
|
-
}
|
|
346
|
-
export { ShellIntegrationAddon, deserializeMessage, parseKeyValueAssignment, parseMarkSequence };
|
|
@@ -1,167 +0,0 @@
|
|
|
1
|
-
import { Codicon } from '../../../../../base/common/codicons.js';
|
|
2
|
-
import { ICodeEditorService } from '../../../../../editor/browser/services/codeEditorService.js';
|
|
3
|
-
import { Selection } from '../../../../../editor/common/core/selection.js';
|
|
4
|
-
import { localize2, localize } from '../../../../../nls.js';
|
|
5
|
-
import { registerAction2, Action2, MenuId } from '../../../../../platform/actions/common/actions.js';
|
|
6
|
-
import { CHAT_CATEGORY } from './chatActions.js';
|
|
7
|
-
import { IQuickChatService } from '../chat.service.js';
|
|
8
|
-
import { CONTEXT_CHAT_ENABLED } from '../../common/chatContextKeys.js';
|
|
9
|
-
import { InlineChatController } from '../../../inlineChat/browser/inlineChatController.js';
|
|
10
|
-
const ASK_QUICK_QUESTION_ACTION_ID = 'workbench.action.quickchat.toggle';
|
|
11
|
-
function registerQuickChatActions() {
|
|
12
|
-
registerAction2(QuickChatGlobalAction);
|
|
13
|
-
registerAction2(AskQuickChatAction);
|
|
14
|
-
registerAction2(class OpenInChatViewAction extends Action2 {
|
|
15
|
-
constructor() {
|
|
16
|
-
super({
|
|
17
|
-
id: 'workbench.action.quickchat.openInChatView',
|
|
18
|
-
title: ( localize2(4787, "Open in Chat View")),
|
|
19
|
-
f1: false,
|
|
20
|
-
category: CHAT_CATEGORY,
|
|
21
|
-
icon: Codicon.commentDiscussion,
|
|
22
|
-
menu: {
|
|
23
|
-
id: MenuId.ChatInputSide,
|
|
24
|
-
group: 'navigation',
|
|
25
|
-
order: 10
|
|
26
|
-
}
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
run(accessor) {
|
|
30
|
-
const quickChatService = accessor.get(IQuickChatService);
|
|
31
|
-
quickChatService.openInChatView();
|
|
32
|
-
}
|
|
33
|
-
});
|
|
34
|
-
registerAction2(class CloseQuickChatAction extends Action2 {
|
|
35
|
-
constructor() {
|
|
36
|
-
super({
|
|
37
|
-
id: 'workbench.action.quickchat.close',
|
|
38
|
-
title: ( localize2(4788, "Close Quick Chat")),
|
|
39
|
-
f1: false,
|
|
40
|
-
category: CHAT_CATEGORY,
|
|
41
|
-
icon: Codicon.close,
|
|
42
|
-
menu: {
|
|
43
|
-
id: MenuId.ChatInputSide,
|
|
44
|
-
group: 'navigation',
|
|
45
|
-
order: 20
|
|
46
|
-
}
|
|
47
|
-
});
|
|
48
|
-
}
|
|
49
|
-
run(accessor) {
|
|
50
|
-
const quickChatService = accessor.get(IQuickChatService);
|
|
51
|
-
quickChatService.close();
|
|
52
|
-
}
|
|
53
|
-
});
|
|
54
|
-
registerAction2(class LaunchInlineChatFromQuickChatAction extends Action2 {
|
|
55
|
-
constructor() {
|
|
56
|
-
super({
|
|
57
|
-
id: 'workbench.action.quickchat.launchInlineChat',
|
|
58
|
-
title: ( localize2(4789, "Launch Inline Chat")),
|
|
59
|
-
f1: false,
|
|
60
|
-
category: CHAT_CATEGORY
|
|
61
|
-
});
|
|
62
|
-
}
|
|
63
|
-
async run(accessor) {
|
|
64
|
-
const quickChatService = accessor.get(IQuickChatService);
|
|
65
|
-
const codeEditorService = accessor.get(ICodeEditorService);
|
|
66
|
-
if (quickChatService.focused) {
|
|
67
|
-
quickChatService.close();
|
|
68
|
-
}
|
|
69
|
-
const codeEditor = codeEditorService.getActiveCodeEditor();
|
|
70
|
-
if (!codeEditor) {
|
|
71
|
-
return;
|
|
72
|
-
}
|
|
73
|
-
const controller = InlineChatController.get(codeEditor);
|
|
74
|
-
if (!controller) {
|
|
75
|
-
return;
|
|
76
|
-
}
|
|
77
|
-
await controller.run();
|
|
78
|
-
controller.focus();
|
|
79
|
-
}
|
|
80
|
-
});
|
|
81
|
-
}
|
|
82
|
-
class QuickChatGlobalAction extends Action2 {
|
|
83
|
-
constructor() {
|
|
84
|
-
super({
|
|
85
|
-
id: ASK_QUICK_QUESTION_ACTION_ID,
|
|
86
|
-
title: ( localize2(4790, 'Quick Chat')),
|
|
87
|
-
precondition: CONTEXT_CHAT_ENABLED,
|
|
88
|
-
icon: Codicon.commentDiscussion,
|
|
89
|
-
f1: false,
|
|
90
|
-
category: CHAT_CATEGORY,
|
|
91
|
-
keybinding: {
|
|
92
|
-
weight: 200 ,
|
|
93
|
-
primary: 2048 | 1024 | 39 ,
|
|
94
|
-
linux: {
|
|
95
|
-
primary: 2048 | 1024 | 512 | 39
|
|
96
|
-
}
|
|
97
|
-
},
|
|
98
|
-
menu: {
|
|
99
|
-
id: MenuId.ChatCommandCenter,
|
|
100
|
-
group: 'c_quickChat',
|
|
101
|
-
order: 5
|
|
102
|
-
},
|
|
103
|
-
metadata: {
|
|
104
|
-
description: ( localize(4791, 'Toggle the quick chat')),
|
|
105
|
-
args: [{
|
|
106
|
-
name: 'args',
|
|
107
|
-
schema: {
|
|
108
|
-
anyOf: [
|
|
109
|
-
{
|
|
110
|
-
type: 'object',
|
|
111
|
-
required: ['query'],
|
|
112
|
-
properties: {
|
|
113
|
-
query: {
|
|
114
|
-
description: ( localize(4792, "The query to open the quick chat with")),
|
|
115
|
-
type: 'string'
|
|
116
|
-
},
|
|
117
|
-
isPartialQuery: {
|
|
118
|
-
description: ( localize(4793, "Whether the query is partial; it will wait for more user input")),
|
|
119
|
-
type: 'boolean'
|
|
120
|
-
}
|
|
121
|
-
},
|
|
122
|
-
},
|
|
123
|
-
{
|
|
124
|
-
type: 'string',
|
|
125
|
-
description: ( localize(4792, "The query to open the quick chat with"))
|
|
126
|
-
}
|
|
127
|
-
]
|
|
128
|
-
}
|
|
129
|
-
}]
|
|
130
|
-
},
|
|
131
|
-
});
|
|
132
|
-
}
|
|
133
|
-
run(accessor, query) {
|
|
134
|
-
const quickChatService = accessor.get(IQuickChatService);
|
|
135
|
-
let options;
|
|
136
|
-
switch (typeof query) {
|
|
137
|
-
case 'string':
|
|
138
|
-
options = { query };
|
|
139
|
-
break;
|
|
140
|
-
case 'object':
|
|
141
|
-
options = query;
|
|
142
|
-
break;
|
|
143
|
-
}
|
|
144
|
-
if (options?.query) {
|
|
145
|
-
options.selection = ( (new Selection(1, options.query.length + 1, 1, options.query.length + 1)));
|
|
146
|
-
}
|
|
147
|
-
quickChatService.toggle(options);
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
class AskQuickChatAction extends Action2 {
|
|
151
|
-
constructor() {
|
|
152
|
-
super({
|
|
153
|
-
id: `workbench.action.openQuickChat`,
|
|
154
|
-
category: CHAT_CATEGORY,
|
|
155
|
-
title: ( localize2(4794, "Open Quick Chat")),
|
|
156
|
-
f1: true
|
|
157
|
-
});
|
|
158
|
-
}
|
|
159
|
-
run(accessor, query) {
|
|
160
|
-
const quickChatService = accessor.get(IQuickChatService);
|
|
161
|
-
quickChatService.toggle(query ? {
|
|
162
|
-
query,
|
|
163
|
-
selection: ( (new Selection(1, query.length + 1, 1, query.length + 1)))
|
|
164
|
-
} : undefined);
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
export { ASK_QUICK_QUESTION_ACTION_ID, registerQuickChatActions };
|
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import { ITerminalService } from './terminal.service.js';
|
|
3
|
-
import { localize } from '../../../../nls.js';
|
|
4
|
-
import { Codicon } from '../../../../base/common/codicons.js';
|
|
5
|
-
import Severity$1 from '../../../../base/common/severity.js';
|
|
6
|
-
import { ICommandService } from '../../../../platform/commands/common/commands.service.js';
|
|
7
|
-
import { IExtensionService } from '../../../services/extensions/common/extensions.service.js';
|
|
8
|
-
let EnvironmentVariableInfoStale = class EnvironmentVariableInfoStale {
|
|
9
|
-
constructor(_diff, _terminalId, _collection, _terminalService, _extensionService) {
|
|
10
|
-
this._diff = _diff;
|
|
11
|
-
this._terminalId = _terminalId;
|
|
12
|
-
this._collection = _collection;
|
|
13
|
-
this._terminalService = _terminalService;
|
|
14
|
-
this._extensionService = _extensionService;
|
|
15
|
-
this.requiresAction = true;
|
|
16
|
-
}
|
|
17
|
-
_getInfo(scope) {
|
|
18
|
-
const extSet = ( (new Set()));
|
|
19
|
-
addExtensionIdentifiers(extSet, ( (this._diff.added.values())));
|
|
20
|
-
addExtensionIdentifiers(extSet, ( (this._diff.removed.values())));
|
|
21
|
-
addExtensionIdentifiers(extSet, ( (this._diff.changed.values())));
|
|
22
|
-
let message = ( localize(
|
|
23
|
-
11658,
|
|
24
|
-
"The following extensions want to relaunch the terminal to contribute to its environment:"
|
|
25
|
-
));
|
|
26
|
-
message += getMergedDescription(this._collection, scope, this._extensionService, extSet);
|
|
27
|
-
return message;
|
|
28
|
-
}
|
|
29
|
-
_getActions() {
|
|
30
|
-
return [{
|
|
31
|
-
label: ( localize(11659, "Relaunch Terminal")),
|
|
32
|
-
run: () => this._terminalService.getInstanceFromId(this._terminalId)?.relaunch(),
|
|
33
|
-
commandId: "workbench.action.terminal.relaunch"
|
|
34
|
-
}];
|
|
35
|
-
}
|
|
36
|
-
getStatus(scope) {
|
|
37
|
-
return {
|
|
38
|
-
id: "relaunch-needed" ,
|
|
39
|
-
severity: Severity$1.Warning,
|
|
40
|
-
icon: Codicon.warning,
|
|
41
|
-
tooltip: this._getInfo(scope),
|
|
42
|
-
hoverActions: this._getActions()
|
|
43
|
-
};
|
|
44
|
-
}
|
|
45
|
-
};
|
|
46
|
-
EnvironmentVariableInfoStale = ( (__decorate([
|
|
47
|
-
( (__param(3, ITerminalService))),
|
|
48
|
-
( (__param(4, IExtensionService)))
|
|
49
|
-
], EnvironmentVariableInfoStale)));
|
|
50
|
-
let EnvironmentVariableInfoChangesActive = class EnvironmentVariableInfoChangesActive {
|
|
51
|
-
constructor(_collection, _commandService, _extensionService) {
|
|
52
|
-
this._collection = _collection;
|
|
53
|
-
this._commandService = _commandService;
|
|
54
|
-
this._extensionService = _extensionService;
|
|
55
|
-
this.requiresAction = false;
|
|
56
|
-
}
|
|
57
|
-
_getInfo(scope) {
|
|
58
|
-
const extSet = ( (new Set()));
|
|
59
|
-
addExtensionIdentifiers(extSet, ( (this._collection.getVariableMap(scope).values())));
|
|
60
|
-
let message = ( localize(
|
|
61
|
-
11660,
|
|
62
|
-
"The following extensions have contributed to this terminal's environment:"
|
|
63
|
-
));
|
|
64
|
-
message += getMergedDescription(this._collection, scope, this._extensionService, extSet);
|
|
65
|
-
return message;
|
|
66
|
-
}
|
|
67
|
-
_getActions(scope) {
|
|
68
|
-
return [{
|
|
69
|
-
label: ( localize(11661, "Show Environment Contributions")),
|
|
70
|
-
run: () => this._commandService.executeCommand("workbench.action.terminal.showEnvironmentContributions" , scope),
|
|
71
|
-
commandId: "workbench.action.terminal.showEnvironmentContributions"
|
|
72
|
-
}];
|
|
73
|
-
}
|
|
74
|
-
getStatus(scope) {
|
|
75
|
-
return {
|
|
76
|
-
id: "env-var-info-changes-active" ,
|
|
77
|
-
severity: Severity$1.Info,
|
|
78
|
-
tooltip: this._getInfo(scope),
|
|
79
|
-
hoverActions: this._getActions(scope)
|
|
80
|
-
};
|
|
81
|
-
}
|
|
82
|
-
};
|
|
83
|
-
EnvironmentVariableInfoChangesActive = ( (__decorate([
|
|
84
|
-
( (__param(1, ICommandService))),
|
|
85
|
-
( (__param(2, IExtensionService)))
|
|
86
|
-
], EnvironmentVariableInfoChangesActive)));
|
|
87
|
-
function getMergedDescription(collection, scope, extensionService, extSet) {
|
|
88
|
-
const message = ['\n'];
|
|
89
|
-
const globalDescriptions = collection.getDescriptionMap(undefined);
|
|
90
|
-
const workspaceDescriptions = collection.getDescriptionMap(scope);
|
|
91
|
-
for (const ext of extSet) {
|
|
92
|
-
const globalDescription = globalDescriptions.get(ext);
|
|
93
|
-
if (globalDescription) {
|
|
94
|
-
message.push(`\n- \`${getExtensionName(ext, extensionService)}\``);
|
|
95
|
-
message.push(`: ${globalDescription}`);
|
|
96
|
-
}
|
|
97
|
-
const workspaceDescription = workspaceDescriptions.get(ext);
|
|
98
|
-
if (workspaceDescription) {
|
|
99
|
-
const workspaceSuffix = globalDescription ? ` (${( localize(11662, 'workspace'))})` : '';
|
|
100
|
-
message.push(`\n- \`${getExtensionName(ext, extensionService)}${workspaceSuffix}\``);
|
|
101
|
-
message.push(`: ${workspaceDescription}`);
|
|
102
|
-
}
|
|
103
|
-
if (!globalDescription && !workspaceDescription) {
|
|
104
|
-
message.push(`\n- \`${getExtensionName(ext, extensionService)}\``);
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
return message.join('');
|
|
108
|
-
}
|
|
109
|
-
function addExtensionIdentifiers(extSet, diff) {
|
|
110
|
-
for (const mutators of diff) {
|
|
111
|
-
for (const mutator of mutators) {
|
|
112
|
-
extSet.add(mutator.extensionIdentifier);
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
function getExtensionName(id, extensionService) {
|
|
117
|
-
return extensionService.extensions.find(e => e.id === id)?.displayName || id;
|
|
118
|
-
}
|
|
119
|
-
export { EnvironmentVariableInfoChangesActive, EnvironmentVariableInfoStale };
|