@codingame/monaco-vscode-katex-common 26.1.1 → 26.2.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/workbench/contrib/chat/browser/actions/chatContinueInAction.js +4 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatElicitationActions.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatExecuteActions.js +45 -36
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatTitleActions.js +10 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionHoverWidget.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsFilter.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsOpener.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsViewer.js +23 -23
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentWidgets.js +31 -31
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/implicitContextAttachment.js +10 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingActions.js +33 -33
- 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/chatSessions.contribution.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessions.contribution.js +47 -45
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/searchableOptionPickerActionItem.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/viewsWelcome/chatViewWelcomeController.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatAgentHover.js +2 -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/chatChangesSummaryPart.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCodeCitationContentPart.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCollapsibleContentPart.d.ts +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 +5 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatConfirmationWidget.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatDisabledClaudeHooksContentPart.d.ts +13 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatDisabledClaudeHooksContentPart.js +55 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatExtensionsContentPart.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatHookContentPart.d.ts +12 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatHookContentPart.js +55 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatInlineAnchorWidget.js +13 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMarkdownContentPart.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMcpServersInteractionContentPart.js +6 -6
- 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 +5 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatQuestionCarouselPart.js +96 -53
- 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/chatSubagentContentPart.d.ts +15 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatSubagentContentPart.js +83 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatSuggestNextWidget.js +5 -5
- 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 +26 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTodoListWidget.js +16 -16
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatToolInputOutputContentPart.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatToolOutputContentSubPart.js +5 -5
- 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/chatDisabledClaudeHooksContent.css +14 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatHookContentPart.css +44 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatQuestionCarousel.css +15 -22
- 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/chatTerminalToolConfirmationSubPart.js +15 -15
- 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/chatToolConfirmationSubPart.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolInvocationPart.js +3 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolOutputPart.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolPartUtilities.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolPostExecuteConfirmationPart.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolProgressPart.js +14 -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 +8 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatListRenderer.js +206 -41
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatListWidget.js +12 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatPendingDragAndDrop.d.ts +27 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatPendingDragAndDrop.js +148 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatWidget.d.ts +5 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatWidget.js +108 -51
- 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 +14 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputPart.js +59 -15
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatSelectedTools.js +1 -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.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/modePickerActionItem.js +12 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/modelPickerActionItem.js +13 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/sessionTargetPickerActionItem.js +13 -5
- 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 +90 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatContextUsageDetails.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatContextUsageWidget.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/widget/chatColors.js +14 -14
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatController.js +3 -3
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatGutterAffordance.js +1 -1
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatOverlayWidget.js +5 -5
- 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 +32 -32
- 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/replNotebook/browser/replEditor.js +1 -1
- package/vscode/src/vs/workbench/contrib/replNotebook/browser/replEditorInput.js +1 -1
|
@@ -1050,6 +1050,23 @@ have to be updated for changes to the rules above, or to support more deeply nes
|
|
|
1050
1050
|
position: relative;
|
|
1051
1051
|
}
|
|
1052
1052
|
|
|
1053
|
+
/* question carousel - this is above edits and todos */
|
|
1054
|
+
.interactive-session .interactive-input-part > .chat-question-carousel-widget-container {
|
|
1055
|
+
width: 100%;
|
|
1056
|
+
position: relative;
|
|
1057
|
+
}
|
|
1058
|
+
|
|
1059
|
+
.interactive-session .interactive-input-part > .chat-question-carousel-widget-container:empty {
|
|
1060
|
+
display: none;
|
|
1061
|
+
}
|
|
1062
|
+
|
|
1063
|
+
.interactive-session .interactive-input-part > .chat-question-carousel-widget-container .chat-question-carousel-container {
|
|
1064
|
+
margin: 0px;
|
|
1065
|
+
border: 1px solid var(--vscode-input-border, transparent);
|
|
1066
|
+
background-color: var(--vscode-editor-background);
|
|
1067
|
+
border-radius: 4px;
|
|
1068
|
+
}
|
|
1069
|
+
|
|
1053
1070
|
/* Chat Todo List Widget Container - mirrors chat-editing-session styling */
|
|
1054
1071
|
.interactive-session .interactive-input-part > .chat-todo-list-widget-container {
|
|
1055
1072
|
margin-bottom: -4px;
|
|
@@ -2523,7 +2540,6 @@ have to be updated for changes to the rules above, or to support more deeply nes
|
|
|
2523
2540
|
top: -13px;
|
|
2524
2541
|
right: 20px;
|
|
2525
2542
|
border-radius: 3px;
|
|
2526
|
-
width: 28px;
|
|
2527
2543
|
height: 26px;
|
|
2528
2544
|
}
|
|
2529
2545
|
|
|
@@ -2540,7 +2556,6 @@ have to be updated for changes to the rules above, or to support more deeply nes
|
|
|
2540
2556
|
}
|
|
2541
2557
|
|
|
2542
2558
|
.request-hover:not(.expanded) .actions-container {
|
|
2543
|
-
width: 22px;
|
|
2544
2559
|
height: 22px;
|
|
2545
2560
|
}
|
|
2546
2561
|
|
|
@@ -2549,11 +2564,8 @@ have to be updated for changes to the rules above, or to support more deeply nes
|
|
|
2549
2564
|
}
|
|
2550
2565
|
|
|
2551
2566
|
.request-hover:not(.expanded) .actions-container {
|
|
2552
|
-
|
|
2553
|
-
|
|
2554
|
-
.action-label.codicon-x,
|
|
2555
|
-
.action-label.codicon-edit {
|
|
2556
|
-
margin-top: 4px;
|
|
2567
|
+
.action-label {
|
|
2568
|
+
margin: 4px 2px 0;
|
|
2557
2569
|
padding: 3px 3px;
|
|
2558
2570
|
}
|
|
2559
2571
|
}
|
|
@@ -2841,3 +2853,74 @@ have to be updated for changes to the rules above, or to support more deeply nes
|
|
|
2841
2853
|
font-style: italic;
|
|
2842
2854
|
color: var(--vscode-descriptionForeground);
|
|
2843
2855
|
}
|
|
2856
|
+
|
|
2857
|
+
/* Pending request styles */
|
|
2858
|
+
.interactive-item-container.pending-request {
|
|
2859
|
+
opacity: 0.7;
|
|
2860
|
+
|
|
2861
|
+
.request-hover {
|
|
2862
|
+
top: -17px !important;
|
|
2863
|
+
}
|
|
2864
|
+
}
|
|
2865
|
+
|
|
2866
|
+
/* Drag handle for reordering pending messages */
|
|
2867
|
+
.interactive-item-container .chat-pending-drag-handle {
|
|
2868
|
+
position: absolute;
|
|
2869
|
+
left: 0;
|
|
2870
|
+
top: 50%;
|
|
2871
|
+
transform: translateY(-50%);
|
|
2872
|
+
width: 16px;
|
|
2873
|
+
display: flex;
|
|
2874
|
+
align-items: center;
|
|
2875
|
+
justify-content: center;
|
|
2876
|
+
cursor: grab;
|
|
2877
|
+
opacity: 0;
|
|
2878
|
+
transition: opacity 0.15s;
|
|
2879
|
+
color: var(--vscode-descriptionForeground);
|
|
2880
|
+
margin-top: -4px; /* visually center with overlaid top controls */
|
|
2881
|
+
}
|
|
2882
|
+
|
|
2883
|
+
.interactive-item-container.pending-request:hover .chat-pending-drag-handle {
|
|
2884
|
+
opacity: 1;
|
|
2885
|
+
}
|
|
2886
|
+
|
|
2887
|
+
/* Dragging state */
|
|
2888
|
+
.interactive-item-container.chat-pending-dragging {
|
|
2889
|
+
opacity: 0.4;
|
|
2890
|
+
}
|
|
2891
|
+
|
|
2892
|
+
/* Insertion indicator */
|
|
2893
|
+
.chat-pending-insert-indicator {
|
|
2894
|
+
position: absolute;
|
|
2895
|
+
height: 2px;
|
|
2896
|
+
background: var(--vscode-focusBorder);
|
|
2897
|
+
pointer-events: none;
|
|
2898
|
+
z-index: 100;
|
|
2899
|
+
display: none;
|
|
2900
|
+
}
|
|
2901
|
+
|
|
2902
|
+
.interactive-item-container .chat-request-status {
|
|
2903
|
+
color: var(--vscode-descriptionForeground);
|
|
2904
|
+
font-size: var(--vscode-chat-font-size-body-xs);
|
|
2905
|
+
margin-top: 2px;
|
|
2906
|
+
text-align: right;
|
|
2907
|
+
}
|
|
2908
|
+
|
|
2909
|
+
/* Pending divider styles */
|
|
2910
|
+
.interactive-item-container.pending-divider {
|
|
2911
|
+
padding: 8px 16px;
|
|
2912
|
+
}
|
|
2913
|
+
|
|
2914
|
+
.interactive-item-container.pending-divider .pending-divider-content {
|
|
2915
|
+
display: flex;
|
|
2916
|
+
align-items: center;
|
|
2917
|
+
gap: 8px;
|
|
2918
|
+
}
|
|
2919
|
+
|
|
2920
|
+
.interactive-item-container.pending-divider .pending-divider-label {
|
|
2921
|
+
font-size: var(--vscode-chat-font-size-body-xs);
|
|
2922
|
+
font-weight: 500;
|
|
2923
|
+
text-transform: uppercase;
|
|
2924
|
+
letter-spacing: 0.5px;
|
|
2925
|
+
color: var(--vscode-descriptionForeground);
|
|
2926
|
+
}
|
package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatContextUsageDetails.js
CHANGED
|
@@ -24,7 +24,7 @@ let ChatContextUsageDetails = class ChatContextUsageDetails extends Disposable {
|
|
|
24
24
|
this.quotaItem = this.domNode.appendChild($(".quota-item"));
|
|
25
25
|
const quotaItemHeader = this.quotaItem.appendChild($(".quota-item-header"));
|
|
26
26
|
const quotaItemLabel = quotaItemHeader.appendChild($(".quota-item-label"));
|
|
27
|
-
quotaItemLabel.textContent = ( localize(
|
|
27
|
+
quotaItemLabel.textContent = ( localize(6235, "Context Window"));
|
|
28
28
|
const tokenRow = this.quotaItem.appendChild($(".token-row"));
|
|
29
29
|
this.tokenCountLabel = tokenRow.appendChild($(".token-count-label"));
|
|
30
30
|
this.percentageLabel = tokenRow.appendChild($(".quota-item-value"));
|
|
@@ -32,12 +32,12 @@ let ChatContextUsageDetails = class ChatContextUsageDetails extends Disposable {
|
|
|
32
32
|
this.progressFill = progressBar.appendChild($(".quota-bit"));
|
|
33
33
|
this.tokenDetailsContainer = this.domNode.appendChild($(".token-details-container"));
|
|
34
34
|
this.warningMessage = this.domNode.appendChild($(".warning-message"));
|
|
35
|
-
this.warningMessage.textContent = ( localize(
|
|
35
|
+
this.warningMessage.textContent = ( localize(6236, "Quality may decline as limit nears."));
|
|
36
36
|
this.warningMessage.style.display = "none";
|
|
37
37
|
this.actionsSection = this.domNode.appendChild($(".actions-section"));
|
|
38
38
|
this.actionsSection.appendChild($(".separator"));
|
|
39
39
|
const actionsHeader = this.actionsSection.appendChild($(".actions-header"));
|
|
40
|
-
actionsHeader.textContent = ( localize(
|
|
40
|
+
actionsHeader.textContent = ( localize(6237, "Actions"));
|
|
41
41
|
const buttonBarContainer = this.actionsSection.appendChild($(".button-bar-container"));
|
|
42
42
|
this._register(this.instantiationService.createInstance(
|
|
43
43
|
MenuWorkbenchButtonBar,
|
|
@@ -71,7 +71,7 @@ let ChatContextUsageDetails = class ChatContextUsageDetails extends Disposable {
|
|
|
71
71
|
promptTokenDetails
|
|
72
72
|
} = data;
|
|
73
73
|
this.tokenCountLabel.textContent = ( localize(
|
|
74
|
-
|
|
74
|
+
6238,
|
|
75
75
|
"{0} / {1} tokens",
|
|
76
76
|
this.formatTokenCount(promptTokens, 1),
|
|
77
77
|
this.formatTokenCount(maxInputTokens, 0)
|
|
@@ -115,8 +115,8 @@ let ChatContextUsageDetails = class ChatContextUsageDetails extends Disposable {
|
|
|
115
115
|
}
|
|
116
116
|
if (totalPercentage < 100) {
|
|
117
117
|
const uncategorizedPercentage = 100 - totalPercentage;
|
|
118
|
-
categoryMap.set(( localize(
|
|
119
|
-
label: ( localize(
|
|
118
|
+
categoryMap.set(( localize(6239, "Uncategorized")), [{
|
|
119
|
+
label: ( localize(6240, "Other")),
|
|
120
120
|
percentageOfPrompt: uncategorizedPercentage
|
|
121
121
|
}]);
|
|
122
122
|
}
|
package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatContextUsageWidget.js
CHANGED
|
@@ -84,7 +84,7 @@ let ChatContextUsageWidget = class ChatContextUsageWidget extends Disposable {
|
|
|
84
84
|
this.domNode.style.display = "none";
|
|
85
85
|
this.domNode.setAttribute("tabindex", "0");
|
|
86
86
|
this.domNode.setAttribute("role", "button");
|
|
87
|
-
this.domNode.setAttribute("aria-label", ( localize(
|
|
87
|
+
this.domNode.setAttribute("aria-label", ( localize(6241, "Context window usage")));
|
|
88
88
|
const iconContainer = this.domNode.appendChild($(".icon-container"));
|
|
89
89
|
this.progressIndicator = ( new CircularProgressIndicator());
|
|
90
90
|
iconContainer.appendChild(this.progressIndicator.domNode);
|
|
@@ -18,39 +18,39 @@ registerColor("chat.requestBorder", {
|
|
|
18
18
|
light: ( new Color(( new RGBA(0, 0, 0, 0.10)))),
|
|
19
19
|
hcDark: contrastBorder,
|
|
20
20
|
hcLight: contrastBorder
|
|
21
|
-
}, ( localize(
|
|
21
|
+
}, ( localize(6616, "The border color of a chat request.")));
|
|
22
22
|
const chatRequestBackground = registerColor("chat.requestBackground", {
|
|
23
23
|
dark: ( transparent(editorBackground, 0.62)),
|
|
24
24
|
light: ( transparent(editorBackground, 0.62)),
|
|
25
25
|
hcDark: editorWidgetBackground,
|
|
26
26
|
hcLight: null
|
|
27
|
-
}, ( localize(
|
|
27
|
+
}, ( localize(6617, "The background color of a chat request.")));
|
|
28
28
|
const chatSlashCommandBackground = registerColor("chat.slashCommandBackground", {
|
|
29
29
|
dark: "#26477866",
|
|
30
30
|
light: "#adceff7a",
|
|
31
31
|
hcDark: Color.white,
|
|
32
32
|
hcLight: badgeBackground
|
|
33
|
-
}, ( localize(
|
|
33
|
+
}, ( localize(6618, "The background color of a chat slash command.")));
|
|
34
34
|
const chatSlashCommandForeground = registerColor("chat.slashCommandForeground", {
|
|
35
35
|
dark: "#85b6ff",
|
|
36
36
|
light: "#26569e",
|
|
37
37
|
hcDark: Color.black,
|
|
38
38
|
hcLight: badgeForeground
|
|
39
|
-
}, ( localize(
|
|
39
|
+
}, ( localize(6619, "The foreground color of a chat slash command.")));
|
|
40
40
|
registerColor("chat.avatarBackground", {
|
|
41
41
|
dark: "#1f1f1f",
|
|
42
42
|
light: "#f2f2f2",
|
|
43
43
|
hcDark: Color.black,
|
|
44
44
|
hcLight: Color.white
|
|
45
|
-
}, ( localize(
|
|
46
|
-
registerColor("chat.avatarForeground", foreground, ( localize(
|
|
45
|
+
}, ( localize(6620, "The background color of a chat avatar.")));
|
|
46
|
+
registerColor("chat.avatarForeground", foreground, ( localize(6621, "The foreground color of a chat avatar.")));
|
|
47
47
|
registerColor("chat.editedFileForeground", {
|
|
48
48
|
light: "#895503",
|
|
49
49
|
dark: "#E2C08D",
|
|
50
50
|
hcDark: "#E2C08D",
|
|
51
51
|
hcLight: "#895503"
|
|
52
52
|
}, ( localize(
|
|
53
|
-
|
|
53
|
+
6622,
|
|
54
54
|
"The foreground color of a chat edited file in the edited file list."
|
|
55
55
|
)));
|
|
56
56
|
registerColor("chat.requestCodeBorder", {
|
|
@@ -58,42 +58,42 @@ registerColor("chat.requestCodeBorder", {
|
|
|
58
58
|
light: "#0e639c40",
|
|
59
59
|
hcDark: null,
|
|
60
60
|
hcLight: null
|
|
61
|
-
}, ( localize(
|
|
61
|
+
}, ( localize(6623, "Border color of code blocks within the chat request bubble.")), true);
|
|
62
62
|
registerColor("chat.requestBubbleBackground", {
|
|
63
63
|
light: ( transparent(editorSelectionBackground, 0.3)),
|
|
64
64
|
dark: ( transparent(editorSelectionBackground, 0.3)),
|
|
65
65
|
hcDark: null,
|
|
66
66
|
hcLight: null
|
|
67
|
-
}, ( localize(
|
|
67
|
+
}, ( localize(6624, "Background color of the chat request bubble.")), true);
|
|
68
68
|
registerColor("chat.requestBubbleHoverBackground", {
|
|
69
69
|
dark: ( transparent(editorSelectionBackground, 0.6)),
|
|
70
70
|
light: ( transparent(editorSelectionBackground, 0.6)),
|
|
71
71
|
hcDark: null,
|
|
72
72
|
hcLight: null
|
|
73
|
-
}, ( localize(
|
|
73
|
+
}, ( localize(6625, "Background color of the chat request bubble on hover.")), true);
|
|
74
74
|
registerColor("chat.checkpointSeparator", {
|
|
75
75
|
dark: "#585858",
|
|
76
76
|
light: "#a9a9a9",
|
|
77
77
|
hcDark: "#a9a9a9",
|
|
78
78
|
hcLight: "#a5a5a5"
|
|
79
|
-
}, ( localize(
|
|
79
|
+
}, ( localize(6626, "Chat checkpoint separator color.")));
|
|
80
80
|
registerColor("chat.linesAddedForeground", {
|
|
81
81
|
dark: "#54B054",
|
|
82
82
|
light: "#107C10",
|
|
83
83
|
hcDark: "#54B054",
|
|
84
84
|
hcLight: "#107C10"
|
|
85
|
-
}, ( localize(
|
|
85
|
+
}, ( localize(6627, "Foreground color of lines added in chat code block pill.")), true);
|
|
86
86
|
registerColor("chat.linesRemovedForeground", {
|
|
87
87
|
dark: "#FC6A6A",
|
|
88
88
|
light: "#BC2F32",
|
|
89
89
|
hcDark: "#F48771",
|
|
90
90
|
hcLight: "#B5200D"
|
|
91
|
-
}, ( localize(
|
|
91
|
+
}, ( localize(6628, "Foreground color of lines removed in chat code block pill.")), true);
|
|
92
92
|
registerColor("chat.thinkingShimmer", {
|
|
93
93
|
dark: "#ffffff",
|
|
94
94
|
light: "#000000",
|
|
95
95
|
hcDark: "#ffffff",
|
|
96
96
|
hcLight: "#000000"
|
|
97
|
-
}, ( localize(
|
|
97
|
+
}, ( localize(6629, "Shimmer highlight for thinking/working labels.")), true);
|
|
98
98
|
|
|
99
99
|
export { chatRequestBackground, chatSlashCommandBackground, chatSlashCommandForeground };
|
|
@@ -240,7 +240,7 @@ let InlineChatController = class InlineChatController {
|
|
|
240
240
|
}
|
|
241
241
|
}));
|
|
242
242
|
const defaultPlaceholderObs = ( visibleSessionObs.map((session, r) => {
|
|
243
|
-
return session?.initialSelection.isEmpty() ? ( localize(
|
|
243
|
+
return session?.initialSelection.isEmpty() ? ( localize(8819, "Generate code")) : ( localize(8820, "Modify selected code"));
|
|
244
244
|
}));
|
|
245
245
|
this._store.add(autorun(r => {
|
|
246
246
|
const session = visibleSessionObs.read(r);
|
|
@@ -342,7 +342,7 @@ let InlineChatController = class InlineChatController {
|
|
|
342
342
|
if (lastProgress) {
|
|
343
343
|
placeholder = renderAsPlaintext(lastProgress.content);
|
|
344
344
|
}
|
|
345
|
-
this._zone.rawValue?.widget.chatWidget.setInputPlaceholder(placeholder || ( localize(
|
|
345
|
+
this._zone.rawValue?.widget.chatWidget.setInputPlaceholder(placeholder || ( localize(8821, "Working...")));
|
|
346
346
|
}
|
|
347
347
|
}));
|
|
348
348
|
this._store.add(autorun(r => {
|
|
@@ -413,7 +413,7 @@ let InlineChatController = class InlineChatController {
|
|
|
413
413
|
}
|
|
414
414
|
if (entries.length > 0) {
|
|
415
415
|
this._zone.value.widget.chatWidget.attachmentModel.addContext(...entries);
|
|
416
|
-
this._zone.value.widget.chatWidget.input.setValue(entries.length > 1 ? ( localize(
|
|
416
|
+
this._zone.value.widget.chatWidget.input.setValue(entries.length > 1 ? ( localize(8822, "Fix the attached problems")) : ( localize(8823, "Fix the attached problem")), true);
|
|
417
417
|
this._zone.value.widget.chatWidget.inputEditor.setSelection(( new Selection(1, 1, Number.MAX_SAFE_INTEGER, 1)));
|
|
418
418
|
}
|
|
419
419
|
if (arg && InlineChatRunOptions.isInlineChatRunOptions(arg)) {
|
|
@@ -71,7 +71,7 @@ let InlineChatGutterAffordance = class InlineChatGutterAffordance extends Inline
|
|
|
71
71
|
_showHover() {
|
|
72
72
|
this._hoverService.showInstantHover({
|
|
73
73
|
target: this._iconRef.element,
|
|
74
|
-
content: this._keybindingService.appendKeybinding(( localize(
|
|
74
|
+
content: this._keybindingService.appendKeybinding(( localize(8828, "Inline Chat")), ACTION_START)
|
|
75
75
|
});
|
|
76
76
|
}
|
|
77
77
|
_doShowHover() {
|
|
@@ -103,7 +103,7 @@ let InlineChatInputWidget = class InlineChatInputWidget extends Disposable {
|
|
|
103
103
|
this._store.add(autorun(r => {
|
|
104
104
|
const selection = this._editorObs.cursorSelection.read(r);
|
|
105
105
|
const hasSelection = selection && !selection.isEmpty();
|
|
106
|
-
const placeholderText = hasSelection ? ( localize(
|
|
106
|
+
const placeholderText = hasSelection ? ( localize(8829, "Modify selected code")) : ( localize(8830, "Generate code"));
|
|
107
107
|
this._input.updateOptions({
|
|
108
108
|
placeholder: this._keybindingService.appendKeybinding(placeholderText, ACTION_START)
|
|
109
109
|
});
|
|
@@ -302,7 +302,7 @@ let InlineChatSessionOverlayWidget = class InlineChatSessionOverlayWidget extend
|
|
|
302
302
|
const response = chatModel.lastRequestObs.read(r)?.response;
|
|
303
303
|
if (!response) {
|
|
304
304
|
return {
|
|
305
|
-
message: ( localize(
|
|
305
|
+
message: ( localize(8831, "Working...")),
|
|
306
306
|
icon: ThemeIcon.modify(Codicon.loading, "spin")
|
|
307
307
|
};
|
|
308
308
|
}
|
|
@@ -310,13 +310,13 @@ let InlineChatSessionOverlayWidget = class InlineChatSessionOverlayWidget extend
|
|
|
310
310
|
const result = response.result;
|
|
311
311
|
if (result?.errorDetails) {
|
|
312
312
|
return {
|
|
313
|
-
message: ( localize(
|
|
313
|
+
message: ( localize(8832, "Sorry, your request failed")),
|
|
314
314
|
icon: Codicon.error
|
|
315
315
|
};
|
|
316
316
|
}
|
|
317
317
|
const changes = entry.read(r)?.changesCount.read(r) ?? 0;
|
|
318
318
|
return {
|
|
319
|
-
message: changes === 0 ? ( localize(
|
|
319
|
+
message: changes === 0 ? ( localize(8833, "Done")) : changes === 1 ? ( localize(8834, "Done, 1 change")) : ( localize(8835, "Done, {0} changes", changes)),
|
|
320
320
|
icon: Codicon.check
|
|
321
321
|
};
|
|
322
322
|
}
|
|
@@ -335,7 +335,7 @@ let InlineChatSessionOverlayWidget = class InlineChatSessionOverlayWidget extend
|
|
|
335
335
|
};
|
|
336
336
|
} else {
|
|
337
337
|
return {
|
|
338
|
-
message: ( localize(
|
|
338
|
+
message: ( localize(8831, "Working...")),
|
|
339
339
|
icon: ThemeIcon.modify(Codicon.loading, "spin")
|
|
340
340
|
};
|
|
341
341
|
}
|
|
@@ -248,7 +248,7 @@ let InlineChatWidget = class InlineChatWidget {
|
|
|
248
248
|
);
|
|
249
249
|
this._store.add(this._chatService.onDidPerformUserAction(e => {
|
|
250
250
|
if (isEqual(e.sessionResource, this._chatWidget.viewModel?.model.sessionResource) && e.action.kind === "vote") {
|
|
251
|
-
this.updateStatus(( localize(
|
|
251
|
+
this.updateStatus(( localize(8844, "Thank you for your feedback!")), {
|
|
252
252
|
resetAfter: 1250
|
|
253
253
|
});
|
|
254
254
|
}
|
|
@@ -261,11 +261,11 @@ let InlineChatWidget = class InlineChatWidget {
|
|
|
261
261
|
if (this._configurationService.getValue(AccessibilityVerbositySettingId.InlineChat)) {
|
|
262
262
|
const kbLabel = this._keybindingService.lookupKeybinding(AccessibilityCommandId.OpenAccessibilityHelp)?.getLabel();
|
|
263
263
|
label = kbLabel ? ( localize(
|
|
264
|
-
|
|
264
|
+
8845,
|
|
265
265
|
"Inline Chat Input, Use {0} for Inline Chat Accessibility Help.",
|
|
266
266
|
kbLabel
|
|
267
267
|
)) : ( localize(
|
|
268
|
-
|
|
268
|
+
8846,
|
|
269
269
|
"Inline Chat Input, Run the Inline Chat Accessibility Help command for more information."
|
|
270
270
|
));
|
|
271
271
|
}
|
|
@@ -286,7 +286,7 @@ let InlineChatWidget = class InlineChatWidget {
|
|
|
286
286
|
this._elements.disclaimerLabel.classList.toggle("hidden", !showDisclaimer);
|
|
287
287
|
if (showDisclaimer) {
|
|
288
288
|
const renderedMarkdown = disposables.add(this._markdownRendererService.render(( new MarkdownString(( localize(
|
|
289
|
-
|
|
289
|
+
8847,
|
|
290
290
|
"By continuing with {0} Copilot, you agree to {1}'s [Terms]({2}) and [Privacy Statement]({3})",
|
|
291
291
|
product.defaultChatAgent?.provider?.default?.name ?? "",
|
|
292
292
|
product.defaultChatAgent?.provider?.default?.name ?? "",
|
|
@@ -495,7 +495,7 @@ let InlineChatWidget = class InlineChatWidget {
|
|
|
495
495
|
}
|
|
496
496
|
};
|
|
497
497
|
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(
|
|
498
|
+
const defaultAriaLabel = ( localize(8848, "Inline Chat Input"));
|
|
499
499
|
let EditorBasedInlineChatWidget = class EditorBasedInlineChatWidget extends InlineChatWidget {
|
|
500
500
|
constructor(
|
|
501
501
|
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(8849, "Closed inline chat widget")));
|
|
244
244
|
scrollState.restore(this.editor);
|
|
245
245
|
}
|
|
246
246
|
};
|
|
@@ -32,7 +32,7 @@ var InlineChatConfigKeys;
|
|
|
32
32
|
properties: {
|
|
33
33
|
[InlineChatConfigKeys.FinishOnType]: {
|
|
34
34
|
description: ( localize(
|
|
35
|
-
|
|
35
|
+
8850,
|
|
36
36
|
"Whether to finish an inline chat session when typing outside of changed regions."
|
|
37
37
|
)),
|
|
38
38
|
default: false,
|
|
@@ -40,14 +40,14 @@ var InlineChatConfigKeys;
|
|
|
40
40
|
},
|
|
41
41
|
[InlineChatConfigKeys.HoldToSpeech]: {
|
|
42
42
|
description: ( localize(
|
|
43
|
-
|
|
43
|
+
8851,
|
|
44
44
|
"Whether holding the inline chat keybinding will automatically enable speech recognition."
|
|
45
45
|
)),
|
|
46
46
|
default: true,
|
|
47
47
|
type: "boolean"
|
|
48
48
|
},
|
|
49
49
|
[InlineChatConfigKeys.EnableV2]: {
|
|
50
|
-
description: ( localize(
|
|
50
|
+
description: ( localize(8852, "Whether to use the next version of inline chat.")),
|
|
51
51
|
default: false,
|
|
52
52
|
type: "boolean",
|
|
53
53
|
tags: ["preview"],
|
|
@@ -56,7 +56,7 @@ var InlineChatConfigKeys;
|
|
|
56
56
|
}
|
|
57
57
|
},
|
|
58
58
|
[InlineChatConfigKeys.notebookAgent]: {
|
|
59
|
-
markdownDescription: ( localize(
|
|
59
|
+
markdownDescription: ( localize(8853, "Enable agent-like behavior for inline chat widget in notebooks.")),
|
|
60
60
|
default: false,
|
|
61
61
|
type: "boolean",
|
|
62
62
|
tags: ["experimental"],
|
|
@@ -66,21 +66,21 @@ var InlineChatConfigKeys;
|
|
|
66
66
|
},
|
|
67
67
|
[InlineChatConfigKeys.Affordance]: {
|
|
68
68
|
description: ( localize(
|
|
69
|
-
|
|
69
|
+
8854,
|
|
70
70
|
"Controls whether an inline chat affordance is shown when text is selected."
|
|
71
71
|
)),
|
|
72
72
|
default: "off",
|
|
73
73
|
type: "string",
|
|
74
74
|
enum: ["off", "gutter", "editor"],
|
|
75
|
-
enumDescriptions: [( localize(
|
|
75
|
+
enumDescriptions: [( localize(8855, "No affordance is shown.")), ( localize(8856, "Show an affordance in the gutter.")), ( localize(8857, "Show an affordance in the editor at the cursor position."))],
|
|
76
76
|
tags: ["experimental"]
|
|
77
77
|
},
|
|
78
78
|
[InlineChatConfigKeys.RenderMode]: {
|
|
79
|
-
description: ( localize(
|
|
79
|
+
description: ( localize(8858, "Controls how inline chat is rendered.")),
|
|
80
80
|
default: "zone",
|
|
81
81
|
type: "string",
|
|
82
82
|
enum: ["zone", "hover"],
|
|
83
|
-
enumDescriptions: [( localize(
|
|
83
|
+
enumDescriptions: [( localize(8859, "Render inline chat as a zone widget below the current line.")), ( localize(8860, "Render inline chat as a hover overlay."))],
|
|
84
84
|
tags: ["experimental"]
|
|
85
85
|
}
|
|
86
86
|
}
|
|
@@ -93,26 +93,26 @@ var InlineChatResponseType;
|
|
|
93
93
|
InlineChatResponseType["MessagesAndEdits"] = "messagesAndEdits";
|
|
94
94
|
})(InlineChatResponseType || (InlineChatResponseType = {}));
|
|
95
95
|
const CTX_INLINE_CHAT_POSSIBLE = ( new RawContextKey("inlineChatPossible", false, ( localize(
|
|
96
|
-
|
|
96
|
+
8861,
|
|
97
97
|
"Whether a provider for inline chat exists and whether an editor for inline chat is open"
|
|
98
98
|
))));
|
|
99
|
-
const CTX_INLINE_CHAT_HAS_AGENT2 = ( new RawContextKey("inlineChatHasEditsAgent", false, ( localize(
|
|
100
|
-
const CTX_INLINE_CHAT_HAS_NOTEBOOK_INLINE = ( new RawContextKey("inlineChatHasNotebookInline", false, ( localize(
|
|
101
|
-
const CTX_INLINE_CHAT_HAS_NOTEBOOK_AGENT = ( new RawContextKey("inlineChatHasNotebookAgent", false, ( localize(
|
|
102
|
-
const CTX_INLINE_CHAT_VISIBLE = ( new RawContextKey("inlineChatVisible", false, ( localize(
|
|
103
|
-
const CTX_INLINE_CHAT_FOCUSED = ( new RawContextKey("inlineChatFocused", false, ( localize(
|
|
99
|
+
const CTX_INLINE_CHAT_HAS_AGENT2 = ( new RawContextKey("inlineChatHasEditsAgent", false, ( localize(8862, "Whether an agent for inline for interactive editors exists"))));
|
|
100
|
+
const CTX_INLINE_CHAT_HAS_NOTEBOOK_INLINE = ( new RawContextKey("inlineChatHasNotebookInline", false, ( localize(8863, "Whether an agent for notebook cells exists"))));
|
|
101
|
+
const CTX_INLINE_CHAT_HAS_NOTEBOOK_AGENT = ( new RawContextKey("inlineChatHasNotebookAgent", false, ( localize(8864, "Whether an agent for notebook cells exists"))));
|
|
102
|
+
const CTX_INLINE_CHAT_VISIBLE = ( new RawContextKey("inlineChatVisible", false, ( localize(8865, "Whether the interactive editor input is visible"))));
|
|
103
|
+
const CTX_INLINE_CHAT_FOCUSED = ( new RawContextKey("inlineChatFocused", false, ( localize(8866, "Whether the interactive editor input is focused"))));
|
|
104
104
|
const CTX_INLINE_CHAT_EDITING = ( new RawContextKey("inlineChatEditing", true, ( localize(
|
|
105
|
-
|
|
105
|
+
8867,
|
|
106
106
|
"Whether the user is currently editing or generating code in the inline chat"
|
|
107
107
|
))));
|
|
108
|
-
const CTX_INLINE_CHAT_RESPONSE_FOCUSED = ( new RawContextKey("inlineChatResponseFocused", false, ( localize(
|
|
108
|
+
const CTX_INLINE_CHAT_RESPONSE_FOCUSED = ( new RawContextKey("inlineChatResponseFocused", false, ( localize(8868, "Whether the interactive widget's response is focused"))));
|
|
109
109
|
const CTX_INLINE_CHAT_OUTER_CURSOR_POSITION = ( new RawContextKey("inlineChatOuterCursorPosition", "", ( localize(
|
|
110
|
-
|
|
110
|
+
8869,
|
|
111
111
|
"Whether the cursor of the outer editor is above or below the interactive editor input"
|
|
112
112
|
))));
|
|
113
|
-
const CTX_INLINE_CHAT_REQUEST_IN_PROGRESS = ( new RawContextKey("inlineChatRequestInProgress", false, ( localize(
|
|
113
|
+
const CTX_INLINE_CHAT_REQUEST_IN_PROGRESS = ( new RawContextKey("inlineChatRequestInProgress", false, ( localize(8870, "Whether an inline chat request is currently in progress"))));
|
|
114
114
|
const CTX_INLINE_CHAT_RESPONSE_TYPE = ( new RawContextKey("inlineChatResponseType", InlineChatResponseType.None, ( localize(
|
|
115
|
-
|
|
115
|
+
8871,
|
|
116
116
|
"What type was the responses have been receieved, nothing yet, just messages, or messaged and local edits"
|
|
117
117
|
))));
|
|
118
118
|
const CTX_INLINE_CHAT_V1_ENABLED = ( ContextKeyExpr.or(( ContextKeyExpr.and(NOTEBOOK_IS_ACTIVE_EDITOR, CTX_INLINE_CHAT_HAS_NOTEBOOK_INLINE))));
|
|
@@ -127,37 +127,37 @@ const MENU_INLINE_CHAT_WIDGET_STATUS = MenuId.for("inlineChatWidget.status");
|
|
|
127
127
|
const MENU_INLINE_CHAT_WIDGET_SECONDARY = MenuId.for("inlineChatWidget.secondary");
|
|
128
128
|
MenuId.for("inlineChatWidget.changesZone");
|
|
129
129
|
const MENU_INLINE_CHAT_SIDE = MenuId.for("inlineChatWidget.side");
|
|
130
|
-
const inlineChatForeground = registerColor("inlineChat.foreground", editorWidgetForeground, ( localize(
|
|
131
|
-
const inlineChatBackground = registerColor("inlineChat.background", editorWidgetBackground, ( localize(
|
|
132
|
-
registerColor("inlineChat.border", editorWidgetBorder, ( localize(
|
|
133
|
-
registerColor("inlineChat.shadow", widgetShadow, ( localize(
|
|
134
|
-
registerColor("inlineChatInput.border", editorWidgetBorder, ( localize(
|
|
135
|
-
registerColor("inlineChatInput.focusBorder", focusBorder, ( localize(
|
|
130
|
+
const inlineChatForeground = registerColor("inlineChat.foreground", editorWidgetForeground, ( localize(8872, "Foreground color of the interactive editor widget")));
|
|
131
|
+
const inlineChatBackground = registerColor("inlineChat.background", editorWidgetBackground, ( localize(8873, "Background color of the interactive editor widget")));
|
|
132
|
+
registerColor("inlineChat.border", editorWidgetBorder, ( localize(8874, "Border color of the interactive editor widget")));
|
|
133
|
+
registerColor("inlineChat.shadow", widgetShadow, ( localize(8875, "Shadow color of the interactive editor widget")));
|
|
134
|
+
registerColor("inlineChatInput.border", editorWidgetBorder, ( localize(8876, "Border color of the interactive editor input")));
|
|
135
|
+
registerColor("inlineChatInput.focusBorder", focusBorder, ( localize(8877, "Border color of the interactive editor input when focused")));
|
|
136
136
|
registerColor(
|
|
137
137
|
"inlineChatInput.placeholderForeground",
|
|
138
138
|
inputPlaceholderForeground,
|
|
139
|
-
( localize(
|
|
139
|
+
( localize(8878, "Foreground color of the interactive editor input placeholder"))
|
|
140
140
|
);
|
|
141
|
-
registerColor("inlineChatInput.background", inputBackground, ( localize(
|
|
142
|
-
registerColor("inlineChatDiff.inserted", ( transparent(diffInserted, .5)), ( localize(
|
|
141
|
+
registerColor("inlineChatInput.background", inputBackground, ( localize(8879, "Background color of the interactive editor input")));
|
|
142
|
+
registerColor("inlineChatDiff.inserted", ( transparent(diffInserted, .5)), ( localize(8880, "Background color of inserted text in the interactive editor input")));
|
|
143
143
|
registerColor("editorOverviewRuler.inlineChatInserted", {
|
|
144
144
|
dark: ( transparent(diffInserted, 0.6)),
|
|
145
145
|
light: ( transparent(diffInserted, 0.8)),
|
|
146
146
|
hcDark: ( transparent(diffInserted, 0.6)),
|
|
147
147
|
hcLight: ( transparent(diffInserted, 0.8))
|
|
148
|
-
}, ( localize(
|
|
148
|
+
}, ( localize(8881, "Overview ruler marker color for inline chat inserted content.")));
|
|
149
149
|
registerColor("editorMinimap.inlineChatInserted", {
|
|
150
150
|
dark: ( transparent(diffInserted, 0.6)),
|
|
151
151
|
light: ( transparent(diffInserted, 0.8)),
|
|
152
152
|
hcDark: ( transparent(diffInserted, 0.6)),
|
|
153
153
|
hcLight: ( transparent(diffInserted, 0.8))
|
|
154
|
-
}, ( localize(
|
|
155
|
-
registerColor("inlineChatDiff.removed", ( transparent(diffRemoved, .5)), ( localize(
|
|
154
|
+
}, ( localize(8882, "Minimap marker color for inline chat inserted content.")));
|
|
155
|
+
registerColor("inlineChatDiff.removed", ( transparent(diffRemoved, .5)), ( localize(8883, "Background color of removed text in the interactive editor input")));
|
|
156
156
|
registerColor("editorOverviewRuler.inlineChatRemoved", {
|
|
157
157
|
dark: ( transparent(diffRemoved, 0.6)),
|
|
158
158
|
light: ( transparent(diffRemoved, 0.8)),
|
|
159
159
|
hcDark: ( transparent(diffRemoved, 0.6)),
|
|
160
160
|
hcLight: ( transparent(diffRemoved, 0.8))
|
|
161
|
-
}, ( localize(
|
|
161
|
+
}, ( localize(8884, "Overview ruler marker color for inline chat removed content.")));
|
|
162
162
|
|
|
163
163
|
export { ACTION_ACCEPT_CHANGES, ACTION_REGENERATE_RESPONSE, ACTION_REPORT_ISSUE, ACTION_START, ACTION_TOGGLE_DIFF, CTX_HOVER_MODE, CTX_INLINE_CHAT_EDITING, CTX_INLINE_CHAT_FOCUSED, CTX_INLINE_CHAT_HAS_AGENT2, CTX_INLINE_CHAT_HAS_NOTEBOOK_AGENT, CTX_INLINE_CHAT_HAS_NOTEBOOK_INLINE, CTX_INLINE_CHAT_OUTER_CURSOR_POSITION, CTX_INLINE_CHAT_POSSIBLE, CTX_INLINE_CHAT_REQUEST_IN_PROGRESS, CTX_INLINE_CHAT_RESPONSE_FOCUSED, CTX_INLINE_CHAT_RESPONSE_TYPE, 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 };
|
|
@@ -88,7 +88,7 @@ let ReplInputHintContentWidget = class ReplInputHintContentWidget extends Dispos
|
|
|
88
88
|
const keybinding = this.getKeybinding();
|
|
89
89
|
const keybindingHintLabel = keybinding?.getLabel();
|
|
90
90
|
if (keybinding && keybindingHintLabel) {
|
|
91
|
-
const actionPart = ( localize(
|
|
91
|
+
const actionPart = ( localize(8901, "Press {0} to execute. ", keybindingHintLabel));
|
|
92
92
|
const [before, after] = ( actionPart.split(keybindingHintLabel).map(fragment => {
|
|
93
93
|
const hintPart = $("span", undefined, fragment);
|
|
94
94
|
hintPart.style.fontStyle = "italic";
|
|
@@ -105,9 +105,9 @@ let ReplInputHintContentWidget = class ReplInputHintContentWidget extends Dispos
|
|
|
105
105
|
hintElement.appendChild(after);
|
|
106
106
|
this.domNode.append(hintElement);
|
|
107
107
|
const helpKeybinding = this.keybindingService.lookupKeybinding(AccessibilityCommandId.OpenAccessibilityHelp)?.getLabel();
|
|
108
|
-
const helpInfo = helpKeybinding ? ( localize(
|
|
108
|
+
const helpInfo = helpKeybinding ? ( localize(8902, "Use {0} for accessibility help. ", helpKeybinding)) : ( localize(8903, "Run the Open Accessibility Help command for more information. "));
|
|
109
109
|
this.ariaLabel = actionPart.concat(helpInfo, ( localize(
|
|
110
|
-
|
|
110
|
+
8904,
|
|
111
111
|
" Toggle {0} in settings to disable this hint.",
|
|
112
112
|
AccessibilityVerbositySettingId.ReplEditor
|
|
113
113
|
)));
|
|
@@ -144,7 +144,7 @@ let ExecutionStateCellStatusBarItem = class ExecutionStateCellStatusBarItem exte
|
|
|
144
144
|
return [{
|
|
145
145
|
text: `$(${successStateIcon.id})`,
|
|
146
146
|
color: themeColorFromId(cellStatusIconSuccess),
|
|
147
|
-
tooltip: ( localize(
|
|
147
|
+
tooltip: ( localize(9753, "Success")),
|
|
148
148
|
alignment: CellStatusbarAlignment.Left,
|
|
149
149
|
priority: Number.MAX_SAFE_INTEGER
|
|
150
150
|
}];
|
|
@@ -152,14 +152,14 @@ let ExecutionStateCellStatusBarItem = class ExecutionStateCellStatusBarItem exte
|
|
|
152
152
|
return [{
|
|
153
153
|
text: `$(${errorStateIcon.id})`,
|
|
154
154
|
color: themeColorFromId(cellStatusIconError),
|
|
155
|
-
tooltip: ( localize(
|
|
155
|
+
tooltip: ( localize(9754, "Failed")),
|
|
156
156
|
alignment: CellStatusbarAlignment.Left,
|
|
157
157
|
priority: Number.MAX_SAFE_INTEGER
|
|
158
158
|
}];
|
|
159
159
|
} else if (state === NotebookCellExecutionState.Pending || state === NotebookCellExecutionState.Unconfirmed) {
|
|
160
160
|
return [{
|
|
161
161
|
text: `$(${pendingStateIcon.id})`,
|
|
162
|
-
tooltip: ( localize(
|
|
162
|
+
tooltip: ( localize(9755, "Pending")),
|
|
163
163
|
alignment: CellStatusbarAlignment.Left,
|
|
164
164
|
priority: Number.MAX_SAFE_INTEGER
|
|
165
165
|
}];
|
|
@@ -167,7 +167,7 @@ let ExecutionStateCellStatusBarItem = class ExecutionStateCellStatusBarItem exte
|
|
|
167
167
|
const icon = runState?.didPause ? executingStateIcon : ThemeIcon.modify(executingStateIcon, "spin");
|
|
168
168
|
return [{
|
|
169
169
|
text: `$(${icon.id})`,
|
|
170
|
-
tooltip: ( localize(
|
|
170
|
+
tooltip: ( localize(9756, "Executing")),
|
|
171
171
|
alignment: CellStatusbarAlignment.Left,
|
|
172
172
|
priority: Number.MAX_SAFE_INTEGER
|
|
173
173
|
}];
|
|
@@ -298,10 +298,10 @@ let TimerCellStatusBarItem = class TimerCellStatusBarItem extends Disposable {
|
|
|
298
298
|
const rendererTitle = renderIssueLink ? `[${linkText}](command:workbench.action.openIssueReporter?${args})` : `**${linkText}**`;
|
|
299
299
|
renderTimes += `- ${rendererTitle} ${formatCellDuration(renderDuration[key])}\n`;
|
|
300
300
|
}
|
|
301
|
-
renderTimes += `\n*${( localize(
|
|
301
|
+
renderTimes += `\n*${( localize(9757, "Use the links above to file an issue using the issue reporter."))}*\n`;
|
|
302
302
|
tooltip = {
|
|
303
303
|
value: ( localize(
|
|
304
|
-
|
|
304
|
+
9758,
|
|
305
305
|
"**Last Execution** {0}\n\n**Execution Time** {1}\n\n**Overhead Time** {2}\n\n**Render Times**\n\n{3}",
|
|
306
306
|
lastExecution,
|
|
307
307
|
formatCellDuration(executionDuration),
|
|
@@ -312,7 +312,7 @@ let TimerCellStatusBarItem = class TimerCellStatusBarItem extends Disposable {
|
|
|
312
312
|
};
|
|
313
313
|
}
|
|
314
314
|
const executionText = this._isVerbose ? ( localize(
|
|
315
|
-
|
|
315
|
+
9759,
|
|
316
316
|
"Last Execution: {0}, Duration: {1}",
|
|
317
317
|
lastExecution,
|
|
318
318
|
formatCellDuration(duration, false)
|