@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,203 +0,0 @@
|
|
|
1
|
-
import { __decorate, __param } from '../../../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import { trackFocus, getActiveWindow, Dimension } from '../../../../../base/browser/dom.js';
|
|
3
|
-
import { Emitter, Event } from '../../../../../base/common/event.js';
|
|
4
|
-
import { Disposable, toDisposable } from '../../../../../base/common/lifecycle.js';
|
|
5
|
-
import { MicrotaskDelay } from '../../../../../base/common/symbols.js';
|
|
6
|
-
import './media/terminalChatWidget.css.js';
|
|
7
|
-
import { localize } from '../../../../../nls.js';
|
|
8
|
-
import { IContextKeyService } from '../../../../../platform/contextkey/common/contextkey.service.js';
|
|
9
|
-
import { IInstantiationService } from '../../../../../platform/instantiation/common/instantiation.js';
|
|
10
|
-
import { ChatAgentLocation } from '../../../chat/common/chatAgents.js';
|
|
11
|
-
import { InlineChatWidget } from '../../../inlineChat/browser/inlineChatWidget.js';
|
|
12
|
-
import { TerminalChatContextKeys, MENU_TERMINAL_CHAT_WIDGET_STATUS, MENU_TERMINAL_CHAT_INPUT, MENU_TERMINAL_CHAT_WIDGET } from './terminalChat.js';
|
|
13
|
-
import { TerminalStickyScrollContribution } from '../../stickyScroll/browser/terminalStickyScrollContribution.js';
|
|
14
|
-
import { MENU_INLINE_CHAT_WIDGET_SECONDARY } from '../../../inlineChat/common/inlineChat.js';
|
|
15
|
-
let TerminalChatWidget = class TerminalChatWidget extends Disposable {
|
|
16
|
-
get inlineChatWidget() { return this._inlineChatWidget; }
|
|
17
|
-
constructor(_terminalElement, _instance, _xterm, _instantiationService, _contextKeyService) {
|
|
18
|
-
super();
|
|
19
|
-
this._terminalElement = _terminalElement;
|
|
20
|
-
this._instance = _instance;
|
|
21
|
-
this._xterm = _xterm;
|
|
22
|
-
this._instantiationService = _instantiationService;
|
|
23
|
-
this._contextKeyService = _contextKeyService;
|
|
24
|
-
this._onDidHide = this._register(( (new Emitter())));
|
|
25
|
-
this.onDidHide = this._onDidHide.event;
|
|
26
|
-
this._focusedContextKey = TerminalChatContextKeys.focused.bindTo(this._contextKeyService);
|
|
27
|
-
this._visibleContextKey = TerminalChatContextKeys.visible.bindTo(this._contextKeyService);
|
|
28
|
-
this._container = document.createElement('div');
|
|
29
|
-
this._container.classList.add('terminal-inline-chat');
|
|
30
|
-
_terminalElement.appendChild(this._container);
|
|
31
|
-
this._inlineChatWidget = this._instantiationService.createInstance(InlineChatWidget, {
|
|
32
|
-
location: ChatAgentLocation.Terminal,
|
|
33
|
-
resolveData: () => {
|
|
34
|
-
return undefined;
|
|
35
|
-
}
|
|
36
|
-
}, {
|
|
37
|
-
statusMenuId: {
|
|
38
|
-
menu: MENU_TERMINAL_CHAT_WIDGET_STATUS,
|
|
39
|
-
options: {
|
|
40
|
-
buttonConfigProvider: action => {
|
|
41
|
-
if (action.id === "workbench.action.terminal.chat.viewInChat" || action.id === "workbench.action.terminal.chat.runCommand" || action.id === "workbench.action.terminal.chat.runFirstCommand" ) {
|
|
42
|
-
return { isSecondary: false };
|
|
43
|
-
}
|
|
44
|
-
else {
|
|
45
|
-
return { isSecondary: true };
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
},
|
|
50
|
-
secondaryMenuId: MENU_INLINE_CHAT_WIDGET_SECONDARY,
|
|
51
|
-
chatWidgetViewOptions: {
|
|
52
|
-
rendererOptions: { editableCodeBlock: true },
|
|
53
|
-
menus: {
|
|
54
|
-
telemetrySource: 'terminal-inline-chat',
|
|
55
|
-
executeToolbar: MENU_TERMINAL_CHAT_INPUT,
|
|
56
|
-
inputSideToolbar: MENU_TERMINAL_CHAT_WIDGET,
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
});
|
|
60
|
-
this._register(Event.any(this._inlineChatWidget.onDidChangeHeight, this._instance.onDimensionsChanged, this._inlineChatWidget.chatWidget.onDidChangeContentHeight, Event.debounce(this._xterm.raw.onCursorMove, () => void 0, MicrotaskDelay))(() => this._relayout()));
|
|
61
|
-
const observer = ( (new ResizeObserver(() => this._relayout())));
|
|
62
|
-
observer.observe(this._terminalElement);
|
|
63
|
-
this._register(toDisposable(() => observer.disconnect()));
|
|
64
|
-
this._reset();
|
|
65
|
-
this._container.appendChild(this._inlineChatWidget.domNode);
|
|
66
|
-
this._focusTracker = this._register(trackFocus(this._container));
|
|
67
|
-
this._register(this._focusTracker.onDidFocus(() => this._focusedContextKey.set(true)));
|
|
68
|
-
this._register(this._focusTracker.onDidBlur(() => {
|
|
69
|
-
this._focusedContextKey.set(false);
|
|
70
|
-
if (!this.inlineChatWidget.responseContent) {
|
|
71
|
-
this.hide();
|
|
72
|
-
}
|
|
73
|
-
}));
|
|
74
|
-
this.hide();
|
|
75
|
-
}
|
|
76
|
-
_relayout() {
|
|
77
|
-
if (this._dimension) {
|
|
78
|
-
this._doLayout(this._inlineChatWidget.contentHeight);
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
_doLayout(heightInPixel) {
|
|
82
|
-
const xtermElement = this._xterm.raw.element;
|
|
83
|
-
if (!xtermElement) {
|
|
84
|
-
return;
|
|
85
|
-
}
|
|
86
|
-
const style = getActiveWindow().getComputedStyle(xtermElement);
|
|
87
|
-
const xtermPadding = parseInt(style.paddingLeft) + parseInt(style.paddingRight);
|
|
88
|
-
const width = Math.min(640, xtermElement.clientWidth - 12 - 2 - 10 - xtermPadding);
|
|
89
|
-
const terminalWrapperHeight = this._getTerminalWrapperHeight() ?? Number.MAX_SAFE_INTEGER;
|
|
90
|
-
let height = Math.min(480, heightInPixel, terminalWrapperHeight);
|
|
91
|
-
const top = this._getTop() ?? 0;
|
|
92
|
-
if (width === 0 || height === 0) {
|
|
93
|
-
return;
|
|
94
|
-
}
|
|
95
|
-
let adjustedHeight = undefined;
|
|
96
|
-
if (height < this._inlineChatWidget.contentHeight) {
|
|
97
|
-
if (height - top > 0) {
|
|
98
|
-
height = height - top - 30 ;
|
|
99
|
-
}
|
|
100
|
-
else {
|
|
101
|
-
height = height - 30 ;
|
|
102
|
-
adjustedHeight = height;
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
this._container.style.paddingLeft = style.paddingLeft;
|
|
106
|
-
this._dimension = ( (new Dimension(width, height)));
|
|
107
|
-
this._inlineChatWidget.layout(this._dimension);
|
|
108
|
-
this._updateVerticalPosition(adjustedHeight);
|
|
109
|
-
}
|
|
110
|
-
_reset() {
|
|
111
|
-
this._inlineChatWidget.placeholder = ( localize(11583, "Ask how to do something in the terminal"));
|
|
112
|
-
this._inlineChatWidget.updateInfo(( localize(11584, "AI-generated commands may be incorrect")));
|
|
113
|
-
}
|
|
114
|
-
reveal() {
|
|
115
|
-
this._doLayout(this._inlineChatWidget.contentHeight);
|
|
116
|
-
this._container.classList.remove('hide');
|
|
117
|
-
this._visibleContextKey.set(true);
|
|
118
|
-
this._inlineChatWidget.focus();
|
|
119
|
-
this._instance.scrollToBottom();
|
|
120
|
-
}
|
|
121
|
-
_getTop() {
|
|
122
|
-
const font = this._instance.xterm?.getFont();
|
|
123
|
-
if (!font?.charHeight) {
|
|
124
|
-
return;
|
|
125
|
-
}
|
|
126
|
-
const terminalWrapperHeight = this._getTerminalWrapperHeight() ?? 0;
|
|
127
|
-
const cellHeight = font.charHeight * font.lineHeight;
|
|
128
|
-
const topPadding = terminalWrapperHeight - (this._instance.rows * cellHeight);
|
|
129
|
-
const cursorY = (this._instance.xterm?.raw.buffer.active.cursorY ?? 0) + 1;
|
|
130
|
-
return topPadding + cursorY * cellHeight;
|
|
131
|
-
}
|
|
132
|
-
_updateVerticalPosition(adjustedHeight) {
|
|
133
|
-
const top = this._getTop();
|
|
134
|
-
if (!top) {
|
|
135
|
-
return;
|
|
136
|
-
}
|
|
137
|
-
this._container.style.top = `${top}px`;
|
|
138
|
-
const widgetHeight = this._inlineChatWidget.contentHeight;
|
|
139
|
-
const terminalWrapperHeight = this._getTerminalWrapperHeight();
|
|
140
|
-
if (!terminalWrapperHeight) {
|
|
141
|
-
return;
|
|
142
|
-
}
|
|
143
|
-
if (top > terminalWrapperHeight - widgetHeight && terminalWrapperHeight - widgetHeight > 0) {
|
|
144
|
-
this._setTerminalOffset(top - (terminalWrapperHeight - widgetHeight));
|
|
145
|
-
}
|
|
146
|
-
else if (adjustedHeight) {
|
|
147
|
-
this._setTerminalOffset(adjustedHeight);
|
|
148
|
-
}
|
|
149
|
-
else {
|
|
150
|
-
this._setTerminalOffset(undefined);
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
_getTerminalWrapperHeight() {
|
|
154
|
-
return this._terminalElement.clientHeight;
|
|
155
|
-
}
|
|
156
|
-
hide() {
|
|
157
|
-
this._container.classList.add('hide');
|
|
158
|
-
this._inlineChatWidget.reset();
|
|
159
|
-
this._reset();
|
|
160
|
-
this._inlineChatWidget.updateToolbar(false);
|
|
161
|
-
this._visibleContextKey.set(false);
|
|
162
|
-
this._inlineChatWidget.value = '';
|
|
163
|
-
this._instance.focus();
|
|
164
|
-
this._setTerminalOffset(undefined);
|
|
165
|
-
this._onDidHide.fire();
|
|
166
|
-
}
|
|
167
|
-
_setTerminalOffset(offset) {
|
|
168
|
-
if (offset === undefined || this._container.classList.contains('hide')) {
|
|
169
|
-
this._terminalElement.style.position = '';
|
|
170
|
-
this._terminalElement.style.bottom = '';
|
|
171
|
-
TerminalStickyScrollContribution.get(this._instance)?.hideUnlock();
|
|
172
|
-
}
|
|
173
|
-
else {
|
|
174
|
-
this._terminalElement.style.position = 'relative';
|
|
175
|
-
this._terminalElement.style.bottom = `${offset}px`;
|
|
176
|
-
TerminalStickyScrollContribution.get(this._instance)?.hideLock();
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
|
-
focus() {
|
|
180
|
-
this._inlineChatWidget.focus();
|
|
181
|
-
}
|
|
182
|
-
hasFocus() {
|
|
183
|
-
return this._inlineChatWidget.hasFocus();
|
|
184
|
-
}
|
|
185
|
-
input() {
|
|
186
|
-
return this._inlineChatWidget.value;
|
|
187
|
-
}
|
|
188
|
-
setValue(value) {
|
|
189
|
-
this._inlineChatWidget.value = value ?? '';
|
|
190
|
-
}
|
|
191
|
-
acceptCommand(code, shouldExecute) {
|
|
192
|
-
this._instance.runCommand(code, shouldExecute);
|
|
193
|
-
this.hide();
|
|
194
|
-
}
|
|
195
|
-
get focusTracker() {
|
|
196
|
-
return this._focusTracker;
|
|
197
|
-
}
|
|
198
|
-
};
|
|
199
|
-
TerminalChatWidget = ( (__decorate([
|
|
200
|
-
( (__param(3, IInstantiationService))),
|
|
201
|
-
( (__param(4, IContextKeyService)))
|
|
202
|
-
], TerminalChatWidget)));
|
|
203
|
-
export { TerminalChatWidget };
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import n from '../../../../../../../../../external/rollup-plugin-styles/dist/runtime/inject-css.js';
|
|
2
|
-
var css = ".terminal-sticky-scroll{background:var(--vscode-terminalStickyScroll-background,var(--vscode-terminal-background,var(--vscode-panel-background)));border-bottom:1px solid var(--vscode-terminalStickyScroll-border,transparent);box-shadow:var(--vscode-scrollbar-shadow) 0 3px 2px -2px;display:none;left:0;position:absolute;right:14px;z-index:32}.part.auxiliarybar .terminal-sticky-scroll,.part.sidebar .terminal-sticky-scroll{background:var(--vscode-terminalStickyScroll-background,var(--vscode-terminal-background,var(--vscode-sideBar-background)))}.editor-instance .terminal-sticky-scroll{background:var(--vscode-terminalStickyScroll-background,var(--vscode-terminal-background,var(--vscode-editor-background)))}.terminal-sticky-scroll.visible{display:block}.terminal-sticky-scroll:hover{cursor:pointer!important}.terminal-sticky-scroll .xterm{padding-bottom:0!important;pointer-events:none;position:relative!important}.terminal-sticky-scroll .hover-overlay{bottom:0;cursor:pointer!important;left:0;position:absolute;right:0;top:0}.terminal-sticky-scroll .hover-overlay:hover{background-color:var(--vscode-terminalStickyScrollHover-background,transparent)}";
|
|
3
|
-
n(css,{});
|
|
4
|
-
export { css, css as default };
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { localize } from '../../../../../nls.js';
|
|
2
|
-
import { registerColor } from '../../../../../platform/theme/common/colorUtils.js';
|
|
3
|
-
const terminalStickyScrollBackground = registerColor('terminalStickyScroll.background', null, ( localize(
|
|
4
|
-
11263,
|
|
5
|
-
'The background color of the sticky scroll overlay in the terminal.'
|
|
6
|
-
)));
|
|
7
|
-
const terminalStickyScrollHoverBackground = registerColor('terminalStickyScrollHover.background', {
|
|
8
|
-
dark: '#2A2D2E',
|
|
9
|
-
light: '#F0F0F0',
|
|
10
|
-
hcDark: '#E48B39',
|
|
11
|
-
hcLight: '#0f4a85'
|
|
12
|
-
}, ( localize(
|
|
13
|
-
11264,
|
|
14
|
-
'The background color of the sticky scroll overlay in the terminal when hovered.'
|
|
15
|
-
)));
|
|
16
|
-
registerColor('terminalStickyScroll.border', {
|
|
17
|
-
dark: null,
|
|
18
|
-
light: null,
|
|
19
|
-
hcDark: '#6fc3df',
|
|
20
|
-
hcLight: '#0f4a85'
|
|
21
|
-
}, ( localize(11265, 'The border of the sticky scroll overlay in the terminal.')));
|
|
22
|
-
export { terminalStickyScrollBackground, terminalStickyScrollHoverBackground };
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
import { __decorate, __param } from '../../../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import { Event } from '../../../../../base/common/event.js';
|
|
3
|
-
import { Disposable, MutableDisposable } from '../../../../../base/common/lifecycle.js';
|
|
4
|
-
import './media/stickyScroll.css.js';
|
|
5
|
-
import { IConfigurationService } from '../../../../../platform/configuration/common/configuration.service.js';
|
|
6
|
-
import { IContextKeyService } from '../../../../../platform/contextkey/common/contextkey.service.js';
|
|
7
|
-
import { IInstantiationService } from '../../../../../platform/instantiation/common/instantiation.js';
|
|
8
|
-
import { IKeybindingService } from '../../../../../platform/keybinding/common/keybinding.service.js';
|
|
9
|
-
import { TerminalInstance, TerminalInstanceColorProvider } from '../../../terminal/browser/terminalInstance.js';
|
|
10
|
-
import { TerminalStickyScrollOverlay } from './terminalStickyScrollOverlay.js';
|
|
11
|
-
var TerminalStickyScrollContribution_1;
|
|
12
|
-
let TerminalStickyScrollContribution = class TerminalStickyScrollContribution extends Disposable {
|
|
13
|
-
static { TerminalStickyScrollContribution_1 = this; }
|
|
14
|
-
static { this.ID = 'terminal.stickyScroll'; }
|
|
15
|
-
static get(instance) {
|
|
16
|
-
return instance.getContribution(TerminalStickyScrollContribution_1.ID);
|
|
17
|
-
}
|
|
18
|
-
constructor(_instance, processManager, widgetManager, _configurationService, _contextKeyService, _instantiationService, _keybindingService) {
|
|
19
|
-
super();
|
|
20
|
-
this._instance = _instance;
|
|
21
|
-
this._configurationService = _configurationService;
|
|
22
|
-
this._contextKeyService = _contextKeyService;
|
|
23
|
-
this._instantiationService = _instantiationService;
|
|
24
|
-
this._keybindingService = _keybindingService;
|
|
25
|
-
this._overlay = this._register(( new MutableDisposable()));
|
|
26
|
-
this._enableListeners = this._register(( new MutableDisposable()));
|
|
27
|
-
this._disableListeners = this._register(( new MutableDisposable()));
|
|
28
|
-
this._register(Event.runAndSubscribe(this._configurationService.onDidChangeConfiguration, e => {
|
|
29
|
-
if (!e || e.affectsConfiguration("terminal.integrated.stickyScroll.enabled" )) {
|
|
30
|
-
this._refreshState();
|
|
31
|
-
}
|
|
32
|
-
}));
|
|
33
|
-
}
|
|
34
|
-
xtermReady(xterm) {
|
|
35
|
-
this._xterm = xterm;
|
|
36
|
-
this._refreshState();
|
|
37
|
-
}
|
|
38
|
-
xtermOpen(xterm) {
|
|
39
|
-
this._refreshState();
|
|
40
|
-
}
|
|
41
|
-
hideLock() {
|
|
42
|
-
this._overlay.value?.lockHide();
|
|
43
|
-
}
|
|
44
|
-
hideUnlock() {
|
|
45
|
-
this._overlay.value?.unlockHide();
|
|
46
|
-
}
|
|
47
|
-
_refreshState() {
|
|
48
|
-
if (this._overlay.value) {
|
|
49
|
-
this._tryDisable();
|
|
50
|
-
}
|
|
51
|
-
else {
|
|
52
|
-
this._tryEnable();
|
|
53
|
-
}
|
|
54
|
-
if (this._overlay.value) {
|
|
55
|
-
this._enableListeners.clear();
|
|
56
|
-
if (!this._disableListeners.value) {
|
|
57
|
-
this._disableListeners.value = this._instance.capabilities.onDidRemoveCapability(e => {
|
|
58
|
-
if (e.id === 2 ) {
|
|
59
|
-
this._refreshState();
|
|
60
|
-
}
|
|
61
|
-
});
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
else {
|
|
65
|
-
this._disableListeners.clear();
|
|
66
|
-
if (!this._enableListeners.value) {
|
|
67
|
-
this._enableListeners.value = this._instance.capabilities.onDidAddCapability(e => {
|
|
68
|
-
if (e.id === 2 ) {
|
|
69
|
-
this._refreshState();
|
|
70
|
-
}
|
|
71
|
-
});
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
_tryEnable() {
|
|
76
|
-
if (this._shouldBeEnabled()) {
|
|
77
|
-
const xtermCtorEventually = TerminalInstance.getXtermConstructor(this._keybindingService, this._contextKeyService);
|
|
78
|
-
this._overlay.value = this._instantiationService.createInstance(TerminalStickyScrollOverlay, this._instance, this._xterm, this._instantiationService.createInstance(TerminalInstanceColorProvider, this._instance), this._instance.capabilities.get(2 ), xtermCtorEventually);
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
_tryDisable() {
|
|
82
|
-
if (!this._shouldBeEnabled()) {
|
|
83
|
-
this._overlay.clear();
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
_shouldBeEnabled() {
|
|
87
|
-
const capability = this._instance.capabilities.get(2 );
|
|
88
|
-
return !!(this._configurationService.getValue("terminal.integrated.stickyScroll.enabled" ) && capability && this._xterm?.raw?.element);
|
|
89
|
-
}
|
|
90
|
-
};
|
|
91
|
-
TerminalStickyScrollContribution = TerminalStickyScrollContribution_1 = ( __decorate([
|
|
92
|
-
( __param(3, IConfigurationService)),
|
|
93
|
-
( __param(4, IContextKeyService)),
|
|
94
|
-
( __param(5, IInstantiationService)),
|
|
95
|
-
( __param(6, IKeybindingService))
|
|
96
|
-
], TerminalStickyScrollContribution));
|
|
97
|
-
export { TerminalStickyScrollContribution };
|