@codingame/monaco-vscode-katex-common 33.0.7 → 34.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/base/browser/ui/pixelSpinner/pixelSpinner.css +169 -0
- package/vscode/src/vs/base/browser/ui/pixelSpinner/pixelSpinner.d.ts +28 -0
- package/vscode/src/vs/base/browser/ui/pixelSpinner/pixelSpinner.js +61 -0
- package/vscode/src/vs/platform/actions/browser/actionWidgetDropdownActionViewItem.d.ts +1 -1
- package/vscode/src/vs/platform/actions/browser/actionWidgetDropdownActionViewItem.js +1 -1
- package/vscode/src/vs/platform/actions/browser/buttonbar.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatAccessibilityProvider.js +18 -17
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContinueInAction.js +9 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatElicitationActions.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatExecuteActions.js +40 -38
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatTitleActions.js +10 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatToolActions.js +11 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatToolPicker.js +14 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostChatInputPicker.contribution.d.ts +1 -16
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostChatInputPicker.contribution.js +4 -48
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostChatInputPicker.d.ts +16 -18
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostChatInputPicker.js +81 -69
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostGenericConfigChips.d.ts +1 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostGenericConfigChips.js +5 -22
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSessionUri.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSessionUri.js +21 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/media/agentHostChatInputPicker.css +18 -28
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionHoverWidget.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsControl.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsFilter.js +9 -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 +30 -30
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentWidgets.d.ts +13 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentWidgets.js +177 -80
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/implicitContextAttachment.js +15 -15
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingActions.js +34 -34
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessionPickerActionItem.d.ts +7 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessionPickerActionItem.js +69 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/chatToolRiskAssessmentService.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/toolSetsContribution.js +13 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatAgentHover.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatArtifactsWidget.js +10 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentMarkdownRenderer.js +25 -1
- 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/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/chatCollapsibleContentPart.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCollapsibleContentPart.js +4 -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.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatDisabledClaudeHooksContentPart.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatEditPillElement.d.ts +93 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatEditPillElement.js +140 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatExtensionsContentPart.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatExternalEditContentPart.d.ts +46 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatExternalEditContentPart.js +134 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatHookContentPart.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatInlineAnchorWidget.js +13 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMarkdownContentPart.d.ts +2 -15
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMarkdownContentPart.js +49 -117
- 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.js +30 -30
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatProgressContentPart.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatProgressContentPart.js +47 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatQuestionCarouselPart.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatQuestionCarouselPart.js +52 -51
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatQuotaExceededPart.js +18 -14
- 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 +23 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatSubagentContentPart.js +13 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatSuggestNextWidget.d.ts +15 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatSuggestNextWidget.js +87 -11
- 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 +21 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatThinkingContentPart.js +102 -35
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTipContentPart.js +9 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTodoListWidget.js +17 -17
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatToolInputOutputContentPart.js +2 -2
- 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.js +14 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatCodeBlockPill.css +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatTerminalToolProgressPart.css +22 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatThinkingContent.css +22 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/abstractToolConfirmationSubPart.js +6 -2
- 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/chatInputOutputMarkdownProgressPart.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatMcpAppModel.js +21 -2
- 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 +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatSimpleToolProgressPart.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatTerminalToolConfirmationSubPart.js +35 -18
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatTerminalToolProgressPart.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatTerminalToolProgressPart.js +62 -35
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolConfirmationCarouselPart.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolConfirmationSubPart.js +6 -6
- 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.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolPartUtilities.js +15 -12
- 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/chatToolProgressPart.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolProgressPart.js +10 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/terminalToolAutoExpand.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/terminalToolAutoExpand.js +13 -15
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/toolRiskBadgeWidget.js +4 -4
- 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 +19 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatListRenderer.js +154 -59
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatListWidget.d.ts +6 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatListWidget.js +21 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatOptions.d.ts +4 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatOptions.js +6 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatWidget.d.ts +17 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatWidget.js +113 -23
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatFollowups.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatGoalBannerWidget.d.ts +21 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatGoalBannerWidget.js +64 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputNotificationService.d.ts +10 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputNotificationService.js +7 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputNotificationWidget.d.ts +11 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputNotificationWidget.js +18 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputPart.d.ts +26 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputPart.js +361 -66
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputPickerActionItem.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputPickerActionItem.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputStatusActionViewItem.d.ts +30 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputStatusActionViewItem.js +147 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatModelPicker.d.ts +11 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatModelPicker.js +133 -87
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatPhoneInputPresenter.js +2 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/delegationSessionPickerActionItem.d.ts +4 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/delegationSessionPickerActionItem.js +13 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/media/chatGoalBannerWidget.css +81 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/media/chatInputNotificationWidget.css +32 -18
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/modePickerActionItem.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/modelPickerActionItem.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/permissionPickerActionItem.js +39 -40
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/sessionTargetPickerActionItem.d.ts +23 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/sessionTargetPickerActionItem.js +66 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/workspacePickerActionItem.js +3 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/media/chat.css +373 -32
- 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 +5 -3
- package/vscode/src/vs/workbench/contrib/chat/common/chatArtifactExtraction.js +18 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatImageExtraction.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/common/chatPermissionWarnings.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/common/widget/chatColors.js +18 -18
- package/vscode/src/vs/workbench/contrib/chat/common/widget/chatWidgetHistoryService.d.ts +12 -2
- package/vscode/src/vs/workbench/contrib/chat/common/widget/chatWidgetHistoryService.js +54 -11
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatController.js +3 -3
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatWidget.js +5 -5
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatZoneWidget.js +1 -1
- package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChat.js +30 -30
- 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/platform/actionWidget/browser/actionWidgetDropdown.d.ts +0 -76
- package/vscode/src/vs/platform/actionWidget/browser/actionWidgetDropdown.js +0 -191
- package/vscode/src/vs/platform/networkFilter/common/domainMatcher.d.ts +0 -50
- package/vscode/src/vs/platform/networkFilter/common/domainMatcher.js +0 -138
- package/vscode/src/vs/platform/networkFilter/common/settings.d.ts +0 -12
- package/vscode/src/vs/platform/networkFilter/common/settings.js +0 -14
- package/vscode/src/vs/platform/sandbox/common/sandboxHelperIpc.d.ts +0 -18
- package/vscode/src/vs/platform/sandbox/common/sandboxHelperIpc.js +0 -13
- package/vscode/src/vs/platform/sandbox/common/terminalSandboxService.d.ts +0 -87
- package/vscode/src/vs/platform/sandbox/common/terminalSandboxService.js +0 -10
- package/vscode/src/vs/workbench/contrib/terminal/terminalContribChatExports.d.ts +0 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/alternativeRecommendation.d.ts +0 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/alternativeRecommendation.js +0 -41
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/commandParsers/commandFileWriteParser.d.ts +0 -24
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/commandParsers/sedFileWriteParser.d.ts +0 -26
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/commandParsers/sedFileWriteParser.js +0 -142
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/basicExecuteStrategy.d.ts +0 -52
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/basicExecuteStrategy.js +0 -232
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/executeStrategy.d.ts +0 -65
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/executeStrategy.js +0 -225
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/noneExecuteStrategy.d.ts +0 -27
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/noneExecuteStrategy.js +0 -143
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/richExecuteStrategy.d.ts +0 -37
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/richExecuteStrategy.js +0 -205
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/strategyHelpers.d.ts +0 -40
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/strategyHelpers.js +0 -174
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/outputHelpers.d.ts +0 -7
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/outputHelpers.js +0 -43
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalHelpers.d.ts +0 -52
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalHelpers.js +0 -260
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalToolTelemetry.d.ts +0 -44
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalToolTelemetry.js +0 -98
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/toolTerminalCreator.d.ts +0 -42
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/toolTerminalCreator.js +0 -225
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/autoApprove/commandLineAutoApprover.d.ts +0 -31
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/autoApprove/commandLineAutoApprover.js +0 -392
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/autoApprove/npmScriptAutoApprover.d.ts +0 -45
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/autoApprove/npmScriptAutoApprover.js +0 -243
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineAnalyzer.d.ts +0 -53
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineAnalyzer.js +0 -10
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineAutoApproveAnalyzer.d.ts +0 -20
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineAutoApproveAnalyzer.js +0 -310
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineFileWriteAnalyzer.d.ts +0 -27
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineFileWriteAnalyzer.js +0 -177
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineSandboxAnalyzer.d.ts +0 -11
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineSandboxAnalyzer.js +0 -33
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLinePresenter/commandLinePresenter.d.ts +0 -41
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLinePresenter/nodeCommandLinePresenter.d.ts +0 -19
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLinePresenter/nodeCommandLinePresenter.js +0 -37
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLinePresenter/pythonCommandLinePresenter.d.ts +0 -19
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLinePresenter/pythonCommandLinePresenter.js +0 -37
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLinePresenter/rubyCommandLinePresenter.d.ts +0 -19
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLinePresenter/rubyCommandLinePresenter.js +0 -44
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLinePresenter/sandboxedCommandLinePresenter.d.ts +0 -13
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLinePresenter/sandboxedCommandLinePresenter.js +0 -22
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLineBackgroundDetachRewriter.d.ts +0 -42
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLineBackgroundDetachRewriter.js +0 -102
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLineCdPrefixRewriter.d.ts +0 -5
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLineCdPrefixRewriter.js +0 -27
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLinePreventHistoryRewriter.d.ts +0 -14
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLinePreventHistoryRewriter.js +0 -29
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLinePwshChainOperatorRewriter.d.ts +0 -8
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLinePwshChainOperatorRewriter.js +0 -33
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLineRewriter.d.ts +0 -24
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLineSandboxRewriter.d.ts +0 -15
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLineSandboxRewriter.js +0 -53
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/outputMonitor.d.ts +0 -177
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/outputMonitor.js +0 -512
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/types.d.ts +0 -42
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/types.js +0 -23
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/outputAnalyzer.d.ts +0 -9
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalTool.d.ts +0 -258
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalTool.js +0 -2623
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/sandboxOutputAnalyzer.d.ts +0 -22
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/sandboxOutputAnalyzer.js +0 -43
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/terminalCommandArtifactCollector.d.ts +0 -17
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/terminalCommandArtifactCollector.js +0 -118
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/terminalToolAutoApprove.d.ts +0 -22
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/terminalToolAutoApprove.js +0 -44
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/toolIds.d.ts +0 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/treeSitterCommandParser.d.ts +0 -58
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/treeSitterCommandParser.js +0 -223
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalSandboxCommandRules.d.ts +0 -31
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalSandboxCommandRules.js +0 -49
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalSandboxReadAllowList.d.ts +0 -18
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalSandboxReadAllowList.js +0 -302
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalSandboxRuntimeConfigurationPerOperation.d.ts +0 -7
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalSandboxRuntimeConfigurationPerOperation.js +0 -118
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalSandboxService.d.ts +0 -114
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalSandboxService.js +0 -788
|
@@ -8,7 +8,7 @@ import { isRequestVM } from '@codingame/monaco-vscode-api/vscode/vs/workbench/co
|
|
|
8
8
|
import { ChatResponseResource } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/model/chatModel';
|
|
9
9
|
import { IChatToolInvocation } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService/chatService';
|
|
10
10
|
import { isToolResultInputOutputDetails, isToolResultOutputDetails } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/tools/languageModelToolsService';
|
|
11
|
-
import { isImageVariableEntry } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/attachments/chatVariableEntries';
|
|
11
|
+
import { getExplicitFileOrImageAttachmentSummary, isImageVariableEntry } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/attachments/chatVariableEntries';
|
|
12
12
|
|
|
13
13
|
async function extractImagesFromChatResponse(response, readFile) {
|
|
14
14
|
const allImages = [];
|
|
@@ -26,7 +26,7 @@ async function extractImagesFromChatResponse(response, readFile) {
|
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
28
|
const request = response.session.getItems().find(item => isRequestVM(item) && item.id === response.requestId);
|
|
29
|
-
const title = request ? request.messageText : ( localize(
|
|
29
|
+
const title = request ? request.messageText.trim() || getExplicitFileOrImageAttachmentSummary(request.variables) || ( localize(7922, "Images")) : ( localize(7922, "Images"));
|
|
30
30
|
return {
|
|
31
31
|
id: ( response.sessionResource.toString()) + "_" + response.id,
|
|
32
32
|
title,
|
|
@@ -45,10 +45,10 @@ function extractImagesFromToolInvocationOutputDetails(toolInvocation, sessionRes
|
|
|
45
45
|
images.push({
|
|
46
46
|
id: `${toolInvocation.toolCallId}_${outputIndex}`,
|
|
47
47
|
uri,
|
|
48
|
-
name: ( localize(
|
|
48
|
+
name: ( localize(7923, "Image {0}", images.length + 1)),
|
|
49
49
|
mimeType,
|
|
50
50
|
data,
|
|
51
|
-
source: ( localize(
|
|
51
|
+
source: ( localize(7924, "Tool: {0}", toolInvocation.toolId)),
|
|
52
52
|
caption
|
|
53
53
|
});
|
|
54
54
|
};
|
|
@@ -93,7 +93,7 @@ async function extractImagesFromToolInvocationMessages(toolInvocation, readFile)
|
|
|
93
93
|
name,
|
|
94
94
|
mimeType,
|
|
95
95
|
data,
|
|
96
|
-
source: ( localize(
|
|
96
|
+
source: ( localize(7924, "Tool: {0}", toolInvocation.toolId)),
|
|
97
97
|
caption: message.value
|
|
98
98
|
});
|
|
99
99
|
}
|
|
@@ -131,7 +131,7 @@ async function extractImageFromInlineReference(part, readFile) {
|
|
|
131
131
|
name,
|
|
132
132
|
mimeType: mime,
|
|
133
133
|
data,
|
|
134
|
-
source: ( localize(
|
|
134
|
+
source: ( localize(7925, "File")),
|
|
135
135
|
caption: undefined
|
|
136
136
|
};
|
|
137
137
|
}
|
|
@@ -160,7 +160,7 @@ function extractImagesFromChatRequest(request) {
|
|
|
160
160
|
name: variable.name,
|
|
161
161
|
mimeType,
|
|
162
162
|
data: VSBuffer.wrap(buffer),
|
|
163
|
-
source: ( localize(
|
|
163
|
+
source: ( localize(7926, "Attachment")),
|
|
164
164
|
caption: undefined
|
|
165
165
|
});
|
|
166
166
|
}
|
|
@@ -38,27 +38,27 @@ async function maybeConfirmElevatedPermissionLevel(level, dialogService, storage
|
|
|
38
38
|
const isAutopilot = level === ChatPermissionLevel.Autopilot;
|
|
39
39
|
const result = await dialogService.prompt({
|
|
40
40
|
type: Severity.Warning,
|
|
41
|
-
message: isAutopilot ? ( localize(
|
|
41
|
+
message: isAutopilot ? ( localize(7930, "Enable Autopilot?")) : ( localize(7931, "Enable Bypass Approvals?")),
|
|
42
42
|
buttons: [{
|
|
43
|
-
label: isAutopilot ? ( localize(
|
|
43
|
+
label: isAutopilot ? ( localize(7932, "Enable")) : ( localize(7933, "Enable")),
|
|
44
44
|
run: () => true
|
|
45
45
|
}, {
|
|
46
|
-
label: isAutopilot ? ( localize(
|
|
46
|
+
label: isAutopilot ? ( localize(7934, "Cancel")) : ( localize(7935, "Cancel")),
|
|
47
47
|
run: () => false
|
|
48
48
|
}],
|
|
49
49
|
checkbox: {
|
|
50
|
-
label: ( localize(
|
|
50
|
+
label: ( localize(7936, "Don't show again")),
|
|
51
51
|
checked: false
|
|
52
52
|
},
|
|
53
53
|
custom: {
|
|
54
54
|
icon: isAutopilot ? Codicon.rocket : Codicon.warning,
|
|
55
55
|
markdownDetails: [{
|
|
56
56
|
markdown: ( new MarkdownString(isAutopilot ? ( localize(
|
|
57
|
-
|
|
57
|
+
7937,
|
|
58
58
|
"Autopilot will auto-approve all tool calls and continue working autonomously until the task is complete. This includes terminal commands, file edits, and external tool calls. The agent will make decisions on your behalf without asking for confirmation.\n\nYou can stop the agent at any time by clicking the stop button. This applies to the current session only.\n\nTo make this the starting permission level for new chat sessions, change the [{0}](command:workbench.action.openSettings?%5B%22{0}%22%5D) setting.",
|
|
59
59
|
ChatConfiguration.DefaultPermissionLevel
|
|
60
60
|
)) : ( localize(
|
|
61
|
-
|
|
61
|
+
7938,
|
|
62
62
|
"Bypass Approvals will auto-approve all tool calls without asking for confirmation. This includes file edits, terminal commands, and external tool calls.\n\nTo make this the starting permission level for new chat sessions, change the [{0}](command:workbench.action.openSettings?%5B%22{0}%22%5D) setting.",
|
|
63
63
|
ChatConfiguration.DefaultPermissionLevel
|
|
64
64
|
)), {
|
|
@@ -18,45 +18,45 @@ registerColor("agentStatusIndicator.background", {
|
|
|
18
18
|
light: ( Color.black.transparent(0.05)),
|
|
19
19
|
hcDark: null,
|
|
20
20
|
hcLight: null
|
|
21
|
-
}, ( localize(
|
|
21
|
+
}, ( localize(8394, "Background color of the agent status indicator in the titlebar.")));
|
|
22
22
|
registerColor("chat.requestBorder", {
|
|
23
23
|
dark: ( new Color(( new RGBA(255, 255, 255, 0.10)))),
|
|
24
24
|
light: ( new Color(( new RGBA(0, 0, 0, 0.10)))),
|
|
25
25
|
hcDark: contrastBorder,
|
|
26
26
|
hcLight: contrastBorder
|
|
27
|
-
}, ( localize(
|
|
27
|
+
}, ( localize(8395, "The border color of a chat request.")));
|
|
28
28
|
const chatRequestBackground = registerColor("chat.requestBackground", {
|
|
29
29
|
dark: ( transparent(editorBackground, 0.62)),
|
|
30
30
|
light: ( transparent(editorBackground, 0.62)),
|
|
31
31
|
hcDark: editorWidgetBackground,
|
|
32
32
|
hcLight: null
|
|
33
|
-
}, ( localize(
|
|
33
|
+
}, ( localize(8396, "The background color of a chat request.")));
|
|
34
34
|
const chatSlashCommandBackground = registerColor("chat.slashCommandBackground", {
|
|
35
35
|
dark: "#26477866",
|
|
36
36
|
light: "#adceff7a",
|
|
37
37
|
hcDark: Color.white,
|
|
38
38
|
hcLight: badgeBackground
|
|
39
|
-
}, ( localize(
|
|
39
|
+
}, ( localize(8397, "The background color of a chat slash command.")));
|
|
40
40
|
const chatSlashCommandForeground = registerColor("chat.slashCommandForeground", {
|
|
41
41
|
dark: "#85b6ff",
|
|
42
42
|
light: "#26569e",
|
|
43
43
|
hcDark: Color.black,
|
|
44
44
|
hcLight: badgeForeground
|
|
45
|
-
}, ( localize(
|
|
45
|
+
}, ( localize(8398, "The foreground color of a chat slash command.")));
|
|
46
46
|
registerColor("chat.avatarBackground", {
|
|
47
47
|
dark: "#1f1f1f",
|
|
48
48
|
light: "#f2f2f2",
|
|
49
49
|
hcDark: Color.black,
|
|
50
50
|
hcLight: Color.white
|
|
51
|
-
}, ( localize(
|
|
52
|
-
registerColor("chat.avatarForeground", foreground, ( localize(
|
|
51
|
+
}, ( localize(8399, "The background color of a chat avatar.")));
|
|
52
|
+
registerColor("chat.avatarForeground", foreground, ( localize(8400, "The foreground color of a chat avatar.")));
|
|
53
53
|
registerColor("chat.editedFileForeground", {
|
|
54
54
|
light: "#895503",
|
|
55
55
|
dark: "#E2C08D",
|
|
56
56
|
hcDark: "#E2C08D",
|
|
57
57
|
hcLight: "#895503"
|
|
58
58
|
}, ( localize(
|
|
59
|
-
|
|
59
|
+
8401,
|
|
60
60
|
"The foreground color of a chat edited file in the edited file list."
|
|
61
61
|
)));
|
|
62
62
|
registerColor("chat.requestCodeBorder", {
|
|
@@ -64,50 +64,50 @@ registerColor("chat.requestCodeBorder", {
|
|
|
64
64
|
light: "#0e639c40",
|
|
65
65
|
hcDark: null,
|
|
66
66
|
hcLight: null
|
|
67
|
-
}, ( localize(
|
|
67
|
+
}, ( localize(8402, "Border color of code blocks within the chat request bubble.")), true);
|
|
68
68
|
registerColor("chat.requestBubbleBackground", {
|
|
69
69
|
light: ( transparent(editorSelectionBackground, 0.3)),
|
|
70
70
|
dark: ( transparent(editorSelectionBackground, 0.3)),
|
|
71
71
|
hcDark: null,
|
|
72
72
|
hcLight: null
|
|
73
|
-
}, ( localize(
|
|
73
|
+
}, ( localize(8403, "Background color of the chat request bubble.")), true);
|
|
74
74
|
registerColor("chat.requestBubbleHoverBackground", {
|
|
75
75
|
dark: ( transparent(editorSelectionBackground, 0.6)),
|
|
76
76
|
light: ( transparent(editorSelectionBackground, 0.6)),
|
|
77
77
|
hcDark: null,
|
|
78
78
|
hcLight: null
|
|
79
|
-
}, ( localize(
|
|
79
|
+
}, ( localize(8404, "Background color of the chat request bubble on hover.")), true);
|
|
80
80
|
registerColor("chat.checkpointSeparator", {
|
|
81
81
|
dark: "#585858",
|
|
82
82
|
light: "#a9a9a9",
|
|
83
83
|
hcDark: "#a9a9a9",
|
|
84
84
|
hcLight: "#a5a5a5"
|
|
85
|
-
}, ( localize(
|
|
85
|
+
}, ( localize(8405, "Chat checkpoint separator color.")));
|
|
86
86
|
registerColor("chat.linesAddedForeground", {
|
|
87
87
|
dark: "#54B054",
|
|
88
88
|
light: "#107C10",
|
|
89
89
|
hcDark: "#54B054",
|
|
90
90
|
hcLight: "#107C10"
|
|
91
|
-
}, ( localize(
|
|
91
|
+
}, ( localize(8406, "Foreground color of lines added in chat code block pill.")), true);
|
|
92
92
|
registerColor("chat.linesRemovedForeground", {
|
|
93
93
|
dark: "#FC6A6A",
|
|
94
94
|
light: "#BC2F32",
|
|
95
95
|
hcDark: "#F48771",
|
|
96
96
|
hcLight: "#B5200D"
|
|
97
|
-
}, ( localize(
|
|
97
|
+
}, ( localize(8407, "Foreground color of lines removed in chat code block pill.")), true);
|
|
98
98
|
registerColor("chat.thinkingShimmer", {
|
|
99
99
|
dark: "#ffffff",
|
|
100
100
|
light: "#000000",
|
|
101
101
|
hcDark: "#ffffff",
|
|
102
102
|
hcLight: "#000000"
|
|
103
|
-
}, ( localize(
|
|
103
|
+
}, ( localize(8408, "Shimmer highlight for thinking/working labels.")), true);
|
|
104
104
|
registerColor("chat.inputWorkingBorderColor1", {
|
|
105
105
|
dark: buttonBackground,
|
|
106
106
|
light: buttonBackground,
|
|
107
107
|
hcDark: "#FFFFFF",
|
|
108
108
|
hcLight: "#000000"
|
|
109
109
|
}, ( localize(
|
|
110
|
-
|
|
110
|
+
8409,
|
|
111
111
|
"First color stop of the animated chat input border shown while a request is in flight."
|
|
112
112
|
)), true);
|
|
113
113
|
registerColor("chat.inputWorkingBorderColor2", {
|
|
@@ -116,7 +116,7 @@ registerColor("chat.inputWorkingBorderColor2", {
|
|
|
116
116
|
hcDark: "#A0A0A0",
|
|
117
117
|
hcLight: "#555555"
|
|
118
118
|
}, ( localize(
|
|
119
|
-
|
|
119
|
+
8410,
|
|
120
120
|
"Secondary accent color used by other animated chat input affordances. Not used by the in-flight chat input border."
|
|
121
121
|
)), true);
|
|
122
122
|
registerColor("chat.inputWorkingBorderColor3", {
|
|
@@ -125,7 +125,7 @@ registerColor("chat.inputWorkingBorderColor3", {
|
|
|
125
125
|
hcDark: "#000000",
|
|
126
126
|
hcLight: "#000000"
|
|
127
127
|
}, ( localize(
|
|
128
|
-
|
|
128
|
+
8411,
|
|
129
129
|
"Tertiary accent color used by other animated chat input affordances. Not used by the in-flight chat input border."
|
|
130
130
|
)), true);
|
|
131
131
|
|
|
@@ -5,7 +5,14 @@ import { ChatAgentLocation } from "@codingame/monaco-vscode-api/vscode/vs/workbe
|
|
|
5
5
|
import { IChatWidgetHistoryService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/widget/chatWidgetHistoryService.service";
|
|
6
6
|
export type ChatHistoryChange = {
|
|
7
7
|
kind: "append";
|
|
8
|
+
location: ChatAgentLocation;
|
|
9
|
+
historyKey: string | undefined;
|
|
8
10
|
entry: IChatModelInputState;
|
|
11
|
+
} | {
|
|
12
|
+
kind: "move";
|
|
13
|
+
location: ChatAgentLocation;
|
|
14
|
+
fromHistoryKey: string;
|
|
15
|
+
toHistoryKey: string;
|
|
9
16
|
} | {
|
|
10
17
|
kind: "clear";
|
|
11
18
|
};
|
|
@@ -18,10 +25,11 @@ export declare class ChatWidgetHistoryService extends Disposable implements ICha
|
|
|
18
25
|
private changed;
|
|
19
26
|
readonly onDidChangeHistory: import("@codingame/monaco-vscode-api/vscode/vs/base/common/event").Event<ChatHistoryChange>;
|
|
20
27
|
constructor(storageService: IStorageService);
|
|
21
|
-
getHistory(location: ChatAgentLocation): IChatModelInputState[];
|
|
28
|
+
getHistory(location: ChatAgentLocation, historyKey?: string): IChatModelInputState[];
|
|
22
29
|
private migrateHistoryEntry;
|
|
23
30
|
private getKey;
|
|
24
|
-
append(location: ChatAgentLocation, history: IChatModelInputState): void;
|
|
31
|
+
append(location: ChatAgentLocation, history: IChatModelInputState, historyKey?: string): void;
|
|
32
|
+
moveHistory(location: ChatAgentLocation, fromHistoryKey: string, toHistoryKey: string): void;
|
|
25
33
|
clearHistory(): void;
|
|
26
34
|
}
|
|
27
35
|
export declare class ChatHistoryNavigator extends Disposable {
|
|
@@ -33,8 +41,10 @@ export declare class ChatHistoryNavigator extends Disposable {
|
|
|
33
41
|
private _currentIndex;
|
|
34
42
|
private _history;
|
|
35
43
|
private _overlay;
|
|
44
|
+
private _historyKey;
|
|
36
45
|
get values(): readonly IChatModelInputState[];
|
|
37
46
|
constructor(location: ChatAgentLocation, chatWidgetHistoryService: IChatWidgetHistoryService);
|
|
47
|
+
setHistoryKey(historyKey: string | undefined): void;
|
|
38
48
|
isAtEnd(): boolean;
|
|
39
49
|
isAtStart(): boolean;
|
|
40
50
|
/**
|
|
@@ -26,8 +26,8 @@ let ChatWidgetHistoryService = class ChatWidgetHistoryService extends Disposable
|
|
|
26
26
|
}
|
|
27
27
|
}));
|
|
28
28
|
}
|
|
29
|
-
getHistory(location) {
|
|
30
|
-
const key = this.getKey(location);
|
|
29
|
+
getHistory(location, historyKey) {
|
|
30
|
+
const key = this.getKey(location, historyKey);
|
|
31
31
|
const history = this.viewState.history?.[key] ?? [];
|
|
32
32
|
return ( history.map(entry => this.migrateHistoryEntry(entry)));
|
|
33
33
|
}
|
|
@@ -67,19 +67,43 @@ let ChatWidgetHistoryService = class ChatWidgetHistoryService extends Disposable
|
|
|
67
67
|
selections: []
|
|
68
68
|
};
|
|
69
69
|
}
|
|
70
|
-
getKey(location) {
|
|
71
|
-
|
|
70
|
+
getKey(location, historyKey) {
|
|
71
|
+
const locationKey = location === ChatAgentLocation.Chat ? CHAT_PROVIDER_ID : location;
|
|
72
|
+
return historyKey === undefined ? locationKey : `${locationKey}:${historyKey}`;
|
|
72
73
|
}
|
|
73
|
-
append(location, history) {
|
|
74
|
+
append(location, history, historyKey) {
|
|
74
75
|
this.viewState.history ??= {};
|
|
75
|
-
const key = this.getKey(location);
|
|
76
|
-
this.viewState.history[key] = this.getHistory(location).concat(history).slice(-40);
|
|
76
|
+
const key = this.getKey(location, historyKey);
|
|
77
|
+
this.viewState.history[key] = this.getHistory(location, historyKey).concat(history).slice(-40);
|
|
77
78
|
this.changed = true;
|
|
78
79
|
this._onDidChangeHistory.fire({
|
|
79
80
|
kind: "append",
|
|
81
|
+
location,
|
|
82
|
+
historyKey,
|
|
80
83
|
entry: history
|
|
81
84
|
});
|
|
82
85
|
}
|
|
86
|
+
moveHistory(location, fromHistoryKey, toHistoryKey) {
|
|
87
|
+
if (fromHistoryKey === toHistoryKey) {
|
|
88
|
+
return;
|
|
89
|
+
}
|
|
90
|
+
const fromHistory = this.getHistory(location, fromHistoryKey);
|
|
91
|
+
if (fromHistory.length === 0) {
|
|
92
|
+
return;
|
|
93
|
+
}
|
|
94
|
+
this.viewState.history ??= {};
|
|
95
|
+
const fromKey = this.getKey(location, fromHistoryKey);
|
|
96
|
+
const toKey = this.getKey(location, toHistoryKey);
|
|
97
|
+
this.viewState.history[toKey] = this.getHistory(location, toHistoryKey).concat(fromHistory).slice(-40);
|
|
98
|
+
delete this.viewState.history[fromKey];
|
|
99
|
+
this.changed = true;
|
|
100
|
+
this._onDidChangeHistory.fire({
|
|
101
|
+
kind: "move",
|
|
102
|
+
location,
|
|
103
|
+
fromHistoryKey,
|
|
104
|
+
toHistoryKey
|
|
105
|
+
});
|
|
106
|
+
}
|
|
83
107
|
clearHistory() {
|
|
84
108
|
this.viewState.history = {};
|
|
85
109
|
this.changed = true;
|
|
@@ -91,19 +115,22 @@ let ChatWidgetHistoryService = class ChatWidgetHistoryService extends Disposable
|
|
|
91
115
|
ChatWidgetHistoryService = ( __decorate([( __param(0, IStorageService))], ChatWidgetHistoryService));
|
|
92
116
|
let ChatHistoryNavigator = class ChatHistoryNavigator extends Disposable {
|
|
93
117
|
get values() {
|
|
94
|
-
return this.chatWidgetHistoryService.getHistory(this.location);
|
|
118
|
+
return this.chatWidgetHistoryService.getHistory(this.location, this._historyKey);
|
|
95
119
|
}
|
|
96
120
|
constructor(location, chatWidgetHistoryService) {
|
|
97
121
|
super();
|
|
98
122
|
this.location = location;
|
|
99
123
|
this.chatWidgetHistoryService = chatWidgetHistoryService;
|
|
100
124
|
this._overlay = [];
|
|
101
|
-
this._history = this.chatWidgetHistoryService.getHistory(this.location);
|
|
125
|
+
this._history = this.chatWidgetHistoryService.getHistory(this.location, this._historyKey);
|
|
102
126
|
this._currentIndex = this._history.length;
|
|
103
127
|
this._register(this.chatWidgetHistoryService.onDidChangeHistory(e => {
|
|
104
128
|
if (e.kind === "append") {
|
|
129
|
+
if (e.location !== this.location || e.historyKey !== this._historyKey) {
|
|
130
|
+
return;
|
|
131
|
+
}
|
|
105
132
|
const prevLength = this._history.length;
|
|
106
|
-
this._history = this.chatWidgetHistoryService.getHistory(this.location);
|
|
133
|
+
this._history = this.chatWidgetHistoryService.getHistory(this.location, this._historyKey);
|
|
107
134
|
const newLength = this._history.length;
|
|
108
135
|
if (prevLength === newLength) {
|
|
109
136
|
this._overlay.shift();
|
|
@@ -117,9 +144,25 @@ let ChatHistoryNavigator = class ChatHistoryNavigator extends Disposable {
|
|
|
117
144
|
this._history = [];
|
|
118
145
|
this._currentIndex = 0;
|
|
119
146
|
this._overlay = [];
|
|
147
|
+
} else if (e.kind === "move") {
|
|
148
|
+
if (e.location !== this.location || (e.fromHistoryKey !== this._historyKey && e.toHistoryKey !== this._historyKey)) {
|
|
149
|
+
return;
|
|
150
|
+
}
|
|
151
|
+
this._history = this.chatWidgetHistoryService.getHistory(this.location, this._historyKey);
|
|
152
|
+
this._currentIndex = this._history.length;
|
|
153
|
+
this._overlay = [];
|
|
120
154
|
}
|
|
121
155
|
}));
|
|
122
156
|
}
|
|
157
|
+
setHistoryKey(historyKey) {
|
|
158
|
+
if (this._historyKey === historyKey) {
|
|
159
|
+
return;
|
|
160
|
+
}
|
|
161
|
+
this._historyKey = historyKey;
|
|
162
|
+
this._history = this.chatWidgetHistoryService.getHistory(this.location, this._historyKey);
|
|
163
|
+
this._currentIndex = this._history.length;
|
|
164
|
+
this._overlay = [];
|
|
165
|
+
}
|
|
123
166
|
isAtEnd() {
|
|
124
167
|
return this._currentIndex === Math.max(this._history.length, this._overlay.length);
|
|
125
168
|
}
|
|
@@ -147,7 +190,7 @@ let ChatHistoryNavigator = class ChatHistoryNavigator extends Disposable {
|
|
|
147
190
|
this._overlay = [];
|
|
148
191
|
this._currentIndex = this._history.length;
|
|
149
192
|
if (!entriesEqual(this._history.at(-1), entry)) {
|
|
150
|
-
this.chatWidgetHistoryService.append(this.location, entry);
|
|
193
|
+
this.chatWidgetHistoryService.append(this.location, entry, this._historyKey);
|
|
151
194
|
}
|
|
152
195
|
}
|
|
153
196
|
};
|
|
@@ -266,7 +266,7 @@ let InlineChatController = class InlineChatController {
|
|
|
266
266
|
}
|
|
267
267
|
}));
|
|
268
268
|
const defaultPlaceholderObs = ( visibleSessionObs.map((session, r) => {
|
|
269
|
-
return session?.initialSelection.isEmpty() ? ( localize(
|
|
269
|
+
return session?.initialSelection.isEmpty() ? ( localize(10714, "Generate code")) : ( localize(10715, "Modify selected code"));
|
|
270
270
|
}));
|
|
271
271
|
this.#store.add(autorun(r => {
|
|
272
272
|
const session = visibleSessionObs.read(r);
|
|
@@ -379,7 +379,7 @@ let InlineChatController = class InlineChatController {
|
|
|
379
379
|
if (lastProgress) {
|
|
380
380
|
placeholder = renderAsPlaintext(lastProgress.content);
|
|
381
381
|
}
|
|
382
|
-
this.#zone.rawValue?.widget.chatWidget.setInputPlaceholder(placeholder || ( localize(
|
|
382
|
+
this.#zone.rawValue?.widget.chatWidget.setInputPlaceholder(placeholder || ( localize(10716, "Working...")));
|
|
383
383
|
}
|
|
384
384
|
}));
|
|
385
385
|
this.#store.add(autorun(r => {
|
|
@@ -455,7 +455,7 @@ let InlineChatController = class InlineChatController {
|
|
|
455
455
|
}
|
|
456
456
|
if (entries.length > 0) {
|
|
457
457
|
this.#zone.value.widget.chatWidget.attachmentModel.addContext(...entries);
|
|
458
|
-
const msg = entries.length > 1 ? ( localize(
|
|
458
|
+
const msg = entries.length > 1 ? ( localize(10717, "Fix the attached problems")) : ( localize(10718, "Fix the attached problem"));
|
|
459
459
|
this.#zone.value.widget.chatWidget.input.setValue(msg, true);
|
|
460
460
|
arg.message = msg;
|
|
461
461
|
this.#zone.value.widget.chatWidget.inputEditor.setSelection(( new Selection(1, 1, Number.MAX_SAFE_INTEGER, 1)));
|
|
@@ -257,7 +257,7 @@ let InlineChatWidget = class InlineChatWidget {
|
|
|
257
257
|
);
|
|
258
258
|
this._store.add(this.#chatService.onDidPerformUserAction(e => {
|
|
259
259
|
if (isEqual(e.sessionResource, this.chatWidget.viewModel?.model.sessionResource) && e.action.kind === "vote") {
|
|
260
|
-
this.updateStatus(( localize(
|
|
260
|
+
this.updateStatus(( localize(10725, "Thank you for your feedback!")), {
|
|
261
261
|
resetAfter: 1250
|
|
262
262
|
});
|
|
263
263
|
}
|
|
@@ -270,11 +270,11 @@ let InlineChatWidget = class InlineChatWidget {
|
|
|
270
270
|
if (this.#configurationService.getValue(AccessibilityVerbositySettingId.InlineChat)) {
|
|
271
271
|
const kbLabel = this.#keybindingService.lookupKeybinding(AccessibilityCommandId.OpenAccessibilityHelp)?.getLabel();
|
|
272
272
|
label = kbLabel ? ( localize(
|
|
273
|
-
|
|
273
|
+
10726,
|
|
274
274
|
"Inline Chat Input, Use {0} for Inline Chat Accessibility Help.",
|
|
275
275
|
kbLabel
|
|
276
276
|
)) : ( localize(
|
|
277
|
-
|
|
277
|
+
10727,
|
|
278
278
|
"Inline Chat Input, Run the Inline Chat Accessibility Help command for more information."
|
|
279
279
|
));
|
|
280
280
|
}
|
|
@@ -295,7 +295,7 @@ let InlineChatWidget = class InlineChatWidget {
|
|
|
295
295
|
this._elements.disclaimerLabel.classList.toggle("hidden", !showDisclaimer);
|
|
296
296
|
if (showDisclaimer) {
|
|
297
297
|
const renderedMarkdown = disposables.add(this.#markdownRendererService.render(( new MarkdownString(( localize(
|
|
298
|
-
|
|
298
|
+
10728,
|
|
299
299
|
"By continuing with {0} Copilot, you agree to {1}'s [Terms]({2}) and [Privacy Statement]({3})",
|
|
300
300
|
product.defaultChatAgent?.provider?.default?.name ?? "",
|
|
301
301
|
product.defaultChatAgent?.provider?.default?.name ?? "",
|
|
@@ -417,7 +417,7 @@ let InlineChatWidget = class InlineChatWidget {
|
|
|
417
417
|
}
|
|
418
418
|
};
|
|
419
419
|
InlineChatWidget = ( __decorate([( __param(2, IInstantiationService)), ( __param(3, IContextKeyService)), ( __param(4, IKeybindingService)), ( __param(5, IAccessibilityService)), ( __param(6, IConfigurationService)), ( __param(7, IAccessibleViewService)), ( __param(8, ITextModelService)), ( __param(9, IChatService)), ( __param(10, IHoverService)), ( __param(11, IChatEntitlementService)), ( __param(12, IMarkdownRendererService))], InlineChatWidget));
|
|
420
|
-
const defaultAriaLabel = ( localize(
|
|
420
|
+
const defaultAriaLabel = ( localize(10729, "Inline Chat Input"));
|
|
421
421
|
let EditorBasedInlineChatWidget = class EditorBasedInlineChatWidget extends InlineChatWidget {
|
|
422
422
|
constructor(
|
|
423
423
|
location,
|
|
@@ -421,7 +421,7 @@ let InlineChatZoneWidget = class InlineChatZoneWidget extends ZoneWidget {
|
|
|
421
421
|
this.widget.domNode.style.display = "";
|
|
422
422
|
this.widget.chatWidget.setVisible(false);
|
|
423
423
|
super.hide();
|
|
424
|
-
status(( localize(
|
|
424
|
+
status(( localize(10730, "Closed inline chat widget")));
|
|
425
425
|
scrollState.restore(this.editor);
|
|
426
426
|
}
|
|
427
427
|
};
|
|
@@ -29,7 +29,7 @@ var InlineChatConfigKeys;
|
|
|
29
29
|
id: "editor",
|
|
30
30
|
properties: {
|
|
31
31
|
[InlineChatConfigKeys.NotebookAgent]: {
|
|
32
|
-
markdownDescription: ( localize(
|
|
32
|
+
markdownDescription: ( localize(10731, "Enable agent-like behavior for inline chat widget in notebooks.")),
|
|
33
33
|
default: false,
|
|
34
34
|
type: "boolean",
|
|
35
35
|
tags: ["experimental"],
|
|
@@ -39,13 +39,13 @@ var InlineChatConfigKeys;
|
|
|
39
39
|
},
|
|
40
40
|
[InlineChatConfigKeys.Affordance]: {
|
|
41
41
|
description: ( localize(
|
|
42
|
-
|
|
42
|
+
10732,
|
|
43
43
|
"Controls whether an inline chat affordance is shown when text is selected."
|
|
44
44
|
)),
|
|
45
45
|
default: "off",
|
|
46
46
|
type: "string",
|
|
47
47
|
enum: ["off", "editor"],
|
|
48
|
-
enumDescriptions: [( localize(
|
|
48
|
+
enumDescriptions: [( localize(10733, "No affordance is shown.")), ( localize(10734, "Show an affordance in the editor at the cursor position."))],
|
|
49
49
|
experiment: {
|
|
50
50
|
mode: "auto"
|
|
51
51
|
},
|
|
@@ -56,7 +56,7 @@ var InlineChatConfigKeys;
|
|
|
56
56
|
},
|
|
57
57
|
[InlineChatConfigKeys.FixDiagnostics]: {
|
|
58
58
|
description: ( localize(
|
|
59
|
-
|
|
59
|
+
10735,
|
|
60
60
|
"Controls whether the Fix action is shown for diagnostics in the editor."
|
|
61
61
|
)),
|
|
62
62
|
default: true,
|
|
@@ -68,7 +68,7 @@ var InlineChatConfigKeys;
|
|
|
68
68
|
},
|
|
69
69
|
[InlineChatConfigKeys.AskInChat]: {
|
|
70
70
|
description: ( localize(
|
|
71
|
-
|
|
71
|
+
10736,
|
|
72
72
|
"Controls whether files in a chat editing session use Ask in Chat instead of Inline Chat."
|
|
73
73
|
)),
|
|
74
74
|
default: true,
|
|
@@ -78,23 +78,23 @@ var InlineChatConfigKeys;
|
|
|
78
78
|
});
|
|
79
79
|
const INLINE_CHAT_ID = "editor.contrib.inlineChatController";
|
|
80
80
|
const CTX_INLINE_CHAT_POSSIBLE = ( new RawContextKey("inlineChatPossible", false, ( localize(
|
|
81
|
-
|
|
81
|
+
10737,
|
|
82
82
|
"Whether a provider for inline chat exists and whether an editor for inline chat is open"
|
|
83
83
|
))));
|
|
84
|
-
const CTX_INLINE_CHAT_HAS_AGENT = ( new RawContextKey("inlineChatHasEditsAgent", false, ( localize(
|
|
85
|
-
const CTX_INLINE_CHAT_HAS_NOTEBOOK_INLINE = ( new RawContextKey("inlineChatHasNotebookInline", false, ( localize(
|
|
86
|
-
const CTX_INLINE_CHAT_HAS_NOTEBOOK_AGENT = ( new RawContextKey("inlineChatHasNotebookAgent", false, ( localize(
|
|
87
|
-
const CTX_INLINE_CHAT_VISIBLE = ( new RawContextKey("inlineChatVisible", false, ( localize(
|
|
88
|
-
const CTX_INLINE_CHAT_FOCUSED = ( new RawContextKey("inlineChatFocused", false, ( localize(
|
|
89
|
-
const CTX_INLINE_CHAT_RESPONSE_FOCUSED = ( new RawContextKey("inlineChatResponseFocused", false, ( localize(
|
|
84
|
+
const CTX_INLINE_CHAT_HAS_AGENT = ( new RawContextKey("inlineChatHasEditsAgent", false, ( localize(10738, "Whether an agent for inline chat in interactive editors exists"))));
|
|
85
|
+
const CTX_INLINE_CHAT_HAS_NOTEBOOK_INLINE = ( new RawContextKey("inlineChatHasNotebookInline", false, ( localize(10739, "Whether an agent for notebook cells exists"))));
|
|
86
|
+
const CTX_INLINE_CHAT_HAS_NOTEBOOK_AGENT = ( new RawContextKey("inlineChatHasNotebookAgent", false, ( localize(10740, "Whether an agent for notebook cells exists"))));
|
|
87
|
+
const CTX_INLINE_CHAT_VISIBLE = ( new RawContextKey("inlineChatVisible", false, ( localize(10741, "Whether the interactive editor input is visible"))));
|
|
88
|
+
const CTX_INLINE_CHAT_FOCUSED = ( new RawContextKey("inlineChatFocused", false, ( localize(10742, "Whether the interactive editor input is focused"))));
|
|
89
|
+
const CTX_INLINE_CHAT_RESPONSE_FOCUSED = ( new RawContextKey("inlineChatResponseFocused", false, ( localize(10743, "Whether the interactive widget's response is focused"))));
|
|
90
90
|
const CTX_INLINE_CHAT_OUTER_CURSOR_POSITION = ( new RawContextKey("inlineChatOuterCursorPosition", "", ( localize(
|
|
91
|
-
|
|
91
|
+
10744,
|
|
92
92
|
"Whether the cursor of the outer editor is above or below the interactive editor input"
|
|
93
93
|
))));
|
|
94
|
-
const CTX_INLINE_CHAT_REQUEST_IN_PROGRESS = ( new RawContextKey("inlineChatRequestInProgress", false, ( localize(
|
|
95
|
-
const CTX_INLINE_CHAT_FILE_BELONGS_TO_CHAT = ( new RawContextKey("inlineChatFileBelongsToChat", false, ( localize(
|
|
96
|
-
const CTX_INLINE_CHAT_TERMINATED = ( new RawContextKey("inlineChatTerminated", false, ( localize(
|
|
97
|
-
const CTX_INLINE_CHAT_AFFORDANCE_VISIBLE = ( new RawContextKey("inlineChatAffordanceVisible", false, ( localize(
|
|
94
|
+
const CTX_INLINE_CHAT_REQUEST_IN_PROGRESS = ( new RawContextKey("inlineChatRequestInProgress", false, ( localize(10745, "Whether an inline chat request is currently in progress"))));
|
|
95
|
+
const CTX_INLINE_CHAT_FILE_BELONGS_TO_CHAT = ( new RawContextKey("inlineChatFileBelongsToChat", false, ( localize(10746, "Whether the current file belongs to a chat editing session"))));
|
|
96
|
+
const CTX_INLINE_CHAT_TERMINATED = ( new RawContextKey("inlineChatTerminated", false, ( localize(10747, "Whether the current inline chat session is terminated"))));
|
|
97
|
+
const CTX_INLINE_CHAT_AFFORDANCE_VISIBLE = ( new RawContextKey("inlineChatAffordanceVisible", false, ( localize(10748, "Whether an inline chat affordance widget is visible"))));
|
|
98
98
|
const CTX_INLINE_CHAT_V2_ENABLED = ( ContextKeyExpr.or(CTX_INLINE_CHAT_HAS_AGENT, ( ContextKeyExpr.and(NOTEBOOK_IS_ACTIVE_EDITOR, CTX_INLINE_CHAT_HAS_NOTEBOOK_AGENT))));
|
|
99
99
|
const CTX_FIX_DIAGNOSTICS_ENABLED = ( ContextKeyExpr.equals("config.inlineChat.fixDiagnostics", true));
|
|
100
100
|
const CTX_ASK_IN_CHAT_ENABLED = ( ContextKeyExpr.equals("config.inlineChat.askInChat", true));
|
|
@@ -102,37 +102,37 @@ const ACTION_START = "inlineChat.start";
|
|
|
102
102
|
const ACTION_ASK_IN_CHAT = "inlineChat.askInChat";
|
|
103
103
|
const MENU_INLINE_CHAT_WIDGET_SECONDARY = MenuId.for("inlineChatWidget.secondary");
|
|
104
104
|
const MENU_INLINE_CHAT_SIDE = MenuId.for("inlineChatWidget.side");
|
|
105
|
-
const inlineChatForeground = registerColor("inlineChat.foreground", editorWidgetForeground, ( localize(
|
|
106
|
-
const inlineChatBackground = registerColor("inlineChat.background", editorWidgetBackground, ( localize(
|
|
107
|
-
registerColor("inlineChat.border", editorWidgetBorder, ( localize(
|
|
108
|
-
registerColor("inlineChat.shadow", widgetShadow, ( localize(
|
|
109
|
-
registerColor("inlineChatInput.border", editorWidgetBorder, ( localize(
|
|
110
|
-
registerColor("inlineChatInput.focusBorder", focusBorder, ( localize(
|
|
105
|
+
const inlineChatForeground = registerColor("inlineChat.foreground", editorWidgetForeground, ( localize(10749, "Foreground color of the interactive editor widget")));
|
|
106
|
+
const inlineChatBackground = registerColor("inlineChat.background", editorWidgetBackground, ( localize(10750, "Background color of the interactive editor widget")));
|
|
107
|
+
registerColor("inlineChat.border", editorWidgetBorder, ( localize(10751, "Border color of the interactive editor widget")));
|
|
108
|
+
registerColor("inlineChat.shadow", widgetShadow, ( localize(10752, "Shadow color of the interactive editor widget")));
|
|
109
|
+
registerColor("inlineChatInput.border", editorWidgetBorder, ( localize(10753, "Border color of the interactive editor input")));
|
|
110
|
+
registerColor("inlineChatInput.focusBorder", focusBorder, ( localize(10754, "Border color of the interactive editor input when focused")));
|
|
111
111
|
registerColor(
|
|
112
112
|
"inlineChatInput.placeholderForeground",
|
|
113
113
|
inputPlaceholderForeground,
|
|
114
|
-
( localize(
|
|
114
|
+
( localize(10755, "Foreground color of the interactive editor input placeholder"))
|
|
115
115
|
);
|
|
116
|
-
registerColor("inlineChatInput.background", inputBackground, ( localize(
|
|
117
|
-
registerColor("inlineChatDiff.inserted", ( transparent(diffInserted, .5)), ( localize(
|
|
116
|
+
registerColor("inlineChatInput.background", inputBackground, ( localize(10756, "Background color of the interactive editor input")));
|
|
117
|
+
registerColor("inlineChatDiff.inserted", ( transparent(diffInserted, .5)), ( localize(10757, "Background color of inserted text in the interactive editor input")));
|
|
118
118
|
registerColor("editorOverviewRuler.inlineChatInserted", {
|
|
119
119
|
dark: ( transparent(diffInserted, 0.6)),
|
|
120
120
|
light: ( transparent(diffInserted, 0.8)),
|
|
121
121
|
hcDark: ( transparent(diffInserted, 0.6)),
|
|
122
122
|
hcLight: ( transparent(diffInserted, 0.8))
|
|
123
|
-
}, ( localize(
|
|
123
|
+
}, ( localize(10758, "Overview ruler marker color for inline chat inserted content.")));
|
|
124
124
|
registerColor("editorMinimap.inlineChatInserted", {
|
|
125
125
|
dark: ( transparent(diffInserted, 0.6)),
|
|
126
126
|
light: ( transparent(diffInserted, 0.8)),
|
|
127
127
|
hcDark: ( transparent(diffInserted, 0.6)),
|
|
128
128
|
hcLight: ( transparent(diffInserted, 0.8))
|
|
129
|
-
}, ( localize(
|
|
130
|
-
registerColor("inlineChatDiff.removed", ( transparent(diffRemoved, .5)), ( localize(
|
|
129
|
+
}, ( localize(10759, "Minimap marker color for inline chat inserted content.")));
|
|
130
|
+
registerColor("inlineChatDiff.removed", ( transparent(diffRemoved, .5)), ( localize(10760, "Background color of removed text in the interactive editor input")));
|
|
131
131
|
registerColor("editorOverviewRuler.inlineChatRemoved", {
|
|
132
132
|
dark: ( transparent(diffRemoved, 0.6)),
|
|
133
133
|
light: ( transparent(diffRemoved, 0.8)),
|
|
134
134
|
hcDark: ( transparent(diffRemoved, 0.6)),
|
|
135
135
|
hcLight: ( transparent(diffRemoved, 0.8))
|
|
136
|
-
}, ( localize(
|
|
136
|
+
}, ( localize(10761, "Overview ruler marker color for inline chat removed content.")));
|
|
137
137
|
|
|
138
138
|
export { ACTION_ASK_IN_CHAT, ACTION_START, CTX_ASK_IN_CHAT_ENABLED, CTX_FIX_DIAGNOSTICS_ENABLED, CTX_INLINE_CHAT_AFFORDANCE_VISIBLE, CTX_INLINE_CHAT_FILE_BELONGS_TO_CHAT, CTX_INLINE_CHAT_FOCUSED, CTX_INLINE_CHAT_HAS_AGENT, CTX_INLINE_CHAT_HAS_NOTEBOOK_AGENT, CTX_INLINE_CHAT_HAS_NOTEBOOK_INLINE, CTX_INLINE_CHAT_OUTER_CURSOR_POSITION, CTX_INLINE_CHAT_POSSIBLE, CTX_INLINE_CHAT_REQUEST_IN_PROGRESS, CTX_INLINE_CHAT_RESPONSE_FOCUSED, CTX_INLINE_CHAT_TERMINATED, CTX_INLINE_CHAT_V2_ENABLED, CTX_INLINE_CHAT_VISIBLE, INLINE_CHAT_ID, InlineChatConfigKeys, MENU_INLINE_CHAT_SIDE, MENU_INLINE_CHAT_WIDGET_SECONDARY, inlineChatBackground, inlineChatForeground };
|
|
@@ -88,7 +88,7 @@ let ReplInputHintContentWidget = class ReplInputHintContentWidget extends Dispos
|
|
|
88
88
|
const keybinding = this.getKeybinding();
|
|
89
89
|
const keybindingHintLabel = keybinding?.getLabel();
|
|
90
90
|
if (keybinding && keybindingHintLabel) {
|
|
91
|
-
const actionPart = ( localize(
|
|
91
|
+
const actionPart = ( localize(10784, "Press {0} to execute. ", keybindingHintLabel));
|
|
92
92
|
const [before, after] = ( actionPart.split(keybindingHintLabel).map(fragment => {
|
|
93
93
|
const hintPart = $("span", undefined, fragment);
|
|
94
94
|
hintPart.style.fontStyle = "italic";
|
|
@@ -105,9 +105,9 @@ let ReplInputHintContentWidget = class ReplInputHintContentWidget extends Dispos
|
|
|
105
105
|
hintElement.appendChild(after);
|
|
106
106
|
this.domNode.append(hintElement);
|
|
107
107
|
const helpKeybinding = this.keybindingService.lookupKeybinding(AccessibilityCommandId.OpenAccessibilityHelp)?.getLabel();
|
|
108
|
-
const helpInfo = helpKeybinding ? ( localize(
|
|
108
|
+
const helpInfo = helpKeybinding ? ( localize(10785, "Use {0} for accessibility help. ", helpKeybinding)) : ( localize(10786, "Run the Open Accessibility Help command for more information. "));
|
|
109
109
|
this.ariaLabel = actionPart.concat(helpInfo, ( localize(
|
|
110
|
-
|
|
110
|
+
10787,
|
|
111
111
|
" Toggle {0} in settings to disable this hint.",
|
|
112
112
|
AccessibilityVerbositySettingId.ReplEditor
|
|
113
113
|
)));
|