@codingame/monaco-vscode-katex-common 32.0.0 → 32.0.1
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/workbench/contrib/chat/browser/agentSessions/agentSessionHoverWidget.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsControl.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsFilter.js +9 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsOpener.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsViewer.js +30 -30
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentWidgets.js +52 -52
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/implicitContextAttachment.js +13 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingActions.js +34 -34
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessionPickerActionItem.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/chatToolRiskAssessmentService.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/toolSetsContribution.js +13 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatAgentHover.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatArtifactsWidget.js +10 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatAgentCommandContentPart.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatAnonymousRateLimitedPart.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatChangesSummaryPart.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCodeCitationContentPart.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCommandContentPart.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatConfirmationContentPart.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatConfirmationWidget.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatDisabledClaudeHooksContentPart.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/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.js +13 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMarkdownContentPart.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMcpServersInteractionContentPart.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMultiDiffContentPart.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatPlanReviewPart.js +30 -30
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatProgressContentPart.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatQuestionCarouselPart.js +44 -44
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatQuotaExceededPart.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatReferencesContentPart.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatResourceGroupWidget.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatSubagentContentPart.js +10 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatSuggestNextWidget.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTextEditContentPart.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatThinkingContentPart.js +19 -19
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTipContentPart.js +9 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTodoListWidget.js +17 -17
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatToolInputOutputContentPart.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTreeContentPart.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatWorkspaceEditContentPart.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/codeBlockPart.js +14 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/abstractToolConfirmationSubPart.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatExtensionsInstallToolSubPart.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatMcpAppModel.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatMcpAppSubPart.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatMissingSandboxDepsConfirmationSubPart.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatModifiedFilesConfirmationSubPart.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatTerminalToolConfirmationSubPart.js +18 -18
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatTerminalToolProgressPart.js +18 -18
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolConfirmationCarouselPart.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolConfirmationSubPart.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolOutputPart.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolPartUtilities.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolPostExecuteConfirmationPart.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/toolRiskBadgeWidget.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatDragAndDrop.js +11 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatListRenderer.js +25 -25
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatWidget.js +15 -15
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatFollowups.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputNotificationWidget.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputPart.js +11 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatModelPicker.js +41 -41
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatPhoneInputPresenter.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/delegationSessionPickerActionItem.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/modePickerActionItem.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/modelPickerActionItem.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/permissionPickerActionItem.js +18 -18
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/sessionTargetPickerActionItem.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/workspacePickerActionItem.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/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/chatPermissionWarnings.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/common/widget/chatColors.js +18 -18
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatController.js +3 -3
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatWidget.js +5 -5
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatZoneWidget.js +1 -1
- package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChat.js +30 -30
- package/vscode/src/vs/workbench/contrib/interactive/browser/replInputHintContentWidget.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/executionStatusBarItemController.js +7 -7
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindWidget.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOperations.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/insertCellActions.js +24 -24
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffComponents.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffElementOutputs.js +7 -7
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditor.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditorBrowser.js +5 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffList.js +1 -1
- package/vscode/src/vs/workbench/contrib/replNotebook/browser/replEditor.js +1 -1
- package/vscode/src/vs/workbench/contrib/replNotebook/browser/replEditorInput.js +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalHelpers.js +6 -6
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/autoApprove/npmScriptAutoApprover.js +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineAutoApproveAnalyzer.js +12 -12
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineFileWriteAnalyzer.js +2 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/outputMonitor.js +3 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalTool.js +53 -53
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalSandboxService.js +4 -4
|
@@ -95,7 +95,7 @@ let ChatQuestionCarouselPart = class ChatQuestionCarouselPart extends Disposable
|
|
|
95
95
|
});
|
|
96
96
|
this.domNode.tabIndex = 0;
|
|
97
97
|
this.domNode.setAttribute("role", "region");
|
|
98
|
-
this.domNode.setAttribute("aria-roledescription", ( localize(
|
|
98
|
+
this.domNode.setAttribute("aria-roledescription", ( localize(7146, "chat question")));
|
|
99
99
|
this._updateAriaLabel();
|
|
100
100
|
if (carousel instanceof ChatQuestionCarouselData) {
|
|
101
101
|
if (typeof carousel.draftCurrentIndex === "number") {
|
|
@@ -127,7 +127,7 @@ let ChatQuestionCarouselPart = class ChatQuestionCarouselPart extends Disposable
|
|
|
127
127
|
this._questionContainer = $(".chat-question-carousel-content");
|
|
128
128
|
this.domNode.append(this._questionContainer);
|
|
129
129
|
this._headerActionsContainer = $(".chat-question-header-actions");
|
|
130
|
-
const collapseToggleTitle = ( localize(
|
|
130
|
+
const collapseToggleTitle = ( localize(7147, "Collapse Questions"));
|
|
131
131
|
const collapseButton = interactiveStore.add(( new Button(this._headerActionsContainer, {
|
|
132
132
|
...defaultButtonStyles,
|
|
133
133
|
secondary: true,
|
|
@@ -138,7 +138,7 @@ let ChatQuestionCarouselPart = class ChatQuestionCarouselPart extends Disposable
|
|
|
138
138
|
this._collapseButton = collapseButton;
|
|
139
139
|
if (carousel.allowSkip) {
|
|
140
140
|
this._closeButtonContainer = $(".chat-question-close-container");
|
|
141
|
-
const skipAllTitle = ( localize(
|
|
141
|
+
const skipAllTitle = ( localize(7148, "Skip all questions"));
|
|
142
142
|
const skipAllButton = interactiveStore.add(( new Button(this._closeButtonContainer, {
|
|
143
143
|
...defaultButtonStyles,
|
|
144
144
|
secondary: true,
|
|
@@ -154,9 +154,9 @@ let ChatQuestionCarouselPart = class ChatQuestionCarouselPart extends Disposable
|
|
|
154
154
|
}
|
|
155
155
|
if (carousel.terminalId) {
|
|
156
156
|
this._focusTerminalButtonContainer = $(".chat-question-focus-terminal-container");
|
|
157
|
-
const focusTerminalTitle = ( localize(
|
|
157
|
+
const focusTerminalTitle = ( localize(7149, "Focus Terminal"));
|
|
158
158
|
const kbLabel = this._keybindingService.lookupKeybinding("workbench.action.chat.focusQuestionCarouselTerminal")?.getLabel();
|
|
159
|
-
const focusTerminalAriaLabel = kbLabel ? ( localize(
|
|
159
|
+
const focusTerminalAriaLabel = kbLabel ? ( localize(7150, "Focus Terminal ({0})", kbLabel)) : focusTerminalTitle;
|
|
160
160
|
const focusTerminalButton = interactiveStore.add(( new Button(this._focusTerminalButtonContainer, {
|
|
161
161
|
...defaultButtonStyles,
|
|
162
162
|
secondary: true,
|
|
@@ -256,7 +256,7 @@ let ChatQuestionCarouselPart = class ChatQuestionCarouselPart extends Disposable
|
|
|
256
256
|
this.domNode.classList.toggle("chat-question-carousel-collapsed", this._isCollapsed);
|
|
257
257
|
if (this._collapseButton) {
|
|
258
258
|
const collapsed = this._isCollapsed;
|
|
259
|
-
const buttonTitle = collapsed ? ( localize(
|
|
259
|
+
const buttonTitle = collapsed ? ( localize(7151, "Expand Questions")) : ( localize(7147, "Collapse Questions"));
|
|
260
260
|
const contentId = this.domNode.id;
|
|
261
261
|
this._collapseButton.label = collapsed ? `$(${Codicon.chevronUp.id})` : `$(${Codicon.chevronDown.id})`;
|
|
262
262
|
this._collapseButton.element.setAttribute("aria-label", buttonTitle);
|
|
@@ -311,7 +311,7 @@ let ChatQuestionCarouselPart = class ChatQuestionCarouselPart extends Disposable
|
|
|
311
311
|
const messageContent = this.getQuestionText(questionText);
|
|
312
312
|
const questionCount = this.carousel.questions.length;
|
|
313
313
|
const alertMessage = questionCount === 1 ? messageContent : ( localize(
|
|
314
|
-
|
|
314
|
+
7152,
|
|
315
315
|
"Question {0} of {1}: {2}",
|
|
316
316
|
this._currentIndex + 1,
|
|
317
317
|
questionCount,
|
|
@@ -459,7 +459,7 @@ let ChatQuestionCarouselPart = class ChatQuestionCarouselPart extends Disposable
|
|
|
459
459
|
_updateAriaLabel() {
|
|
460
460
|
const question = this.carousel.questions[this._currentIndex];
|
|
461
461
|
if (!question) {
|
|
462
|
-
this.domNode.setAttribute("aria-label", ( localize(
|
|
462
|
+
this.domNode.setAttribute("aria-label", ( localize(7153, "Chat question")));
|
|
463
463
|
return;
|
|
464
464
|
}
|
|
465
465
|
const questionText = question.message ?? question.title;
|
|
@@ -467,10 +467,10 @@ let ChatQuestionCarouselPart = class ChatQuestionCarouselPart extends Disposable
|
|
|
467
467
|
const questionCount = this.carousel.questions.length;
|
|
468
468
|
let label;
|
|
469
469
|
if (questionCount === 1) {
|
|
470
|
-
label = ( localize(
|
|
470
|
+
label = ( localize(7154, "Chat question: {0}", messageContent));
|
|
471
471
|
} else {
|
|
472
472
|
label = ( localize(
|
|
473
|
-
|
|
473
|
+
7155,
|
|
474
474
|
"Chat question {0} of {1}: {2}",
|
|
475
475
|
this._currentIndex + 1,
|
|
476
476
|
questionCount,
|
|
@@ -481,10 +481,10 @@ let ChatQuestionCarouselPart = class ChatQuestionCarouselPart extends Disposable
|
|
|
481
481
|
if (verbose && this.carousel.terminalId) {
|
|
482
482
|
const kbLabel = this._keybindingService.lookupKeybinding("workbench.action.chat.focusQuestionCarouselTerminal")?.getLabel();
|
|
483
483
|
if (kbLabel) {
|
|
484
|
-
label = ( localize(
|
|
484
|
+
label = ( localize(7156, "{0} Use {1} to focus the terminal.", label, kbLabel));
|
|
485
485
|
} else {
|
|
486
486
|
label = ( localize(
|
|
487
|
-
|
|
487
|
+
7157,
|
|
488
488
|
"{0} Use the Focus Terminal from Question Carousel command to focus the terminal.",
|
|
489
489
|
label
|
|
490
490
|
));
|
|
@@ -658,9 +658,9 @@ let ChatQuestionCarouselPart = class ChatQuestionCarouselPart extends Disposable
|
|
|
658
658
|
this._footerRow = $(".chat-question-footer-row");
|
|
659
659
|
const leftControls = $(".chat-question-footer-left.chat-question-carousel-nav");
|
|
660
660
|
leftControls.setAttribute("role", "navigation");
|
|
661
|
-
leftControls.setAttribute("aria-label", ( localize(
|
|
661
|
+
leftControls.setAttribute("aria-label", ( localize(7158, "Question navigation")));
|
|
662
662
|
const arrowsContainer = $(".chat-question-nav-arrows");
|
|
663
|
-
const previousLabel = this.getLabelWithKeybinding(( localize(
|
|
663
|
+
const previousLabel = this.getLabelWithKeybinding(( localize(7159, "Previous")), PREVIOUS_QUESTION_ACTION_ID);
|
|
664
664
|
const prevButton = interactiveStore.add(( new Button(arrowsContainer, {
|
|
665
665
|
...defaultButtonStyles,
|
|
666
666
|
secondary: true,
|
|
@@ -674,7 +674,7 @@ let ChatQuestionCarouselPart = class ChatQuestionCarouselPart extends Disposable
|
|
|
674
674
|
}));
|
|
675
675
|
interactiveStore.add(prevButton.onDidClick(() => this.navigate(-1)));
|
|
676
676
|
this._prevButton = prevButton;
|
|
677
|
-
const nextLabel = this.getLabelWithKeybinding(( localize(
|
|
677
|
+
const nextLabel = this.getLabelWithKeybinding(( localize(7160, "Next")), NEXT_QUESTION_ACTION_ID);
|
|
678
678
|
const nextButton = interactiveStore.add(( new Button(arrowsContainer, {
|
|
679
679
|
...defaultButtonStyles,
|
|
680
680
|
secondary: true,
|
|
@@ -694,14 +694,14 @@ let ChatQuestionCarouselPart = class ChatQuestionCarouselPart extends Disposable
|
|
|
694
694
|
this._footerRow.appendChild(leftControls);
|
|
695
695
|
const rightControls = $(".chat-question-footer-right");
|
|
696
696
|
const hint = $("span.chat-question-submit-hint");
|
|
697
|
-
hint.textContent = isMacintosh ? ( localize(
|
|
697
|
+
hint.textContent = isMacintosh ? ( localize(7161, "⌘⏎ to submit")) : ( localize(7162, "Ctrl+Enter to submit"));
|
|
698
698
|
rightControls.appendChild(hint);
|
|
699
699
|
this._submitHint = hint;
|
|
700
700
|
const submitButton = interactiveStore.add(( new Button(rightControls, {
|
|
701
701
|
...defaultButtonStyles
|
|
702
702
|
})));
|
|
703
703
|
submitButton.element.classList.add("chat-question-submit-button");
|
|
704
|
-
submitButton.label = ( localize(
|
|
704
|
+
submitButton.label = ( localize(7163, "Submit"));
|
|
705
705
|
interactiveStore.add(submitButton.onDidClick(() => this.submit()));
|
|
706
706
|
this._submitButton = submitButton;
|
|
707
707
|
this._footerRow.appendChild(rightControls);
|
|
@@ -722,7 +722,7 @@ let ChatQuestionCarouselPart = class ChatQuestionCarouselPart extends Disposable
|
|
|
722
722
|
this._nextButton.enabled = canAdvance && (!question?.required || hasAnswer) && !hasValidationError;
|
|
723
723
|
}
|
|
724
724
|
if (this._stepIndicator) {
|
|
725
|
-
this._stepIndicator.textContent = ( localize(
|
|
725
|
+
this._stepIndicator.textContent = ( localize(7164, "{0}/{1}", this._currentIndex + 1, this.carousel.questions.length));
|
|
726
726
|
}
|
|
727
727
|
if (this._submitButton) {
|
|
728
728
|
const isLastQuestion = this._currentIndex === this.carousel.questions.length - 1;
|
|
@@ -741,18 +741,18 @@ let ChatQuestionCarouselPart = class ChatQuestionCarouselPart extends Disposable
|
|
|
741
741
|
this._footerRow = $(".chat-question-footer-row");
|
|
742
742
|
const leftControls = $(".chat-question-footer-left.chat-question-carousel-nav");
|
|
743
743
|
leftControls.setAttribute("role", "navigation");
|
|
744
|
-
leftControls.setAttribute("aria-label", ( localize(
|
|
744
|
+
leftControls.setAttribute("aria-label", ( localize(7158, "Question navigation")));
|
|
745
745
|
this._footerRow.appendChild(leftControls);
|
|
746
746
|
const rightControls = $(".chat-question-footer-right");
|
|
747
747
|
const hint = $("span.chat-question-submit-hint");
|
|
748
|
-
hint.textContent = isMacintosh ? ( localize(
|
|
748
|
+
hint.textContent = isMacintosh ? ( localize(7161, "⌘⏎ to submit")) : ( localize(7162, "Ctrl+Enter to submit"));
|
|
749
749
|
rightControls.appendChild(hint);
|
|
750
750
|
this._submitHint = hint;
|
|
751
751
|
const submitButton = interactiveStore.add(( new Button(rightControls, {
|
|
752
752
|
...defaultButtonStyles
|
|
753
753
|
})));
|
|
754
754
|
submitButton.element.classList.add("chat-question-submit-button");
|
|
755
|
-
submitButton.label = ( localize(
|
|
755
|
+
submitButton.label = ( localize(7163, "Submit"));
|
|
756
756
|
interactiveStore.add(submitButton.onDidClick(() => this.submit()));
|
|
757
757
|
this._submitButton = submitButton;
|
|
758
758
|
this._footerRow.appendChild(rightControls);
|
|
@@ -761,7 +761,7 @@ let ChatQuestionCarouselPart = class ChatQuestionCarouselPart extends Disposable
|
|
|
761
761
|
}
|
|
762
762
|
getLabelWithKeybinding(label, actionId) {
|
|
763
763
|
const keybindingLabel = this._keybindingService.lookupKeybinding(actionId, this._contextKeyService)?.getLabel();
|
|
764
|
-
return keybindingLabel ? ( localize(
|
|
764
|
+
return keybindingLabel ? ( localize(7165, "{0} ({1})", label, keybindingLabel)) : label;
|
|
765
765
|
}
|
|
766
766
|
renderInput(container, question) {
|
|
767
767
|
switch (question.type) {
|
|
@@ -790,7 +790,7 @@ let ChatQuestionCarouselPart = class ChatQuestionCarouselPart extends Disposable
|
|
|
790
790
|
}
|
|
791
791
|
renderTextInput(container, question) {
|
|
792
792
|
const inputBox = this._inputBoxes.add(( new InputBox(container, undefined, {
|
|
793
|
-
placeholder: ( localize(
|
|
793
|
+
placeholder: ( localize(7166, "Enter your answer")),
|
|
794
794
|
inputBoxStyles: defaultInputBoxStyles,
|
|
795
795
|
validationOptions: question.validation ? {
|
|
796
796
|
validation: value => {
|
|
@@ -881,7 +881,7 @@ let ChatQuestionCarouselPart = class ChatQuestionCarouselPart extends Disposable
|
|
|
881
881
|
const listItem = $(".chat-question-list-item");
|
|
882
882
|
listItem.setAttribute("role", "option");
|
|
883
883
|
listItem.setAttribute("aria-selected", String(isSelected));
|
|
884
|
-
listItem.setAttribute("aria-label", ( localize(
|
|
884
|
+
listItem.setAttribute("aria-label", ( localize(7167, "Option {0}: {1}", index + 1, option.label)));
|
|
885
885
|
listItem.id = `option-${question.id}-${index}`;
|
|
886
886
|
listItem.tabIndex = -1;
|
|
887
887
|
const number = $(".chat-question-list-number");
|
|
@@ -947,7 +947,7 @@ let ChatQuestionCarouselPart = class ChatQuestionCarouselPart extends Disposable
|
|
|
947
947
|
freeformNumber.textContent = `${orderedOptions.length + 1}`;
|
|
948
948
|
freeformContainer.appendChild(freeformNumber);
|
|
949
949
|
freeformTextarea = $("textarea.chat-question-freeform-textarea");
|
|
950
|
-
freeformTextarea.placeholder = ( localize(
|
|
950
|
+
freeformTextarea.placeholder = ( localize(7168, "Enter custom answer"));
|
|
951
951
|
freeformTextarea.rows = 1;
|
|
952
952
|
if (previousFreeform !== undefined) {
|
|
953
953
|
freeformTextarea.value = previousFreeform;
|
|
@@ -1059,7 +1059,7 @@ let ChatQuestionCarouselPart = class ChatQuestionCarouselPart extends Disposable
|
|
|
1059
1059
|
const listItem = $(".chat-question-list-item.multi-select");
|
|
1060
1060
|
listItem.setAttribute("role", "option");
|
|
1061
1061
|
listItem.setAttribute("aria-selected", String(isChecked));
|
|
1062
|
-
listItem.setAttribute("aria-label", ( localize(
|
|
1062
|
+
listItem.setAttribute("aria-label", ( localize(7167, "Option {0}: {1}", index + 1, option.label)));
|
|
1063
1063
|
listItem.id = `option-${question.id}-${index}`;
|
|
1064
1064
|
listItem.tabIndex = -1;
|
|
1065
1065
|
const number = $(".chat-question-list-number");
|
|
@@ -1124,7 +1124,7 @@ let ChatQuestionCarouselPart = class ChatQuestionCarouselPart extends Disposable
|
|
|
1124
1124
|
freeformNumber.textContent = `${orderedOptions.length + 1}`;
|
|
1125
1125
|
freeformContainer.appendChild(freeformNumber);
|
|
1126
1126
|
freeformTextarea = $("textarea.chat-question-freeform-textarea");
|
|
1127
|
-
freeformTextarea.placeholder = ( localize(
|
|
1127
|
+
freeformTextarea.placeholder = ( localize(7168, "Enter custom answer"));
|
|
1128
1128
|
freeformTextarea.rows = 1;
|
|
1129
1129
|
if (previousFreeform !== undefined) {
|
|
1130
1130
|
freeformTextarea.value = previousFreeform;
|
|
@@ -1292,7 +1292,7 @@ let ChatQuestionCarouselPart = class ChatQuestionCarouselPart extends Disposable
|
|
|
1292
1292
|
const skippedContainer = $(".chat-question-carousel-summary");
|
|
1293
1293
|
const skippedMessage = $(".chat-question-summary-skipped");
|
|
1294
1294
|
const isDismissedByTerminal = this.carousel instanceof ChatQuestionCarouselData && this.carousel.dismissedByTerminalInput;
|
|
1295
|
-
skippedMessage.textContent = isDismissedByTerminal ? ( localize(
|
|
1295
|
+
skippedMessage.textContent = isDismissedByTerminal ? ( localize(7169, "Deferring to user's input in the terminal")) : ( localize(7170, "Skipped"));
|
|
1296
1296
|
skippedContainer.appendChild(skippedMessage);
|
|
1297
1297
|
this.domNode.appendChild(skippedContainer);
|
|
1298
1298
|
}
|
|
@@ -1311,16 +1311,16 @@ let ChatQuestionCarouselPart = class ChatQuestionCarouselPart extends Disposable
|
|
|
1311
1311
|
const questionText = question.message ?? question.title;
|
|
1312
1312
|
let labelText = typeof questionText === "string" ? questionText : questionText.value;
|
|
1313
1313
|
labelText = labelText.replace(/[:\s]+$/, "");
|
|
1314
|
-
questionRow.textContent = ( localize(
|
|
1314
|
+
questionRow.textContent = ( localize(7171, "Q: {0}", labelText));
|
|
1315
1315
|
summaryItem.appendChild(questionRow);
|
|
1316
1316
|
if (answer !== undefined) {
|
|
1317
1317
|
const formattedAnswer = this.formatAnswerForSummary(question, answer);
|
|
1318
1318
|
const answerRow = $("div.chat-question-summary-answer-title");
|
|
1319
|
-
answerRow.textContent = ( localize(
|
|
1319
|
+
answerRow.textContent = ( localize(7172, "A: {0}", formattedAnswer));
|
|
1320
1320
|
summaryItem.appendChild(answerRow);
|
|
1321
1321
|
} else {
|
|
1322
1322
|
const unanswered = $("div.chat-question-summary-unanswered");
|
|
1323
|
-
unanswered.textContent = ( localize(
|
|
1323
|
+
unanswered.textContent = ( localize(7173, "Not answered yet"));
|
|
1324
1324
|
summaryItem.appendChild(unanswered);
|
|
1325
1325
|
}
|
|
1326
1326
|
summaryContainer.appendChild(summaryItem);
|
|
@@ -1360,7 +1360,7 @@ let ChatQuestionCarouselPart = class ChatQuestionCarouselPart extends Disposable
|
|
|
1360
1360
|
if (freeformValue) {
|
|
1361
1361
|
labels.push(freeformValue);
|
|
1362
1362
|
}
|
|
1363
|
-
return labels.join(( localize(
|
|
1363
|
+
return labels.join(( localize(7174, ", ")));
|
|
1364
1364
|
}
|
|
1365
1365
|
return String(answer);
|
|
1366
1366
|
}
|
|
@@ -1379,7 +1379,7 @@ let ChatQuestionCarouselPart = class ChatQuestionCarouselPart extends Disposable
|
|
|
1379
1379
|
}
|
|
1380
1380
|
const answer = this._answers.get(question.id);
|
|
1381
1381
|
if (question.required && (answer === undefined || answer === "")) {
|
|
1382
|
-
this.showValidationError(( localize(
|
|
1382
|
+
this.showValidationError(( localize(7175, "This field is required")));
|
|
1383
1383
|
return false;
|
|
1384
1384
|
}
|
|
1385
1385
|
if (question.type === "text" && question.validation && typeof answer === "string" && answer !== "") {
|
|
@@ -1404,7 +1404,7 @@ let ChatQuestionCarouselPart = class ChatQuestionCarouselPart extends Disposable
|
|
|
1404
1404
|
this._currentIndex = i;
|
|
1405
1405
|
this.persistDraftState();
|
|
1406
1406
|
this.renderCurrentQuestion(true);
|
|
1407
|
-
this.showValidationError(( localize(
|
|
1407
|
+
this.showValidationError(( localize(7175, "This field is required")));
|
|
1408
1408
|
return false;
|
|
1409
1409
|
}
|
|
1410
1410
|
}
|
|
@@ -1412,34 +1412,34 @@ let ChatQuestionCarouselPart = class ChatQuestionCarouselPart extends Disposable
|
|
|
1412
1412
|
}
|
|
1413
1413
|
getValidationError(value, validation) {
|
|
1414
1414
|
if (validation.minLength !== undefined && value.length < validation.minLength) {
|
|
1415
|
-
return localize(
|
|
1415
|
+
return localize(7176, "Minimum length is {0}", validation.minLength);
|
|
1416
1416
|
}
|
|
1417
1417
|
if (validation.maxLength !== undefined && value.length > validation.maxLength) {
|
|
1418
|
-
return localize(
|
|
1418
|
+
return localize(7177, "Maximum length is {0}", validation.maxLength);
|
|
1419
1419
|
}
|
|
1420
1420
|
if (validation.format) {
|
|
1421
1421
|
switch (validation.format) {
|
|
1422
1422
|
case "email":
|
|
1423
1423
|
if (!value.includes("@")) {
|
|
1424
|
-
return localize(
|
|
1424
|
+
return localize(7178, "Please enter a valid email address");
|
|
1425
1425
|
}
|
|
1426
1426
|
break;
|
|
1427
1427
|
case "uri":
|
|
1428
1428
|
if (!URL.canParse(value)) {
|
|
1429
|
-
return localize(
|
|
1429
|
+
return localize(7179, "Please enter a valid URI");
|
|
1430
1430
|
}
|
|
1431
1431
|
break;
|
|
1432
1432
|
case "date":
|
|
1433
1433
|
{
|
|
1434
1434
|
const dateRegex = /^\d{4}-\d{2}-\d{2}$/;
|
|
1435
1435
|
if (!dateRegex.test(value) || isNaN(( new Date(value)).getTime())) {
|
|
1436
|
-
return localize(
|
|
1436
|
+
return localize(7180, "Please enter a valid date (YYYY-MM-DD)");
|
|
1437
1437
|
}
|
|
1438
1438
|
break;
|
|
1439
1439
|
}
|
|
1440
1440
|
case "date-time":
|
|
1441
1441
|
if (isNaN(( new Date(value)).getTime())) {
|
|
1442
|
-
return localize(
|
|
1442
|
+
return localize(7181, "Please enter a valid date-time");
|
|
1443
1443
|
}
|
|
1444
1444
|
break;
|
|
1445
1445
|
}
|
|
@@ -1447,16 +1447,16 @@ let ChatQuestionCarouselPart = class ChatQuestionCarouselPart extends Disposable
|
|
|
1447
1447
|
if (validation.isInteger !== undefined || validation.minimum !== undefined || validation.maximum !== undefined) {
|
|
1448
1448
|
const num = Number(value);
|
|
1449
1449
|
if (isNaN(num)) {
|
|
1450
|
-
return localize(
|
|
1450
|
+
return localize(7182, "Please enter a valid number");
|
|
1451
1451
|
}
|
|
1452
1452
|
if (validation.isInteger && !Number.isInteger(num)) {
|
|
1453
|
-
return localize(
|
|
1453
|
+
return localize(7183, "Please enter a valid integer");
|
|
1454
1454
|
}
|
|
1455
1455
|
if (validation.minimum !== undefined && num < validation.minimum) {
|
|
1456
|
-
return localize(
|
|
1456
|
+
return localize(7184, "Minimum value is {0}", validation.minimum);
|
|
1457
1457
|
}
|
|
1458
1458
|
if (validation.maximum !== undefined && num > validation.maximum) {
|
|
1459
|
-
return localize(
|
|
1459
|
+
return localize(7185, "Maximum value is {0}", validation.maximum);
|
|
1460
1460
|
}
|
|
1461
1461
|
}
|
|
1462
1462
|
return undefined;
|
|
@@ -56,10 +56,10 @@ let ChatQuotaExceededPart = class ChatQuotaExceededPart extends Disposable {
|
|
|
56
56
|
case ChatEntitlement.Pro:
|
|
57
57
|
case ChatEntitlement.ProPlus:
|
|
58
58
|
case ChatEntitlement.Max:
|
|
59
|
-
primaryButtonLabel = isUsageBasedBilling ? ( localize(
|
|
59
|
+
primaryButtonLabel = isUsageBasedBilling ? ( localize(7186, "Configure Additional Spend")) : ( localize(7187, "Configure Budget"));
|
|
60
60
|
break;
|
|
61
61
|
case ChatEntitlement.Free:
|
|
62
|
-
primaryButtonLabel = ( localize(
|
|
62
|
+
primaryButtonLabel = ( localize(7188, "Upgrade to GitHub Copilot Pro"));
|
|
63
63
|
break;
|
|
64
64
|
}
|
|
65
65
|
let hasAddedWaitWarning = false;
|
|
@@ -68,7 +68,7 @@ let ChatQuotaExceededPart = class ChatQuotaExceededPart extends Disposable {
|
|
|
68
68
|
return;
|
|
69
69
|
}
|
|
70
70
|
hasAddedWaitWarning = true;
|
|
71
|
-
append(messageContainer, $(".chat-quota-wait-warning", undefined, ( localize(
|
|
71
|
+
append(messageContainer, $(".chat-quota-wait-warning", undefined, ( localize(7189, "Changes may take a few minutes to take effect."))));
|
|
72
72
|
};
|
|
73
73
|
let hasAddedRetryButton = false;
|
|
74
74
|
const addRetryButtonIfNeeded = () => {
|
|
@@ -81,7 +81,7 @@ let ChatQuotaExceededPart = class ChatQuotaExceededPart extends Disposable {
|
|
|
81
81
|
buttonForeground: asCssVariable(textLinkForeground)
|
|
82
82
|
})));
|
|
83
83
|
retryButton.element.classList.add("chat-quota-error-secondary-button");
|
|
84
|
-
retryButton.label = ( localize(
|
|
84
|
+
retryButton.label = ( localize(7190, "Click to Retry"));
|
|
85
85
|
this._register(retryButton.onDidClick(() => {
|
|
86
86
|
const widget = chatWidgetService.getWidgetBySessionResource(element.sessionResource);
|
|
87
87
|
if (!widget) {
|
|
@@ -57,7 +57,7 @@ let ChatCollapsibleListContentPart = class ChatCollapsibleListContentPart extend
|
|
|
57
57
|
hoverService,
|
|
58
58
|
configurationService
|
|
59
59
|
) {
|
|
60
|
-
super(labelOverride ?? (data.length > 1 ? ( localize(
|
|
60
|
+
super(labelOverride ?? (data.length > 1 ? ( localize(7191, "Used {0} references", data.length)) : ( localize(7192, "Used {0} reference", 1))), context, hoverMessage, hoverService, configurationService);
|
|
61
61
|
this.data = data;
|
|
62
62
|
this.contentReferencesListPool = contentReferencesListPool;
|
|
63
63
|
this.openerService = openerService;
|
|
@@ -215,7 +215,7 @@ let CollapsibleListPool = class CollapsibleListPool extends Disposable {
|
|
|
215
215
|
return basename(reference.uri.path);
|
|
216
216
|
}
|
|
217
217
|
},
|
|
218
|
-
getWidgetAriaLabel: () => ( localize(
|
|
218
|
+
getWidgetAriaLabel: () => ( localize(7193, "Collapsible Chat References List"))
|
|
219
219
|
},
|
|
220
220
|
dnd: {
|
|
221
221
|
getDragURI: element => getResourceForElement(element)?.toString() ?? null,
|
|
@@ -404,7 +404,7 @@ let CollapsibleListRenderer = class CollapsibleListRenderer {
|
|
|
404
404
|
name: settingId
|
|
405
405
|
}, {
|
|
406
406
|
icon: Codicon.settingsGear,
|
|
407
|
-
title: ( localize(
|
|
407
|
+
title: ( localize(7194, "Open setting '{0}'", settingId)),
|
|
408
408
|
strikethrough: data.excluded,
|
|
409
409
|
extraClasses
|
|
410
410
|
});
|
|
@@ -449,7 +449,7 @@ let CollapsibleListRenderer = class CollapsibleListRenderer {
|
|
|
449
449
|
templateData.addedSpan.textContent = `+${diffMeta.added}`;
|
|
450
450
|
templateData.removedSpan.textContent = `-${diffMeta.removed}`;
|
|
451
451
|
templateData.fileDiffsContainer.setAttribute("aria-label", ( localize(
|
|
452
|
-
|
|
452
|
+
7195,
|
|
453
453
|
"{0} lines added, {1} lines removed",
|
|
454
454
|
diffMeta.added,
|
|
455
455
|
diffMeta.removed
|
|
@@ -530,7 +530,7 @@ registerAction2(class AddToChatAction extends Action2 {
|
|
|
530
530
|
super({
|
|
531
531
|
id: AddToChatAction.id,
|
|
532
532
|
title: {
|
|
533
|
-
...( localize2(
|
|
533
|
+
...( localize2(7196, "Add File to Chat"))
|
|
534
534
|
},
|
|
535
535
|
f1: false,
|
|
536
536
|
menu: [{
|
|
@@ -560,7 +560,7 @@ registerAction2(class OpenChatReferenceLinkAction extends Action2 {
|
|
|
560
560
|
super({
|
|
561
561
|
id: OpenChatReferenceLinkAction.id,
|
|
562
562
|
title: {
|
|
563
|
-
...( localize2(
|
|
563
|
+
...( localize2(7197, "Copy Link"))
|
|
564
564
|
},
|
|
565
565
|
f1: false,
|
|
566
566
|
menu: [{
|
|
@@ -188,7 +188,7 @@ class SaveResourcesAction extends Action2 {
|
|
|
188
188
|
constructor() {
|
|
189
189
|
super({
|
|
190
190
|
id: SaveResourcesAction.ID,
|
|
191
|
-
title: ( localize2(
|
|
191
|
+
title: ( localize2(7198, "Save...")),
|
|
192
192
|
icon: Codicon.cloudDownload,
|
|
193
193
|
menu: [{
|
|
194
194
|
id: MenuId.ChatToolOutputResourceToolbar,
|
|
@@ -218,14 +218,14 @@ class SaveResourcesAction extends Action2 {
|
|
|
218
218
|
await fileService.writeFile(target, contents.value);
|
|
219
219
|
}
|
|
220
220
|
} catch (e) {
|
|
221
|
-
notificationService.error(( localize(
|
|
221
|
+
notificationService.error(( localize(7199, "Failed to save {0}: {1}", basename(part.uri), e)));
|
|
222
222
|
}
|
|
223
223
|
};
|
|
224
224
|
const withProgress = async (thenReveal, todo) => {
|
|
225
225
|
await progressService.withProgress({
|
|
226
226
|
location: ProgressLocation.Notification,
|
|
227
227
|
delay: 5_000,
|
|
228
|
-
title: ( localize(
|
|
228
|
+
title: ( localize(7200, "Saving resources..."))
|
|
229
229
|
}, async report => {
|
|
230
230
|
for (const task of todo) {
|
|
231
231
|
await task();
|
|
@@ -238,7 +238,7 @@ class SaveResourcesAction extends Action2 {
|
|
|
238
238
|
if (workspaceContextService.isInsideWorkspace(thenReveal)) {
|
|
239
239
|
commandService.executeCommand(REVEAL_IN_EXPLORER_COMMAND_ID, thenReveal);
|
|
240
240
|
} else {
|
|
241
|
-
notificationService.info(( localize(
|
|
241
|
+
notificationService.info(( localize(7201, "Saved resources to {0}", labelService.getUriLabel(thenReveal))));
|
|
242
242
|
}
|
|
243
243
|
};
|
|
244
244
|
if (context.parts.length === 1) {
|
|
@@ -250,7 +250,7 @@ class SaveResourcesAction extends Action2 {
|
|
|
250
250
|
await withProgress(uri, [() => savePart(part, false, uri)]);
|
|
251
251
|
} else {
|
|
252
252
|
const uris = await fileDialog.showOpenDialog({
|
|
253
|
-
title: ( localize(
|
|
253
|
+
title: ( localize(7202, "Pick folder to save resources")),
|
|
254
254
|
canSelectFiles: false,
|
|
255
255
|
canSelectFolders: true,
|
|
256
256
|
canSelectMany: false,
|
|
@@ -25,13 +25,13 @@ import { autorun } from '@codingame/monaco-vscode-api/vscode/vs/base/common/obse
|
|
|
25
25
|
var ChatSubagentContentPart_1;
|
|
26
26
|
registerCss(chatSubagentContent);
|
|
27
27
|
const MAX_TITLE_LENGTH = 100;
|
|
28
|
-
const subagentWorkingMessages = [( localize(
|
|
28
|
+
const subagentWorkingMessages = [( localize(7203, "Processing")), ( localize(7204, "Preparing")), ( localize(7205, "Loading")), ( localize(7206, "Analyzing")), ( localize(7207, "Evaluating"))];
|
|
29
29
|
let ChatSubagentContentPart = ChatSubagentContentPart_1 = class ChatSubagentContentPart extends ChatCollapsibleContentPart {
|
|
30
30
|
static isParentSubagentTool(toolInvocation) {
|
|
31
31
|
return toolInvocation.toolSpecificData?.kind === "subagent" && !toolInvocation.subAgentInvocationId;
|
|
32
32
|
}
|
|
33
33
|
static extractSubagentInfo(toolInvocation) {
|
|
34
|
-
const defaultDescription = ( localize(
|
|
34
|
+
const defaultDescription = ( localize(7208, "Running subagent"));
|
|
35
35
|
if (!ChatSubagentContentPart_1.isParentSubagentTool(toolInvocation)) {
|
|
36
36
|
return {
|
|
37
37
|
description: defaultDescription,
|
|
@@ -92,7 +92,7 @@ let ChatSubagentContentPart = ChatSubagentContentPart_1 = class ChatSubagentCont
|
|
|
92
92
|
prompt,
|
|
93
93
|
modelName
|
|
94
94
|
} = ChatSubagentContentPart_1.extractSubagentInfo(toolInvocation);
|
|
95
|
-
const rawPrefix = agentName || ( localize(
|
|
95
|
+
const rawPrefix = agentName || ( localize(7209, "Subagent"));
|
|
96
96
|
const prefix = rawPrefix.charAt(0).toUpperCase() + rawPrefix.slice(1);
|
|
97
97
|
const initialTitle = `${prefix}: ${description}`;
|
|
98
98
|
super(initialTitle, context, undefined, hoverService, configurationService);
|
|
@@ -239,7 +239,7 @@ let ChatSubagentContentPart = ChatSubagentContentPart_1 = class ChatSubagentCont
|
|
|
239
239
|
return;
|
|
240
240
|
}
|
|
241
241
|
const lines = this.prompt.split("\n");
|
|
242
|
-
const rawFirstLine = lines[0] || ( localize(
|
|
242
|
+
const rawFirstLine = lines[0] || ( localize(7210, "Prompt"));
|
|
243
243
|
const restOfLines = lines.slice(1).join("\n").trim();
|
|
244
244
|
const titleContent = rcut(rawFirstLine, MAX_TITLE_LENGTH);
|
|
245
245
|
const wasTruncated = rawFirstLine.length > MAX_TITLE_LENGTH;
|
|
@@ -287,7 +287,7 @@ let ChatSubagentContentPart = ChatSubagentContentPart_1 = class ChatSubagentCont
|
|
|
287
287
|
if (!this._isDefaultDescription && this.description) {
|
|
288
288
|
return this.description;
|
|
289
289
|
}
|
|
290
|
-
return localize(
|
|
290
|
+
return localize(7209, "Subagent");
|
|
291
291
|
}
|
|
292
292
|
markAsInactive() {
|
|
293
293
|
this.isActive = false;
|
|
@@ -298,7 +298,7 @@ let ChatSubagentContentPart = ChatSubagentContentPart_1 = class ChatSubagentCont
|
|
|
298
298
|
this.removeWorkingSpinner();
|
|
299
299
|
this.hideConfirmationPlaceholder();
|
|
300
300
|
if (this._isDefaultDescription) {
|
|
301
|
-
this.description = ( localize(
|
|
301
|
+
this.description = ( localize(7211, "Ran subagent"));
|
|
302
302
|
}
|
|
303
303
|
this.finalizeTitle();
|
|
304
304
|
this.setExpanded(false);
|
|
@@ -310,7 +310,7 @@ let ChatSubagentContentPart = ChatSubagentContentPart_1 = class ChatSubagentCont
|
|
|
310
310
|
}
|
|
311
311
|
}
|
|
312
312
|
updateTitle() {
|
|
313
|
-
const rawName = this.agentName || ( localize(
|
|
313
|
+
const rawName = this.agentName || ( localize(7209, "Subagent"));
|
|
314
314
|
const prefix = rawName.charAt(0).toUpperCase() + rawName.slice(1);
|
|
315
315
|
const shimmerText = `${prefix}: ${this.description}`;
|
|
316
316
|
const toolCallText = this.currentRunningToolMessage && this.isActive ? ` \u2014 ${this.currentRunningToolMessage}` : ``;
|
|
@@ -371,7 +371,7 @@ let ChatSubagentContentPart = ChatSubagentContentPart_1 = class ChatSubagentCont
|
|
|
371
371
|
return;
|
|
372
372
|
}
|
|
373
373
|
this._hoverDisposable.value = this.hoverService.setupDelayedHover(this._collapseButton.element, {
|
|
374
|
-
content: ( localize(
|
|
374
|
+
content: ( localize(7212, "Model: {0}", this.modelName))
|
|
375
375
|
});
|
|
376
376
|
}
|
|
377
377
|
trackToolState(toolInvocation) {
|
|
@@ -425,7 +425,7 @@ let ChatSubagentContentPart = ChatSubagentContentPart_1 = class ChatSubagentCont
|
|
|
425
425
|
}
|
|
426
426
|
getConfirmationPlaceholderText() {
|
|
427
427
|
const count = this.toolsWaitingForCarouselConfirmation;
|
|
428
|
-
return count === 1 ? ( localize(
|
|
428
|
+
return count === 1 ? ( localize(7213, "1 pending confirmation")) : ( localize(7214, "{0} pending confirmations", count));
|
|
429
429
|
}
|
|
430
430
|
updateConfirmationPlaceholderLabel() {
|
|
431
431
|
if (this._confirmationPlaceholderLabel) {
|
|
@@ -630,7 +630,7 @@ let ChatSubagentContentPart = ChatSubagentContentPart_1 = class ChatSubagentCont
|
|
|
630
630
|
}
|
|
631
631
|
}
|
|
632
632
|
appendHookItem(factory, hookPart) {
|
|
633
|
-
const hookMessage = hookPart.stopReason ? (hookPart.toolDisplayName ? ( localize(
|
|
633
|
+
const hookMessage = hookPart.stopReason ? (hookPart.toolDisplayName ? ( localize(7215, "Blocked {0}", hookPart.toolDisplayName)) : ( localize(7216, "Blocked by hook"))) : (hookPart.toolDisplayName ? ( localize(7217, "Warning for {0}", hookPart.toolDisplayName)) : ( localize(7218, "Hook warning")));
|
|
634
634
|
this.currentRunningToolMessage = hookMessage;
|
|
635
635
|
this.updateTitle();
|
|
636
636
|
if (this.isExpanded() || this.hasExpandedOnce) {
|
|
@@ -53,8 +53,8 @@ let ChatSuggestNextWidget = class ChatSuggestNextWidget extends Disposable {
|
|
|
53
53
|
return;
|
|
54
54
|
}
|
|
55
55
|
this._currentMode = mode;
|
|
56
|
-
const modeName = mode.name.get() || mode.label.get() || ( localize(
|
|
57
|
-
this.titleElement.textContent = ( localize(
|
|
56
|
+
const modeName = mode.name.get() || mode.label.get() || ( localize(7219, "current mode"));
|
|
57
|
+
this.titleElement.textContent = ( localize(7220, "Proceed from {0}", modeName));
|
|
58
58
|
const childrenToRemove = [];
|
|
59
59
|
for (let i = 1; i < this.promptsContainer.children.length; i++) {
|
|
60
60
|
childrenToRemove.push(this.promptsContainer.children[i]);
|
|
@@ -91,7 +91,7 @@ let ChatSuggestNextWidget = class ChatSuggestNextWidget extends Disposable {
|
|
|
91
91
|
const button = $(".chat-welcome-view-suggested-prompt");
|
|
92
92
|
button.setAttribute("tabindex", "0");
|
|
93
93
|
button.setAttribute("role", "button");
|
|
94
|
-
button.setAttribute("aria-label", ( localize(
|
|
94
|
+
button.setAttribute("aria-label", ( localize(7221, "{0}", handoff.label)));
|
|
95
95
|
const titleElement = append(button, $(".chat-welcome-view-suggested-prompt-title"));
|
|
96
96
|
titleElement.textContent = handoff.label;
|
|
97
97
|
const showContinueOn = handoff.showContinueOn ?? true;
|
|
@@ -112,7 +112,7 @@ let ChatSuggestNextWidget = class ChatSuggestNextWidget extends Disposable {
|
|
|
112
112
|
const dropdownContainer = append(button, $(".chat-suggest-next-dropdown"));
|
|
113
113
|
dropdownContainer.setAttribute("tabindex", "0");
|
|
114
114
|
dropdownContainer.setAttribute("role", "button");
|
|
115
|
-
dropdownContainer.setAttribute("aria-label", ( localize(
|
|
115
|
+
dropdownContainer.setAttribute("aria-label", ( localize(7222, "More options for {0}", handoff.label)));
|
|
116
116
|
dropdownContainer.setAttribute("aria-haspopup", "true");
|
|
117
117
|
const separator = append(dropdownContainer, $(".chat-suggest-next-separator"));
|
|
118
118
|
separator.setAttribute("aria-hidden", "true");
|
|
@@ -127,7 +127,7 @@ let ChatSuggestNextWidget = class ChatSuggestNextWidget extends Disposable {
|
|
|
127
127
|
const name = getAgentSessionProviderName(provider);
|
|
128
128
|
return (new Action(
|
|
129
129
|
contrib.type,
|
|
130
|
-
localize(
|
|
130
|
+
localize(7223, "Continue in {0}", name),
|
|
131
131
|
ThemeIcon.isThemeIcon(icon) ? ThemeIcon.asClassName(icon) : undefined,
|
|
132
132
|
true,
|
|
133
133
|
() => {
|
|
@@ -197,7 +197,7 @@ let ChatSuggestNextWidget = class ChatSuggestNextWidget extends Disposable {
|
|
|
197
197
|
const currentHandoffs = this._currentMode?.handOffs?.get();
|
|
198
198
|
return currentHandoffs?.find(h => h.label === handoffLabel) ?? handoff;
|
|
199
199
|
};
|
|
200
|
-
const label = ( localize(
|
|
200
|
+
const label = ( localize(7224, "Start with Autopilot"));
|
|
201
201
|
const button = $(".chat-welcome-view-suggested-prompt");
|
|
202
202
|
button.setAttribute("tabindex", "0");
|
|
203
203
|
button.setAttribute("role", "button");
|
|
@@ -39,7 +39,7 @@ let ChatTextEditContentPart = class ChatTextEditContentPart extends Disposable {
|
|
|
39
39
|
this.domNode = $(
|
|
40
40
|
".interactive-edits-summary",
|
|
41
41
|
undefined,
|
|
42
|
-
!element.isComplete ? "" : element.isCanceled ? ( localize(
|
|
42
|
+
!element.isComplete ? "" : element.isCanceled ? ( localize(7225, "Making changes was aborted.")) : ( localize(7226, "Made changes."))
|
|
43
43
|
);
|
|
44
44
|
} else {
|
|
45
45
|
this.domNode = $("div");
|