@codingame/monaco-vscode-katex-common 24.2.0 → 25.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -3
- package/vscode/src/vs/platform/actions/browser/buttonbar.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatAccessibilityProvider.d.ts → accessibility/chatAccessibilityProvider.d.ts} +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatAccessibilityProvider.js → accessibility/chatAccessibilityProvider.js} +25 -20
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContinueInAction.js +19 -19
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatElicitationActions.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatExecuteActions.js +31 -31
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatTitleActions.js +15 -15
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatAttachmentModel.d.ts → attachments/chatAttachmentModel.d.ts} +4 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatAttachmentModel.js → attachments/chatAttachmentModel.js} +24 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatAttachmentWidgets.d.ts → attachments/chatAttachmentWidgets.d.ts} +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatAttachmentWidgets.js → attachments/chatAttachmentWidgets.js} +80 -89
- package/vscode/src/vs/workbench/contrib/chat/browser/{contrib → attachments}/chatImplicitContext.d.ts +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/{contrib → attachments}/chatImplicitContext.js +23 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/{contrib → attachments}/chatInputRelatedFilesContrib.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/{contrib → attachments}/chatInputRelatedFilesContrib.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/implicitContextAttachment.d.ts +4 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/implicitContextAttachment.js +47 -21
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingActions.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingActions.js +39 -39
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessionPickerActionItem.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/viewsWelcome/chatViewWelcomeController.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatAgentHover.d.ts → widget/chatAgentHover.d.ts} +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatAgentHover.js → widget/chatAgentHover.js} +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatAgentCommandContentPart.d.ts +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatAgentCommandContentPart.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatAnonymousRateLimitedPart.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatAnonymousRateLimitedPart.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatAttachmentsContentPart.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatAttachmentsContentPart.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatChangesSummaryPart.d.ts +10 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatChangesSummaryPart.js +59 -119
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatCodeCitationContentPart.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatCodeCitationContentPart.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatCollapsibleContentPart.d.ts +11 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatCollapsibleContentPart.js +31 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatCommandContentPart.d.ts +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatCommandContentPart.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatConfirmationContentPart.d.ts +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatConfirmationContentPart.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatConfirmationWidget.d.ts +9 -18
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatConfirmationWidget.js +31 -99
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatContentCodePools.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatContentCodePools.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatDiffBlockPart.d.ts → widget/chatContentParts/chatDiffBlockPart.d.ts} +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatElicitationContentPart.d.ts +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatElicitationContentPart.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatErrorConfirmationPart.d.ts +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatErrorConfirmationPart.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatErrorContentPart.d.ts +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatErrorContentPart.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatExtensionsContentPart.d.ts +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatExtensionsContentPart.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatInlineAnchorWidget.d.ts → widget/chatContentParts/chatInlineAnchorWidget.d.ts} +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatInlineAnchorWidget.js → widget/chatContentParts/chatInlineAnchorWidget.js} +18 -15
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatMarkdownContentPart.d.ts +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatMarkdownContentPart.js +15 -15
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatMarkdownDecorationsRenderer.d.ts → widget/chatContentParts/chatMarkdownDecorationsRenderer.d.ts} +7 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatMarkdownDecorationsRenderer.js → widget/chatContentParts/chatMarkdownDecorationsRenderer.js} +9 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatMcpServersInteractionContentPart.d.ts +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatMcpServersInteractionContentPart.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatMultiDiffContentPart.d.ts +4 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatMultiDiffContentPart.js +31 -35
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatProgressContentPart.d.ts +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatProgressContentPart.js +9 -42
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatPullRequestContentPart.d.ts +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatPullRequestContentPart.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatQuotaExceededPart.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatQuotaExceededPart.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatReferencesContentPart.d.ts +7 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatReferencesContentPart.js +20 -17
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatSuggestNextWidget.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatTaskContentPart.d.ts +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatTaskContentPart.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatTextEditContentPart.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatTextEditContentPart.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatTextEditContentPart.service.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatThinkingContentPart.d.ts +9 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatThinkingContentPart.js +71 -17
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatTodoListWidget.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatTodoListWidget.js +23 -23
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatToolInputOutputContentPart.d.ts +4 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatToolInputOutputContentPart.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatToolOutputContentSubPart.d.ts +6 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatToolOutputContentSubPart.js +27 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatTreeContentPart.d.ts +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatTreeContentPart.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/{codeBlockPart.d.ts → widget/chatContentParts/codeBlockPart.d.ts} +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/{codeBlockPart.js → widget/chatContentParts/codeBlockPart.js} +19 -18
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/media/chatThinkingContent.css +17 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/toolInvocationParts/abstractToolConfirmationSubPart.d.ts +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/toolInvocationParts/abstractToolConfirmationSubPart.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/toolInvocationParts/chatExtensionsInstallToolSubPart.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/toolInvocationParts/chatExtensionsInstallToolSubPart.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/toolInvocationParts/chatInputOutputMarkdownProgressPart.d.ts +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/toolInvocationParts/chatInputOutputMarkdownProgressPart.js +4 -32
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/toolInvocationParts/chatResultListSubPart.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/toolInvocationParts/chatResultListSubPart.js +4 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/toolInvocationParts/chatTerminalToolConfirmationSubPart.d.ts +4 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/toolInvocationParts/chatTerminalToolConfirmationSubPart.js +103 -37
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/toolInvocationParts/chatTerminalToolProgressPart.d.ts +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/toolInvocationParts/chatTerminalToolProgressPart.js +18 -131
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/toolInvocationParts/chatToolConfirmationSubPart.d.ts +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/toolInvocationParts/chatToolConfirmationSubPart.js +13 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/toolInvocationParts/chatToolInvocationPart.d.ts +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/toolInvocationParts/chatToolInvocationPart.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/toolInvocationParts/chatToolInvocationSubPart.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/toolInvocationParts/chatToolInvocationSubPart.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/toolInvocationParts/chatToolOutputPart.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/toolInvocationParts/chatToolOutputPart.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolPartUtilities.d.ts +14 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolPartUtilities.js +46 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/toolInvocationParts/chatToolPostExecuteConfirmationPart.d.ts +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/toolInvocationParts/chatToolPostExecuteConfirmationPart.js +11 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/toolInvocationParts/chatToolProgressPart.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/toolInvocationParts/chatToolProgressPart.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatDragAndDrop.d.ts → widget/chatDragAndDrop.d.ts} +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatDragAndDrop.js → widget/chatDragAndDrop.js} +13 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatListRenderer.d.ts → widget/chatListRenderer.d.ts} +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatListRenderer.js → widget/chatListRenderer.js} +41 -53
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatWidget.d.ts → widget/chatWidget.d.ts} +18 -16
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatWidget.js → widget/chatWidget.js} +77 -57
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatFollowups.d.ts → widget/input/chatFollowups.d.ts} +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatFollowups.js → widget/input/chatFollowups.js} +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatInputPart.d.ts → widget/input/chatInputPart.d.ts} +14 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatInputPart.js → widget/input/chatInputPart.js} +75 -59
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatSelectedTools.d.ts → widget/input/chatSelectedTools.d.ts} +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatSelectedTools.js → widget/input/chatSelectedTools.js} +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/{contrib → widget/input/editor}/chatInputCompletions.js +36 -24
- package/vscode/src/vs/workbench/contrib/chat/browser/{modelPicker → widget/input}/modePickerActionItem.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/{modelPicker → widget/input}/modePickerActionItem.js +9 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/{modelPicker → widget/input}/modelPickerActionItem.d.ts +4 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/{modelPicker → widget/input}/modelPickerActionItem.js +21 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/{media → widget/media}/chat.css +17 -16
- package/vscode/src/vs/workbench/contrib/chat/browser/{media → widget/media}/chatViewWelcome.css +3 -1
- package/vscode/src/vs/workbench/contrib/chat/common/{chatColors.js → widget/chatColors.js} +13 -13
- package/vscode/src/vs/workbench/contrib/chat/common/{chatWidgetHistoryService.d.ts → widget/chatWidgetHistoryService.d.ts} +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/{chatWidgetHistoryService.js → widget/chatWidgetHistoryService.js} +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/{codeBlockModelCollection.d.ts → widget/codeBlockModelCollection.d.ts} +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/{codeBlockModelCollection.js → widget/codeBlockModelCollection.js} +4 -3
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatController.d.ts +7 -8
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatController.js +63 -63
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSession.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionService.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionService.js +1 -1
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionServiceImpl.d.ts +3 -4
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionServiceImpl.js +16 -18
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatStrategies.d.ts +1 -5
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatStrategies.js +8 -18
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatWidget.d.ts +3 -3
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatWidget.js +12 -12
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatZoneWidget.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatZoneWidget.js +2 -2
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/utils.js +1 -1
- package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChat.d.ts +0 -1
- package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChat.js +35 -54
- package/vscode/src/vs/workbench/contrib/mcp/browser/mcpPromptArgumentPick.js +14 -14
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chat/notebookChatUtils.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chat/notebookChatUtils.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOperations.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffComponents.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffElementOutputs.js +7 -7
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookOriginalModelRefFactory.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditor.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditorBrowser.js +5 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffList.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookMultiDiffEditor.js +3 -3
- package/vscode/src/vs/workbench/contrib/terminal/browser/chatTerminalCommandMirror.d.ts +35 -4
- package/vscode/src/vs/workbench/contrib/terminal/browser/chatTerminalCommandMirror.js +129 -31
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/common.d.ts +0 -19
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/common.js +0 -76
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/computeAutomaticInstructions.d.ts +0 -48
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/computeAutomaticInstructions.js +0 -373
- /package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/media/{chatSessionAction.css → chatSessionPickerActionItem.css} +0 -0
- /package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentMarkdownRenderer.d.ts → widget/chatContentMarkdownRenderer.d.ts} +0 -0
- /package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentMarkdownRenderer.js → widget/chatContentMarkdownRenderer.js} +0 -0
- /package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatCollections.d.ts +0 -0
- /package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatCollections.js +0 -0
- /package/vscode/src/vs/workbench/contrib/chat/browser/{chatDiffBlockPart.js → widget/chatContentParts/chatDiffBlockPart.js} +0 -0
- /package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatSuggestNextWidget.d.ts +0 -0
- /package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatTextEditContentPart.service.js +0 -0
- /package/vscode/src/vs/workbench/contrib/chat/browser/{media → widget/chatContentParts/media}/chatCodeBlockPill.css +0 -0
- /package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/media/chatConfirmationWidget.css +0 -0
- /package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/media/chatExtensionsContent.css +0 -0
- /package/vscode/src/vs/workbench/contrib/chat/browser/{media → widget/chatContentParts/media}/chatInlineAnchorWidget.css +0 -0
- /package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/media/chatMarkdownPart.css +0 -0
- /package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/media/chatMcpServersInteractionContent.css +0 -0
- /package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/media/chatPullRequestContent.css +0 -0
- /package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/media/chatTerminalToolProgressPart.css +0 -0
- /package/vscode/src/vs/workbench/contrib/chat/browser/{codeBlockPart.css → widget/chatContentParts/media/codeBlockPart.css} +0 -0
- /package/vscode/src/vs/workbench/contrib/chat/browser/{chatOptions.d.ts → widget/chatOptions.d.ts} +0 -0
- /package/vscode/src/vs/workbench/contrib/chat/browser/{chatOptions.js → widget/chatOptions.js} +0 -0
- /package/vscode/src/vs/workbench/contrib/chat/browser/{chatInputPartWidgets.d.ts → widget/input/chatInputPartWidgets.d.ts} +0 -0
- /package/vscode/src/vs/workbench/contrib/chat/browser/{chatInputPartWidgets.js → widget/input/chatInputPartWidgets.js} +0 -0
- /package/vscode/src/vs/workbench/contrib/chat/browser/{contrib → widget/input/editor}/chatInputCompletions.d.ts +0 -0
- /package/vscode/src/vs/workbench/contrib/chat/browser/{media → widget/media}/chatAgentHover.css +0 -0
- /package/vscode/src/vs/workbench/contrib/chat/common/{chatColors.d.ts → widget/chatColors.d.ts} +0 -0
package/vscode/src/vs/workbench/contrib/chat/browser/{contrib → attachments}/chatImplicitContext.js
RENAMED
|
@@ -14,14 +14,14 @@ import { EditorsOrder } from '@codingame/monaco-vscode-api/vscode/vs/workbench/c
|
|
|
14
14
|
import { IEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
15
15
|
import { getNotebookEditorFromEditorPane } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser';
|
|
16
16
|
import { WebviewInput } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/webviewPanel/browser/webviewEditorInput';
|
|
17
|
-
import { IChatEditingService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatEditingService.service';
|
|
18
|
-
import { IChatService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService.service';
|
|
19
|
-
import { isStringImplicitContextValue } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatVariableEntries';
|
|
17
|
+
import { IChatEditingService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/editing/chatEditingService.service';
|
|
18
|
+
import { IChatService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService/chatService.service';
|
|
19
|
+
import { isStringImplicitContextValue } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/attachments/chatVariableEntries';
|
|
20
20
|
import { ChatAgentLocation } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/constants';
|
|
21
21
|
import { ILanguageModelIgnoredFilesService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/ignoredFiles.service';
|
|
22
22
|
import { getPromptsTypeForLanguageId } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/promptSyntax/promptTypes';
|
|
23
23
|
import { IChatWidgetService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat.service';
|
|
24
|
-
import { IChatContextService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chatContextService.service';
|
|
24
|
+
import { IChatContextService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/contextContrib/chatContextService.service';
|
|
25
25
|
import { autorun } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/reactions/autorun';
|
|
26
26
|
|
|
27
27
|
let ChatImplicitContextContribution = class ChatImplicitContextContribution extends Disposable {
|
|
@@ -155,24 +155,30 @@ let ChatImplicitContextContribution = class ChatImplicitContextContribution exte
|
|
|
155
155
|
}
|
|
156
156
|
}
|
|
157
157
|
const notebookEditor = this.findActiveNotebookEditor();
|
|
158
|
-
if (notebookEditor) {
|
|
158
|
+
if (notebookEditor?.isReplHistory) {
|
|
159
|
+
newValue = undefined;
|
|
160
|
+
}
|
|
161
|
+
else if (notebookEditor) {
|
|
159
162
|
const activeCell = notebookEditor.getActiveCell();
|
|
160
163
|
if (activeCell) {
|
|
161
164
|
const codeEditor = this.codeEditorService.getActiveCodeEditor();
|
|
162
165
|
const selection = codeEditor?.getSelection();
|
|
163
166
|
const visibleRanges = codeEditor?.getVisibleRanges() || [];
|
|
164
167
|
newValue = activeCell.uri;
|
|
165
|
-
|
|
168
|
+
const cellModel = codeEditor?.getModel();
|
|
169
|
+
if (cellModel && isEqual(cellModel.uri, activeCell.uri)) {
|
|
166
170
|
if (selection && !selection.isEmpty()) {
|
|
167
171
|
newValue = { uri: activeCell.uri, range: selection };
|
|
168
172
|
isSelection = true;
|
|
169
173
|
}
|
|
170
174
|
else if (visibleRanges.length > 0) {
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
175
|
+
if (!isEntireCellVisible(cellModel, visibleRanges)) {
|
|
176
|
+
let range = visibleRanges[0];
|
|
177
|
+
visibleRanges.slice(1).forEach(r => {
|
|
178
|
+
range = range.plusRange(r);
|
|
179
|
+
});
|
|
180
|
+
newValue = { uri: activeCell.uri, range };
|
|
181
|
+
}
|
|
176
182
|
}
|
|
177
183
|
}
|
|
178
184
|
}
|
|
@@ -222,6 +228,12 @@ ChatImplicitContextContribution = ( __decorate([
|
|
|
222
228
|
( __param(6, ILanguageModelIgnoredFilesService)),
|
|
223
229
|
( __param(7, IChatContextService))
|
|
224
230
|
], ChatImplicitContextContribution));
|
|
231
|
+
function isEntireCellVisible(cellModel, visibleRanges) {
|
|
232
|
+
if (visibleRanges.length === 1 && visibleRanges[0].startLineNumber === 1 && visibleRanges[0].startColumn === 1 && visibleRanges[0].endLineNumber === cellModel.getLineCount() && visibleRanges[0].endColumn === cellModel.getLineMaxColumn(visibleRanges[0].endLineNumber)) {
|
|
233
|
+
return true;
|
|
234
|
+
}
|
|
235
|
+
return false;
|
|
236
|
+
}
|
|
225
237
|
class ChatImplicitContext extends Disposable {
|
|
226
238
|
constructor() {
|
|
227
239
|
super(...arguments);
|
|
@@ -3,7 +3,7 @@ import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/l
|
|
|
3
3
|
import { ResourceSet } from "@codingame/monaco-vscode-api/vscode/vs/base/common/map";
|
|
4
4
|
import { URI } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri";
|
|
5
5
|
import { IWorkbenchContribution } from "@codingame/monaco-vscode-api/vscode/vs/workbench/common/contributions";
|
|
6
|
-
import { IChatEditingService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatEditingService.service";
|
|
6
|
+
import { IChatEditingService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/editing/chatEditingService.service";
|
|
7
7
|
import { IChatWidgetService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat.service";
|
|
8
8
|
export declare class ChatRelatedFilesContribution extends Disposable implements IWorkbenchContribution {
|
|
9
9
|
private readonly chatEditingService;
|
|
@@ -7,7 +7,7 @@ import { ResourceMap, ResourceSet } from '@codingame/monaco-vscode-api/vscode/vs
|
|
|
7
7
|
import '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/index';
|
|
8
8
|
import { isEqual } from '@codingame/monaco-vscode-api/vscode/vs/base/common/resources';
|
|
9
9
|
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
10
|
-
import { IChatEditingService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatEditingService.service';
|
|
10
|
+
import { IChatEditingService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/editing/chatEditingService.service';
|
|
11
11
|
import { IChatWidgetService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat.service';
|
|
12
12
|
import { autorun } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/reactions/autorun';
|
|
13
13
|
|
|
@@ -60,7 +60,7 @@ let ChatRelatedFilesContribution = class ChatRelatedFilesContribution extends Di
|
|
|
60
60
|
if (( existingFiles.has(file.uri))) {
|
|
61
61
|
continue;
|
|
62
62
|
}
|
|
63
|
-
newSuggestions.set(file.uri, ( localize(
|
|
63
|
+
newSuggestions.set(file.uri, ( localize(4964, "{0} (Suggested)", file.description)));
|
|
64
64
|
existingFiles.add(file.uri);
|
|
65
65
|
}
|
|
66
66
|
}
|
package/vscode/src/vs/workbench/contrib/chat/browser/attachments/implicitContextAttachment.d.ts
CHANGED
|
@@ -9,10 +9,10 @@ import { IFileService } from "@codingame/monaco-vscode-api/vscode/vs/platform/fi
|
|
|
9
9
|
import { IHoverService } from "@codingame/monaco-vscode-api/vscode/vs/platform/hover/browser/hover.service";
|
|
10
10
|
import { ILabelService } from "@codingame/monaco-vscode-api/vscode/vs/platform/label/common/label.service";
|
|
11
11
|
import { ResourceLabels } from "@codingame/monaco-vscode-api/vscode/vs/workbench/browser/labels";
|
|
12
|
-
import { IChatRequestImplicitVariableEntry } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatVariableEntries";
|
|
12
|
+
import { IChatRequestImplicitVariableEntry } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/attachments/chatVariableEntries";
|
|
13
13
|
import { IChatWidget } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat";
|
|
14
|
-
import { ChatAttachmentModel } from "
|
|
15
|
-
import { IChatContextService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chatContextService.service";
|
|
14
|
+
import { ChatAttachmentModel } from "./chatAttachmentModel.js";
|
|
15
|
+
import { IChatContextService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/contextContrib/chatContextService.service";
|
|
16
16
|
export declare class ImplicitContextAttachmentWidget extends Disposable {
|
|
17
17
|
private readonly widgetRef;
|
|
18
18
|
private readonly attachment;
|
|
@@ -35,4 +35,5 @@ export declare class ImplicitContextAttachmentWidget extends Disposable {
|
|
|
35
35
|
private renderString;
|
|
36
36
|
private renderResource;
|
|
37
37
|
private convertToRegularAttachment;
|
|
38
|
+
private pinSelection;
|
|
38
39
|
}
|
package/vscode/src/vs/workbench/contrib/chat/browser/attachments/implicitContextAttachment.js
CHANGED
|
@@ -11,6 +11,7 @@ import { Disposable, DisposableStore } from '@codingame/monaco-vscode-api/vscode
|
|
|
11
11
|
import { Schemas } from '@codingame/monaco-vscode-api/vscode/vs/base/common/network';
|
|
12
12
|
import { basename, dirname } from '@codingame/monaco-vscode-api/vscode/vs/base/common/resources';
|
|
13
13
|
import { URI } from '@codingame/monaco-vscode-api/vscode/vs/base/common/uri';
|
|
14
|
+
import { isLocation } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/languages';
|
|
14
15
|
import { ILanguageService } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/languages/language.service';
|
|
15
16
|
import { IModelService } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/services/model.service';
|
|
16
17
|
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
@@ -25,8 +26,8 @@ import { IFileService } from '@codingame/monaco-vscode-api/vscode/vs/platform/fi
|
|
|
25
26
|
import { IHoverService } from '@codingame/monaco-vscode-api/vscode/vs/platform/hover/browser/hover.service';
|
|
26
27
|
import { ILabelService } from '@codingame/monaco-vscode-api/vscode/vs/platform/label/common/label.service';
|
|
27
28
|
import { ResourceContextKey } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/contextkeys';
|
|
28
|
-
import { isStringImplicitContextValue } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatVariableEntries';
|
|
29
|
-
import { IChatContextService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chatContextService.service';
|
|
29
|
+
import { isStringImplicitContextValue } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/attachments/chatVariableEntries';
|
|
30
|
+
import { IChatContextService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/contextContrib/chatContextService.service';
|
|
30
31
|
|
|
31
32
|
let ImplicitContextAttachmentWidget = class ImplicitContextAttachmentWidget extends Disposable {
|
|
32
33
|
constructor(widgetRef, attachment, resourceLabels, attachmentModel, contextKeyService, contextMenuService, labelService, menuService, fileService, languageService, modelService, hoverService, configService, chatContextService) {
|
|
@@ -53,21 +54,12 @@ let ImplicitContextAttachmentWidget = class ImplicitContextAttachmentWidget exte
|
|
|
53
54
|
clearNode(this.domNode);
|
|
54
55
|
this.renderDisposables.clear();
|
|
55
56
|
this.domNode.classList.toggle('disabled', !this.attachment.enabled);
|
|
56
|
-
const label = this.resourceLabels.create(this.domNode, { supportIcons: true });
|
|
57
57
|
const file = this.attachment.uri;
|
|
58
|
-
const attachmentTypeName = file?.scheme === Schemas.vscodeNotebookCell ? ( localize(
|
|
59
|
-
let title;
|
|
60
|
-
if (isStringImplicitContextValue(this.attachment.value)) {
|
|
61
|
-
title = this.renderString(label);
|
|
62
|
-
}
|
|
63
|
-
else {
|
|
64
|
-
title = this.renderResource(this.attachment.value, label);
|
|
65
|
-
}
|
|
58
|
+
const attachmentTypeName = file?.scheme === Schemas.vscodeNotebookCell ? ( localize(4966, "cell")) : ( localize(4967, "file"));
|
|
66
59
|
const isSuggestedEnabled = this.configService.getValue('chat.implicitContext.suggestedContext');
|
|
67
|
-
this._register(this.hoverService.setupManagedHover(getDefaultHoverDelegate('element'), this.domNode, title));
|
|
68
60
|
if (isSuggestedEnabled) {
|
|
69
61
|
if (!this.attachment.isSelection) {
|
|
70
|
-
const buttonMsg = this.attachment.enabled ? ( localize(
|
|
62
|
+
const buttonMsg = this.attachment.enabled ? ( localize(4968, "Disable current {0} context", attachmentTypeName)) : '';
|
|
71
63
|
const toggleButton = this.renderDisposables.add(( new Button(this.domNode, { supportIcons: true, title: buttonMsg })));
|
|
72
64
|
toggleButton.icon = this.attachment.enabled ? Codicon.x : Codicon.plus;
|
|
73
65
|
this.renderDisposables.add(toggleButton.onDidClick(async (e) => {
|
|
@@ -79,6 +71,16 @@ let ImplicitContextAttachmentWidget = class ImplicitContextAttachmentWidget exte
|
|
|
79
71
|
this.attachment.enabled = false;
|
|
80
72
|
}));
|
|
81
73
|
}
|
|
74
|
+
else {
|
|
75
|
+
const pinButtonMsg = ( localize(4969, "Pin selection"));
|
|
76
|
+
const pinButton = this.renderDisposables.add(( new Button(this.domNode, { supportIcons: true, title: pinButtonMsg })));
|
|
77
|
+
pinButton.icon = Codicon.pinned;
|
|
78
|
+
this.renderDisposables.add(pinButton.onDidClick(async (e) => {
|
|
79
|
+
e.stopPropagation();
|
|
80
|
+
e.preventDefault();
|
|
81
|
+
await this.pinSelection();
|
|
82
|
+
}));
|
|
83
|
+
}
|
|
82
84
|
if (!this.attachment.enabled && this.attachment.isSelection) {
|
|
83
85
|
this.domNode.classList.remove('disabled');
|
|
84
86
|
}
|
|
@@ -99,7 +101,7 @@ let ImplicitContextAttachmentWidget = class ImplicitContextAttachmentWidget exte
|
|
|
99
101
|
}));
|
|
100
102
|
}
|
|
101
103
|
else {
|
|
102
|
-
const buttonMsg = this.attachment.enabled ? ( localize(
|
|
104
|
+
const buttonMsg = this.attachment.enabled ? ( localize(4968, "Disable current {0} context", attachmentTypeName)) : ( localize(4970, "Enable current {0} context", attachmentTypeName));
|
|
103
105
|
const toggleButton = this.renderDisposables.add(( new Button(this.domNode, { supportIcons: true, title: buttonMsg })));
|
|
104
106
|
toggleButton.icon = this.attachment.enabled ? Codicon.eye : Codicon.eyeClosed;
|
|
105
107
|
this.renderDisposables.add(toggleButton.onDidClick((e) => {
|
|
@@ -107,6 +109,15 @@ let ImplicitContextAttachmentWidget = class ImplicitContextAttachmentWidget exte
|
|
|
107
109
|
this.attachment.enabled = !this.attachment.enabled;
|
|
108
110
|
}));
|
|
109
111
|
}
|
|
112
|
+
const label = this.resourceLabels.create(this.domNode, { supportIcons: true });
|
|
113
|
+
let title;
|
|
114
|
+
if (isStringImplicitContextValue(this.attachment.value)) {
|
|
115
|
+
title = this.renderString(label);
|
|
116
|
+
}
|
|
117
|
+
else {
|
|
118
|
+
title = this.renderResource(this.attachment.value, label);
|
|
119
|
+
}
|
|
120
|
+
this._register(this.hoverService.setupManagedHover(getDefaultHoverDelegate('element'), this.domNode, title));
|
|
110
121
|
const scopedContextKeyService = this.renderDisposables.add(this.contextKeyService.createScoped(this.domNode));
|
|
111
122
|
const resourceContextKey = this.renderDisposables.add(( new ResourceContextKey(
|
|
112
123
|
scopedContextKeyService,
|
|
@@ -131,28 +142,28 @@ let ImplicitContextAttachmentWidget = class ImplicitContextAttachmentWidget exte
|
|
|
131
142
|
renderString(resourceLabel) {
|
|
132
143
|
const label = this.attachment.name;
|
|
133
144
|
const icon = this.attachment.icon;
|
|
134
|
-
const title = ( localize(
|
|
145
|
+
const title = ( localize(4971, "Current file context"));
|
|
135
146
|
resourceLabel.setLabel(label, undefined, { iconPath: icon, title });
|
|
136
147
|
return title;
|
|
137
148
|
}
|
|
138
149
|
renderResource(attachmentValue, label) {
|
|
139
150
|
const file = URI.isUri(attachmentValue) ? attachmentValue : attachmentValue.uri;
|
|
140
151
|
const range = URI.isUri(attachmentValue) || !this.attachment.isSelection ? undefined : attachmentValue.range;
|
|
141
|
-
const attachmentTypeName = file.scheme === Schemas.vscodeNotebookCell ? ( localize(
|
|
152
|
+
const attachmentTypeName = file.scheme === Schemas.vscodeNotebookCell ? ( localize(4966, "cell")) : ( localize(4967, "file"));
|
|
142
153
|
const fileBasename = basename(file);
|
|
143
154
|
const fileDirname = dirname(file);
|
|
144
155
|
const friendlyName = `${fileBasename} ${fileDirname}`;
|
|
145
156
|
const ariaLabel = range ? ( localize(
|
|
146
|
-
|
|
157
|
+
4972,
|
|
147
158
|
"Attached {0}, {1}, line {2} to line {3}",
|
|
148
159
|
attachmentTypeName,
|
|
149
160
|
friendlyName,
|
|
150
161
|
range.startLineNumber,
|
|
151
162
|
range.endLineNumber
|
|
152
|
-
)) : ( localize(
|
|
163
|
+
)) : ( localize(4973, "Attached {0}, {1}", attachmentTypeName, friendlyName));
|
|
153
164
|
const uriLabel = this.labelService.getUriLabel(file, { relative: true });
|
|
154
|
-
const currentFile = ( localize(
|
|
155
|
-
const inactive = ( localize(
|
|
165
|
+
const currentFile = ( localize(4974, "Current {0} context", attachmentTypeName));
|
|
166
|
+
const inactive = ( localize(4975, "Enable current {0} context", attachmentTypeName));
|
|
156
167
|
const currentFileHint = this.attachment.enabled || this.attachment.isSelection ? currentFile : inactive;
|
|
157
168
|
const title = `${currentFileHint}\n${uriLabel}`;
|
|
158
169
|
label.setFile(file, {
|
|
@@ -186,7 +197,22 @@ let ImplicitContextAttachmentWidget = class ImplicitContextAttachmentWidget exte
|
|
|
186
197
|
}
|
|
187
198
|
else {
|
|
188
199
|
const file = URI.isUri(this.attachment.value) ? this.attachment.value : this.attachment.value.uri;
|
|
189
|
-
this.
|
|
200
|
+
if (file.scheme === Schemas.vscodeNotebookCell && isLocation(this.attachment.value)) {
|
|
201
|
+
this.attachmentModel.addFile(file, this.attachment.value.range);
|
|
202
|
+
}
|
|
203
|
+
else {
|
|
204
|
+
this.attachmentModel.addFile(file);
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
this.widgetRef()?.focusInput();
|
|
208
|
+
}
|
|
209
|
+
async pinSelection() {
|
|
210
|
+
if (!this.attachment.value || !this.attachment.isSelection) {
|
|
211
|
+
return;
|
|
212
|
+
}
|
|
213
|
+
if (!URI.isUri(this.attachment.value) && !isStringImplicitContextValue(this.attachment.value)) {
|
|
214
|
+
const location = this.attachment.value;
|
|
215
|
+
this.attachmentModel.addFile(location.uri, location.range);
|
|
190
216
|
}
|
|
191
217
|
this.widgetRef()?.focusInput();
|
|
192
218
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { URI } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri";
|
|
2
2
|
import { ServicesAccessor } from "@codingame/monaco-vscode-api/vscode/vs/editor/browser/editorExtensions";
|
|
3
3
|
import { Action2, IAction2Options } from "@codingame/monaco-vscode-api/vscode/vs/platform/actions/common/actions";
|
|
4
|
-
import { IChatEditingSession } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatEditingService";
|
|
4
|
+
import { IChatEditingSession } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/editing/chatEditingService";
|
|
5
5
|
import { IChatWidget } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat";
|
|
6
6
|
export declare abstract class EditingSessionAction extends Action2 {
|
|
7
7
|
constructor(opts: Readonly<IAction2Options>);
|
|
@@ -21,12 +21,12 @@ import { EditorActivation } from '@codingame/monaco-vscode-api/vscode/vs/platfor
|
|
|
21
21
|
import { KeybindingWeight } from '@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/keybindingsRegistry';
|
|
22
22
|
import { IEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
23
23
|
import { IAgentSessionsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsService.service';
|
|
24
|
-
import { isChatViewTitleActionContext } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatActions';
|
|
25
|
-
import { ChatContextKeys } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatContextKeys';
|
|
26
|
-
import { chatEditingWidgetFileStateContextKey, ModifiedFileEntryState, CHAT_EDITING_MULTI_DIFF_SOURCE_RESOLVER_SCHEME, chatEditingResourceContextKey, decidedChatEditingResourceContextKey, applyingChatEditsFailedContextKey, hasUndecidedChatEditingResourceContextKey, hasAppliedChatEditsContextKey } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatEditingService';
|
|
27
|
-
import { IChatEditingService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatEditingService.service';
|
|
28
|
-
import { IChatService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService.service';
|
|
29
|
-
import { isRequestVM, isResponseVM, isChatTreeItem } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatViewModel';
|
|
24
|
+
import { isChatViewTitleActionContext } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/actions/chatActions';
|
|
25
|
+
import { ChatContextKeys } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/actions/chatContextKeys';
|
|
26
|
+
import { chatEditingWidgetFileStateContextKey, ModifiedFileEntryState, CHAT_EDITING_MULTI_DIFF_SOURCE_RESOLVER_SCHEME, chatEditingResourceContextKey, decidedChatEditingResourceContextKey, applyingChatEditsFailedContextKey, hasUndecidedChatEditingResourceContextKey, hasAppliedChatEditsContextKey } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/editing/chatEditingService';
|
|
27
|
+
import { IChatEditingService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/editing/chatEditingService.service';
|
|
28
|
+
import { IChatService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService/chatService.service';
|
|
29
|
+
import { isRequestVM, isResponseVM, isChatTreeItem } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/model/chatViewModel';
|
|
30
30
|
import { ChatAgentLocation, ChatConfiguration, ChatModeKind } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/constants';
|
|
31
31
|
import { CHAT_CATEGORY } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/actions/chatActions';
|
|
32
32
|
import { IChatWidgetService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat.service';
|
|
@@ -80,7 +80,7 @@ registerAction2(class OpenFileInDiffAction extends WorkingSetAction {
|
|
|
80
80
|
constructor() {
|
|
81
81
|
super({
|
|
82
82
|
id: 'chatEditing.openFileInDiff',
|
|
83
|
-
title: ( localize2(
|
|
83
|
+
title: ( localize2(5097, 'Open Changes in Diff Editor')),
|
|
84
84
|
icon: Codicon.diffSingle,
|
|
85
85
|
menu: [{
|
|
86
86
|
id: MenuId.ChatEditingWidgetModifiedFilesToolbar,
|
|
@@ -109,7 +109,7 @@ registerAction2(class AcceptAction extends WorkingSetAction {
|
|
|
109
109
|
constructor() {
|
|
110
110
|
super({
|
|
111
111
|
id: 'chatEditing.acceptFile',
|
|
112
|
-
title: ( localize2(
|
|
112
|
+
title: ( localize2(5098, 'Keep')),
|
|
113
113
|
icon: Codicon.check,
|
|
114
114
|
menu: [{
|
|
115
115
|
when: ( ContextKeyExpr.and(( ContextKeyExpr.equals('resourceScheme', CHAT_EDITING_MULTI_DIFF_SOURCE_RESOLVER_SCHEME)), ContextKeyExpr.notIn(chatEditingResourceContextKey.key, decidedChatEditingResourceContextKey.key))),
|
|
@@ -132,7 +132,7 @@ registerAction2(class DiscardAction extends WorkingSetAction {
|
|
|
132
132
|
constructor() {
|
|
133
133
|
super({
|
|
134
134
|
id: 'chatEditing.discardFile',
|
|
135
|
-
title: ( localize2(
|
|
135
|
+
title: ( localize2(5099, 'Undo')),
|
|
136
136
|
icon: Codicon.discard,
|
|
137
137
|
menu: [{
|
|
138
138
|
when: ( ContextKeyExpr.and(( ContextKeyExpr.equals('resourceScheme', CHAT_EDITING_MULTI_DIFF_SOURCE_RESOLVER_SCHEME)), ContextKeyExpr.notIn(chatEditingResourceContextKey.key, decidedChatEditingResourceContextKey.key))),
|
|
@@ -155,9 +155,9 @@ class ChatEditingAcceptAllAction extends EditingSessionAction {
|
|
|
155
155
|
constructor() {
|
|
156
156
|
super({
|
|
157
157
|
id: 'chatEditing.acceptAllFiles',
|
|
158
|
-
title: ( localize(
|
|
158
|
+
title: ( localize(5100, 'Keep')),
|
|
159
159
|
icon: Codicon.check,
|
|
160
|
-
tooltip: ( localize(
|
|
160
|
+
tooltip: ( localize(5101, 'Keep All Edits')),
|
|
161
161
|
precondition: hasUndecidedChatEditingResourceContextKey,
|
|
162
162
|
keybinding: {
|
|
163
163
|
primary: KeyMod.CtrlCmd | KeyCode.Enter,
|
|
@@ -183,9 +183,9 @@ class ChatEditingDiscardAllAction extends EditingSessionAction {
|
|
|
183
183
|
constructor() {
|
|
184
184
|
super({
|
|
185
185
|
id: 'chatEditing.discardAllFiles',
|
|
186
|
-
title: ( localize(
|
|
186
|
+
title: ( localize(5102, 'Undo')),
|
|
187
187
|
icon: Codicon.discard,
|
|
188
|
-
tooltip: ( localize(
|
|
188
|
+
tooltip: ( localize(5103, 'Undo All Edits')),
|
|
189
189
|
precondition: hasUndecidedChatEditingResourceContextKey,
|
|
190
190
|
menu: [
|
|
191
191
|
{
|
|
@@ -213,22 +213,22 @@ class ChatEditingDiscardAllAction extends EditingSessionAction {
|
|
|
213
213
|
registerAction2(ChatEditingDiscardAllAction);
|
|
214
214
|
async function discardAllEditsWithConfirmation(accessor, currentEditingSession) {
|
|
215
215
|
const dialogService = accessor.get(IDialogService);
|
|
216
|
-
const entries = currentEditingSession.entries.get();
|
|
216
|
+
const entries = currentEditingSession.entries.get().filter(e => e.state.get() === ModifiedFileEntryState.Modified);
|
|
217
217
|
if (entries.length > 0) {
|
|
218
218
|
const confirmation = await dialogService.confirm({
|
|
219
|
-
title: ( localize(
|
|
219
|
+
title: ( localize(5104, "Undo all edits?")),
|
|
220
220
|
message: entries.length === 1
|
|
221
221
|
? ( localize(
|
|
222
|
-
|
|
222
|
+
5105,
|
|
223
223
|
"This will undo changes made in {0}. Do you want to proceed?",
|
|
224
224
|
basename(entries[0].modifiedURI)
|
|
225
225
|
))
|
|
226
226
|
: ( localize(
|
|
227
|
-
|
|
227
|
+
5106,
|
|
228
228
|
"This will undo changes made in {0} files. Do you want to proceed?",
|
|
229
229
|
entries.length
|
|
230
230
|
)),
|
|
231
|
-
primaryButton: ( localize(
|
|
231
|
+
primaryButton: ( localize(5107, "Yes")),
|
|
232
232
|
type: 'info'
|
|
233
233
|
});
|
|
234
234
|
if (!confirmation.confirmed) {
|
|
@@ -240,7 +240,7 @@ async function discardAllEditsWithConfirmation(accessor, currentEditingSession)
|
|
|
240
240
|
}
|
|
241
241
|
class ChatEditingShowChangesAction extends EditingSessionAction {
|
|
242
242
|
static { this.ID = 'chatEditing.viewChanges'; }
|
|
243
|
-
static { this.LABEL = ( localize(
|
|
243
|
+
static { this.LABEL = ( localize(5108, 'View All Edits')); }
|
|
244
244
|
constructor() {
|
|
245
245
|
super({
|
|
246
246
|
id: ChatEditingShowChangesAction.ID,
|
|
@@ -269,7 +269,7 @@ class ViewAllSessionChangesAction extends Action2 {
|
|
|
269
269
|
constructor() {
|
|
270
270
|
super({
|
|
271
271
|
id: ViewAllSessionChangesAction.ID,
|
|
272
|
-
title: ( localize2(
|
|
272
|
+
title: ( localize2(5109, 'View All Changes')),
|
|
273
273
|
icon: Codicon.diffMultiple,
|
|
274
274
|
category: CHAT_CATEGORY,
|
|
275
275
|
precondition: ChatContextKeys.hasAgentSessionChanges,
|
|
@@ -300,7 +300,7 @@ class ViewAllSessionChangesAction extends Action2 {
|
|
|
300
300
|
if (resources.length > 0) {
|
|
301
301
|
await commandService.executeCommand('_workbench.openMultiDiffEditor', {
|
|
302
302
|
multiDiffSourceUri: sessionResource.with({ scheme: sessionResource.scheme + '-worktree-changes' }),
|
|
303
|
-
title: ( localize(
|
|
303
|
+
title: ( localize(5110, 'All Session Changes')),
|
|
304
304
|
resources,
|
|
305
305
|
});
|
|
306
306
|
}
|
|
@@ -335,14 +335,14 @@ async function restoreSnapshotWithConfirmation(accessor, item) {
|
|
|
335
335
|
if (editsToUndo === 1) {
|
|
336
336
|
if (entriesModifiedInRequestsToRemove.length === 1) {
|
|
337
337
|
message = ( localize(
|
|
338
|
-
|
|
338
|
+
5111,
|
|
339
339
|
"This will remove your last request and undo the edits made to {0}. Do you want to proceed?",
|
|
340
340
|
basename(entriesModifiedInRequestsToRemove[0].modifiedURI)
|
|
341
341
|
));
|
|
342
342
|
}
|
|
343
343
|
else {
|
|
344
344
|
message = ( localize(
|
|
345
|
-
|
|
345
|
+
5112,
|
|
346
346
|
"This will remove your last request and undo edits made to {0} files in your working set. Do you want to proceed?",
|
|
347
347
|
entriesModifiedInRequestsToRemove.length
|
|
348
348
|
));
|
|
@@ -351,14 +351,14 @@ async function restoreSnapshotWithConfirmation(accessor, item) {
|
|
|
351
351
|
else {
|
|
352
352
|
if (entriesModifiedInRequestsToRemove.length === 1) {
|
|
353
353
|
message = ( localize(
|
|
354
|
-
|
|
354
|
+
5113,
|
|
355
355
|
"This will remove all subsequent requests and undo edits made to {0}. Do you want to proceed?",
|
|
356
356
|
basename(entriesModifiedInRequestsToRemove[0].modifiedURI)
|
|
357
357
|
));
|
|
358
358
|
}
|
|
359
359
|
else {
|
|
360
360
|
message = ( localize(
|
|
361
|
-
|
|
361
|
+
5114,
|
|
362
362
|
"This will remove all subsequent requests and undo edits made to {0} files in your working set. Do you want to proceed?",
|
|
363
363
|
entriesModifiedInRequestsToRemove.length
|
|
364
364
|
));
|
|
@@ -367,11 +367,11 @@ async function restoreSnapshotWithConfirmation(accessor, item) {
|
|
|
367
367
|
const confirmation = shouldPrompt
|
|
368
368
|
? await dialogService.confirm({
|
|
369
369
|
title: editsToUndo === 1
|
|
370
|
-
? ( localize(
|
|
371
|
-
: ( localize(
|
|
370
|
+
? ( localize(5115, "Do you want to undo your last edit?"))
|
|
371
|
+
: ( localize(5116, "Do you want to undo {0} edits?", editsToUndo)),
|
|
372
372
|
message: message,
|
|
373
|
-
primaryButton: ( localize(
|
|
374
|
-
checkbox: { label: ( localize(
|
|
373
|
+
primaryButton: ( localize(5117, "Yes")),
|
|
374
|
+
checkbox: { label: ( localize(5118, "Don't ask again")), checked: false },
|
|
375
375
|
type: 'info'
|
|
376
376
|
})
|
|
377
377
|
: { confirmed: true };
|
|
@@ -390,7 +390,7 @@ registerAction2(class RemoveAction extends Action2 {
|
|
|
390
390
|
constructor() {
|
|
391
391
|
super({
|
|
392
392
|
id: 'workbench.action.chat.undoEdits',
|
|
393
|
-
title: ( localize2(
|
|
393
|
+
title: ( localize2(5119, "Undo Requests")),
|
|
394
394
|
f1: false,
|
|
395
395
|
category: CHAT_CATEGORY,
|
|
396
396
|
icon: Codicon.discard,
|
|
@@ -434,8 +434,8 @@ registerAction2(class RestoreCheckpointAction extends Action2 {
|
|
|
434
434
|
constructor() {
|
|
435
435
|
super({
|
|
436
436
|
id: 'workbench.action.chat.restoreCheckpoint',
|
|
437
|
-
title: ( localize2(
|
|
438
|
-
tooltip: ( localize2(
|
|
437
|
+
title: ( localize2(5120, "Restore Checkpoint")),
|
|
438
|
+
tooltip: ( localize2(5121, "Restores workspace and chat to this point")),
|
|
439
439
|
f1: false,
|
|
440
440
|
category: CHAT_CATEGORY,
|
|
441
441
|
keybinding: {
|
|
@@ -478,7 +478,7 @@ registerAction2(class RestoreLastCheckpoint extends Action2 {
|
|
|
478
478
|
constructor() {
|
|
479
479
|
super({
|
|
480
480
|
id: 'workbench.action.chat.restoreLastCheckpoint',
|
|
481
|
-
title: ( localize2(
|
|
481
|
+
title: ( localize2(5122, "Restore to Last Checkpoint")),
|
|
482
482
|
f1: false,
|
|
483
483
|
category: CHAT_CATEGORY,
|
|
484
484
|
icon: Codicon.discard,
|
|
@@ -530,7 +530,7 @@ registerAction2(class EditAction extends Action2 {
|
|
|
530
530
|
constructor() {
|
|
531
531
|
super({
|
|
532
532
|
id: 'workbench.action.chat.editRequests',
|
|
533
|
-
title: ( localize2(
|
|
533
|
+
title: ( localize2(5123, "Edit Request")),
|
|
534
534
|
f1: false,
|
|
535
535
|
category: CHAT_CATEGORY,
|
|
536
536
|
icon: Codicon.edit,
|
|
@@ -569,7 +569,7 @@ registerAction2(class OpenWorkingSetHistoryAction extends Action2 {
|
|
|
569
569
|
constructor() {
|
|
570
570
|
super({
|
|
571
571
|
id: OpenWorkingSetHistoryAction.id,
|
|
572
|
-
title: ( localize(
|
|
572
|
+
title: ( localize(5124, "Open File")),
|
|
573
573
|
menu: [{
|
|
574
574
|
id: MenuId.ChatEditingCodeBlockContext,
|
|
575
575
|
group: 'navigation',
|
|
@@ -591,7 +591,7 @@ registerAction2(class OpenWorkingSetHistoryAction extends Action2 {
|
|
|
591
591
|
constructor() {
|
|
592
592
|
super({
|
|
593
593
|
id: OpenWorkingSetHistoryAction.id,
|
|
594
|
-
title: ( localize(
|
|
594
|
+
title: ( localize(5125, "Open File Snapshot")),
|
|
595
595
|
menu: [{
|
|
596
596
|
id: MenuId.ChatEditingCodeBlockContext,
|
|
597
597
|
group: 'navigation',
|
|
@@ -613,7 +613,7 @@ registerAction2(class OpenWorkingSetHistoryAction extends Action2 {
|
|
|
613
613
|
}
|
|
614
614
|
const snapshot = chatEditingService.getEditingSession(chatModel.sessionResource)?.getSnapshotUri(context.requestId, context.uri, context.stopId);
|
|
615
615
|
if (snapshot) {
|
|
616
|
-
const editor = await editorService.openEditor({ resource: snapshot, label: ( localize(
|
|
616
|
+
const editor = await editorService.openEditor({ resource: snapshot, label: ( localize(5126, '{0} (Snapshot)', basename(context.uri))), options: { activation: EditorActivation.ACTIVATE } });
|
|
617
617
|
if (isCodeEditor(editor)) {
|
|
618
618
|
editor.updateOptions({ readOnly: true });
|
|
619
619
|
}
|
|
@@ -624,7 +624,7 @@ registerAction2(class ResolveSymbolsContextAction extends EditingSessionAction {
|
|
|
624
624
|
constructor() {
|
|
625
625
|
super({
|
|
626
626
|
id: 'workbench.action.edits.addFilesFromReferences',
|
|
627
|
-
title: ( localize2(
|
|
627
|
+
title: ( localize2(5127, "Add Files From References")),
|
|
628
628
|
f1: false,
|
|
629
629
|
category: CHAT_CATEGORY,
|
|
630
630
|
menu: {
|
|
@@ -683,7 +683,7 @@ registerAction2(class ResolveSymbolsContextAction extends EditingSessionAction {
|
|
|
683
683
|
});
|
|
684
684
|
class ViewPreviousEditsAction extends EditingSessionAction {
|
|
685
685
|
static { this.Id = 'chatEditing.viewPreviousEdits'; }
|
|
686
|
-
static { this.Label = ( localize(
|
|
686
|
+
static { this.Label = ( localize(5128, 'View Previous Edits')); }
|
|
687
687
|
constructor() {
|
|
688
688
|
super({
|
|
689
689
|
id: ViewPreviousEditsAction.Id,
|
package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessionPickerActionItem.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
2
|
import { registerCss } from '@codingame/monaco-vscode-api/css';
|
|
3
3
|
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
4
|
-
import * as
|
|
4
|
+
import * as chatSessionPickerActionItem from './media/chatSessionPickerActionItem.css';
|
|
5
5
|
import { $, reset } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
|
|
6
6
|
import { IActionWidgetService } from '@codingame/monaco-vscode-api/vscode/vs/platform/actionWidget/browser/actionWidget.service';
|
|
7
7
|
import { IContextKeyService } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service';
|
|
@@ -13,7 +13,7 @@ import { ActionWidgetDropdownActionViewItem } from '../../../../../platform/acti
|
|
|
13
13
|
import { renderIcon, renderLabelWithIcons } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/iconLabel/iconLabels';
|
|
14
14
|
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
15
15
|
|
|
16
|
-
registerCss(
|
|
16
|
+
registerCss(chatSessionPickerActionItem);
|
|
17
17
|
let ChatSessionPickerActionItem = class ChatSessionPickerActionItem extends ActionWidgetDropdownActionViewItem {
|
|
18
18
|
constructor(action, initialState, delegate, actionWidgetService, contextKeyService, commandService, chatEntitlementService, keybindingService, telemetryService) {
|
|
19
19
|
const { group, item } = initialState;
|
|
@@ -78,7 +78,7 @@ let ChatSessionPickerActionItem = class ChatSessionPickerActionItem extends Acti
|
|
|
78
78
|
if (this.currentOption?.icon) {
|
|
79
79
|
domChildren.push(renderIcon(this.currentOption.icon));
|
|
80
80
|
}
|
|
81
|
-
domChildren.push($('span.chat-session-option-label', undefined, this.currentOption?.name ?? ( localize(
|
|
81
|
+
domChildren.push($('span.chat-session-option-label', undefined, this.currentOption?.name ?? ( localize(5292, "Pick Option"))));
|
|
82
82
|
domChildren.push(...renderLabelWithIcons(`$(chevron-down)`));
|
|
83
83
|
reset(element, ...domChildren);
|
|
84
84
|
this.setAriaLabelAttributes(element);
|
package/vscode/src/vs/workbench/contrib/chat/browser/viewsWelcome/chatViewWelcomeController.js
CHANGED
|
@@ -152,18 +152,18 @@ let ChatViewWelcomePart = class ChatViewWelcomePart extends Disposable {
|
|
|
152
152
|
if (content.suggestedPrompts && content.suggestedPrompts.length) {
|
|
153
153
|
const suggestedPromptsContainer = append(this.element, $('.chat-welcome-view-suggested-prompts'));
|
|
154
154
|
const titleElement = append(suggestedPromptsContainer, $('.chat-welcome-view-suggested-prompts-title'));
|
|
155
|
-
titleElement.textContent = ( localize(
|
|
155
|
+
titleElement.textContent = ( localize(5597, 'Suggested Actions'));
|
|
156
156
|
for (const prompt of content.suggestedPrompts) {
|
|
157
157
|
const promptElement = append(suggestedPromptsContainer, $('.chat-welcome-view-suggested-prompt'));
|
|
158
158
|
promptElement.setAttribute('role', 'button');
|
|
159
159
|
promptElement.setAttribute('tabindex', '0');
|
|
160
160
|
const promptAriaLabel = prompt.description
|
|
161
|
-
? ( localize(
|
|
162
|
-
: ( localize(
|
|
161
|
+
? ( localize(5598, 'Suggested prompt: {0}, {1}', prompt.label, prompt.description))
|
|
162
|
+
: ( localize(5599, 'Suggested prompt: {0}', prompt.label));
|
|
163
163
|
promptElement.setAttribute('aria-label', promptAriaLabel);
|
|
164
164
|
const titleElement = append(promptElement, $('.chat-welcome-view-suggested-prompt-title'));
|
|
165
165
|
titleElement.textContent = prompt.label;
|
|
166
|
-
const tooltip = ( localize(
|
|
166
|
+
const tooltip = ( localize(5600, "Suggested prompt: {0}", prompt.prompt));
|
|
167
167
|
promptElement.title = tooltip;
|
|
168
168
|
titleElement.title = tooltip;
|
|
169
169
|
if (prompt.description) {
|
|
@@ -228,7 +228,7 @@ let ChatViewWelcomePart = class ChatViewWelcomePart extends Disposable {
|
|
|
228
228
|
const actions = [];
|
|
229
229
|
if (prompt.uri) {
|
|
230
230
|
const uri = prompt.uri;
|
|
231
|
-
actions.push(( new Action('chat.editPromptFile', ( localize(
|
|
231
|
+
actions.push(( new Action('chat.editPromptFile', ( localize(5601, "Edit Prompt File")), ThemeIcon.asClassName(Codicon.goToFile), true, async () => {
|
|
232
232
|
try {
|
|
233
233
|
await this.openerService.open(uri);
|
|
234
234
|
}
|
|
@@ -2,9 +2,9 @@ import { IManagedHoverOptions } from "@codingame/monaco-vscode-api/vscode/vs/bas
|
|
|
2
2
|
import { Event } from "@codingame/monaco-vscode-api/vscode/vs/base/common/event";
|
|
3
3
|
import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
4
4
|
import { ICommandService } from "@codingame/monaco-vscode-api/vscode/vs/platform/commands/common/commands.service";
|
|
5
|
-
import { IChatAgentData } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatAgents";
|
|
6
|
-
import { IChatAgentNameService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatAgents.service";
|
|
7
|
-
import { IChatAgentService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatAgents.service";
|
|
5
|
+
import { IChatAgentData } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/participants/chatAgents";
|
|
6
|
+
import { IChatAgentNameService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/participants/chatAgents.service";
|
|
7
|
+
import { IChatAgentService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/participants/chatAgents.service";
|
|
8
8
|
import { IExtensionsWorkbenchService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/extensions/common/extensions.service";
|
|
9
9
|
export declare class ChatAgentHover extends Disposable {
|
|
10
10
|
private readonly chatAgentService;
|