@codingame/monaco-vscode-katex-common 30.0.1 → 31.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -3
- package/vscode/src/vs/platform/actions/browser/actionbar.d.ts +16 -0
- package/vscode/src/vs/platform/actions/browser/actionbar.js +22 -0
- package/vscode/src/vs/platform/actions/browser/buttonbar.js +2 -2
- package/vscode/src/vs/platform/networkFilter/common/domainMatcher.d.ts +50 -0
- package/vscode/src/vs/platform/networkFilter/common/domainMatcher.js +138 -0
- package/vscode/src/vs/platform/networkFilter/common/settings.d.ts +12 -0
- package/vscode/src/vs/platform/networkFilter/common/settings.js +14 -0
- package/vscode/src/vs/platform/sandbox/common/sandboxHelperIpc.d.ts +18 -0
- package/vscode/src/vs/platform/sandbox/common/sandboxHelperIpc.js +13 -0
- package/vscode/src/vs/platform/sandbox/common/terminalSandboxService.d.ts +73 -0
- package/vscode/src/vs/platform/sandbox/common/terminalSandboxService.js +10 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatAccessibilityProvider.js +16 -16
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContinueInAction.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContinueInAction.js +51 -24
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatElicitationActions.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatExecuteActions.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatExecuteActions.js +64 -72
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatTitleActions.js +10 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatToolActions.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatToolActions.js +17 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatToolPicker.js +13 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionApprovalModel.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionHoverWidget.js +17 -18
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsControl.js +5 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsFilter.d.ts +5 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsFilter.js +73 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsOpener.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsViewer.js +32 -32
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentModel.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentModel.js +20 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentWidgets.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentWidgets.js +73 -49
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/implicitContextAttachment.js +12 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingActions.d.ts +0 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingActions.js +41 -99
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorActions.js +14 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorOverlay.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorOverlay.js +13 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingExplanationWidget.js +12 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessionPickerActionItem.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/toolSetsContribution.js +14 -15
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatAgentHover.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatArtifactsWidget.d.ts +11 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatArtifactsWidget.js +339 -161
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentMarkdownRenderer.js +9 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatAgentCommandContentPart.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatAnonymousRateLimitedPart.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatAttachmentsContentPart.d.ts +9 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatAttachmentsContentPart.js +33 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatChangesSummaryPart.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCodeCitationContentPart.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCollections.d.ts +43 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCollections.js +147 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCommandContentPart.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatConfirmationContentPart.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatConfirmationWidget.d.ts +4 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatConfirmationWidget.js +55 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatContentCodePools.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatContentCodePools.js +7 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatContentParts.d.ts +1 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatDiffBlockPart.js +42 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatDisabledClaudeHooksContentPart.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatExtensionsContentPart.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatHookContentPart.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatIncrementalRendering/animations/animation.d.ts +18 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatIncrementalRendering/animations/animationRegistry.d.ts +15 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatIncrementalRendering/animations/animationRegistry.js +16 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatIncrementalRendering/animations/blockAnimations.d.ts +13 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatIncrementalRendering/animations/blockAnimations.js +33 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatIncrementalRendering/buffers/buffer.d.ts +46 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatIncrementalRendering/buffers/bufferRegistry.d.ts +11 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatIncrementalRendering/buffers/bufferRegistry.js +12 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatIncrementalRendering/buffers/offBuffer.d.ts +9 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatIncrementalRendering/buffers/offBuffer.js +12 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatIncrementalRendering/buffers/paragraphBuffer.d.ts +23 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatIncrementalRendering/buffers/paragraphBuffer.js +37 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatIncrementalRendering/buffers/wordBuffer.d.ts +34 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatIncrementalRendering/buffers/wordBuffer.js +68 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatIncrementalRendering/chatIncrementalRendering.d.ts +77 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatIncrementalRendering/chatIncrementalRendering.js +170 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatIncrementalRendering/media/chatIncrementalRendering.css +112 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatInlineAnchorWidget.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatInlineAnchorWidget.js +26 -16
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMarkdownContentPart.d.ts +24 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMarkdownContentPart.js +111 -145
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMcpServersInteractionContentPart.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMultiDiffContentPart.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatPlanReviewPart.d.ts +58 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatPlanReviewPart.js +425 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatProgressContentPart.d.ts +16 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatProgressContentPart.js +68 -25
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatQuestionCarouselPart.d.ts +5 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatQuestionCarouselPart.js +101 -45
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatQuotaExceededPart.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatReferencesContentPart.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatResourceGroupWidget.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatSubagentContentPart.d.ts +36 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatSubagentContentPart.js +217 -25
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatSuggestNextWidget.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTextEditContentPart.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatThinkingContentPart.d.ts +23 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatThinkingContentPart.js +168 -60
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTipContentPart.js +10 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTodoListWidget.js +18 -17
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatToolInputOutputContentPart.d.ts +1 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatToolInputOutputContentPart.js +7 -18
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatToolOutputContentSubPart.d.ts +1 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatToolOutputContentSubPart.js +7 -19
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTreeContentPart.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatWorkspaceEditContentPart.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/codeBlockPart.d.ts +24 -19
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/codeBlockPart.js +104 -78
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatConfirmationWidget.css +11 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatPlanReview.css +257 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatQuestionCarousel.css +19 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatSubagentContent.css +30 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatTerminalToolProgressPart.css +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatThinkingContent.css +12 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatToolConfirmationCarousel.css +286 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/abstractToolConfirmationSubPart.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatExtensionsInstallToolSubPart.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatMcpAppModel.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatMcpAppSubPart.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatMissingSandboxDepsConfirmationSubPart.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatModifiedFilesConfirmationSubPart.js +15 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatTerminalToolConfirmationSubPart.d.ts +1 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatTerminalToolConfirmationSubPart.js +25 -47
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatTerminalToolProgressPart.d.ts +29 -53
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatTerminalToolProgressPart.js +258 -321
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolConfirmationCarouselPart.d.ts +53 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolConfirmationCarouselPart.js +392 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolConfirmationSubPart.d.ts +1 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolConfirmationSubPart.js +24 -30
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolInvocationPart.d.ts +2 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolInvocationPart.js +9 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolOutputPart.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolPartUtilities.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolPostExecuteConfirmationPart.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/terminalToolAutoExpand.d.ts +6 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/terminalToolAutoExpand.js +2 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatDragAndDrop.js +11 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatListRenderer.d.ts +38 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatListRenderer.js +577 -113
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatListWidget.d.ts +0 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatListWidget.js +4 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatWidget.d.ts +1 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatWidget.js +58 -75
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatFollowups.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputPart.d.ts +44 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputPart.js +362 -188
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputPickerActionItem.d.ts +0 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatModelPicker.d.ts +4 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatModelPicker.js +42 -95
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatModelSelectionLogic.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/delegationSessionPickerActionItem.js +9 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/modePickerActionItem.js +57 -38
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/modelPickerActionItem.d.ts +21 -15
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/{modelPickerActionItem2.js → modelPickerActionItem.js} +5 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/permissionPickerActionItem.js +38 -31
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/sessionTargetPickerActionItem.js +4 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/workspacePickerActionItem.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/media/chat.css +94 -40
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatContextUsageDetails.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatContextUsageWidget.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/chatArtifactExtraction.d.ts +16 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatArtifactExtraction.js +218 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatImageExtraction.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/common/widget/annotations.js +6 -1
- package/vscode/src/vs/workbench/contrib/chat/common/widget/chatColors.js +15 -15
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatAffordance.js +12 -21
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatController.d.ts +2 -32
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatController.js +355 -156
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatEditorAffordance.d.ts +2 -13
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatEditorAffordance.js +72 -65
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatOverlayWidget.d.ts +4 -43
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatOverlayWidget.js +238 -204
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatWidget.d.ts +4 -19
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatWidget.js +128 -115
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatZoneWidget.d.ts +6 -9
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatZoneWidget.js +152 -49
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/media/inlineChat.css +64 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChat.js +40 -40
- package/vscode/src/vs/workbench/contrib/interactive/browser/replInputHintContentWidget.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/executionStatusBarItemController.js +7 -7
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindWidget.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOperations.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/insertCellActions.js +24 -24
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffComponents.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffElementOutputs.js +7 -7
- 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/replNotebook/browser/replEditor.js +1 -1
- package/vscode/src/vs/workbench/contrib/replNotebook/browser/replEditorInput.js +1 -1
- package/vscode/src/vs/workbench/contrib/terminal/terminalContribChatExports.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/alternativeRecommendation.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/alternativeRecommendation.js +41 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/commandParsers/commandFileWriteParser.d.ts +24 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/commandParsers/sedFileWriteParser.d.ts +26 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/commandParsers/sedFileWriteParser.js +142 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/basicExecuteStrategy.d.ts +45 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/basicExecuteStrategy.js +165 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/executeStrategy.d.ts +53 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/executeStrategy.js +163 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/noneExecuteStrategy.d.ts +27 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/noneExecuteStrategy.js +142 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/richExecuteStrategy.d.ts +29 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/richExecuteStrategy.js +144 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/strategyHelpers.d.ts +40 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/strategyHelpers.js +174 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/outputHelpers.d.ts +7 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/outputHelpers.js +43 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalHelpers.d.ts +42 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalHelpers.js +256 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalToolTelemetry.d.ts +42 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalToolTelemetry.js +94 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/toolTerminalCreator.d.ts +42 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/toolTerminalCreator.js +221 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/autoApprove/commandLineAutoApprover.d.ts +31 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/autoApprove/commandLineAutoApprover.js +392 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/autoApprove/npmScriptAutoApprover.d.ts +45 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/autoApprove/npmScriptAutoApprover.js +243 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineAnalyzer.d.ts +52 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineAnalyzer.js +10 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineAutoApproveAnalyzer.d.ts +20 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineAutoApproveAnalyzer.js +310 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineFileWriteAnalyzer.d.ts +19 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineFileWriteAnalyzer.js +168 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineSandboxAnalyzer.d.ts +11 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineSandboxAnalyzer.js +33 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLinePresenter/commandLinePresenter.d.ts +41 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLinePresenter/nodeCommandLinePresenter.d.ts +19 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLinePresenter/nodeCommandLinePresenter.js +37 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLinePresenter/pythonCommandLinePresenter.d.ts +19 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLinePresenter/pythonCommandLinePresenter.js +37 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLinePresenter/rubyCommandLinePresenter.d.ts +19 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLinePresenter/rubyCommandLinePresenter.js +44 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLinePresenter/sandboxedCommandLinePresenter.d.ts +13 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLinePresenter/sandboxedCommandLinePresenter.js +22 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLineBackgroundDetachRewriter.d.ts +22 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLineBackgroundDetachRewriter.js +47 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLineCdPrefixRewriter.d.ts +5 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLineCdPrefixRewriter.js +27 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLinePreventHistoryRewriter.d.ts +14 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLinePreventHistoryRewriter.js +29 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLinePwshChainOperatorRewriter.d.ts +8 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLinePwshChainOperatorRewriter.js +33 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLineRewriter.d.ts +24 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLineSandboxRewriter.d.ts +8 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLineSandboxRewriter.js +32 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/outputMonitor.d.ts +108 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/outputMonitor.js +412 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/types.d.ts +42 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/types.js +23 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/outputAnalyzer.d.ts +9 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalTool.d.ts +192 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalTool.js +2258 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/sandboxOutputAnalyzer.d.ts +22 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/sandboxOutputAnalyzer.js +43 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/terminalCommandArtifactCollector.d.ts +17 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/terminalCommandArtifactCollector.js +118 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/terminalToolAutoApprove.d.ts +22 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/terminalToolAutoApprove.js +44 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/toolIds.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/treeSitterCommandParser.d.ts +25 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/treeSitterCommandParser.js +141 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalSandboxService.d.ts +85 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalSandboxService.js +608 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/searchableOptionPickerActionItem.d.ts +0 -40
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/searchableOptionPickerActionItem.js +0 -196
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/modelPickerActionItem2.d.ts +0 -29
- package/vscode/src/vs/workbench/contrib/chat/common/widget/codeBlockModelCollection.d.ts +0 -46
- package/vscode/src/vs/workbench/contrib/chat/common/widget/codeBlockModelCollection.js +0 -215
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatGutterAffordance.d.ts +0 -18
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatGutterAffordance.js +0 -107
|
@@ -10,22 +10,11 @@ import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/pl
|
|
|
10
10
|
* When clicked, it shows the overlay widget for inline chat.
|
|
11
11
|
*/
|
|
12
12
|
export declare class InlineChatEditorAffordance extends Disposable implements IContentWidget {
|
|
13
|
-
private
|
|
14
|
-
private static _idPool;
|
|
15
|
-
private readonly _id;
|
|
16
|
-
private readonly _domNode;
|
|
17
|
-
private _position;
|
|
18
|
-
private _isVisible;
|
|
19
|
-
private readonly _onDidRunAction;
|
|
13
|
+
#private;
|
|
20
14
|
readonly onDidRunAction: Event<string>;
|
|
21
15
|
readonly allowEditorOverflow = true;
|
|
22
16
|
readonly suppressMouseDown = false;
|
|
23
|
-
constructor(
|
|
24
|
-
private _show;
|
|
25
|
-
private _showAtSelection;
|
|
26
|
-
private _showAtLineStart;
|
|
27
|
-
private _isPositionInViewport;
|
|
28
|
-
private _hide;
|
|
17
|
+
constructor(editor: ICodeEditor, selection: IObservable<Selection | undefined>, instantiationService: IInstantiationService);
|
|
29
18
|
getId(): string;
|
|
30
19
|
getDomNode(): HTMLElement;
|
|
31
20
|
getPosition(): IContentWidgetPosition | null;
|
|
@@ -31,9 +31,12 @@ import { autorun } from '@codingame/monaco-vscode-api/vscode/vs/base/common/obse
|
|
|
31
31
|
var InlineChatEditorAffordance_1;
|
|
32
32
|
registerCss(inlineChatEditorAffordance);
|
|
33
33
|
let QuickFixActionViewItem = class QuickFixActionViewItem extends MenuEntryActionViewItem {
|
|
34
|
+
#lightBulbStore = this._store.add(( new MutableDisposable()));
|
|
35
|
+
#currentTitle;
|
|
36
|
+
#editor;
|
|
34
37
|
constructor(
|
|
35
38
|
action,
|
|
36
|
-
|
|
39
|
+
editor,
|
|
37
40
|
keybindingService,
|
|
38
41
|
notificationService,
|
|
39
42
|
contextKeyService,
|
|
@@ -56,7 +59,7 @@ let QuickFixActionViewItem = class QuickFixActionViewItem extends MenuEntryActio
|
|
|
56
59
|
this.elementGetter = () => undefined;
|
|
57
60
|
}
|
|
58
61
|
async run(...args) {
|
|
59
|
-
const controller = CodeActionController.get(
|
|
62
|
+
const controller = CodeActionController.get(editor);
|
|
60
63
|
const info = controller?.lightBulbState.get();
|
|
61
64
|
const element = this.elementGetter();
|
|
62
65
|
if (controller && info && element) {
|
|
@@ -74,24 +77,23 @@ let QuickFixActionViewItem = class QuickFixActionViewItem extends MenuEntryActio
|
|
|
74
77
|
super(wrappedAction, {
|
|
75
78
|
draggable: false
|
|
76
79
|
}, keybindingService, notificationService, contextKeyService, themeService, contextMenuService, accessibilityService);
|
|
77
|
-
this
|
|
78
|
-
this._lightBulbStore = this._store.add(( new MutableDisposable()));
|
|
80
|
+
this.#editor = editor;
|
|
79
81
|
wrappedAction.elementGetter = () => this.element;
|
|
80
82
|
}
|
|
81
83
|
render(container) {
|
|
82
84
|
super.render(container);
|
|
83
|
-
this
|
|
85
|
+
this.#updateFromLightBulb();
|
|
84
86
|
}
|
|
85
87
|
getTooltip() {
|
|
86
|
-
return this
|
|
88
|
+
return this.#currentTitle ?? super.getTooltip();
|
|
87
89
|
}
|
|
88
|
-
|
|
89
|
-
const controller = CodeActionController.get(this
|
|
90
|
+
#updateFromLightBulb() {
|
|
91
|
+
const controller = CodeActionController.get(this.#editor);
|
|
90
92
|
if (!controller) {
|
|
91
93
|
return;
|
|
92
94
|
}
|
|
93
95
|
const store = ( new DisposableStore());
|
|
94
|
-
this.
|
|
96
|
+
this.#lightBulbStore.value = store;
|
|
95
97
|
store.add(autorun(reader => {
|
|
96
98
|
const info = controller.lightBulbState.read(reader);
|
|
97
99
|
if (this.label) {
|
|
@@ -100,13 +102,14 @@ let QuickFixActionViewItem = class QuickFixActionViewItem extends MenuEntryActio
|
|
|
100
102
|
this.label.className = "";
|
|
101
103
|
this.label.classList.add("codicon", "action-label", ...iconClasses);
|
|
102
104
|
}
|
|
103
|
-
this
|
|
105
|
+
this.#currentTitle = info?.title;
|
|
104
106
|
this.updateTooltip();
|
|
105
107
|
}));
|
|
106
108
|
}
|
|
107
109
|
};
|
|
108
110
|
QuickFixActionViewItem = ( __decorate([( __param(2, IKeybindingService)), ( __param(3, INotificationService)), ( __param(4, IContextKeyService)), ( __param(5, IThemeService)), ( __param(6, IContextMenuService)), ( __param(7, IAccessibilityService)), ( __param(8, ICommandService))], QuickFixActionViewItem));
|
|
109
111
|
let LabelWithKeybindingActionViewItem = class LabelWithKeybindingActionViewItem extends MenuEntryActionViewItem {
|
|
112
|
+
#kbLabel;
|
|
110
113
|
constructor(
|
|
111
114
|
action,
|
|
112
115
|
keybindingService,
|
|
@@ -121,14 +124,14 @@ let LabelWithKeybindingActionViewItem = class LabelWithKeybindingActionViewItem
|
|
|
121
124
|
}, keybindingService, notificationService, contextKeyService, themeService, contextMenuService, accessibilityService);
|
|
122
125
|
this.options.label = true;
|
|
123
126
|
this.options.icon = false;
|
|
124
|
-
this
|
|
127
|
+
this.#kbLabel = keybindingService.lookupKeybinding(action.id)?.getLabel() ?? undefined;
|
|
125
128
|
}
|
|
126
129
|
updateLabel() {
|
|
127
130
|
if (this.label) {
|
|
128
131
|
reset(
|
|
129
132
|
this.label,
|
|
130
133
|
this.action.label,
|
|
131
|
-
...(this
|
|
134
|
+
...(this.#kbLabel ? [$("span.inline-chat-keybinding", undefined, this.#kbLabel)] : [])
|
|
132
135
|
);
|
|
133
136
|
}
|
|
134
137
|
}
|
|
@@ -138,22 +141,26 @@ let InlineChatEditorAffordance = class InlineChatEditorAffordance extends Dispos
|
|
|
138
141
|
static {
|
|
139
142
|
InlineChatEditorAffordance_1 = this;
|
|
140
143
|
}
|
|
141
|
-
static
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
144
|
+
static #idPool = 0;
|
|
145
|
+
#id;
|
|
146
|
+
#domNode;
|
|
147
|
+
#position;
|
|
148
|
+
#isVisible;
|
|
149
|
+
#onDidRunAction;
|
|
150
|
+
#editor;
|
|
151
|
+
constructor(editor, selection, instantiationService) {
|
|
145
152
|
super();
|
|
146
|
-
this
|
|
147
|
-
this
|
|
148
|
-
this
|
|
149
|
-
this
|
|
150
|
-
this.
|
|
151
|
-
this.onDidRunAction = this._onDidRunAction.event;
|
|
153
|
+
this.#id = `inline-chat-content-widget-${InlineChatEditorAffordance_1.#idPool++}`;
|
|
154
|
+
this.#position = null;
|
|
155
|
+
this.#isVisible = false;
|
|
156
|
+
this.#onDidRunAction = this._store.add(( new Emitter()));
|
|
157
|
+
this.onDidRunAction = this.#onDidRunAction.event;
|
|
152
158
|
this.allowEditorOverflow = true;
|
|
153
159
|
this.suppressMouseDown = false;
|
|
154
|
-
this
|
|
160
|
+
this.#editor = editor;
|
|
161
|
+
this.#domNode = $(".inline-chat-content-widget");
|
|
155
162
|
const toolbar = this._store.add(
|
|
156
|
-
instantiationService.createInstance(MenuWorkbenchToolBar, this
|
|
163
|
+
instantiationService.createInstance(MenuWorkbenchToolBar, this.#domNode, MenuId.InlineChatEditorAffordance, {
|
|
157
164
|
telemetrySource: "inlineChatEditorAffordance",
|
|
158
165
|
hiddenItemStrategy: HiddenItemStrategy.Ignore,
|
|
159
166
|
menuOptions: {
|
|
@@ -165,7 +172,7 @@ let InlineChatEditorAffordance = class InlineChatEditorAffordance extends Dispos
|
|
|
165
172
|
},
|
|
166
173
|
actionViewItemProvider: action => {
|
|
167
174
|
if (action instanceof MenuItemAction && action.id === quickFixCommandId) {
|
|
168
|
-
return instantiationService.createInstance(QuickFixActionViewItem, action, this
|
|
175
|
+
return instantiationService.createInstance(QuickFixActionViewItem, action, this.#editor);
|
|
169
176
|
}
|
|
170
177
|
if (action instanceof MenuItemAction && (action.id === ACTION_START || action.id === ACTION_ASK_IN_CHAT || action.id === "inlineChat.fixDiagnostics")) {
|
|
171
178
|
return instantiationService.createInstance(LabelWithKeybindingActionViewItem, action);
|
|
@@ -175,59 +182,59 @@ let InlineChatEditorAffordance = class InlineChatEditorAffordance extends Dispos
|
|
|
175
182
|
})
|
|
176
183
|
);
|
|
177
184
|
this._store.add(toolbar.actionRunner.onDidRun(e => {
|
|
178
|
-
this.
|
|
179
|
-
this
|
|
185
|
+
this.#onDidRunAction.fire(e.action.id);
|
|
186
|
+
this.#hide();
|
|
180
187
|
}));
|
|
181
188
|
this._store.add(autorun(r => {
|
|
182
189
|
const sel = selection.read(r);
|
|
183
190
|
if (sel) {
|
|
184
|
-
this
|
|
191
|
+
this.#show(sel);
|
|
185
192
|
} else {
|
|
186
|
-
this
|
|
193
|
+
this.#hide();
|
|
187
194
|
}
|
|
188
195
|
}));
|
|
189
|
-
this._store.add(this.
|
|
196
|
+
this._store.add(this.#editor.onDidScrollChange(() => {
|
|
190
197
|
const sel = selection.get();
|
|
191
198
|
if (!sel) {
|
|
192
199
|
return;
|
|
193
200
|
}
|
|
194
|
-
const isInViewport = this
|
|
195
|
-
if (isInViewport && !this
|
|
196
|
-
this
|
|
197
|
-
} else if (!isInViewport && this
|
|
198
|
-
this
|
|
201
|
+
const isInViewport = this.#isPositionInViewport();
|
|
202
|
+
if (isInViewport && !this.#isVisible) {
|
|
203
|
+
this.#show(sel);
|
|
204
|
+
} else if (!isInViewport && this.#isVisible) {
|
|
205
|
+
this.#hide();
|
|
199
206
|
}
|
|
200
207
|
}));
|
|
201
208
|
}
|
|
202
|
-
|
|
209
|
+
#show(selection) {
|
|
203
210
|
if (selection.isEmpty()) {
|
|
204
|
-
this
|
|
211
|
+
this.#showAtLineStart(selection.getPosition().lineNumber);
|
|
205
212
|
} else {
|
|
206
|
-
this
|
|
213
|
+
this.#showAtSelection(selection);
|
|
207
214
|
}
|
|
208
|
-
if (this
|
|
209
|
-
this.
|
|
215
|
+
if (this.#isVisible) {
|
|
216
|
+
this.#editor.layoutContentWidget(this);
|
|
210
217
|
} else {
|
|
211
|
-
this.
|
|
212
|
-
this
|
|
218
|
+
this.#editor.addContentWidget(this);
|
|
219
|
+
this.#isVisible = true;
|
|
213
220
|
}
|
|
214
221
|
}
|
|
215
|
-
|
|
222
|
+
#showAtSelection(selection) {
|
|
216
223
|
const cursorPosition = selection.getPosition();
|
|
217
224
|
const direction = selection.getDirection();
|
|
218
225
|
const preference = direction === SelectionDirection.RTL ? ContentWidgetPositionPreference.ABOVE : ContentWidgetPositionPreference.BELOW;
|
|
219
|
-
this
|
|
226
|
+
this.#position = {
|
|
220
227
|
position: cursorPosition,
|
|
221
228
|
preference: [preference]
|
|
222
229
|
};
|
|
223
230
|
}
|
|
224
|
-
|
|
225
|
-
const model = this.
|
|
231
|
+
#showAtLineStart(lineNumber) {
|
|
232
|
+
const model = this.#editor.getModel();
|
|
226
233
|
if (!model) {
|
|
227
234
|
return;
|
|
228
235
|
}
|
|
229
236
|
const tabSize = model.getOptions().tabSize;
|
|
230
|
-
const fontInfo = this.
|
|
237
|
+
const fontInfo = this.#editor.getOptions().get(EditorOption.fontInfo);
|
|
231
238
|
const lineContent = model.getLineContent(lineNumber);
|
|
232
239
|
const indent = computeIndentLevel(lineContent, tabSize);
|
|
233
240
|
const lineHasSpace = indent < 0 ? true : fontInfo.spaceWidth * indent > 22;
|
|
@@ -245,7 +252,7 @@ let InlineChatEditorAffordance = class InlineChatEditorAffordance extends Dispos
|
|
|
245
252
|
}
|
|
246
253
|
}
|
|
247
254
|
const effectiveColumnNumber = /^\S\s*$/.test(model.getLineContent(effectiveLineNumber)) ? 2 : 1;
|
|
248
|
-
this
|
|
255
|
+
this.#position = {
|
|
249
256
|
position: {
|
|
250
257
|
lineNumber: effectiveLineNumber,
|
|
251
258
|
column: effectiveColumnNumber
|
|
@@ -253,49 +260,49 @@ let InlineChatEditorAffordance = class InlineChatEditorAffordance extends Dispos
|
|
|
253
260
|
preference: [ContentWidgetPositionPreference.EXACT]
|
|
254
261
|
};
|
|
255
262
|
}
|
|
256
|
-
|
|
257
|
-
const widgetPosition = this
|
|
263
|
+
#isPositionInViewport() {
|
|
264
|
+
const widgetPosition = this.#position?.position;
|
|
258
265
|
if (!widgetPosition) {
|
|
259
266
|
return false;
|
|
260
267
|
}
|
|
261
|
-
const visibleRanges = this.
|
|
268
|
+
const visibleRanges = this.#editor.getVisibleRanges();
|
|
262
269
|
const isLineVisible = ( visibleRanges.some(
|
|
263
270
|
range => widgetPosition.lineNumber >= range.startLineNumber && widgetPosition.lineNumber <= range.endLineNumber
|
|
264
271
|
));
|
|
265
272
|
if (!isLineVisible) {
|
|
266
273
|
return false;
|
|
267
274
|
}
|
|
268
|
-
const scrolledPos = this.
|
|
275
|
+
const scrolledPos = this.#editor.getScrolledVisiblePosition(widgetPosition);
|
|
269
276
|
if (!scrolledPos) {
|
|
270
277
|
return false;
|
|
271
278
|
}
|
|
272
|
-
const layoutInfo = this.
|
|
279
|
+
const layoutInfo = this.#editor.getOptions().get(EditorOption.layoutInfo);
|
|
273
280
|
return scrolledPos.left >= 0 && scrolledPos.left <= layoutInfo.width;
|
|
274
281
|
}
|
|
275
|
-
|
|
276
|
-
if (this
|
|
277
|
-
this
|
|
278
|
-
this.
|
|
282
|
+
#hide() {
|
|
283
|
+
if (this.#isVisible) {
|
|
284
|
+
this.#isVisible = false;
|
|
285
|
+
this.#editor.removeContentWidget(this);
|
|
279
286
|
}
|
|
280
287
|
}
|
|
281
288
|
getId() {
|
|
282
|
-
return this
|
|
289
|
+
return this.#id;
|
|
283
290
|
}
|
|
284
291
|
getDomNode() {
|
|
285
|
-
return this
|
|
292
|
+
return this.#domNode;
|
|
286
293
|
}
|
|
287
294
|
getPosition() {
|
|
288
|
-
return this
|
|
295
|
+
return this.#position;
|
|
289
296
|
}
|
|
290
297
|
beforeRender() {
|
|
291
|
-
const position = this.
|
|
292
|
-
const lineHeight = position ? this.
|
|
293
|
-
this.
|
|
298
|
+
const position = this.#editor.getPosition();
|
|
299
|
+
const lineHeight = position ? this.#editor.getLineHeightForPosition(position) : this.#editor.getOption(EditorOption.lineHeight);
|
|
300
|
+
this.#domNode.style.setProperty("--vscode-inline-chat-affordance-height", `${lineHeight}px`);
|
|
294
301
|
return null;
|
|
295
302
|
}
|
|
296
303
|
dispose() {
|
|
297
|
-
if (this
|
|
298
|
-
this.
|
|
304
|
+
if (this.#isVisible) {
|
|
305
|
+
this.#editor.removeContentWidget(this);
|
|
299
306
|
}
|
|
300
307
|
super.dispose();
|
|
301
308
|
}
|
|
@@ -7,7 +7,6 @@ import { IMenuService } from "@codingame/monaco-vscode-api/vscode/vs/platform/ac
|
|
|
7
7
|
import { IContextKeyService } from "@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service";
|
|
8
8
|
import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
|
|
9
9
|
import { IKeybindingService } from "@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/keybinding.service";
|
|
10
|
-
import { ILogService } from "@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service";
|
|
11
10
|
import { IConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service";
|
|
12
11
|
import { IInlineChatSession2 } from "./inlineChatSessionService.js";
|
|
13
12
|
import { IInlineChatHistoryService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/inlineChat/browser/inlineChatHistoryService.service";
|
|
@@ -15,28 +14,11 @@ import { IInlineChatHistoryService } from "@codingame/monaco-vscode-api/vscode/v
|
|
|
15
14
|
* Overlay widget that displays a vertical action bar menu.
|
|
16
15
|
*/
|
|
17
16
|
export declare class InlineChatInputWidget extends Disposable {
|
|
18
|
-
private
|
|
19
|
-
private readonly _contextKeyService;
|
|
20
|
-
private readonly _menuService;
|
|
21
|
-
private readonly _historyService;
|
|
22
|
-
private readonly _domNode;
|
|
23
|
-
private readonly _container;
|
|
24
|
-
private readonly _inputContainer;
|
|
25
|
-
private readonly _toolbarContainer;
|
|
26
|
-
private readonly _input;
|
|
27
|
-
private readonly _position;
|
|
17
|
+
#private;
|
|
28
18
|
readonly position: IObservable<IOverlayWidgetPosition | null>;
|
|
29
|
-
|
|
30
|
-
private readonly _stickyScrollHeight;
|
|
31
|
-
private readonly _layoutData;
|
|
32
|
-
private _anchorLineNumber;
|
|
33
|
-
private _anchorLeft;
|
|
34
|
-
private _anchorAbove;
|
|
35
|
-
constructor(_editorObs: ObservableCodeEditor, _contextKeyService: IContextKeyService, _menuService: IMenuService, instantiationService: IInstantiationService, modelService: IModelService, configurationService: IConfigurationService, _historyService: IInlineChatHistoryService);
|
|
19
|
+
constructor(editorObs: ObservableCodeEditor, contextKeyService: IContextKeyService, menuService: IMenuService, instantiationService: IInstantiationService, modelService: IModelService, configurationService: IConfigurationService, historyService: IInlineChatHistoryService);
|
|
36
20
|
get value(): string;
|
|
37
21
|
addToHistory(value: string): void;
|
|
38
|
-
private _showPreviousHistoryValue;
|
|
39
|
-
private _showNextHistoryValue;
|
|
40
22
|
/**
|
|
41
23
|
* Show the widget at the specified line.
|
|
42
24
|
* @param lineNumber The line number to anchor the widget to
|
|
@@ -44,35 +26,14 @@ export declare class InlineChatInputWidget extends Disposable {
|
|
|
44
26
|
* @param anchorAbove Whether to anchor above the position (widget grows upward)
|
|
45
27
|
*/
|
|
46
28
|
show(lineNumber: number, left: number, anchorAbove: boolean, placeholder: string, value?: string): void;
|
|
47
|
-
private _updatePosition;
|
|
48
|
-
/**
|
|
49
|
-
* Hide the widget (removes from editor but does not dispose).
|
|
50
|
-
*/
|
|
51
29
|
hide(): void;
|
|
52
30
|
}
|
|
53
31
|
/**
|
|
54
32
|
* Overlay widget that displays progress messages during inline chat requests.
|
|
55
33
|
*/
|
|
56
34
|
export declare class InlineChatSessionOverlayWidget extends Disposable {
|
|
57
|
-
private
|
|
58
|
-
|
|
59
|
-
private readonly _keybindingService;
|
|
60
|
-
private readonly _logService;
|
|
61
|
-
private readonly _domNode;
|
|
62
|
-
private readonly _container;
|
|
63
|
-
private readonly _markdownContainer;
|
|
64
|
-
private readonly _markdownMessage;
|
|
65
|
-
private readonly _markdownScrollable;
|
|
66
|
-
private readonly _contentRow;
|
|
67
|
-
private readonly _statusNode;
|
|
68
|
-
private readonly _icon;
|
|
69
|
-
private readonly _message;
|
|
70
|
-
private readonly _toolbarNode;
|
|
71
|
-
private readonly _showStore;
|
|
72
|
-
private readonly _position;
|
|
73
|
-
private readonly _minContentWidthInPx;
|
|
74
|
-
private readonly _stickyScrollHeight;
|
|
75
|
-
constructor(_editorObs: ObservableCodeEditor, _instaService: IInstantiationService, _keybindingService: IKeybindingService, _logService: ILogService);
|
|
35
|
+
#private;
|
|
36
|
+
constructor(editorObs: ObservableCodeEditor, instaService: IInstantiationService, keybindingService: IKeybindingService);
|
|
76
37
|
show(session: IInlineChatSession2): void;
|
|
77
38
|
hide(): void;
|
|
78
39
|
}
|