@codingame/monaco-vscode-katex-common 29.1.1 → 30.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/actions/browser/buttonbar.js +14 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatAccessibilityProvider.js +16 -16
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContinueInAction.js +9 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatElicitationActions.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatExecuteActions.js +34 -34
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatTitleActions.js +12 -20
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatToolActions.d.ts +14 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatToolActions.js +208 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatToolPicker.d.ts +22 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatToolPicker.js +637 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionApprovalModel.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionApprovalModel.js +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionHoverWidget.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsControl.d.ts +9 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsControl.js +202 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsFilter.d.ts +4 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsFilter.js +17 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsOpener.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsViewer.d.ts +53 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsViewer.js +296 -63
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/media/agentsessionsviewer.css +59 -23
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentWidgets.js +55 -42
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/implicitContextAttachment.js +12 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingActions.js +110 -59
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorActions.js +14 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorOverlay.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingExplanationWidget.js +12 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessionPickerActionItem.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/searchableOptionPickerActionItem.js +5 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/toolSetsContribution.d.ts +24 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/toolSetsContribution.js +384 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatAgentHover.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatArtifactsWidget.d.ts +12 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatArtifactsWidget.js +220 -61
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentMarkdownRenderer.js +1 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatAgentCommandContentPart.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatAnonymousRateLimitedPart.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatAttachmentsContentPart.d.ts +6 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatAttachmentsContentPart.js +14 -1
- 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 +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatConfirmationWidget.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatContentCodePools.js +5 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatDisabledClaudeHooksContentPart.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatExtensionsContentPart.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatHookContentPart.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatInlineAnchorWidget.d.ts +5 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatInlineAnchorWidget.js +14 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMarkdownContentPart.d.ts +11 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMarkdownContentPart.js +40 -12
- 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/chatProgressContentPart.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatQuestionCarouselPart.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatQuestionCarouselPart.js +97 -54
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatQuotaExceededPart.js +5 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatReferencesContentPart.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatResourceGroupWidget.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatSubagentContentPart.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatSuggestNextWidget.js +8 -7
- 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 +15 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatThinkingContentPart.js +155 -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.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTodoListWidget.js +36 -19
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatToolInputOutputContentPart.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTreeContentPart.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatWorkspaceEditContentPart.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/codeBlockPart.js +14 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatThinkingContent.css +13 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/abstractToolConfirmationSubPart.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatExtensionsInstallToolSubPart.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatMcpAppModel.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatMcpAppSubPart.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatMissingSandboxDepsConfirmationSubPart.d.ts +17 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatMissingSandboxDepsConfirmationSubPart.js +68 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatModifiedFilesConfirmationSubPart.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatTerminalToolConfirmationSubPart.js +16 -16
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatTerminalToolProgressPart.js +33 -25
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolConfirmationSubPart.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolInvocationPart.js +12 -3
- 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/chatDragAndDrop.js +11 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatListRenderer.d.ts +4 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatListRenderer.js +37 -113
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatListWidget.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatWidget.d.ts +10 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatWidget.js +66 -39
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatFollowups.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputPart.d.ts +13 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputPart.js +103 -61
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatModelPicker.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatModelPicker.js +35 -23
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/delegationSessionPickerActionItem.d.ts +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/delegationSessionPickerActionItem.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/modePickerActionItem.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/modelPickerActionItem2.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/modelPickerActionItem2.js +4 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/permissionPickerActionItem.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/permissionPickerActionItem.js +39 -24
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/sessionTargetPickerActionItem.d.ts +6 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/sessionTargetPickerActionItem.js +44 -18
- 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 +60 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatContextUsageDetails.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatContextUsageWidget.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/chatImageExtraction.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/common/widget/chatColors.js +15 -15
- package/vscode/src/vs/workbench/contrib/chat/common/widget/codeBlockModelCollection.js +4 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatController.js +4 -4
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatOverlayWidget.js +5 -5
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionService.d.ts +4 -1
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionService.js +5 -2
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatWidget.js +6 -11
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatZoneWidget.js +1 -1
- package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChat.js +39 -39
- 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.d.ts +26 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOperations.js +746 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/insertCellActions.d.ts +13 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/insertCellActions.js +300 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffCellEditorOptions.d.ts +8 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffCellEditorOptions.js +55 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffComponents.d.ts +273 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffComponents.js +1963 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffElementOutputs.d.ts +50 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffElementOutputs.js +314 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffElementViewModel.d.ts +258 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffElementViewModel.js +886 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffNestedCellViewModel.d.ts +41 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffNestedCellViewModel.js +118 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/editorHeightCalculator.d.ts +17 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/editorHeightCalculator.js +71 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/eventDispatcher.d.ts +27 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/eventDispatcher.js +40 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookCellDiffDecorator.d.ts +23 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookCellDiffDecorator.js +313 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookDeletedCellDecorator.d.ts +51 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookDeletedCellDecorator.js +265 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookInlineDiff.d.ts +24 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookInlineDiff.js +185 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookInlineDiffWidget.d.ts +28 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookInlineDiffWidget.js +104 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookInsertedCellDecorator.d.ts +10 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookInsertedCellDecorator.js +43 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookOriginalCellModelFactory.d.ts +21 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookOriginalCellModelFactory.js +41 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookOriginalModelRefFactory.d.ts +25 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookOriginalModelRefFactory.js +69 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiff.css +469 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditor.d.ts +149 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditor.js +933 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditorBrowser.d.ts +180 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditorBrowser.js +32 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffList.d.ts +102 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffList.js +643 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffOverviewRuler.d.ts +30 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffOverviewRuler.js +197 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffViewModel.d.ts +75 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffViewModel.js +539 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/unchangedEditorRegions.d.ts +13 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/unchangedEditorRegions.js +39 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookMetadataTextModel.d.ts +19 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookMetadataTextModel.js +90 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookDiff.d.ts +26 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookDiff.js +92 -0
- 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/chat/browser/chatSessions/chatSessions.contribution.d.ts +0 -152
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessions.contribution.js +0 -1317
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/internalCustomizations/internalPromptFileSystem.d.ts +0 -47
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/internalCustomizations/internalPromptFileSystem.js +0 -95
package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatContextUsageDetails.js
CHANGED
|
@@ -22,7 +22,7 @@ let ChatContextUsageDetails = class ChatContextUsageDetails extends Disposable {
|
|
|
22
22
|
this.domNode = $(".chat-context-usage-details");
|
|
23
23
|
this.quotaItem = this.domNode.appendChild($(".quota-indicator"));
|
|
24
24
|
const header = this.domNode.insertBefore($("div.header"), this.quotaItem);
|
|
25
|
-
header.textContent = ( localize(
|
|
25
|
+
header.textContent = ( localize(7148, "Context Window"));
|
|
26
26
|
const quotaLabel = this.quotaItem.appendChild($(".quota-label"));
|
|
27
27
|
this.tokenCountLabel = quotaLabel.appendChild($("span"));
|
|
28
28
|
this.percentageLabel = quotaLabel.appendChild($("span.quota-value"));
|
|
@@ -32,11 +32,11 @@ let ChatContextUsageDetails = class ChatContextUsageDetails extends Disposable {
|
|
|
32
32
|
this.outputBufferLegend = this.quotaItem.appendChild($(".output-buffer-legend"));
|
|
33
33
|
this.outputBufferLegend.appendChild($(".output-buffer-swatch"));
|
|
34
34
|
const legendLabel = this.outputBufferLegend.appendChild($("span"));
|
|
35
|
-
legendLabel.textContent = ( localize(
|
|
35
|
+
legendLabel.textContent = ( localize(7149, "Reserved for response"));
|
|
36
36
|
this.outputBufferLegend.style.display = "none";
|
|
37
37
|
this.tokenDetailsContainer = this.domNode.appendChild($(".token-details-container"));
|
|
38
38
|
this.warningMessage = this.domNode.appendChild($("div.description"));
|
|
39
|
-
this.warningMessage.textContent = ( localize(
|
|
39
|
+
this.warningMessage.textContent = ( localize(7150, "Quality may decline as limit nears."));
|
|
40
40
|
this.warningMessage.style.display = "none";
|
|
41
41
|
this.actionsSection = this.domNode.appendChild($(".actions-section"));
|
|
42
42
|
const buttonBarContainer = this.actionsSection.appendChild($(".button-bar-container"));
|
|
@@ -73,12 +73,12 @@ let ChatContextUsageDetails = class ChatContextUsageDetails extends Disposable {
|
|
|
73
73
|
promptTokenDetails
|
|
74
74
|
} = data;
|
|
75
75
|
this.tokenCountLabel.textContent = ( localize(
|
|
76
|
-
|
|
76
|
+
7151,
|
|
77
77
|
"{0} / {1} tokens",
|
|
78
78
|
this.formatTokenCount(usedTokens, 1),
|
|
79
79
|
this.formatTokenCount(totalContextWindow, 0)
|
|
80
80
|
));
|
|
81
|
-
this.percentageLabel.textContent = ( localize(
|
|
81
|
+
this.percentageLabel.textContent = ( localize(7152, "{0}%", Math.min(100, percentage).toFixed(0)));
|
|
82
82
|
const usageBarWidth = Math.max(0, Math.min(100, percentage));
|
|
83
83
|
this.progressFill.style.width = `${usageBarWidth}%`;
|
|
84
84
|
if (outputBufferPercentage !== undefined && outputBufferPercentage > 0) {
|
|
@@ -128,8 +128,8 @@ let ChatContextUsageDetails = class ChatContextUsageDetails extends Disposable {
|
|
|
128
128
|
}
|
|
129
129
|
if (totalPercentage < 100) {
|
|
130
130
|
const uncategorizedPercentage = 100 - totalPercentage;
|
|
131
|
-
categoryMap.set(( localize(
|
|
132
|
-
label: ( localize(
|
|
131
|
+
categoryMap.set(( localize(7153, "Uncategorized")), [{
|
|
132
|
+
label: ( localize(7154, "Other")),
|
|
133
133
|
percentageOfPrompt: uncategorizedPercentage
|
|
134
134
|
}]);
|
|
135
135
|
}
|
package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatContextUsageWidget.js
CHANGED
|
@@ -110,7 +110,7 @@ let ChatContextUsageWidget = class ChatContextUsageWidget extends Disposable {
|
|
|
110
110
|
this.domNode.style.display = "none";
|
|
111
111
|
this.domNode.setAttribute("tabindex", "0");
|
|
112
112
|
this.domNode.setAttribute("role", "button");
|
|
113
|
-
this.domNode.setAttribute("aria-label", ( localize(
|
|
113
|
+
this.domNode.setAttribute("aria-label", ( localize(7155, "Context window usage")));
|
|
114
114
|
const iconContainer = this.domNode.appendChild($(".icon-container"));
|
|
115
115
|
this.progressIndicator = ( new CircularProgressIndicator());
|
|
116
116
|
iconContainer.appendChild(this.progressIndicator.domNode);
|
|
@@ -260,7 +260,7 @@ let ChatContextUsageWidget = class ChatContextUsageWidget extends Disposable {
|
|
|
260
260
|
this.progressIndicator.setProgress(percentage);
|
|
261
261
|
const roundedPercentage = Math.min(100, Math.round(percentage));
|
|
262
262
|
this.percentageLabel.textContent = `${roundedPercentage}%`;
|
|
263
|
-
this.domNode.setAttribute("aria-label", ( localize(
|
|
263
|
+
this.domNode.setAttribute("aria-label", ( localize(7156, "Context window usage: {0}%", roundedPercentage)));
|
|
264
264
|
this.domNode.classList.remove("warning", "error");
|
|
265
265
|
if (percentage >= 90) {
|
|
266
266
|
this.domNode.classList.add("error");
|
|
@@ -26,7 +26,7 @@ async function extractImagesFromChatResponse(response, readFile) {
|
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
28
|
const request = response.session.getItems().find(item => isRequestVM(item) && item.id === response.requestId);
|
|
29
|
-
const title = request ? request.messageText : ( localize(
|
|
29
|
+
const title = request ? request.messageText : ( localize(7249, "Images"));
|
|
30
30
|
return {
|
|
31
31
|
id: ( response.sessionResource.toString()) + "_" + response.id,
|
|
32
32
|
title,
|
|
@@ -45,10 +45,10 @@ function extractImagesFromToolInvocationOutputDetails(toolInvocation, sessionRes
|
|
|
45
45
|
images.push({
|
|
46
46
|
id: `${toolInvocation.toolCallId}_${outputIndex}`,
|
|
47
47
|
uri,
|
|
48
|
-
name: ( localize(
|
|
48
|
+
name: ( localize(7250, "Image {0}", images.length + 1)),
|
|
49
49
|
mimeType,
|
|
50
50
|
data,
|
|
51
|
-
source: ( localize(
|
|
51
|
+
source: ( localize(7251, "Tool: {0}", toolInvocation.toolId)),
|
|
52
52
|
caption
|
|
53
53
|
});
|
|
54
54
|
};
|
|
@@ -93,7 +93,7 @@ async function extractImagesFromToolInvocationMessages(toolInvocation, readFile)
|
|
|
93
93
|
name,
|
|
94
94
|
mimeType,
|
|
95
95
|
data,
|
|
96
|
-
source: ( localize(
|
|
96
|
+
source: ( localize(7251, "Tool: {0}", toolInvocation.toolId)),
|
|
97
97
|
caption: message.value
|
|
98
98
|
});
|
|
99
99
|
}
|
|
@@ -131,7 +131,7 @@ async function extractImageFromInlineReference(part, readFile) {
|
|
|
131
131
|
name,
|
|
132
132
|
mimeType: mime,
|
|
133
133
|
data,
|
|
134
|
-
source: ( localize(
|
|
134
|
+
source: ( localize(7252, "File")),
|
|
135
135
|
caption: undefined
|
|
136
136
|
};
|
|
137
137
|
}
|
|
@@ -160,7 +160,7 @@ function extractImagesFromChatRequest(request) {
|
|
|
160
160
|
name: variable.name,
|
|
161
161
|
mimeType,
|
|
162
162
|
data: VSBuffer.wrap(buffer),
|
|
163
|
-
source: ( localize(
|
|
163
|
+
source: ( localize(7253, "Attachment")),
|
|
164
164
|
caption: undefined
|
|
165
165
|
});
|
|
166
166
|
}
|
|
@@ -18,45 +18,45 @@ registerColor("agentStatusIndicator.background", {
|
|
|
18
18
|
light: ( Color.black.transparent(0.05)),
|
|
19
19
|
hcDark: null,
|
|
20
20
|
hcLight: null
|
|
21
|
-
}, ( localize(
|
|
21
|
+
}, ( localize(7698, "Background color of the agent status indicator in the titlebar.")));
|
|
22
22
|
registerColor("chat.requestBorder", {
|
|
23
23
|
dark: ( new Color(( new RGBA(255, 255, 255, 0.10)))),
|
|
24
24
|
light: ( new Color(( new RGBA(0, 0, 0, 0.10)))),
|
|
25
25
|
hcDark: contrastBorder,
|
|
26
26
|
hcLight: contrastBorder
|
|
27
|
-
}, ( localize(
|
|
27
|
+
}, ( localize(7699, "The border color of a chat request.")));
|
|
28
28
|
const chatRequestBackground = registerColor("chat.requestBackground", {
|
|
29
29
|
dark: ( transparent(editorBackground, 0.62)),
|
|
30
30
|
light: ( transparent(editorBackground, 0.62)),
|
|
31
31
|
hcDark: editorWidgetBackground,
|
|
32
32
|
hcLight: null
|
|
33
|
-
}, ( localize(
|
|
33
|
+
}, ( localize(7700, "The background color of a chat request.")));
|
|
34
34
|
const chatSlashCommandBackground = registerColor("chat.slashCommandBackground", {
|
|
35
35
|
dark: "#26477866",
|
|
36
36
|
light: "#adceff7a",
|
|
37
37
|
hcDark: Color.white,
|
|
38
38
|
hcLight: badgeBackground
|
|
39
|
-
}, ( localize(
|
|
39
|
+
}, ( localize(7701, "The background color of a chat slash command.")));
|
|
40
40
|
const chatSlashCommandForeground = registerColor("chat.slashCommandForeground", {
|
|
41
41
|
dark: "#85b6ff",
|
|
42
42
|
light: "#26569e",
|
|
43
43
|
hcDark: Color.black,
|
|
44
44
|
hcLight: badgeForeground
|
|
45
|
-
}, ( localize(
|
|
45
|
+
}, ( localize(7702, "The foreground color of a chat slash command.")));
|
|
46
46
|
registerColor("chat.avatarBackground", {
|
|
47
47
|
dark: "#1f1f1f",
|
|
48
48
|
light: "#f2f2f2",
|
|
49
49
|
hcDark: Color.black,
|
|
50
50
|
hcLight: Color.white
|
|
51
|
-
}, ( localize(
|
|
52
|
-
registerColor("chat.avatarForeground", foreground, ( localize(
|
|
51
|
+
}, ( localize(7703, "The background color of a chat avatar.")));
|
|
52
|
+
registerColor("chat.avatarForeground", foreground, ( localize(7704, "The foreground color of a chat avatar.")));
|
|
53
53
|
registerColor("chat.editedFileForeground", {
|
|
54
54
|
light: "#895503",
|
|
55
55
|
dark: "#E2C08D",
|
|
56
56
|
hcDark: "#E2C08D",
|
|
57
57
|
hcLight: "#895503"
|
|
58
58
|
}, ( localize(
|
|
59
|
-
|
|
59
|
+
7705,
|
|
60
60
|
"The foreground color of a chat edited file in the edited file list."
|
|
61
61
|
)));
|
|
62
62
|
registerColor("chat.requestCodeBorder", {
|
|
@@ -64,42 +64,42 @@ registerColor("chat.requestCodeBorder", {
|
|
|
64
64
|
light: "#0e639c40",
|
|
65
65
|
hcDark: null,
|
|
66
66
|
hcLight: null
|
|
67
|
-
}, ( localize(
|
|
67
|
+
}, ( localize(7706, "Border color of code blocks within the chat request bubble.")), true);
|
|
68
68
|
registerColor("chat.requestBubbleBackground", {
|
|
69
69
|
light: ( transparent(editorSelectionBackground, 0.3)),
|
|
70
70
|
dark: ( transparent(editorSelectionBackground, 0.3)),
|
|
71
71
|
hcDark: null,
|
|
72
72
|
hcLight: null
|
|
73
|
-
}, ( localize(
|
|
73
|
+
}, ( localize(7707, "Background color of the chat request bubble.")), true);
|
|
74
74
|
registerColor("chat.requestBubbleHoverBackground", {
|
|
75
75
|
dark: ( transparent(editorSelectionBackground, 0.6)),
|
|
76
76
|
light: ( transparent(editorSelectionBackground, 0.6)),
|
|
77
77
|
hcDark: null,
|
|
78
78
|
hcLight: null
|
|
79
|
-
}, ( localize(
|
|
79
|
+
}, ( localize(7708, "Background color of the chat request bubble on hover.")), true);
|
|
80
80
|
registerColor("chat.checkpointSeparator", {
|
|
81
81
|
dark: "#585858",
|
|
82
82
|
light: "#a9a9a9",
|
|
83
83
|
hcDark: "#a9a9a9",
|
|
84
84
|
hcLight: "#a5a5a5"
|
|
85
|
-
}, ( localize(
|
|
85
|
+
}, ( localize(7709, "Chat checkpoint separator color.")));
|
|
86
86
|
registerColor("chat.linesAddedForeground", {
|
|
87
87
|
dark: "#54B054",
|
|
88
88
|
light: "#107C10",
|
|
89
89
|
hcDark: "#54B054",
|
|
90
90
|
hcLight: "#107C10"
|
|
91
|
-
}, ( localize(
|
|
91
|
+
}, ( localize(7710, "Foreground color of lines added in chat code block pill.")), true);
|
|
92
92
|
registerColor("chat.linesRemovedForeground", {
|
|
93
93
|
dark: "#FC6A6A",
|
|
94
94
|
light: "#BC2F32",
|
|
95
95
|
hcDark: "#F48771",
|
|
96
96
|
hcLight: "#B5200D"
|
|
97
|
-
}, ( localize(
|
|
97
|
+
}, ( localize(7711, "Foreground color of lines removed in chat code block pill.")), true);
|
|
98
98
|
registerColor("chat.thinkingShimmer", {
|
|
99
99
|
dark: "#ffffff",
|
|
100
100
|
light: "#000000",
|
|
101
101
|
hcDark: "#ffffff",
|
|
102
102
|
hcLight: "#000000"
|
|
103
|
-
}, ( localize(
|
|
103
|
+
}, ( localize(7712, "Shimmer highlight for thinking/working labels.")), true);
|
|
104
104
|
|
|
105
105
|
export { chatRequestBackground, chatSlashCommandBackground, chatSlashCommandForeground };
|
|
@@ -146,6 +146,10 @@ let CodeBlockModelCollection = class CodeBlockModelCollection extends Disposable
|
|
|
146
146
|
entry.subAgentInvocationId = codeblockUri.subAgentInvocationId;
|
|
147
147
|
}
|
|
148
148
|
newText = codeblockUri.textWithoutResult;
|
|
149
|
+
} else if (entry) {
|
|
150
|
+
entry.codemapperUri = undefined;
|
|
151
|
+
entry.isEdit = undefined;
|
|
152
|
+
entry.subAgentInvocationId = undefined;
|
|
149
153
|
}
|
|
150
154
|
if (content.isComplete) {
|
|
151
155
|
this.markCodeBlockCompleted(sessionResource, chat, codeBlockIndex);
|
|
@@ -275,7 +275,7 @@ let InlineChatController = class InlineChatController {
|
|
|
275
275
|
}
|
|
276
276
|
}));
|
|
277
277
|
const defaultPlaceholderObs = ( visibleSessionObs.map((session, r) => {
|
|
278
|
-
return session?.initialSelection.isEmpty() ? ( localize(
|
|
278
|
+
return session?.initialSelection.isEmpty() ? ( localize(9951, "Generate code")) : ( localize(9952, "Modify selected code"));
|
|
279
279
|
}));
|
|
280
280
|
this._store.add(autorun(r => {
|
|
281
281
|
const session = visibleSessionObs.read(r);
|
|
@@ -390,7 +390,7 @@ let InlineChatController = class InlineChatController {
|
|
|
390
390
|
if (lastProgress) {
|
|
391
391
|
placeholder = renderAsPlaintext(lastProgress.content);
|
|
392
392
|
}
|
|
393
|
-
this._zone.rawValue?.widget.chatWidget.setInputPlaceholder(placeholder || ( localize(
|
|
393
|
+
this._zone.rawValue?.widget.chatWidget.setInputPlaceholder(placeholder || ( localize(9953, "Working...")));
|
|
394
394
|
}
|
|
395
395
|
}));
|
|
396
396
|
this._store.add(autorun(r => {
|
|
@@ -461,7 +461,7 @@ let InlineChatController = class InlineChatController {
|
|
|
461
461
|
}
|
|
462
462
|
if (entries.length > 0) {
|
|
463
463
|
this._zone.value.widget.chatWidget.attachmentModel.addContext(...entries);
|
|
464
|
-
const msg = entries.length > 1 ? ( localize(
|
|
464
|
+
const msg = entries.length > 1 ? ( localize(9954, "Fix the attached problems")) : ( localize(9955, "Fix the attached problem"));
|
|
465
465
|
this._zone.value.widget.chatWidget.input.setValue(msg, true);
|
|
466
466
|
arg.message = msg;
|
|
467
467
|
this._zone.value.widget.chatWidget.inputEditor.setSelection(( new Selection(1, 1, Number.MAX_SAFE_INTEGER, 1)));
|
|
@@ -554,7 +554,7 @@ let InlineChatController = class InlineChatController {
|
|
|
554
554
|
return;
|
|
555
555
|
}
|
|
556
556
|
const selection = this._editor.getSelection();
|
|
557
|
-
const placeholder = selection && !selection.isEmpty() ? ( localize(
|
|
557
|
+
const placeholder = selection && !selection.isEmpty() ? ( localize(9956, "Describe how to change this")) : ( localize(9957, "Describe what to generate"));
|
|
558
558
|
await this.inputOverlayWidget.showMenuAtSelection(placeholder, requestText);
|
|
559
559
|
}
|
|
560
560
|
async _selectVendorDefaultModel(session) {
|
|
@@ -422,7 +422,7 @@ let InlineChatSessionOverlayWidget = class InlineChatSessionOverlayWidget extend
|
|
|
422
422
|
const response = chatModel.lastRequestObs.read(r)?.response;
|
|
423
423
|
if (!response) {
|
|
424
424
|
return {
|
|
425
|
-
message: ( localize(
|
|
425
|
+
message: ( localize(9960, "Working...")),
|
|
426
426
|
icon: ThemeIcon.modify(Codicon.loading, "spin")
|
|
427
427
|
};
|
|
428
428
|
}
|
|
@@ -430,20 +430,20 @@ let InlineChatSessionOverlayWidget = class InlineChatSessionOverlayWidget extend
|
|
|
430
430
|
const result = response.result;
|
|
431
431
|
if (result?.errorDetails) {
|
|
432
432
|
return {
|
|
433
|
-
message: ( localize(
|
|
433
|
+
message: ( localize(9961, "Sorry, your request failed")),
|
|
434
434
|
icon: Codicon.error
|
|
435
435
|
};
|
|
436
436
|
}
|
|
437
437
|
const changes = entry.read(r)?.changesCount.read(r) ?? 0;
|
|
438
438
|
return {
|
|
439
|
-
message: changes === 0 ? ( localize(
|
|
439
|
+
message: changes === 0 ? ( localize(9962, "Done")) : changes === 1 ? ( localize(9963, "Done, 1 change")) : ( localize(9964, "Done, {0} changes", changes)),
|
|
440
440
|
icon: Codicon.check
|
|
441
441
|
};
|
|
442
442
|
}
|
|
443
443
|
const pendingConfirmation = response.isPendingConfirmation.read(r);
|
|
444
444
|
if (pendingConfirmation) {
|
|
445
445
|
return {
|
|
446
|
-
message: ( localize(
|
|
446
|
+
message: ( localize(9965, "Sorry, but an expected error happened")),
|
|
447
447
|
icon: Codicon.error
|
|
448
448
|
};
|
|
449
449
|
}
|
|
@@ -462,7 +462,7 @@ let InlineChatSessionOverlayWidget = class InlineChatSessionOverlayWidget extend
|
|
|
462
462
|
};
|
|
463
463
|
} else {
|
|
464
464
|
return {
|
|
465
|
-
message: ( localize(
|
|
465
|
+
message: ( localize(9960, "Working...")),
|
|
466
466
|
icon: ThemeIcon.modify(Codicon.loading, "spin")
|
|
467
467
|
};
|
|
468
468
|
}
|
|
@@ -18,6 +18,9 @@ export interface IInlineChatSession2 {
|
|
|
18
18
|
dispose(): void;
|
|
19
19
|
}
|
|
20
20
|
export declare function moveToPanelChat(accessor: ServicesAccessor, model: IChatModel | undefined, resend: boolean): Promise<void>;
|
|
21
|
-
export declare function askInPanelChat(accessor: ServicesAccessor, request: IChatRequestModel, state: IChatModelInputState | undefined
|
|
21
|
+
export declare function askInPanelChat(accessor: ServicesAccessor, request: IChatRequestModel, state: IChatModelInputState | undefined, fileContext?: {
|
|
22
|
+
uri: URI;
|
|
23
|
+
selection: Selection;
|
|
24
|
+
}): Promise<void>;
|
|
22
25
|
export declare function continueInPanelChat(accessor: ServicesAccessor, session: IInlineChatSession2): Promise<void>;
|
|
23
26
|
export declare function rephraseInlineChat(accessor: ServicesAccessor, session: IInlineChatSession2): string | undefined;
|
|
@@ -3,7 +3,7 @@ import { IChatWidgetService } from '@codingame/monaco-vscode-api/vscode/vs/workb
|
|
|
3
3
|
import { IChatService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService/chatService.service';
|
|
4
4
|
import { ChatAgentLocation, ChatModeKind } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/constants';
|
|
5
5
|
|
|
6
|
-
async function askInPanelChat(accessor, request, state) {
|
|
6
|
+
async function askInPanelChat(accessor, request, state, fileContext) {
|
|
7
7
|
const widgetService = accessor.get(IChatWidgetService);
|
|
8
8
|
const chatService = accessor.get(IChatService);
|
|
9
9
|
if (!request) {
|
|
@@ -17,6 +17,9 @@ async function askInPanelChat(accessor, request, state) {
|
|
|
17
17
|
});
|
|
18
18
|
const widget = await widgetService.openSession(newModelRef.object.sessionResource);
|
|
19
19
|
newModelRef.dispose();
|
|
20
|
+
if (widget && fileContext && !fileContext.selection.isEmpty()) {
|
|
21
|
+
await widget.attachmentModel.addFile(fileContext.uri, fileContext.selection);
|
|
22
|
+
}
|
|
20
23
|
widget?.acceptInput(request.message.text);
|
|
21
24
|
}
|
|
22
25
|
async function continueInPanelChat(accessor, session) {
|
|
@@ -24,7 +27,7 @@ async function continueInPanelChat(accessor, session) {
|
|
|
24
27
|
if (!request) {
|
|
25
28
|
return;
|
|
26
29
|
}
|
|
27
|
-
await askInPanelChat(accessor, request, session.chatModel.inputModel.state.get());
|
|
30
|
+
await askInPanelChat(accessor, request, session.chatModel.inputModel.state.get(), { uri: session.uri, selection: session.initialSelection });
|
|
28
31
|
session.dispose();
|
|
29
32
|
}
|
|
30
33
|
function rephraseInlineChat(accessor, session) {
|
|
@@ -17,7 +17,7 @@ import { IAccessibilityService } from '@codingame/monaco-vscode-api/vscode/vs/pl
|
|
|
17
17
|
import { MenuWorkbenchButtonBar } from '../../../../platform/actions/browser/buttonbar.js';
|
|
18
18
|
import { createActionViewItem } from '@codingame/monaco-vscode-api/vscode/vs/platform/actions/browser/menuEntryActionViewItem';
|
|
19
19
|
import { MenuWorkbenchToolBar } from '@codingame/monaco-vscode-api/vscode/vs/platform/actions/browser/toolbar';
|
|
20
|
-
import { MenuId
|
|
20
|
+
import { MenuId } from '@codingame/monaco-vscode-api/vscode/vs/platform/actions/common/actions';
|
|
21
21
|
import { IConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service';
|
|
22
22
|
import { IContextKeyService } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service';
|
|
23
23
|
import { IHoverService } from '@codingame/monaco-vscode-api/vscode/vs/platform/hover/browser/hover.service';
|
|
@@ -42,8 +42,6 @@ import { EDITOR_DRAG_AND_DROP_BACKGROUND } from '@codingame/monaco-vscode-api/vs
|
|
|
42
42
|
import { IChatEntitlementService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/chat/common/chatEntitlementService.service';
|
|
43
43
|
import { AccessibilityVerbositySettingId } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration';
|
|
44
44
|
import { AccessibilityCommandId } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/accessibility/common/accessibilityCommands';
|
|
45
|
-
import { MarkUnhelpfulActionId } from '../../chat/browser/actions/chatTitleActions.js';
|
|
46
|
-
import { ChatVoteDownButton } from '../../chat/browser/widget/chatListRenderer.js';
|
|
47
45
|
import { ChatWidget } from '../../chat/browser/widget/chatWidget.js';
|
|
48
46
|
import { chatRequestBackground } from '../../chat/common/widget/chatColors.js';
|
|
49
47
|
import { ChatContextKeys } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/actions/chatContextKeys';
|
|
@@ -223,9 +221,6 @@ let InlineChatWidget = class InlineChatWidget {
|
|
|
223
221
|
shouldForwardArgs: true
|
|
224
222
|
},
|
|
225
223
|
actionViewItemProvider: (action, options) => {
|
|
226
|
-
if (action instanceof MenuItemAction && action.item.id === MarkUnhelpfulActionId) {
|
|
227
|
-
return scopedInstaService.createInstance(ChatVoteDownButton, action, options);
|
|
228
|
-
}
|
|
229
224
|
return createActionViewItem(scopedInstaService, action, options);
|
|
230
225
|
}
|
|
231
226
|
}
|
|
@@ -248,7 +243,7 @@ let InlineChatWidget = class InlineChatWidget {
|
|
|
248
243
|
);
|
|
249
244
|
this._store.add(this._chatService.onDidPerformUserAction(e => {
|
|
250
245
|
if (isEqual(e.sessionResource, this._chatWidget.viewModel?.model.sessionResource) && e.action.kind === "vote") {
|
|
251
|
-
this.updateStatus(( localize(
|
|
246
|
+
this.updateStatus(( localize(9977, "Thank you for your feedback!")), {
|
|
252
247
|
resetAfter: 1250
|
|
253
248
|
});
|
|
254
249
|
}
|
|
@@ -261,11 +256,11 @@ let InlineChatWidget = class InlineChatWidget {
|
|
|
261
256
|
if (this._configurationService.getValue(AccessibilityVerbositySettingId.InlineChat)) {
|
|
262
257
|
const kbLabel = this._keybindingService.lookupKeybinding(AccessibilityCommandId.OpenAccessibilityHelp)?.getLabel();
|
|
263
258
|
label = kbLabel ? ( localize(
|
|
264
|
-
|
|
259
|
+
9978,
|
|
265
260
|
"Inline Chat Input, Use {0} for Inline Chat Accessibility Help.",
|
|
266
261
|
kbLabel
|
|
267
262
|
)) : ( localize(
|
|
268
|
-
|
|
263
|
+
9979,
|
|
269
264
|
"Inline Chat Input, Run the Inline Chat Accessibility Help command for more information."
|
|
270
265
|
));
|
|
271
266
|
}
|
|
@@ -286,7 +281,7 @@ let InlineChatWidget = class InlineChatWidget {
|
|
|
286
281
|
this._elements.disclaimerLabel.classList.toggle("hidden", !showDisclaimer);
|
|
287
282
|
if (showDisclaimer) {
|
|
288
283
|
const renderedMarkdown = disposables.add(this._markdownRendererService.render(( new MarkdownString(( localize(
|
|
289
|
-
|
|
284
|
+
9980,
|
|
290
285
|
"By continuing with {0} Copilot, you agree to {1}'s [Terms]({2}) and [Privacy Statement]({3})",
|
|
291
286
|
product.defaultChatAgent?.provider?.default?.name ?? "",
|
|
292
287
|
product.defaultChatAgent?.provider?.default?.name ?? "",
|
|
@@ -495,7 +490,7 @@ let InlineChatWidget = class InlineChatWidget {
|
|
|
495
490
|
}
|
|
496
491
|
};
|
|
497
492
|
InlineChatWidget = ( __decorate([( __param(2, IInstantiationService)), ( __param(3, IContextKeyService)), ( __param(4, IKeybindingService)), ( __param(5, IAccessibilityService)), ( __param(6, IConfigurationService)), ( __param(7, IAccessibleViewService)), ( __param(8, ITextModelService)), ( __param(9, IChatService)), ( __param(10, IHoverService)), ( __param(11, IChatEntitlementService)), ( __param(12, IMarkdownRendererService))], InlineChatWidget));
|
|
498
|
-
const defaultAriaLabel = ( localize(
|
|
493
|
+
const defaultAriaLabel = ( localize(9981, "Inline Chat Input"));
|
|
499
494
|
let EditorBasedInlineChatWidget = class EditorBasedInlineChatWidget extends InlineChatWidget {
|
|
500
495
|
constructor(
|
|
501
496
|
location,
|
|
@@ -240,7 +240,7 @@ let InlineChatZoneWidget = class InlineChatZoneWidget extends ZoneWidget {
|
|
|
240
240
|
this._ctxCursorPosition.reset();
|
|
241
241
|
this.widget.chatWidget.setVisible(false);
|
|
242
242
|
super.hide();
|
|
243
|
-
status(( localize(
|
|
243
|
+
status(( localize(9982, "Closed inline chat widget")));
|
|
244
244
|
scrollState.restore(this.editor);
|
|
245
245
|
}
|
|
246
246
|
};
|
|
@@ -33,14 +33,14 @@ var InlineChatConfigKeys;
|
|
|
33
33
|
properties: {
|
|
34
34
|
[InlineChatConfigKeys.FinishOnType]: {
|
|
35
35
|
description: ( localize(
|
|
36
|
-
|
|
36
|
+
9983,
|
|
37
37
|
"Whether to finish an inline chat session when typing outside of changed regions."
|
|
38
38
|
)),
|
|
39
39
|
default: false,
|
|
40
40
|
type: "boolean"
|
|
41
41
|
},
|
|
42
42
|
[InlineChatConfigKeys.EnableV2]: {
|
|
43
|
-
description: ( localize(
|
|
43
|
+
description: ( localize(9984, "Whether to use the next version of inline chat.")),
|
|
44
44
|
default: false,
|
|
45
45
|
type: "boolean",
|
|
46
46
|
tags: ["preview"],
|
|
@@ -49,7 +49,7 @@ var InlineChatConfigKeys;
|
|
|
49
49
|
}
|
|
50
50
|
},
|
|
51
51
|
[InlineChatConfigKeys.notebookAgent]: {
|
|
52
|
-
markdownDescription: ( localize(
|
|
52
|
+
markdownDescription: ( localize(9985, "Enable agent-like behavior for inline chat widget in notebooks.")),
|
|
53
53
|
default: false,
|
|
54
54
|
type: "boolean",
|
|
55
55
|
tags: ["experimental"],
|
|
@@ -59,24 +59,24 @@ var InlineChatConfigKeys;
|
|
|
59
59
|
},
|
|
60
60
|
[InlineChatConfigKeys.Affordance]: {
|
|
61
61
|
description: ( localize(
|
|
62
|
-
|
|
62
|
+
9986,
|
|
63
63
|
"Controls whether an inline chat affordance is shown when text is selected."
|
|
64
64
|
)),
|
|
65
65
|
default: "off",
|
|
66
66
|
type: "string",
|
|
67
67
|
enum: ["off", "gutter", "editor"],
|
|
68
|
-
enumDescriptions: [( localize(
|
|
68
|
+
enumDescriptions: [( localize(9987, "No affordance is shown.")), ( localize(9988, "Show an affordance in the gutter.")), ( localize(9989, "Show an affordance in the editor at the cursor position."))],
|
|
69
69
|
experiment: {
|
|
70
70
|
mode: "auto"
|
|
71
71
|
},
|
|
72
72
|
tags: ["experimental"]
|
|
73
73
|
},
|
|
74
74
|
[InlineChatConfigKeys.RenderMode]: {
|
|
75
|
-
description: ( localize(
|
|
75
|
+
description: ( localize(9990, "Controls how inline chat is rendered.")),
|
|
76
76
|
default: "hover",
|
|
77
77
|
type: "string",
|
|
78
78
|
enum: ["zone", "hover"],
|
|
79
|
-
enumDescriptions: [( localize(
|
|
79
|
+
enumDescriptions: [( localize(9991, "Render inline chat as a zone widget below the current line.")), ( localize(9992, "Render inline chat as a hover overlay."))],
|
|
80
80
|
experiment: {
|
|
81
81
|
mode: "auto"
|
|
82
82
|
},
|
|
@@ -84,7 +84,7 @@ var InlineChatConfigKeys;
|
|
|
84
84
|
},
|
|
85
85
|
[InlineChatConfigKeys.FixDiagnostics]: {
|
|
86
86
|
description: ( localize(
|
|
87
|
-
|
|
87
|
+
9993,
|
|
88
88
|
"Controls whether the Fix action is shown for diagnostics in the editor."
|
|
89
89
|
)),
|
|
90
90
|
default: true,
|
|
@@ -96,7 +96,7 @@ var InlineChatConfigKeys;
|
|
|
96
96
|
},
|
|
97
97
|
[InlineChatConfigKeys.AskInChat]: {
|
|
98
98
|
description: ( localize(
|
|
99
|
-
|
|
99
|
+
9994,
|
|
100
100
|
"Controls whether files in a chat editing session use Ask in Chat instead of Inline Chat."
|
|
101
101
|
)),
|
|
102
102
|
default: true,
|
|
@@ -112,34 +112,34 @@ var InlineChatResponseType;
|
|
|
112
112
|
InlineChatResponseType["MessagesAndEdits"] = "messagesAndEdits";
|
|
113
113
|
})(InlineChatResponseType || (InlineChatResponseType = {}));
|
|
114
114
|
const CTX_INLINE_CHAT_POSSIBLE = ( new RawContextKey("inlineChatPossible", false, ( localize(
|
|
115
|
-
|
|
115
|
+
9995,
|
|
116
116
|
"Whether a provider for inline chat exists and whether an editor for inline chat is open"
|
|
117
117
|
))));
|
|
118
|
-
const CTX_INLINE_CHAT_HAS_AGENT2 = ( new RawContextKey("inlineChatHasEditsAgent", false, ( localize(
|
|
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(
|
|
118
|
+
const CTX_INLINE_CHAT_HAS_AGENT2 = ( new RawContextKey("inlineChatHasEditsAgent", false, ( localize(9996, "Whether an agent for inline for interactive editors exists"))));
|
|
119
|
+
const CTX_INLINE_CHAT_HAS_NOTEBOOK_INLINE = ( new RawContextKey("inlineChatHasNotebookInline", false, ( localize(9997, "Whether an agent for notebook cells exists"))));
|
|
120
|
+
const CTX_INLINE_CHAT_HAS_NOTEBOOK_AGENT = ( new RawContextKey("inlineChatHasNotebookAgent", false, ( localize(9998, "Whether an agent for notebook cells exists"))));
|
|
121
|
+
const CTX_INLINE_CHAT_VISIBLE = ( new RawContextKey("inlineChatVisible", false, ( localize(9999, "Whether the interactive editor input is visible"))));
|
|
122
|
+
const CTX_INLINE_CHAT_FOCUSED = ( new RawContextKey("inlineChatFocused", false, ( localize(10000, "Whether the interactive editor input is focused"))));
|
|
123
123
|
const CTX_INLINE_CHAT_EDITING = ( new RawContextKey("inlineChatEditing", true, ( localize(
|
|
124
|
-
|
|
124
|
+
10001,
|
|
125
125
|
"Whether the user is currently editing or generating code in the inline chat"
|
|
126
126
|
))));
|
|
127
|
-
const CTX_INLINE_CHAT_RESPONSE_FOCUSED = ( new RawContextKey("inlineChatResponseFocused", false, ( localize(
|
|
128
|
-
const CTX_INLINE_CHAT_INPUT_HAS_TEXT = ( new RawContextKey("inlineChatInputHasText", false, ( localize(
|
|
129
|
-
const CTX_INLINE_CHAT_INPUT_WIDGET_FOCUSED = ( new RawContextKey("inlineChatInputWidgetFocused", false, ( localize(
|
|
127
|
+
const CTX_INLINE_CHAT_RESPONSE_FOCUSED = ( new RawContextKey("inlineChatResponseFocused", false, ( localize(10002, "Whether the interactive widget's response is focused"))));
|
|
128
|
+
const CTX_INLINE_CHAT_INPUT_HAS_TEXT = ( new RawContextKey("inlineChatInputHasText", false, ( localize(10003, "Whether the inline chat input widget has text"))));
|
|
129
|
+
const CTX_INLINE_CHAT_INPUT_WIDGET_FOCUSED = ( new RawContextKey("inlineChatInputWidgetFocused", false, ( localize(10004, "Whether the inline chat input widget editor is focused"))));
|
|
130
130
|
const CTX_INLINE_CHAT_OUTER_CURSOR_POSITION = ( new RawContextKey("inlineChatOuterCursorPosition", "", ( localize(
|
|
131
|
-
|
|
131
|
+
10005,
|
|
132
132
|
"Whether the cursor of the outer editor is above or below the interactive editor input"
|
|
133
133
|
))));
|
|
134
|
-
const CTX_INLINE_CHAT_REQUEST_IN_PROGRESS = ( new RawContextKey("inlineChatRequestInProgress", false, ( localize(
|
|
134
|
+
const CTX_INLINE_CHAT_REQUEST_IN_PROGRESS = ( new RawContextKey("inlineChatRequestInProgress", false, ( localize(10006, "Whether an inline chat request is currently in progress"))));
|
|
135
135
|
const CTX_INLINE_CHAT_RESPONSE_TYPE = ( new RawContextKey("inlineChatResponseType", InlineChatResponseType.None, ( localize(
|
|
136
|
-
|
|
136
|
+
10007,
|
|
137
137
|
"What type was the responses have been receieved, nothing yet, just messages, or messaged and local edits"
|
|
138
138
|
))));
|
|
139
|
-
const CTX_INLINE_CHAT_FILE_BELONGS_TO_CHAT = ( new RawContextKey("inlineChatFileBelongsToChat", false, ( localize(
|
|
140
|
-
const CTX_INLINE_CHAT_PENDING_CONFIRMATION = ( new RawContextKey("inlineChatPendingConfirmation", false, ( localize(
|
|
141
|
-
const CTX_INLINE_CHAT_TERMINATED = ( new RawContextKey("inlineChatTerminated", false, ( localize(
|
|
142
|
-
const CTX_INLINE_CHAT_AFFORDANCE_VISIBLE = ( new RawContextKey("inlineChatAffordanceVisible", false, ( localize(
|
|
139
|
+
const CTX_INLINE_CHAT_FILE_BELONGS_TO_CHAT = ( new RawContextKey("inlineChatFileBelongsToChat", false, ( localize(10008, "Whether the current file belongs to a chat editing session"))));
|
|
140
|
+
const CTX_INLINE_CHAT_PENDING_CONFIRMATION = ( new RawContextKey("inlineChatPendingConfirmation", false, ( localize(10009, "Whether an inline chat request is pending user confirmation"))));
|
|
141
|
+
const CTX_INLINE_CHAT_TERMINATED = ( new RawContextKey("inlineChatTerminated", false, ( localize(10010, "Whether the current inline chat session is terminated"))));
|
|
142
|
+
const CTX_INLINE_CHAT_AFFORDANCE_VISIBLE = ( new RawContextKey("inlineChatAffordanceVisible", false, ( localize(10011, "Whether an inline chat affordance widget is visible"))));
|
|
143
143
|
const CTX_INLINE_CHAT_V1_ENABLED = ( ContextKeyExpr.or(( ContextKeyExpr.and(NOTEBOOK_IS_ACTIVE_EDITOR, CTX_INLINE_CHAT_HAS_NOTEBOOK_INLINE))));
|
|
144
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
145
|
const CTX_HOVER_MODE = ( ContextKeyExpr.equals("config.inlineChat.renderMode", "hover"));
|
|
@@ -155,37 +155,37 @@ const MENU_INLINE_CHAT_WIDGET_STATUS = MenuId.for("inlineChatWidget.status");
|
|
|
155
155
|
const MENU_INLINE_CHAT_WIDGET_SECONDARY = MenuId.for("inlineChatWidget.secondary");
|
|
156
156
|
MenuId.for("inlineChatWidget.changesZone");
|
|
157
157
|
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(
|
|
158
|
+
const inlineChatForeground = registerColor("inlineChat.foreground", editorWidgetForeground, ( localize(10012, "Foreground color of the interactive editor widget")));
|
|
159
|
+
const inlineChatBackground = registerColor("inlineChat.background", editorWidgetBackground, ( localize(10013, "Background color of the interactive editor widget")));
|
|
160
|
+
registerColor("inlineChat.border", editorWidgetBorder, ( localize(10014, "Border color of the interactive editor widget")));
|
|
161
|
+
registerColor("inlineChat.shadow", widgetShadow, ( localize(10015, "Shadow color of the interactive editor widget")));
|
|
162
|
+
registerColor("inlineChatInput.border", editorWidgetBorder, ( localize(10016, "Border color of the interactive editor input")));
|
|
163
|
+
registerColor("inlineChatInput.focusBorder", focusBorder, ( localize(10017, "Border color of the interactive editor input when focused")));
|
|
164
164
|
registerColor(
|
|
165
165
|
"inlineChatInput.placeholderForeground",
|
|
166
166
|
inputPlaceholderForeground,
|
|
167
|
-
( localize(
|
|
167
|
+
( localize(10018, "Foreground color of the interactive editor input placeholder"))
|
|
168
168
|
);
|
|
169
|
-
registerColor("inlineChatInput.background", inputBackground, ( localize(
|
|
170
|
-
registerColor("inlineChatDiff.inserted", ( transparent(diffInserted, .5)), ( localize(
|
|
169
|
+
registerColor("inlineChatInput.background", inputBackground, ( localize(10019, "Background color of the interactive editor input")));
|
|
170
|
+
registerColor("inlineChatDiff.inserted", ( transparent(diffInserted, .5)), ( localize(10020, "Background color of inserted text in the interactive editor input")));
|
|
171
171
|
registerColor("editorOverviewRuler.inlineChatInserted", {
|
|
172
172
|
dark: ( transparent(diffInserted, 0.6)),
|
|
173
173
|
light: ( transparent(diffInserted, 0.8)),
|
|
174
174
|
hcDark: ( transparent(diffInserted, 0.6)),
|
|
175
175
|
hcLight: ( transparent(diffInserted, 0.8))
|
|
176
|
-
}, ( localize(
|
|
176
|
+
}, ( localize(10021, "Overview ruler marker color for inline chat inserted content.")));
|
|
177
177
|
registerColor("editorMinimap.inlineChatInserted", {
|
|
178
178
|
dark: ( transparent(diffInserted, 0.6)),
|
|
179
179
|
light: ( transparent(diffInserted, 0.8)),
|
|
180
180
|
hcDark: ( transparent(diffInserted, 0.6)),
|
|
181
181
|
hcLight: ( transparent(diffInserted, 0.8))
|
|
182
|
-
}, ( localize(
|
|
183
|
-
registerColor("inlineChatDiff.removed", ( transparent(diffRemoved, .5)), ( localize(
|
|
182
|
+
}, ( localize(10022, "Minimap marker color for inline chat inserted content.")));
|
|
183
|
+
registerColor("inlineChatDiff.removed", ( transparent(diffRemoved, .5)), ( localize(10023, "Background color of removed text in the interactive editor input")));
|
|
184
184
|
registerColor("editorOverviewRuler.inlineChatRemoved", {
|
|
185
185
|
dark: ( transparent(diffRemoved, 0.6)),
|
|
186
186
|
light: ( transparent(diffRemoved, 0.8)),
|
|
187
187
|
hcDark: ( transparent(diffRemoved, 0.6)),
|
|
188
188
|
hcLight: ( transparent(diffRemoved, 0.8))
|
|
189
|
-
}, ( localize(
|
|
189
|
+
}, ( localize(10024, "Overview ruler marker color for inline chat removed content.")));
|
|
190
190
|
|
|
191
191
|
export { ACTION_ACCEPT_CHANGES, ACTION_ASK_IN_CHAT, ACTION_REGENERATE_RESPONSE, ACTION_REPORT_ISSUE, ACTION_START, ACTION_TOGGLE_DIFF, CTX_ASK_IN_CHAT_ENABLED, CTX_FIX_DIAGNOSTICS_ENABLED, CTX_HOVER_MODE, CTX_INLINE_CHAT_AFFORDANCE_VISIBLE, CTX_INLINE_CHAT_EDITING, CTX_INLINE_CHAT_FILE_BELONGS_TO_CHAT, CTX_INLINE_CHAT_FOCUSED, CTX_INLINE_CHAT_HAS_AGENT2, CTX_INLINE_CHAT_HAS_NOTEBOOK_AGENT, CTX_INLINE_CHAT_HAS_NOTEBOOK_INLINE, CTX_INLINE_CHAT_INPUT_HAS_TEXT, CTX_INLINE_CHAT_INPUT_WIDGET_FOCUSED, CTX_INLINE_CHAT_OUTER_CURSOR_POSITION, CTX_INLINE_CHAT_PENDING_CONFIRMATION, CTX_INLINE_CHAT_POSSIBLE, CTX_INLINE_CHAT_REQUEST_IN_PROGRESS, CTX_INLINE_CHAT_RESPONSE_FOCUSED, CTX_INLINE_CHAT_RESPONSE_TYPE, CTX_INLINE_CHAT_TERMINATED, CTX_INLINE_CHAT_V1_ENABLED, CTX_INLINE_CHAT_V2_ENABLED, CTX_INLINE_CHAT_VISIBLE, INLINE_CHAT_ID, InlineChatConfigKeys, InlineChatResponseType, MENU_INLINE_CHAT_SIDE, MENU_INLINE_CHAT_WIDGET_SECONDARY, MENU_INLINE_CHAT_WIDGET_STATUS, inlineChatBackground, inlineChatForeground };
|