@codingame/monaco-vscode-katex-common 31.0.1 → 32.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 +2 -2
- package/vscode/src/vs/platform/actionWidget/browser/actionWidgetDropdown.d.ts +15 -3
- package/vscode/src/vs/platform/actionWidget/browser/actionWidgetDropdown.js +6 -5
- package/vscode/src/vs/platform/actions/browser/buttonbar.d.ts +5 -1
- package/vscode/src/vs/platform/actions/browser/buttonbar.js +45 -14
- package/vscode/src/vs/platform/sandbox/common/terminalSandboxService.d.ts +15 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatAccessibilityProvider.js +16 -16
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContinueInAction.js +15 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatElicitationActions.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatExecuteActions.js +51 -54
- 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 +13 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionHoverWidget.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionHoverWidget.js +45 -23
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsControl.js +13 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsFilter.js +9 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsOpener.js +5 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsViewer.d.ts +4 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsViewer.js +46 -32
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentModel.js +8 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentWidgets.d.ts +23 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentWidgets.js +155 -46
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatImplicitContext.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatImplicitContext.js +20 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/implicitContextAttachment.d.ts +4 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/implicitContextAttachment.js +37 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingActions.js +34 -34
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessionPickerActionItem.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/media/chatSessionPickerActionItem.css +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/chatToolRiskAssessmentService.d.ts +28 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/chatToolRiskAssessmentService.js +250 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/toolSetsContribution.js +13 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatAgentHover.js +14 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatArtifactsWidget.js +10 -10
- 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.js +7 -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/chatCommandContentPart.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatConfirmationContentPart.js +7 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatConfirmationWidget.d.ts +12 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatConfirmationWidget.js +51 -20
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatDisabledClaudeHooksContentPart.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatElicitationContentPart.d.ts +6 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatElicitationContentPart.js +56 -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/buffers/paragraphBuffer.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatIncrementalRendering/buffers/paragraphBuffer.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatIncrementalRendering/chatIncrementalRendering.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatIncrementalRendering/chatIncrementalRendering.js +4 -0
- 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.js +68 -10
- 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 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatPlanReviewPart.js +653 -75
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatProgressContentPart.js +28 -10
- 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 +91 -54
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatQuotaExceededPart.js +7 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatReferencesContentPart.js +53 -51
- 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.js +11 -11
- 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 +4 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatThinkingContentPart.js +42 -22
- 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.d.ts +6 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/codeBlockPart.js +93 -35
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatConfirmationWidget.css +5 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatPlanReview.css +169 -27
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatQuestionCarousel.css +13 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatThinkingContent.css +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatToolConfirmationCarousel.css +29 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/abstractToolConfirmationSubPart.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/abstractToolConfirmationSubPart.js +60 -15
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatExtensionsInstallToolSubPart.js +13 -6
- 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 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatTerminalToolConfirmationSubPart.d.ts +6 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatTerminalToolConfirmationSubPart.js +125 -26
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatTerminalToolProgressPart.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatTerminalToolProgressPart.js +29 -23
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolConfirmationCarouselPart.d.ts +14 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolConfirmationCarouselPart.js +119 -10
- 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/chatToolInvocationPart.js +1 -1
- 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/media/toolRiskBadge.css +77 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/toolRiskBadgeWidget.d.ts +38 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/toolRiskBadgeWidget.js +125 -0
- 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 +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatListRenderer.js +132 -59
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatWidget.d.ts +16 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatWidget.js +156 -67
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatFollowups.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputNotificationService.d.ts +55 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputNotificationService.js +93 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputNotificationWidget.d.ts +21 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputNotificationWidget.js +133 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputPart.d.ts +53 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputPart.js +288 -125
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatModelPicker.d.ts +23 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatModelPicker.js +699 -145
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatModelSelectionLogic.d.ts +12 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatModelSelectionLogic.js +12 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatPhoneInputPresenter.d.ts +62 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatPhoneInputPresenter.js +120 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/delegationSessionPickerActionItem.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/media/chatInputNotificationWidget.css +191 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/media/chatPhoneInputPresenter.css +22 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/modePickerActionItem.d.ts +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/modePickerActionItem.js +9 -25
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/modelPickerActionItem.js +4 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/permissionPickerActionItem.d.ts +20 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/permissionPickerActionItem.js +89 -108
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/sessionTargetPickerActionItem.js +3 -3
- 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 +521 -9
- 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/browser/widgetHosts/viewPane/media/chatContextUsageDetails.css +19 -19
- package/vscode/src/vs/workbench/contrib/chat/common/chatImageExtraction.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/common/chatPermissionStorageKeys.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatPermissionStorageKeys.js +6 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatPermissionWarnings.d.ts +27 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatPermissionWarnings.js +82 -0
- package/vscode/src/vs/workbench/contrib/chat/common/widget/chatColors.d.ts +3 -0
- package/vscode/src/vs/workbench/contrib/chat/common/widget/chatColors.js +44 -17
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatAffordance.d.ts +1 -3
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatAffordance.js +3 -46
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/{inlineChatEditorAffordance.d.ts → inlineChatAffordanceWidget.d.ts} +1 -1
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/{inlineChatEditorAffordance.js → inlineChatAffordanceWidget.js} +6 -6
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatController.d.ts +2 -18
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatController.js +19 -400
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionService.d.ts +4 -9
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionService.js +1 -1
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatWidget.d.ts +5 -19
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatWidget.js +47 -133
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatZoneWidget.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatZoneWidget.js +103 -25
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/media/inlineChat.css +29 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChat.d.ts +3 -32
- package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChat.js +39 -92
- 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/terminalContrib/chatAgentTools/browser/executeStrategy/basicExecuteStrategy.d.ts +7 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/basicExecuteStrategy.js +99 -32
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/executeStrategy.d.ts +13 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/executeStrategy.js +76 -14
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/noneExecuteStrategy.js +4 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/richExecuteStrategy.d.ts +9 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/richExecuteStrategy.js +89 -28
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/outputHelpers.js +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalHelpers.d.ts +11 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalHelpers.js +11 -7
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalToolTelemetry.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalToolTelemetry.js +7 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/autoApprove/commandLineAutoApprover.js +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/autoApprove/npmScriptAutoApprover.js +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineAnalyzer.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineAutoApproveAnalyzer.js +12 -12
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineFileWriteAnalyzer.d.ts +8 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineFileWriteAnalyzer.js +11 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLineBackgroundDetachRewriter.d.ts +20 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLineBackgroundDetachRewriter.js +59 -4
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLineSandboxRewriter.d.ts +8 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLineSandboxRewriter.js +24 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/outputMonitor.d.ts +47 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/outputMonitor.js +111 -30
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalTool.d.ts +60 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalTool.js +455 -171
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/treeSitterCommandParser.d.ts +33 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/treeSitterCommandParser.js +82 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalSandboxCommandRules.d.ts +31 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalSandboxCommandRules.js +49 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalSandboxReadAllowList.d.ts +18 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalSandboxReadAllowList.js +302 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalSandboxRuntimeConfigurationPerOperation.d.ts +7 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalSandboxRuntimeConfigurationPerOperation.js +118 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalSandboxService.d.ts +34 -4
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalSandboxService.js +233 -48
- package/vscode/src/vs/platform/actions/browser/actionbar.d.ts +0 -16
- package/vscode/src/vs/platform/actions/browser/actionbar.js +0 -22
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorActions.d.ts +0 -46
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorActions.js +0 -539
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorOverlay.d.ts +0 -29
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorOverlay.js +0 -386
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingExplanationWidget.d.ts +0 -101
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingExplanationWidget.js +0 -509
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/media/chatEditingEditorOverlay.css +0 -130
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/media/chatEditingExplanationWidget.css +0 -276
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputPartWidgets.d.ts +0 -45
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputPartWidgets.js +0 -93
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatOverlayWidget.d.ts +0 -39
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatOverlayWidget.js +0 -617
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/media/inlineChatOverlayWidget.css +0 -231
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
|
|
2
2
|
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
3
|
-
import { $, addDisposableListener, Dimension } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
|
|
3
|
+
import { $, getWindow, addDisposableListener, Dimension } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
|
|
4
4
|
import { status } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/aria/aria';
|
|
5
5
|
import { renderAsPlaintext, renderMarkdown } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/markdownRenderer';
|
|
6
6
|
import { DomScrollableElement } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/scrollbar/scrollableElement';
|
|
7
|
+
import { ActionViewItem } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/actionbar/actionViewItems';
|
|
7
8
|
import { ActionRunner } from '@codingame/monaco-vscode-api/vscode/vs/base/common/actions';
|
|
8
9
|
import { MarkdownString } from '@codingame/monaco-vscode-api/vscode/vs/base/common/htmlContent';
|
|
9
10
|
import { DisposableStore, toDisposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
10
11
|
import '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/index';
|
|
11
12
|
import { isEqual } from '@codingame/monaco-vscode-api/vscode/vs/base/common/resources';
|
|
13
|
+
import { Emitter } from '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
|
|
12
14
|
import { ScrollbarVisibility } from '@codingame/monaco-vscode-api/vscode/vs/base/common/scrollable';
|
|
13
15
|
import { assertType } from '@codingame/monaco-vscode-api/vscode/vs/base/common/types';
|
|
14
16
|
import { StableEditorBottomScrollState } from '@codingame/monaco-vscode-api/vscode/vs/editor/browser/stableEditorScroll';
|
|
@@ -16,17 +18,45 @@ import { EditorOption } from '@codingame/monaco-vscode-api/vscode/vs/editor/comm
|
|
|
16
18
|
import { ScrollType } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/editorCommon';
|
|
17
19
|
import { ZoneWidget } from '@codingame/monaco-vscode-api/vscode/vs/editor/contrib/zoneWidget/browser/zoneWidget';
|
|
18
20
|
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
21
|
+
import { RawContextKey, ContextKeyExpr } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey';
|
|
19
22
|
import { IContextKeyService } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service';
|
|
20
23
|
import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
|
|
21
24
|
import { ILogService } from '@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service';
|
|
22
25
|
import { MenuWorkbenchToolBar, HiddenItemStrategy } from '@codingame/monaco-vscode-api/vscode/vs/platform/actions/browser/toolbar';
|
|
23
|
-
import { MenuId } from '@codingame/monaco-vscode-api/vscode/vs/platform/actions/common/actions';
|
|
26
|
+
import { Action2, MenuId, registerAction2 } from '@codingame/monaco-vscode-api/vscode/vs/platform/actions/common/actions';
|
|
27
|
+
import { IActionViewItemService } from '@codingame/monaco-vscode-api/vscode/vs/platform/actions/browser/actionViewItemService.service';
|
|
24
28
|
import { ChatMode } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatModes';
|
|
25
|
-
import { CTX_INLINE_CHAT_OUTER_CURSOR_POSITION, MENU_INLINE_CHAT_SIDE, MENU_INLINE_CHAT_WIDGET_SECONDARY
|
|
29
|
+
import { CTX_INLINE_CHAT_OUTER_CURSOR_POSITION, MENU_INLINE_CHAT_SIDE, MENU_INLINE_CHAT_WIDGET_SECONDARY } from '../common/inlineChat.js';
|
|
26
30
|
import { EditorBasedInlineChatWidget } from './inlineChatWidget.js';
|
|
31
|
+
import { ChatAgentLocation } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/constants';
|
|
32
|
+
import { ChatContextKeys } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/actions/chatContextKeys';
|
|
33
|
+
import { observableValue } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/observables/observableValue';
|
|
27
34
|
import { autorun } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/reactions/autorun';
|
|
28
35
|
|
|
29
36
|
var InlineChatZoneWidget_1;
|
|
37
|
+
class StatusPlaceholder extends Action2 {
|
|
38
|
+
static {
|
|
39
|
+
this.Id = "inlineChatWidget.statusPlaceholder";
|
|
40
|
+
}
|
|
41
|
+
static {
|
|
42
|
+
this.CtxHasStatus = ( new RawContextKey("inlineChatHasStatus", false));
|
|
43
|
+
}
|
|
44
|
+
constructor() {
|
|
45
|
+
super({
|
|
46
|
+
id: StatusPlaceholder.Id,
|
|
47
|
+
title: "",
|
|
48
|
+
precondition: ( ContextKeyExpr.false()),
|
|
49
|
+
menu: {
|
|
50
|
+
id: MenuId.ChatInput,
|
|
51
|
+
when: ( ContextKeyExpr.and(( ContextKeyExpr.equals(ChatContextKeys.location.key, ChatAgentLocation.EditorInline)), StatusPlaceholder.CtxHasStatus)),
|
|
52
|
+
group: "navigation",
|
|
53
|
+
order: Number.MAX_SAFE_INTEGER
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
run() {}
|
|
58
|
+
}
|
|
59
|
+
registerAction2(StatusPlaceholder);
|
|
30
60
|
let InlineChatZoneWidget = class InlineChatZoneWidget extends ZoneWidget {
|
|
31
61
|
static {
|
|
32
62
|
InlineChatZoneWidget_1 = this;
|
|
@@ -42,7 +72,22 @@ let InlineChatZoneWidget = class InlineChatZoneWidget extends ZoneWidget {
|
|
|
42
72
|
showInHiddenAreas: true,
|
|
43
73
|
ordinal: 50000
|
|
44
74
|
};
|
|
75
|
+
static #instances = ( new Set());
|
|
76
|
+
static #statusDidChange = ( new Emitter());
|
|
77
|
+
static #factoryRegistration;
|
|
78
|
+
static #findByDom(element) {
|
|
79
|
+
const widgetDom = element.closest(".inline-chat-widget");
|
|
80
|
+
if (widgetDom) {
|
|
81
|
+
for (const instance of InlineChatZoneWidget_1.#instances) {
|
|
82
|
+
if (instance.domNode === widgetDom) {
|
|
83
|
+
return instance;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
return undefined;
|
|
88
|
+
}
|
|
45
89
|
#ctxCursorPosition;
|
|
90
|
+
#ctxHasStatus;
|
|
46
91
|
#dimension;
|
|
47
92
|
#logService;
|
|
48
93
|
#terminationCard;
|
|
@@ -50,17 +95,20 @@ let InlineChatZoneWidget = class InlineChatZoneWidget extends ZoneWidget {
|
|
|
50
95
|
#terminationMarkdownMessage;
|
|
51
96
|
#terminationMarkdownScrollable;
|
|
52
97
|
#terminationToolbar;
|
|
53
|
-
#terminationStore
|
|
98
|
+
#terminationStore;
|
|
54
99
|
constructor(
|
|
55
100
|
location,
|
|
56
101
|
options,
|
|
57
102
|
editors,
|
|
58
103
|
clearDelegate,
|
|
59
104
|
instaService,
|
|
105
|
+
actionViewItemService,
|
|
60
106
|
logService,
|
|
61
107
|
contextKeyService
|
|
62
108
|
) {
|
|
63
109
|
super(editors.editor, InlineChatZoneWidget_1.#options);
|
|
110
|
+
this.status = observableValue(this, "");
|
|
111
|
+
this.#terminationStore = ( new DisposableStore());
|
|
64
112
|
this.notebookEditor = editors.notebookEditor;
|
|
65
113
|
this.#logService = logService;
|
|
66
114
|
this.#terminationCard = $("div.inline-chat-terminated-card.hidden");
|
|
@@ -79,29 +127,59 @@ let InlineChatZoneWidget = class InlineChatZoneWidget extends ZoneWidget {
|
|
|
79
127
|
this.#terminationCard.appendChild(contentRow);
|
|
80
128
|
this._disposables.add(this.#terminationStore);
|
|
81
129
|
this.#ctxCursorPosition = CTX_INLINE_CHAT_OUTER_CURSOR_POSITION.bindTo(contextKeyService);
|
|
130
|
+
this.#ctxHasStatus = StatusPlaceholder.CtxHasStatus.bindTo(contextKeyService);
|
|
82
131
|
this._disposables.add(toDisposable(() => {
|
|
83
132
|
this.#ctxCursorPosition.reset();
|
|
133
|
+
this.#ctxHasStatus.reset();
|
|
84
134
|
}));
|
|
85
|
-
this.
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
135
|
+
this._disposables.add(autorun(r => {
|
|
136
|
+
this.#ctxHasStatus.set(!!this.status.read(r));
|
|
137
|
+
}));
|
|
138
|
+
InlineChatZoneWidget_1.#instances.add(this);
|
|
139
|
+
this._disposables.add(toDisposable(() => {
|
|
140
|
+
InlineChatZoneWidget_1.#instances.delete(this);
|
|
141
|
+
if (InlineChatZoneWidget_1.#instances.size === 0) {
|
|
142
|
+
InlineChatZoneWidget_1.#factoryRegistration?.dispose();
|
|
143
|
+
InlineChatZoneWidget_1.#factoryRegistration = undefined;
|
|
144
|
+
}
|
|
145
|
+
}));
|
|
146
|
+
this._disposables.add(autorun(r => {
|
|
147
|
+
this.status.read(r);
|
|
148
|
+
InlineChatZoneWidget_1.#statusDidChange.fire();
|
|
149
|
+
}));
|
|
150
|
+
if (!InlineChatZoneWidget_1.#factoryRegistration) {
|
|
151
|
+
InlineChatZoneWidget_1.#factoryRegistration = actionViewItemService.register(MenuId.ChatInput, StatusPlaceholder.Id, (action, options) => {
|
|
152
|
+
const item = new (class extends ActionViewItem {
|
|
153
|
+
render(container) {
|
|
154
|
+
super.render(container);
|
|
155
|
+
container.classList.add("status-placeholder");
|
|
156
|
+
const targetWindow = getWindow(container);
|
|
157
|
+
let handle = targetWindow.requestAnimationFrame(() => {
|
|
158
|
+
handle = 0;
|
|
159
|
+
const widget = InlineChatZoneWidget_1.#findByDom(container);
|
|
160
|
+
if (widget) {
|
|
161
|
+
this._store.add(autorun(r => {
|
|
162
|
+
const value = widget.status.read(r) ?? "";
|
|
163
|
+
this.action.label = value;
|
|
164
|
+
this.updateLabel();
|
|
165
|
+
}));
|
|
166
|
+
}
|
|
167
|
+
});
|
|
168
|
+
this._store.add(toDisposable(() => {
|
|
169
|
+
if (handle) {
|
|
170
|
+
targetWindow.cancelAnimationFrame(handle);
|
|
171
|
+
}
|
|
172
|
+
}));
|
|
102
173
|
}
|
|
103
|
-
}
|
|
104
|
-
|
|
174
|
+
})(undefined, action, {
|
|
175
|
+
...options,
|
|
176
|
+
icon: false,
|
|
177
|
+
label: true
|
|
178
|
+
});
|
|
179
|
+
return item;
|
|
180
|
+
}, InlineChatZoneWidget_1.#statusDidChange.event);
|
|
181
|
+
}
|
|
182
|
+
this.widget = instaService.createInstance(EditorBasedInlineChatWidget, location, this.editor, {
|
|
105
183
|
secondaryMenuId: MENU_INLINE_CHAT_WIDGET_SECONDARY,
|
|
106
184
|
inZoneWidget: true,
|
|
107
185
|
chatWidgetViewOptions: {
|
|
@@ -343,10 +421,10 @@ let InlineChatZoneWidget = class InlineChatZoneWidget extends ZoneWidget {
|
|
|
343
421
|
this.widget.domNode.style.display = "";
|
|
344
422
|
this.widget.chatWidget.setVisible(false);
|
|
345
423
|
super.hide();
|
|
346
|
-
status(( localize(
|
|
424
|
+
status(( localize(10434, "Closed inline chat widget")));
|
|
347
425
|
scrollState.restore(this.editor);
|
|
348
426
|
}
|
|
349
427
|
};
|
|
350
|
-
InlineChatZoneWidget = InlineChatZoneWidget_1 = ( __decorate([( __param(4, IInstantiationService)), ( __param(5,
|
|
428
|
+
InlineChatZoneWidget = InlineChatZoneWidget_1 = ( __decorate([( __param(4, IInstantiationService)), ( __param(5, IActionViewItemService)), ( __param(6, ILogService)), ( __param(7, IContextKeyService))], InlineChatZoneWidget));
|
|
351
429
|
|
|
352
430
|
export { InlineChatZoneWidget };
|
|
@@ -124,6 +124,11 @@
|
|
|
124
124
|
.chat-editor-container .interactive-input-editor .monaco-editor .monaco-editor-background {
|
|
125
125
|
background-color: var(--vscode-inlineChat-background);
|
|
126
126
|
}
|
|
127
|
+
|
|
128
|
+
/* Counteract the -4px margin from .interactive-session .chat-editing-session */
|
|
129
|
+
.interactive-input-part > .chat-input-notification-container {
|
|
130
|
+
margin-bottom: 12px;
|
|
131
|
+
}
|
|
127
132
|
}
|
|
128
133
|
|
|
129
134
|
|
|
@@ -323,6 +328,11 @@
|
|
|
323
328
|
padding: 2px 0px;
|
|
324
329
|
}
|
|
325
330
|
|
|
331
|
+
.monaco-workbench .inline-chat .interactive-session .chat-input-toolbar .chat-input-picker-item .action-label.model-picker-split::before,
|
|
332
|
+
.monaco-workbench .inline-chat .interactive-session .chat-input-toolbar .chat-input-picker-item .action-label.model-picker-split::after {
|
|
333
|
+
display: none;
|
|
334
|
+
}
|
|
335
|
+
|
|
326
336
|
/* Termination card (zone widget) — aligned with overlay widget */
|
|
327
337
|
|
|
328
338
|
.monaco-workbench .inline-chat-terminated-card {
|
|
@@ -385,3 +395,22 @@
|
|
|
385
395
|
font-size: 12px;
|
|
386
396
|
white-space: nowrap;
|
|
387
397
|
}
|
|
398
|
+
|
|
399
|
+
/* Status Placeholder */
|
|
400
|
+
.monaco-workbench .zone-widget.inline-chat-widget .status-placeholder {
|
|
401
|
+
margin-left: auto;
|
|
402
|
+
opacity: 0;
|
|
403
|
+
pointer-events: none;
|
|
404
|
+
transition: opacity 0.1s ease-in-out;
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
.monaco-workbench .zone-widget.inline-chat-widget .status-placeholder .action-label {
|
|
408
|
+
color: var(--vscode-descriptionForeground);
|
|
409
|
+
font-size: 11px;
|
|
410
|
+
cursor: default;
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
.monaco-workbench .zone-widget.inline-chat-widget:hover .status-placeholder,
|
|
414
|
+
.monaco-workbench .zone-widget.inline-chat-widget:focus-within .status-placeholder {
|
|
415
|
+
opacity: 1;
|
|
416
|
+
}
|
|
@@ -1,25 +1,15 @@
|
|
|
1
1
|
import { MenuId } from "@codingame/monaco-vscode-api/vscode/vs/platform/actions/common/actions";
|
|
2
2
|
import { RawContextKey } from "@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey";
|
|
3
3
|
export declare enum InlineChatConfigKeys {
|
|
4
|
-
|
|
5
|
-
/** @deprecated do not read on client */
|
|
6
|
-
EnableV2 = "inlineChat.enableV2",
|
|
7
|
-
notebookAgent = "inlineChat.notebookAgent",
|
|
4
|
+
NotebookAgent = "inlineChat.notebookAgent",
|
|
8
5
|
DefaultModel = "inlineChat.defaultModel",
|
|
9
6
|
Affordance = "inlineChat.affordance",
|
|
10
|
-
RenderMode = "inlineChat.renderMode",
|
|
11
7
|
FixDiagnostics = "inlineChat.fixDiagnostics",
|
|
12
8
|
AskInChat = "inlineChat.askInChat"
|
|
13
9
|
}
|
|
14
|
-
export declare const INLINE_CHAT_ID = "
|
|
15
|
-
export declare const INTERACTIVE_EDITOR_ACCESSIBILITY_HELP_ID = "interactiveEditorAccessiblityHelp";
|
|
16
|
-
export declare enum InlineChatResponseType {
|
|
17
|
-
None = "none",
|
|
18
|
-
Messages = "messages",
|
|
19
|
-
MessagesAndEdits = "messagesAndEdits"
|
|
20
|
-
}
|
|
10
|
+
export declare const INLINE_CHAT_ID = "editor.contrib.inlineChatController";
|
|
21
11
|
export declare const CTX_INLINE_CHAT_POSSIBLE: RawContextKey<boolean>;
|
|
22
|
-
export declare const
|
|
12
|
+
export declare const CTX_INLINE_CHAT_HAS_AGENT: RawContextKey<boolean>;
|
|
23
13
|
export declare const CTX_INLINE_CHAT_HAS_NOTEBOOK_INLINE: RawContextKey<boolean>;
|
|
24
14
|
export declare const CTX_INLINE_CHAT_HAS_NOTEBOOK_AGENT: RawContextKey<boolean>;
|
|
25
15
|
export declare const CTX_INLINE_CHAT_VISIBLE: RawContextKey<boolean>;
|
|
@@ -27,36 +17,17 @@ export declare const CTX_INLINE_CHAT_FOCUSED: RawContextKey<boolean>;
|
|
|
27
17
|
export declare const CTX_INLINE_CHAT_EDITING: RawContextKey<boolean>;
|
|
28
18
|
export declare const CTX_INLINE_CHAT_RESPONSE_FOCUSED: RawContextKey<boolean>;
|
|
29
19
|
export declare const CTX_INLINE_CHAT_EMPTY: RawContextKey<boolean>;
|
|
30
|
-
export declare const CTX_INLINE_CHAT_INPUT_HAS_TEXT: RawContextKey<boolean>;
|
|
31
|
-
export declare const CTX_INLINE_CHAT_INPUT_WIDGET_FOCUSED: RawContextKey<boolean>;
|
|
32
|
-
export declare const CTX_INLINE_CHAT_INNER_CURSOR_FIRST: RawContextKey<boolean>;
|
|
33
|
-
export declare const CTX_INLINE_CHAT_INNER_CURSOR_LAST: RawContextKey<boolean>;
|
|
34
20
|
export declare const CTX_INLINE_CHAT_OUTER_CURSOR_POSITION: RawContextKey<"" | "above" | "below">;
|
|
35
|
-
export declare const CTX_INLINE_CHAT_HAS_STASHED_SESSION: RawContextKey<boolean>;
|
|
36
|
-
export declare const CTX_INLINE_CHAT_CHANGE_HAS_DIFF: RawContextKey<boolean>;
|
|
37
|
-
export declare const CTX_INLINE_CHAT_CHANGE_SHOWS_DIFF: RawContextKey<boolean>;
|
|
38
21
|
export declare const CTX_INLINE_CHAT_REQUEST_IN_PROGRESS: RawContextKey<boolean>;
|
|
39
|
-
export declare const CTX_INLINE_CHAT_RESPONSE_TYPE: RawContextKey<InlineChatResponseType>;
|
|
40
22
|
export declare const CTX_INLINE_CHAT_FILE_BELONGS_TO_CHAT: RawContextKey<boolean>;
|
|
41
|
-
export declare const CTX_INLINE_CHAT_PENDING_CONFIRMATION: RawContextKey<boolean>;
|
|
42
23
|
export declare const CTX_INLINE_CHAT_TERMINATED: RawContextKey<boolean>;
|
|
43
24
|
export declare const CTX_INLINE_CHAT_AFFORDANCE_VISIBLE: RawContextKey<boolean>;
|
|
44
|
-
export declare const CTX_INLINE_CHAT_V1_ENABLED: import("@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey").ContextKeyExpression | undefined;
|
|
45
25
|
export declare const CTX_INLINE_CHAT_V2_ENABLED: import("@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey").ContextKeyExpression | undefined;
|
|
46
|
-
export declare const CTX_HOVER_MODE: import("@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey").ContextKeyExpression;
|
|
47
26
|
export declare const CTX_FIX_DIAGNOSTICS_ENABLED: import("@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey").ContextKeyExpression;
|
|
48
27
|
export declare const CTX_ASK_IN_CHAT_ENABLED: import("@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey").ContextKeyExpression;
|
|
49
28
|
export declare const ACTION_START = "inlineChat.start";
|
|
50
29
|
export declare const ACTION_ASK_IN_CHAT = "inlineChat.askInChat";
|
|
51
|
-
export declare const ACTION_ACCEPT_CHANGES = "inlineChat.acceptChanges";
|
|
52
|
-
export declare const ACTION_DISCARD_CHANGES = "inlineChat.discardHunkChange";
|
|
53
|
-
export declare const ACTION_REGENERATE_RESPONSE = "inlineChat.regenerate";
|
|
54
|
-
export declare const ACTION_VIEW_IN_CHAT = "inlineChat.viewInChat";
|
|
55
|
-
export declare const ACTION_TOGGLE_DIFF = "inlineChat.toggleDiff";
|
|
56
|
-
export declare const ACTION_REPORT_ISSUE = "inlineChat.reportIssue";
|
|
57
|
-
export declare const MENU_INLINE_CHAT_WIDGET_STATUS: MenuId;
|
|
58
30
|
export declare const MENU_INLINE_CHAT_WIDGET_SECONDARY: MenuId;
|
|
59
|
-
export declare const MENU_INLINE_CHAT_ZONE: MenuId;
|
|
60
31
|
export declare const MENU_INLINE_CHAT_SIDE: MenuId;
|
|
61
32
|
export declare const inlineChatForeground: string;
|
|
62
33
|
export declare const inlineChatBackground: string;
|
|
@@ -19,37 +19,17 @@ import { NOTEBOOK_IS_ACTIVE_EDITOR } from '@codingame/monaco-vscode-api/vscode/v
|
|
|
19
19
|
|
|
20
20
|
var InlineChatConfigKeys;
|
|
21
21
|
(function(InlineChatConfigKeys) {
|
|
22
|
-
InlineChatConfigKeys["
|
|
23
|
-
InlineChatConfigKeys["EnableV2"] = "inlineChat.enableV2";
|
|
24
|
-
InlineChatConfigKeys["notebookAgent"] = "inlineChat.notebookAgent";
|
|
22
|
+
InlineChatConfigKeys["NotebookAgent"] = "inlineChat.notebookAgent";
|
|
25
23
|
InlineChatConfigKeys["DefaultModel"] = "inlineChat.defaultModel";
|
|
26
24
|
InlineChatConfigKeys["Affordance"] = "inlineChat.affordance";
|
|
27
|
-
InlineChatConfigKeys["RenderMode"] = "inlineChat.renderMode";
|
|
28
25
|
InlineChatConfigKeys["FixDiagnostics"] = "inlineChat.fixDiagnostics";
|
|
29
26
|
InlineChatConfigKeys["AskInChat"] = "inlineChat.askInChat";
|
|
30
27
|
})(InlineChatConfigKeys || (InlineChatConfigKeys = {}));
|
|
31
28
|
( Registry.as(Extensions.Configuration)).registerConfiguration({
|
|
32
29
|
id: "editor",
|
|
33
30
|
properties: {
|
|
34
|
-
[InlineChatConfigKeys.
|
|
35
|
-
|
|
36
|
-
10114,
|
|
37
|
-
"Whether to finish an inline chat session when typing outside of changed regions."
|
|
38
|
-
)),
|
|
39
|
-
default: false,
|
|
40
|
-
type: "boolean"
|
|
41
|
-
},
|
|
42
|
-
[InlineChatConfigKeys.EnableV2]: {
|
|
43
|
-
description: ( localize(10115, "Whether to use the next version of inline chat.")),
|
|
44
|
-
default: false,
|
|
45
|
-
type: "boolean",
|
|
46
|
-
tags: ["preview"],
|
|
47
|
-
experiment: {
|
|
48
|
-
mode: "auto"
|
|
49
|
-
}
|
|
50
|
-
},
|
|
51
|
-
[InlineChatConfigKeys.notebookAgent]: {
|
|
52
|
-
markdownDescription: ( localize(10116, "Enable agent-like behavior for inline chat widget in notebooks.")),
|
|
31
|
+
[InlineChatConfigKeys.NotebookAgent]: {
|
|
32
|
+
markdownDescription: ( localize(10435, "Enable agent-like behavior for inline chat widget in notebooks.")),
|
|
53
33
|
default: false,
|
|
54
34
|
type: "boolean",
|
|
55
35
|
tags: ["experimental"],
|
|
@@ -59,32 +39,24 @@ var InlineChatConfigKeys;
|
|
|
59
39
|
},
|
|
60
40
|
[InlineChatConfigKeys.Affordance]: {
|
|
61
41
|
description: ( localize(
|
|
62
|
-
|
|
42
|
+
10436,
|
|
63
43
|
"Controls whether an inline chat affordance is shown when text is selected."
|
|
64
44
|
)),
|
|
65
45
|
default: "off",
|
|
66
46
|
type: "string",
|
|
67
47
|
enum: ["off", "editor"],
|
|
68
|
-
enumDescriptions: [( localize(
|
|
48
|
+
enumDescriptions: [( localize(10437, "No affordance is shown.")), ( localize(10438, "Show an affordance in the editor at the cursor position."))],
|
|
69
49
|
experiment: {
|
|
70
50
|
mode: "auto"
|
|
71
51
|
},
|
|
72
|
-
tags: ["experimental"]
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
default: "hover",
|
|
77
|
-
type: "string",
|
|
78
|
-
enum: ["zone", "hover"],
|
|
79
|
-
enumDescriptions: [( localize(10121, "Render inline chat as a zone widget below the current line.")), ( localize(10122, "Render inline chat as a hover overlay."))],
|
|
80
|
-
experiment: {
|
|
81
|
-
mode: "auto"
|
|
82
|
-
},
|
|
83
|
-
tags: ["experimental"]
|
|
52
|
+
tags: ["experimental"],
|
|
53
|
+
agentsWindow: {
|
|
54
|
+
default: "editor"
|
|
55
|
+
}
|
|
84
56
|
},
|
|
85
57
|
[InlineChatConfigKeys.FixDiagnostics]: {
|
|
86
58
|
description: ( localize(
|
|
87
|
-
|
|
59
|
+
10439,
|
|
88
60
|
"Controls whether the Fix action is shown for diagnostics in the editor."
|
|
89
61
|
)),
|
|
90
62
|
default: true,
|
|
@@ -96,7 +68,7 @@ var InlineChatConfigKeys;
|
|
|
96
68
|
},
|
|
97
69
|
[InlineChatConfigKeys.AskInChat]: {
|
|
98
70
|
description: ( localize(
|
|
99
|
-
|
|
71
|
+
10440,
|
|
100
72
|
"Controls whether files in a chat editing session use Ask in Chat instead of Inline Chat."
|
|
101
73
|
)),
|
|
102
74
|
default: true,
|
|
@@ -104,88 +76,63 @@ var InlineChatConfigKeys;
|
|
|
104
76
|
}
|
|
105
77
|
}
|
|
106
78
|
});
|
|
107
|
-
const INLINE_CHAT_ID = "
|
|
108
|
-
var InlineChatResponseType;
|
|
109
|
-
(function(InlineChatResponseType) {
|
|
110
|
-
InlineChatResponseType["None"] = "none";
|
|
111
|
-
InlineChatResponseType["Messages"] = "messages";
|
|
112
|
-
InlineChatResponseType["MessagesAndEdits"] = "messagesAndEdits";
|
|
113
|
-
})(InlineChatResponseType || (InlineChatResponseType = {}));
|
|
79
|
+
const INLINE_CHAT_ID = "editor.contrib.inlineChatController";
|
|
114
80
|
const CTX_INLINE_CHAT_POSSIBLE = ( new RawContextKey("inlineChatPossible", false, ( localize(
|
|
115
|
-
|
|
81
|
+
10441,
|
|
116
82
|
"Whether a provider for inline chat exists and whether an editor for inline chat is open"
|
|
117
83
|
))));
|
|
118
|
-
const
|
|
119
|
-
const CTX_INLINE_CHAT_HAS_NOTEBOOK_INLINE = ( new RawContextKey("inlineChatHasNotebookInline", false, ( localize(
|
|
120
|
-
const CTX_INLINE_CHAT_HAS_NOTEBOOK_AGENT = ( new RawContextKey("inlineChatHasNotebookAgent", false, ( localize(
|
|
121
|
-
const CTX_INLINE_CHAT_VISIBLE = ( new RawContextKey("inlineChatVisible", false, ( localize(
|
|
122
|
-
const CTX_INLINE_CHAT_FOCUSED = ( new RawContextKey("inlineChatFocused", false, ( localize(
|
|
123
|
-
const
|
|
124
|
-
10131,
|
|
125
|
-
"Whether the user is currently editing or generating code in the inline chat"
|
|
126
|
-
))));
|
|
127
|
-
const CTX_INLINE_CHAT_RESPONSE_FOCUSED = ( new RawContextKey("inlineChatResponseFocused", false, ( localize(10132, "Whether the interactive widget's response is focused"))));
|
|
128
|
-
const CTX_INLINE_CHAT_INPUT_HAS_TEXT = ( new RawContextKey("inlineChatInputHasText", false, ( localize(10133, "Whether the inline chat input widget has text"))));
|
|
129
|
-
const CTX_INLINE_CHAT_INPUT_WIDGET_FOCUSED = ( new RawContextKey("inlineChatInputWidgetFocused", false, ( localize(10134, "Whether the inline chat input widget editor is focused"))));
|
|
84
|
+
const CTX_INLINE_CHAT_HAS_AGENT = ( new RawContextKey("inlineChatHasEditsAgent", false, ( localize(10442, "Whether an agent for inline chat in interactive editors exists"))));
|
|
85
|
+
const CTX_INLINE_CHAT_HAS_NOTEBOOK_INLINE = ( new RawContextKey("inlineChatHasNotebookInline", false, ( localize(10443, "Whether an agent for notebook cells exists"))));
|
|
86
|
+
const CTX_INLINE_CHAT_HAS_NOTEBOOK_AGENT = ( new RawContextKey("inlineChatHasNotebookAgent", false, ( localize(10444, "Whether an agent for notebook cells exists"))));
|
|
87
|
+
const CTX_INLINE_CHAT_VISIBLE = ( new RawContextKey("inlineChatVisible", false, ( localize(10445, "Whether the interactive editor input is visible"))));
|
|
88
|
+
const CTX_INLINE_CHAT_FOCUSED = ( new RawContextKey("inlineChatFocused", false, ( localize(10446, "Whether the interactive editor input is focused"))));
|
|
89
|
+
const CTX_INLINE_CHAT_RESPONSE_FOCUSED = ( new RawContextKey("inlineChatResponseFocused", false, ( localize(10447, "Whether the interactive widget's response is focused"))));
|
|
130
90
|
const CTX_INLINE_CHAT_OUTER_CURSOR_POSITION = ( new RawContextKey("inlineChatOuterCursorPosition", "", ( localize(
|
|
131
|
-
|
|
91
|
+
10448,
|
|
132
92
|
"Whether the cursor of the outer editor is above or below the interactive editor input"
|
|
133
93
|
))));
|
|
134
|
-
const CTX_INLINE_CHAT_REQUEST_IN_PROGRESS = ( new RawContextKey("inlineChatRequestInProgress", false, ( localize(
|
|
135
|
-
const
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
))));
|
|
139
|
-
const CTX_INLINE_CHAT_FILE_BELONGS_TO_CHAT = ( new RawContextKey("inlineChatFileBelongsToChat", false, ( localize(10138, "Whether the current file belongs to a chat editing session"))));
|
|
140
|
-
const CTX_INLINE_CHAT_PENDING_CONFIRMATION = ( new RawContextKey("inlineChatPendingConfirmation", false, ( localize(10139, "Whether an inline chat request is pending user confirmation"))));
|
|
141
|
-
const CTX_INLINE_CHAT_TERMINATED = ( new RawContextKey("inlineChatTerminated", false, ( localize(10140, "Whether the current inline chat session is terminated"))));
|
|
142
|
-
const CTX_INLINE_CHAT_AFFORDANCE_VISIBLE = ( new RawContextKey("inlineChatAffordanceVisible", false, ( localize(10141, "Whether an inline chat affordance widget is visible"))));
|
|
143
|
-
const CTX_INLINE_CHAT_V1_ENABLED = ( ContextKeyExpr.or(( ContextKeyExpr.and(NOTEBOOK_IS_ACTIVE_EDITOR, CTX_INLINE_CHAT_HAS_NOTEBOOK_INLINE))));
|
|
144
|
-
const CTX_INLINE_CHAT_V2_ENABLED = ( ContextKeyExpr.or(CTX_INLINE_CHAT_HAS_AGENT2, ( ContextKeyExpr.and(NOTEBOOK_IS_ACTIVE_EDITOR, CTX_INLINE_CHAT_HAS_NOTEBOOK_AGENT))));
|
|
145
|
-
const CTX_HOVER_MODE = ( ContextKeyExpr.equals("config.inlineChat.renderMode", "hover"));
|
|
94
|
+
const CTX_INLINE_CHAT_REQUEST_IN_PROGRESS = ( new RawContextKey("inlineChatRequestInProgress", false, ( localize(10449, "Whether an inline chat request is currently in progress"))));
|
|
95
|
+
const CTX_INLINE_CHAT_FILE_BELONGS_TO_CHAT = ( new RawContextKey("inlineChatFileBelongsToChat", false, ( localize(10450, "Whether the current file belongs to a chat editing session"))));
|
|
96
|
+
const CTX_INLINE_CHAT_TERMINATED = ( new RawContextKey("inlineChatTerminated", false, ( localize(10451, "Whether the current inline chat session is terminated"))));
|
|
97
|
+
const CTX_INLINE_CHAT_AFFORDANCE_VISIBLE = ( new RawContextKey("inlineChatAffordanceVisible", false, ( localize(10452, "Whether an inline chat affordance widget is visible"))));
|
|
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))));
|
|
146
99
|
const CTX_FIX_DIAGNOSTICS_ENABLED = ( ContextKeyExpr.equals("config.inlineChat.fixDiagnostics", true));
|
|
147
100
|
const CTX_ASK_IN_CHAT_ENABLED = ( ContextKeyExpr.equals("config.inlineChat.askInChat", true));
|
|
148
101
|
const ACTION_START = "inlineChat.start";
|
|
149
102
|
const ACTION_ASK_IN_CHAT = "inlineChat.askInChat";
|
|
150
|
-
const ACTION_ACCEPT_CHANGES = "inlineChat.acceptChanges";
|
|
151
|
-
const ACTION_REGENERATE_RESPONSE = "inlineChat.regenerate";
|
|
152
|
-
const ACTION_TOGGLE_DIFF = "inlineChat.toggleDiff";
|
|
153
|
-
const ACTION_REPORT_ISSUE = "inlineChat.reportIssue";
|
|
154
|
-
const MENU_INLINE_CHAT_WIDGET_STATUS = MenuId.for("inlineChatWidget.status");
|
|
155
103
|
const MENU_INLINE_CHAT_WIDGET_SECONDARY = MenuId.for("inlineChatWidget.secondary");
|
|
156
|
-
MenuId.for("inlineChatWidget.changesZone");
|
|
157
104
|
const MENU_INLINE_CHAT_SIDE = MenuId.for("inlineChatWidget.side");
|
|
158
|
-
const inlineChatForeground = registerColor("inlineChat.foreground", editorWidgetForeground, ( localize(
|
|
159
|
-
const inlineChatBackground = registerColor("inlineChat.background", editorWidgetBackground, ( localize(
|
|
160
|
-
registerColor("inlineChat.border", editorWidgetBorder, ( localize(
|
|
161
|
-
registerColor("inlineChat.shadow", widgetShadow, ( localize(
|
|
162
|
-
registerColor("inlineChatInput.border", editorWidgetBorder, ( localize(
|
|
163
|
-
registerColor("inlineChatInput.focusBorder", focusBorder, ( localize(
|
|
105
|
+
const inlineChatForeground = registerColor("inlineChat.foreground", editorWidgetForeground, ( localize(10453, "Foreground color of the interactive editor widget")));
|
|
106
|
+
const inlineChatBackground = registerColor("inlineChat.background", editorWidgetBackground, ( localize(10454, "Background color of the interactive editor widget")));
|
|
107
|
+
registerColor("inlineChat.border", editorWidgetBorder, ( localize(10455, "Border color of the interactive editor widget")));
|
|
108
|
+
registerColor("inlineChat.shadow", widgetShadow, ( localize(10456, "Shadow color of the interactive editor widget")));
|
|
109
|
+
registerColor("inlineChatInput.border", editorWidgetBorder, ( localize(10457, "Border color of the interactive editor input")));
|
|
110
|
+
registerColor("inlineChatInput.focusBorder", focusBorder, ( localize(10458, "Border color of the interactive editor input when focused")));
|
|
164
111
|
registerColor(
|
|
165
112
|
"inlineChatInput.placeholderForeground",
|
|
166
113
|
inputPlaceholderForeground,
|
|
167
|
-
( localize(
|
|
114
|
+
( localize(10459, "Foreground color of the interactive editor input placeholder"))
|
|
168
115
|
);
|
|
169
|
-
registerColor("inlineChatInput.background", inputBackground, ( localize(
|
|
170
|
-
registerColor("inlineChatDiff.inserted", ( transparent(diffInserted, .5)), ( localize(
|
|
116
|
+
registerColor("inlineChatInput.background", inputBackground, ( localize(10460, "Background color of the interactive editor input")));
|
|
117
|
+
registerColor("inlineChatDiff.inserted", ( transparent(diffInserted, .5)), ( localize(10461, "Background color of inserted text in the interactive editor input")));
|
|
171
118
|
registerColor("editorOverviewRuler.inlineChatInserted", {
|
|
172
119
|
dark: ( transparent(diffInserted, 0.6)),
|
|
173
120
|
light: ( transparent(diffInserted, 0.8)),
|
|
174
121
|
hcDark: ( transparent(diffInserted, 0.6)),
|
|
175
122
|
hcLight: ( transparent(diffInserted, 0.8))
|
|
176
|
-
}, ( localize(
|
|
123
|
+
}, ( localize(10462, "Overview ruler marker color for inline chat inserted content.")));
|
|
177
124
|
registerColor("editorMinimap.inlineChatInserted", {
|
|
178
125
|
dark: ( transparent(diffInserted, 0.6)),
|
|
179
126
|
light: ( transparent(diffInserted, 0.8)),
|
|
180
127
|
hcDark: ( transparent(diffInserted, 0.6)),
|
|
181
128
|
hcLight: ( transparent(diffInserted, 0.8))
|
|
182
|
-
}, ( localize(
|
|
183
|
-
registerColor("inlineChatDiff.removed", ( transparent(diffRemoved, .5)), ( localize(
|
|
129
|
+
}, ( localize(10463, "Minimap marker color for inline chat inserted content.")));
|
|
130
|
+
registerColor("inlineChatDiff.removed", ( transparent(diffRemoved, .5)), ( localize(10464, "Background color of removed text in the interactive editor input")));
|
|
184
131
|
registerColor("editorOverviewRuler.inlineChatRemoved", {
|
|
185
132
|
dark: ( transparent(diffRemoved, 0.6)),
|
|
186
133
|
light: ( transparent(diffRemoved, 0.8)),
|
|
187
134
|
hcDark: ( transparent(diffRemoved, 0.6)),
|
|
188
135
|
hcLight: ( transparent(diffRemoved, 0.8))
|
|
189
|
-
}, ( localize(
|
|
136
|
+
}, ( localize(10465, "Overview ruler marker color for inline chat removed content.")));
|
|
190
137
|
|
|
191
|
-
export {
|
|
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(10482, "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(10483, "Use {0} for accessibility help. ", helpKeybinding)) : ( localize(10484, "Run the Open Accessibility Help command for more information. "));
|
|
109
109
|
this.ariaLabel = actionPart.concat(helpInfo, ( localize(
|
|
110
|
-
|
|
110
|
+
10485,
|
|
111
111
|
" Toggle {0} in settings to disable this hint.",
|
|
112
112
|
AccessibilityVerbositySettingId.ReplEditor
|
|
113
113
|
)));
|
|
@@ -144,7 +144,7 @@ let ExecutionStateCellStatusBarItem = class ExecutionStateCellStatusBarItem exte
|
|
|
144
144
|
return [{
|
|
145
145
|
text: `$(${successStateIcon.id})`,
|
|
146
146
|
color: themeColorFromId(cellStatusIconSuccess),
|
|
147
|
-
tooltip: ( localize(
|
|
147
|
+
tooltip: ( localize(11413, "Success")),
|
|
148
148
|
alignment: CellStatusbarAlignment.Left,
|
|
149
149
|
priority: Number.MAX_SAFE_INTEGER
|
|
150
150
|
}];
|
|
@@ -152,14 +152,14 @@ let ExecutionStateCellStatusBarItem = class ExecutionStateCellStatusBarItem exte
|
|
|
152
152
|
return [{
|
|
153
153
|
text: `$(${errorStateIcon.id})`,
|
|
154
154
|
color: themeColorFromId(cellStatusIconError),
|
|
155
|
-
tooltip: ( localize(
|
|
155
|
+
tooltip: ( localize(11414, "Failed")),
|
|
156
156
|
alignment: CellStatusbarAlignment.Left,
|
|
157
157
|
priority: Number.MAX_SAFE_INTEGER
|
|
158
158
|
}];
|
|
159
159
|
} else if (state === NotebookCellExecutionState.Pending || state === NotebookCellExecutionState.Unconfirmed) {
|
|
160
160
|
return [{
|
|
161
161
|
text: `$(${pendingStateIcon.id})`,
|
|
162
|
-
tooltip: ( localize(
|
|
162
|
+
tooltip: ( localize(11415, "Pending")),
|
|
163
163
|
alignment: CellStatusbarAlignment.Left,
|
|
164
164
|
priority: Number.MAX_SAFE_INTEGER
|
|
165
165
|
}];
|
|
@@ -167,7 +167,7 @@ let ExecutionStateCellStatusBarItem = class ExecutionStateCellStatusBarItem exte
|
|
|
167
167
|
const icon = runState?.didPause ? executingStateIcon : ThemeIcon.modify(executingStateIcon, "spin");
|
|
168
168
|
return [{
|
|
169
169
|
text: `$(${icon.id})`,
|
|
170
|
-
tooltip: ( localize(
|
|
170
|
+
tooltip: ( localize(11416, "Executing")),
|
|
171
171
|
alignment: CellStatusbarAlignment.Left,
|
|
172
172
|
priority: Number.MAX_SAFE_INTEGER
|
|
173
173
|
}];
|
|
@@ -298,10 +298,10 @@ let TimerCellStatusBarItem = class TimerCellStatusBarItem extends Disposable {
|
|
|
298
298
|
const rendererTitle = renderIssueLink ? `[${linkText}](command:workbench.action.openIssueReporter?${args})` : `**${linkText}**`;
|
|
299
299
|
renderTimes += `- ${rendererTitle} ${formatCellDuration(renderDuration[key])}\n`;
|
|
300
300
|
}
|
|
301
|
-
renderTimes += `\n*${( localize(
|
|
301
|
+
renderTimes += `\n*${( localize(11417, "Use the links above to file an issue using the issue reporter."))}*\n`;
|
|
302
302
|
tooltip = {
|
|
303
303
|
value: ( localize(
|
|
304
|
-
|
|
304
|
+
11418,
|
|
305
305
|
"**Last Execution** {0}\n\n**Execution Time** {1}\n\n**Overhead Time** {2}\n\n**Render Times**\n\n{3}",
|
|
306
306
|
lastExecution,
|
|
307
307
|
formatCellDuration(executionDuration),
|
|
@@ -312,7 +312,7 @@ let TimerCellStatusBarItem = class TimerCellStatusBarItem extends Disposable {
|
|
|
312
312
|
};
|
|
313
313
|
}
|
|
314
314
|
const executionText = this._isVerbose ? ( localize(
|
|
315
|
-
|
|
315
|
+
11419,
|
|
316
316
|
"Last Execution: {0}, Duration: {1}",
|
|
317
317
|
lastExecution,
|
|
318
318
|
formatCellDuration(duration, false)
|
|
@@ -348,9 +348,9 @@ let NotebookFindWidget = class NotebookFindWidget extends SimpleFindReplaceWidge
|
|
|
348
348
|
}
|
|
349
349
|
_getAriaLabel(label, currentMatch, searchString) {
|
|
350
350
|
if (label === NLS_NO_RESULTS) {
|
|
351
|
-
return searchString === "" ? ( localize(
|
|
351
|
+
return searchString === "" ? ( localize(11460, "{0} found", label)) : ( localize(11461, "{0} found for '{1}'", label, searchString));
|
|
352
352
|
}
|
|
353
|
-
return localize(
|
|
353
|
+
return localize(11462, "{0} found for '{1}'", label, searchString);
|
|
354
354
|
}
|
|
355
355
|
dispose() {
|
|
356
356
|
this._notebookEditor?.removeClassName(FIND_SHOW_TRANSITION);
|