@codingame/monaco-vscode-katex-common 32.0.0 → 32.0.2
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
|
@@ -99,13 +99,13 @@ let DelegationSessionPickerActionItem = class DelegationSessionPickerActionItem
|
|
|
99
99
|
_getSessionCategory(sessionTypeItem) {
|
|
100
100
|
if (isFirstPartyAgentSessionProvider(sessionTypeItem.type)) {
|
|
101
101
|
return {
|
|
102
|
-
label: ( localize(
|
|
102
|
+
label: ( localize(7513, "Continue In")),
|
|
103
103
|
order: 1,
|
|
104
104
|
showHeader: true
|
|
105
105
|
};
|
|
106
106
|
}
|
|
107
107
|
return {
|
|
108
|
-
label: ( localize(
|
|
108
|
+
label: ( localize(7514, "Continue In (Third Party)")),
|
|
109
109
|
order: 2,
|
|
110
110
|
showHeader: false
|
|
111
111
|
};
|
|
@@ -117,7 +117,7 @@ let DelegationSessionPickerActionItem = class DelegationSessionPickerActionItem
|
|
|
117
117
|
const learnMoreUrl = "https://aka.ms/vscode-continue-chat-in";
|
|
118
118
|
return {
|
|
119
119
|
id: "workbench.action.chat.agentOverview.learnMoreHandOff",
|
|
120
|
-
label: ( localize(
|
|
120
|
+
label: ( localize(7515, "Learn about agent handoff...")),
|
|
121
121
|
tooltip: learnMoreUrl,
|
|
122
122
|
class: undefined,
|
|
123
123
|
enabled: true,
|
|
@@ -133,7 +133,7 @@ let DelegationSessionPickerActionItem = class DelegationSessionPickerActionItem
|
|
|
133
133
|
return [{
|
|
134
134
|
id: "newChatSession",
|
|
135
135
|
class: undefined,
|
|
136
|
-
label: ( localize(
|
|
136
|
+
label: ( localize(7516, "New Chat Session")),
|
|
137
137
|
tooltip: "",
|
|
138
138
|
hover: {
|
|
139
139
|
content: ""
|
|
@@ -142,7 +142,7 @@ let DelegationSessionPickerActionItem = class DelegationSessionPickerActionItem
|
|
|
142
142
|
icon: Codicon.plus,
|
|
143
143
|
enabled: true,
|
|
144
144
|
category: {
|
|
145
|
-
label: ( localize(
|
|
145
|
+
label: ( localize(7517, "New Chat Session")),
|
|
146
146
|
order: 0,
|
|
147
147
|
showHeader: false
|
|
148
148
|
},
|
|
@@ -66,15 +66,15 @@ let ModePickerActionItem = class ModePickerActionItem extends ChatInputPickerAct
|
|
|
66
66
|
});
|
|
67
67
|
const getCustomAgentTarget = () => delegate.customAgentTarget?.() ?? Target.Undefined;
|
|
68
68
|
const builtInCategory = {
|
|
69
|
-
label: ( localize(
|
|
69
|
+
label: ( localize(7537, "Built-In")),
|
|
70
70
|
order: 0
|
|
71
71
|
};
|
|
72
72
|
const customCategory = {
|
|
73
|
-
label: ( localize(
|
|
73
|
+
label: ( localize(7538, "Custom")),
|
|
74
74
|
order: 1
|
|
75
75
|
};
|
|
76
76
|
const policyDisabledCategory = {
|
|
77
|
-
label: ( localize(
|
|
77
|
+
label: ( localize(7539, "Managed by your organization")),
|
|
78
78
|
order: 999,
|
|
79
79
|
showHeader: true
|
|
80
80
|
};
|
|
@@ -89,11 +89,11 @@ let ModePickerActionItem = class ModePickerActionItem extends ChatInputPickerAct
|
|
|
89
89
|
if (mode.source?.storage === PromptsStorage.extension) {
|
|
90
90
|
icon = Codicon.file;
|
|
91
91
|
id = `viewAgent:${mode.id}`;
|
|
92
|
-
label = ( localize(
|
|
92
|
+
label = ( localize(7540, "View {0} agent", mode.label.get()));
|
|
93
93
|
} else {
|
|
94
94
|
icon = Codicon.edit;
|
|
95
95
|
id = `editAgent:${mode.id}`;
|
|
96
|
-
label = ( localize(
|
|
96
|
+
label = ( localize(7541, "Edit {0} agent", mode.label.get()));
|
|
97
97
|
}
|
|
98
98
|
const modeResource = mode.uri;
|
|
99
99
|
toolbarActions.push({
|
|
@@ -74,7 +74,7 @@ let ModelPickerActionItem = class ModelPickerActionItem extends BaseActionViewIt
|
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
76
|
_getHoverContents() {
|
|
77
|
-
let label = ( localize(
|
|
77
|
+
let label = ( localize(7542, "Pick Model"));
|
|
78
78
|
const keybindingLabel = this.keybindingService.lookupKeybinding(this._action.id, this._contextKeyService)?.getLabel();
|
|
79
79
|
if (keybindingLabel) {
|
|
80
80
|
label += ` (${keybindingLabel})`;
|
package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/permissionPickerActionItem.js
CHANGED
|
@@ -53,7 +53,7 @@ let PermissionPickerActionItem = class PermissionPickerActionItem extends ChatIn
|
|
|
53
53
|
icon: item.icon,
|
|
54
54
|
checked: ext.selectedId === item.id,
|
|
55
55
|
enabled: !item.locked,
|
|
56
|
-
tooltip: item.locked ? ( localize(
|
|
56
|
+
tooltip: item.locked ? ( localize(7543, "This option is locked")) : "",
|
|
57
57
|
hover: item.description ? {
|
|
58
58
|
content: item.description
|
|
59
59
|
} : undefined,
|
|
@@ -70,13 +70,13 @@ let PermissionPickerActionItem = class PermissionPickerActionItem extends ChatIn
|
|
|
70
70
|
const actions = [{
|
|
71
71
|
...action,
|
|
72
72
|
id: "chat.permissions.default",
|
|
73
|
-
label: ( localize(
|
|
74
|
-
detail: ( localize(
|
|
73
|
+
label: ( localize(7544, "Default Approvals")),
|
|
74
|
+
detail: ( localize(7545, "Copilot uses your configured settings")),
|
|
75
75
|
icon: ThemeIcon.fromId(Codicon.shield.id),
|
|
76
76
|
checked: currentLevel === ChatPermissionLevel.Default,
|
|
77
77
|
tooltip: "",
|
|
78
78
|
hover: {
|
|
79
|
-
content: ( localize(
|
|
79
|
+
content: ( localize(7546, "Use configured approval settings"))
|
|
80
80
|
},
|
|
81
81
|
run: async () => {
|
|
82
82
|
delegate.setPermissionLevel(ChatPermissionLevel.Default);
|
|
@@ -87,14 +87,14 @@ let PermissionPickerActionItem = class PermissionPickerActionItem extends ChatIn
|
|
|
87
87
|
}, {
|
|
88
88
|
...action,
|
|
89
89
|
id: "chat.permissions.autoApprove",
|
|
90
|
-
label: ( localize(
|
|
91
|
-
detail: ( localize(
|
|
90
|
+
label: ( localize(7547, "Bypass Approvals")),
|
|
91
|
+
detail: ( localize(7548, "All tool calls are auto-approved")),
|
|
92
92
|
icon: ThemeIcon.fromId(Codicon.warning.id),
|
|
93
93
|
checked: currentLevel === ChatPermissionLevel.AutoApprove,
|
|
94
94
|
enabled: !policyRestricted,
|
|
95
|
-
tooltip: policyRestricted ? ( localize(
|
|
95
|
+
tooltip: policyRestricted ? ( localize(7549, "Disabled by enterprise policy")) : "",
|
|
96
96
|
hover: {
|
|
97
|
-
content: policyRestricted ? ( localize(
|
|
97
|
+
content: policyRestricted ? ( localize(7550, "Disabled by enterprise policy")) : ( localize(7551, "Auto-approve all tool calls and retry on errors"))
|
|
98
98
|
},
|
|
99
99
|
run: async () => {
|
|
100
100
|
if (!(await maybeConfirmElevatedPermissionLevel(ChatPermissionLevel.AutoApprove, this.dialogService, storageService))) {
|
|
@@ -110,14 +110,14 @@ let PermissionPickerActionItem = class PermissionPickerActionItem extends ChatIn
|
|
|
110
110
|
actions.push({
|
|
111
111
|
...action,
|
|
112
112
|
id: "chat.permissions.autopilot",
|
|
113
|
-
label: ( localize(
|
|
114
|
-
detail: ( localize(
|
|
113
|
+
label: ( localize(7552, "Autopilot (Preview)")),
|
|
114
|
+
detail: ( localize(7553, "Autonomously iterates from start to finish")),
|
|
115
115
|
icon: ThemeIcon.fromId(Codicon.rocket.id),
|
|
116
116
|
checked: currentLevel === ChatPermissionLevel.Autopilot,
|
|
117
117
|
enabled: !policyRestricted,
|
|
118
|
-
tooltip: policyRestricted ? ( localize(
|
|
118
|
+
tooltip: policyRestricted ? ( localize(7554, "Disabled by enterprise policy")) : "",
|
|
119
119
|
hover: {
|
|
120
|
-
content: policyRestricted ? ( localize(
|
|
120
|
+
content: policyRestricted ? ( localize(7555, "Disabled by enterprise policy")) : ( localize(7556, "Auto-approve all tool calls and continue until the task is done"))
|
|
121
121
|
},
|
|
122
122
|
run: async () => {
|
|
123
123
|
if (!(await maybeConfirmElevatedPermissionLevel(ChatPermissionLevel.Autopilot, this.dialogService, storageService))) {
|
|
@@ -137,8 +137,8 @@ let PermissionPickerActionItem = class PermissionPickerActionItem extends ChatIn
|
|
|
137
137
|
actionProvider,
|
|
138
138
|
actionBarActions: [{
|
|
139
139
|
id: "chat.permissions.learnMore",
|
|
140
|
-
label: ( localize(
|
|
141
|
-
tooltip: ( localize(
|
|
140
|
+
label: ( localize(7557, "Learn more about permissions")),
|
|
141
|
+
tooltip: ( localize(7557, "Learn more about permissions")),
|
|
142
142
|
class: undefined,
|
|
143
143
|
enabled: true,
|
|
144
144
|
run: async () => {
|
|
@@ -176,15 +176,15 @@ let PermissionPickerActionItem = class PermissionPickerActionItem extends ChatIn
|
|
|
176
176
|
switch (level) {
|
|
177
177
|
case ChatPermissionLevel.Autopilot:
|
|
178
178
|
icon = Codicon.rocket;
|
|
179
|
-
label = ( localize(
|
|
179
|
+
label = ( localize(7558, "Autopilot (Preview)"));
|
|
180
180
|
break;
|
|
181
181
|
case ChatPermissionLevel.AutoApprove:
|
|
182
182
|
icon = Codicon.warning;
|
|
183
|
-
label = ( localize(
|
|
183
|
+
label = ( localize(7559, "Bypass Approvals"));
|
|
184
184
|
break;
|
|
185
185
|
default:
|
|
186
186
|
icon = Codicon.shield;
|
|
187
|
-
label = ( localize(
|
|
187
|
+
label = ( localize(7560, "Default Approvals"));
|
|
188
188
|
break;
|
|
189
189
|
}
|
|
190
190
|
}
|
|
@@ -195,7 +195,7 @@ let PermissionPickerActionItem = class PermissionPickerActionItem extends ChatIn
|
|
|
195
195
|
reset(element, ...labelElements);
|
|
196
196
|
element.classList.toggle("warning", !ext && level === ChatPermissionLevel.Autopilot);
|
|
197
197
|
element.classList.toggle("info", !ext && level === ChatPermissionLevel.AutoApprove);
|
|
198
|
-
element.setAttribute("aria-label", ( localize(
|
|
198
|
+
element.setAttribute("aria-label", ( localize(7561, "Permission picker, {0}", label)));
|
|
199
199
|
return null;
|
|
200
200
|
}
|
|
201
201
|
refresh() {
|
package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/sessionTargetPickerActionItem.js
CHANGED
|
@@ -17,11 +17,11 @@ import { AgentSessionProviders, getAgentSessionProviderDescription, getAgentSess
|
|
|
17
17
|
import { ChatInputPickerActionViewItem } from './chatInputPickerActionItem.js';
|
|
18
18
|
|
|
19
19
|
const firstPartyCategory = {
|
|
20
|
-
label: ( localize(
|
|
20
|
+
label: ( localize(7562, "Agent Types")),
|
|
21
21
|
order: 1
|
|
22
22
|
};
|
|
23
23
|
const otherCategory = {
|
|
24
|
-
label: ( localize(
|
|
24
|
+
label: ( localize(7563, "Other")),
|
|
25
25
|
order: 2
|
|
26
26
|
};
|
|
27
27
|
let SessionTypePickerActionItem = class SessionTypePickerActionItem extends ChatInputPickerActionViewItem {
|
|
@@ -126,7 +126,7 @@ let SessionTypePickerActionItem = class SessionTypePickerActionItem extends Chat
|
|
|
126
126
|
const learnMoreUrl = "https://code.visualstudio.com/docs/copilot/agents/overview";
|
|
127
127
|
return {
|
|
128
128
|
id: "workbench.action.chat.agentOverview.learnMore",
|
|
129
|
-
label: ( localize(
|
|
129
|
+
label: ( localize(7564, "Learn about agent types...")),
|
|
130
130
|
tooltip: learnMoreUrl,
|
|
131
131
|
class: undefined,
|
|
132
132
|
enabled: true,
|
package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/workspacePickerActionItem.js
CHANGED
|
@@ -48,10 +48,10 @@ let WorkspacePickerActionItem = class WorkspacePickerActionItem extends ChatInpu
|
|
|
48
48
|
actions.push({
|
|
49
49
|
...action,
|
|
50
50
|
id: "workspace.openFolder",
|
|
51
|
-
label: ( localize(
|
|
51
|
+
label: ( localize(7565, "Open Folder...")),
|
|
52
52
|
checked: false,
|
|
53
53
|
enabled: true,
|
|
54
|
-
tooltip: ( localize(
|
|
54
|
+
tooltip: ( localize(7566, "Open Folder...")),
|
|
55
55
|
run: async () => {
|
|
56
56
|
this.commandService.executeCommand(this.delegate.openFolderCommand);
|
|
57
57
|
}
|
|
@@ -104,7 +104,7 @@ let WorkspacePickerActionItem = class WorkspacePickerActionItem extends ChatInpu
|
|
|
104
104
|
labelElements.push($("span.chat-input-picker-label", undefined, label));
|
|
105
105
|
} else {
|
|
106
106
|
labelElements.push(...renderLabelWithIcons(`$(folder)`));
|
|
107
|
-
labelElements.push($("span.chat-input-picker-label", undefined, ( localize(
|
|
107
|
+
labelElements.push($("span.chat-input-picker-label", undefined, ( localize(7567, "Workspace"))));
|
|
108
108
|
}
|
|
109
109
|
if (!this.pickerOptions.hideChevrons.get()) {
|
|
110
110
|
labelElements.push(...renderLabelWithIcons(`$(chevron-down)`));
|
package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatContextUsageDetails.js
CHANGED
|
@@ -22,7 +22,7 @@ let ChatContextUsageDetails = class ChatContextUsageDetails extends Disposable {
|
|
|
22
22
|
this.domNode = $(".chat-context-usage-details");
|
|
23
23
|
this.quotaItem = this.domNode.appendChild($(".quota-indicator"));
|
|
24
24
|
const header = this.domNode.insertBefore($("div.header"), this.quotaItem);
|
|
25
|
-
header.textContent = ( localize(
|
|
25
|
+
header.textContent = ( localize(7579, "Context Window"));
|
|
26
26
|
const quotaLabel = this.quotaItem.appendChild($(".quota-label"));
|
|
27
27
|
this.tokenCountLabel = quotaLabel.appendChild($("span"));
|
|
28
28
|
this.percentageLabel = quotaLabel.appendChild($("span.quota-value"));
|
|
@@ -32,11 +32,11 @@ let ChatContextUsageDetails = class ChatContextUsageDetails extends Disposable {
|
|
|
32
32
|
this.outputBufferLegend = this.quotaItem.appendChild($(".output-buffer-legend"));
|
|
33
33
|
this.outputBufferLegend.appendChild($(".output-buffer-swatch"));
|
|
34
34
|
const legendLabel = this.outputBufferLegend.appendChild($("span"));
|
|
35
|
-
legendLabel.textContent = ( localize(
|
|
35
|
+
legendLabel.textContent = ( localize(7580, "Reserved for response"));
|
|
36
36
|
this.outputBufferLegend.style.display = "none";
|
|
37
37
|
this.tokenDetailsContainer = this.domNode.appendChild($(".token-details-container"));
|
|
38
38
|
this.warningMessage = this.domNode.appendChild($("div.description"));
|
|
39
|
-
this.warningMessage.textContent = ( localize(
|
|
39
|
+
this.warningMessage.textContent = ( localize(7581, "Quality may decline as limit nears."));
|
|
40
40
|
this.warningMessage.style.display = "none";
|
|
41
41
|
this.actionsSection = this.domNode.appendChild($(".actions-section"));
|
|
42
42
|
const buttonBarContainer = this.actionsSection.appendChild($(".button-bar-container"));
|
|
@@ -73,12 +73,12 @@ let ChatContextUsageDetails = class ChatContextUsageDetails extends Disposable {
|
|
|
73
73
|
promptTokenDetails
|
|
74
74
|
} = data;
|
|
75
75
|
this.tokenCountLabel.textContent = ( localize(
|
|
76
|
-
|
|
76
|
+
7582,
|
|
77
77
|
"{0} / {1} tokens",
|
|
78
78
|
this.formatTokenCount(usedTokens, 1),
|
|
79
79
|
this.formatTokenCount(totalContextWindow, 0)
|
|
80
80
|
));
|
|
81
|
-
this.percentageLabel.textContent = ( localize(
|
|
81
|
+
this.percentageLabel.textContent = ( localize(7583, "{0}%", Math.min(100, percentage).toFixed(0)));
|
|
82
82
|
const usageBarWidth = Math.max(0, Math.min(100, percentage));
|
|
83
83
|
this.progressFill.style.width = `${usageBarWidth}%`;
|
|
84
84
|
if (outputBufferPercentage !== undefined && outputBufferPercentage > 0) {
|
|
@@ -128,8 +128,8 @@ let ChatContextUsageDetails = class ChatContextUsageDetails extends Disposable {
|
|
|
128
128
|
}
|
|
129
129
|
if (totalPercentage < 100) {
|
|
130
130
|
const uncategorizedPercentage = 100 - totalPercentage;
|
|
131
|
-
categoryMap.set(( localize(
|
|
132
|
-
label: ( localize(
|
|
131
|
+
categoryMap.set(( localize(7584, "Uncategorized")), [{
|
|
132
|
+
label: ( localize(7585, "Other")),
|
|
133
133
|
percentageOfPrompt: uncategorizedPercentage
|
|
134
134
|
}]);
|
|
135
135
|
}
|
package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatContextUsageWidget.js
CHANGED
|
@@ -110,7 +110,7 @@ let ChatContextUsageWidget = class ChatContextUsageWidget extends Disposable {
|
|
|
110
110
|
this.domNode.style.display = "none";
|
|
111
111
|
this.domNode.setAttribute("tabindex", "0");
|
|
112
112
|
this.domNode.setAttribute("role", "button");
|
|
113
|
-
this.domNode.setAttribute("aria-label", ( localize(
|
|
113
|
+
this.domNode.setAttribute("aria-label", ( localize(7586, "Context window usage")));
|
|
114
114
|
const iconContainer = this.domNode.appendChild($(".icon-container"));
|
|
115
115
|
this.progressIndicator = ( new CircularProgressIndicator());
|
|
116
116
|
iconContainer.appendChild(this.progressIndicator.domNode);
|
|
@@ -260,7 +260,7 @@ let ChatContextUsageWidget = class ChatContextUsageWidget extends Disposable {
|
|
|
260
260
|
this.progressIndicator.setProgress(percentage);
|
|
261
261
|
const roundedPercentage = Math.min(100, Math.round(percentage));
|
|
262
262
|
this.percentageLabel.textContent = `${roundedPercentage}%`;
|
|
263
|
-
this.domNode.setAttribute("aria-label", ( localize(
|
|
263
|
+
this.domNode.setAttribute("aria-label", ( localize(7587, "Context window usage: {0}%", roundedPercentage)));
|
|
264
264
|
this.domNode.classList.remove("warning", "error");
|
|
265
265
|
if (percentage >= 90) {
|
|
266
266
|
this.domNode.classList.add("error");
|
|
@@ -26,7 +26,7 @@ async function extractImagesFromChatResponse(response, readFile) {
|
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
28
|
const request = response.session.getItems().find(item => isRequestVM(item) && item.id === response.requestId);
|
|
29
|
-
const title = request ? request.messageText : ( localize(
|
|
29
|
+
const title = request ? request.messageText : ( localize(7682, "Images"));
|
|
30
30
|
return {
|
|
31
31
|
id: ( response.sessionResource.toString()) + "_" + response.id,
|
|
32
32
|
title,
|
|
@@ -45,10 +45,10 @@ function extractImagesFromToolInvocationOutputDetails(toolInvocation, sessionRes
|
|
|
45
45
|
images.push({
|
|
46
46
|
id: `${toolInvocation.toolCallId}_${outputIndex}`,
|
|
47
47
|
uri,
|
|
48
|
-
name: ( localize(
|
|
48
|
+
name: ( localize(7683, "Image {0}", images.length + 1)),
|
|
49
49
|
mimeType,
|
|
50
50
|
data,
|
|
51
|
-
source: ( localize(
|
|
51
|
+
source: ( localize(7684, "Tool: {0}", toolInvocation.toolId)),
|
|
52
52
|
caption
|
|
53
53
|
});
|
|
54
54
|
};
|
|
@@ -93,7 +93,7 @@ async function extractImagesFromToolInvocationMessages(toolInvocation, readFile)
|
|
|
93
93
|
name,
|
|
94
94
|
mimeType,
|
|
95
95
|
data,
|
|
96
|
-
source: ( localize(
|
|
96
|
+
source: ( localize(7684, "Tool: {0}", toolInvocation.toolId)),
|
|
97
97
|
caption: message.value
|
|
98
98
|
});
|
|
99
99
|
}
|
|
@@ -131,7 +131,7 @@ async function extractImageFromInlineReference(part, readFile) {
|
|
|
131
131
|
name,
|
|
132
132
|
mimeType: mime,
|
|
133
133
|
data,
|
|
134
|
-
source: ( localize(
|
|
134
|
+
source: ( localize(7685, "File")),
|
|
135
135
|
caption: undefined
|
|
136
136
|
};
|
|
137
137
|
}
|
|
@@ -160,7 +160,7 @@ function extractImagesFromChatRequest(request) {
|
|
|
160
160
|
name: variable.name,
|
|
161
161
|
mimeType,
|
|
162
162
|
data: VSBuffer.wrap(buffer),
|
|
163
|
-
source: ( localize(
|
|
163
|
+
source: ( localize(7686, "Attachment")),
|
|
164
164
|
caption: undefined
|
|
165
165
|
});
|
|
166
166
|
}
|
|
@@ -38,27 +38,27 @@ async function maybeConfirmElevatedPermissionLevel(level, dialogService, storage
|
|
|
38
38
|
const isAutopilot = level === ChatPermissionLevel.Autopilot;
|
|
39
39
|
const result = await dialogService.prompt({
|
|
40
40
|
type: Severity.Warning,
|
|
41
|
-
message: isAutopilot ? ( localize(
|
|
41
|
+
message: isAutopilot ? ( localize(7690, "Enable Autopilot?")) : ( localize(7691, "Enable Bypass Approvals?")),
|
|
42
42
|
buttons: [{
|
|
43
|
-
label: isAutopilot ? ( localize(
|
|
43
|
+
label: isAutopilot ? ( localize(7692, "Enable")) : ( localize(7693, "Enable")),
|
|
44
44
|
run: () => true
|
|
45
45
|
}, {
|
|
46
|
-
label: isAutopilot ? ( localize(
|
|
46
|
+
label: isAutopilot ? ( localize(7694, "Cancel")) : ( localize(7695, "Cancel")),
|
|
47
47
|
run: () => false
|
|
48
48
|
}],
|
|
49
49
|
checkbox: {
|
|
50
|
-
label: ( localize(
|
|
50
|
+
label: ( localize(7696, "Don't show again")),
|
|
51
51
|
checked: false
|
|
52
52
|
},
|
|
53
53
|
custom: {
|
|
54
54
|
icon: isAutopilot ? Codicon.rocket : Codicon.warning,
|
|
55
55
|
markdownDetails: [{
|
|
56
56
|
markdown: ( new MarkdownString(isAutopilot ? ( localize(
|
|
57
|
-
|
|
57
|
+
7697,
|
|
58
58
|
"Autopilot will auto-approve all tool calls and continue working autonomously until the task is complete. This includes terminal commands, file edits, and external tool calls. The agent will make decisions on your behalf without asking for confirmation.\n\nYou can stop the agent at any time by clicking the stop button. This applies to the current session only.\n\nTo make this the starting permission level for new chat sessions, change the [{0}](command:workbench.action.openSettings?%5B%22{0}%22%5D) setting.",
|
|
59
59
|
ChatConfiguration.DefaultPermissionLevel
|
|
60
60
|
)) : ( localize(
|
|
61
|
-
|
|
61
|
+
7698,
|
|
62
62
|
"Bypass Approvals will auto-approve all tool calls without asking for confirmation. This includes file edits, terminal commands, and external tool calls.\n\nTo make this the starting permission level for new chat sessions, change the [{0}](command:workbench.action.openSettings?%5B%22{0}%22%5D) setting.",
|
|
63
63
|
ChatConfiguration.DefaultPermissionLevel
|
|
64
64
|
)), {
|
|
@@ -18,45 +18,45 @@ registerColor("agentStatusIndicator.background", {
|
|
|
18
18
|
light: ( Color.black.transparent(0.05)),
|
|
19
19
|
hcDark: null,
|
|
20
20
|
hcLight: null
|
|
21
|
-
}, ( localize(
|
|
21
|
+
}, ( localize(8156, "Background color of the agent status indicator in the titlebar.")));
|
|
22
22
|
registerColor("chat.requestBorder", {
|
|
23
23
|
dark: ( new Color(( new RGBA(255, 255, 255, 0.10)))),
|
|
24
24
|
light: ( new Color(( new RGBA(0, 0, 0, 0.10)))),
|
|
25
25
|
hcDark: contrastBorder,
|
|
26
26
|
hcLight: contrastBorder
|
|
27
|
-
}, ( localize(
|
|
27
|
+
}, ( localize(8157, "The border color of a chat request.")));
|
|
28
28
|
const chatRequestBackground = registerColor("chat.requestBackground", {
|
|
29
29
|
dark: ( transparent(editorBackground, 0.62)),
|
|
30
30
|
light: ( transparent(editorBackground, 0.62)),
|
|
31
31
|
hcDark: editorWidgetBackground,
|
|
32
32
|
hcLight: null
|
|
33
|
-
}, ( localize(
|
|
33
|
+
}, ( localize(8158, "The background color of a chat request.")));
|
|
34
34
|
const chatSlashCommandBackground = registerColor("chat.slashCommandBackground", {
|
|
35
35
|
dark: "#26477866",
|
|
36
36
|
light: "#adceff7a",
|
|
37
37
|
hcDark: Color.white,
|
|
38
38
|
hcLight: badgeBackground
|
|
39
|
-
}, ( localize(
|
|
39
|
+
}, ( localize(8159, "The background color of a chat slash command.")));
|
|
40
40
|
const chatSlashCommandForeground = registerColor("chat.slashCommandForeground", {
|
|
41
41
|
dark: "#85b6ff",
|
|
42
42
|
light: "#26569e",
|
|
43
43
|
hcDark: Color.black,
|
|
44
44
|
hcLight: badgeForeground
|
|
45
|
-
}, ( localize(
|
|
45
|
+
}, ( localize(8160, "The foreground color of a chat slash command.")));
|
|
46
46
|
registerColor("chat.avatarBackground", {
|
|
47
47
|
dark: "#1f1f1f",
|
|
48
48
|
light: "#f2f2f2",
|
|
49
49
|
hcDark: Color.black,
|
|
50
50
|
hcLight: Color.white
|
|
51
|
-
}, ( localize(
|
|
52
|
-
registerColor("chat.avatarForeground", foreground, ( localize(
|
|
51
|
+
}, ( localize(8161, "The background color of a chat avatar.")));
|
|
52
|
+
registerColor("chat.avatarForeground", foreground, ( localize(8162, "The foreground color of a chat avatar.")));
|
|
53
53
|
registerColor("chat.editedFileForeground", {
|
|
54
54
|
light: "#895503",
|
|
55
55
|
dark: "#E2C08D",
|
|
56
56
|
hcDark: "#E2C08D",
|
|
57
57
|
hcLight: "#895503"
|
|
58
58
|
}, ( localize(
|
|
59
|
-
|
|
59
|
+
8163,
|
|
60
60
|
"The foreground color of a chat edited file in the edited file list."
|
|
61
61
|
)));
|
|
62
62
|
registerColor("chat.requestCodeBorder", {
|
|
@@ -64,50 +64,50 @@ registerColor("chat.requestCodeBorder", {
|
|
|
64
64
|
light: "#0e639c40",
|
|
65
65
|
hcDark: null,
|
|
66
66
|
hcLight: null
|
|
67
|
-
}, ( localize(
|
|
67
|
+
}, ( localize(8164, "Border color of code blocks within the chat request bubble.")), true);
|
|
68
68
|
registerColor("chat.requestBubbleBackground", {
|
|
69
69
|
light: ( transparent(editorSelectionBackground, 0.3)),
|
|
70
70
|
dark: ( transparent(editorSelectionBackground, 0.3)),
|
|
71
71
|
hcDark: null,
|
|
72
72
|
hcLight: null
|
|
73
|
-
}, ( localize(
|
|
73
|
+
}, ( localize(8165, "Background color of the chat request bubble.")), true);
|
|
74
74
|
registerColor("chat.requestBubbleHoverBackground", {
|
|
75
75
|
dark: ( transparent(editorSelectionBackground, 0.6)),
|
|
76
76
|
light: ( transparent(editorSelectionBackground, 0.6)),
|
|
77
77
|
hcDark: null,
|
|
78
78
|
hcLight: null
|
|
79
|
-
}, ( localize(
|
|
79
|
+
}, ( localize(8166, "Background color of the chat request bubble on hover.")), true);
|
|
80
80
|
registerColor("chat.checkpointSeparator", {
|
|
81
81
|
dark: "#585858",
|
|
82
82
|
light: "#a9a9a9",
|
|
83
83
|
hcDark: "#a9a9a9",
|
|
84
84
|
hcLight: "#a5a5a5"
|
|
85
|
-
}, ( localize(
|
|
85
|
+
}, ( localize(8167, "Chat checkpoint separator color.")));
|
|
86
86
|
registerColor("chat.linesAddedForeground", {
|
|
87
87
|
dark: "#54B054",
|
|
88
88
|
light: "#107C10",
|
|
89
89
|
hcDark: "#54B054",
|
|
90
90
|
hcLight: "#107C10"
|
|
91
|
-
}, ( localize(
|
|
91
|
+
}, ( localize(8168, "Foreground color of lines added in chat code block pill.")), true);
|
|
92
92
|
registerColor("chat.linesRemovedForeground", {
|
|
93
93
|
dark: "#FC6A6A",
|
|
94
94
|
light: "#BC2F32",
|
|
95
95
|
hcDark: "#F48771",
|
|
96
96
|
hcLight: "#B5200D"
|
|
97
|
-
}, ( localize(
|
|
97
|
+
}, ( localize(8169, "Foreground color of lines removed in chat code block pill.")), true);
|
|
98
98
|
registerColor("chat.thinkingShimmer", {
|
|
99
99
|
dark: "#ffffff",
|
|
100
100
|
light: "#000000",
|
|
101
101
|
hcDark: "#ffffff",
|
|
102
102
|
hcLight: "#000000"
|
|
103
|
-
}, ( localize(
|
|
103
|
+
}, ( localize(8170, "Shimmer highlight for thinking/working labels.")), true);
|
|
104
104
|
registerColor("chat.inputWorkingBorderColor1", {
|
|
105
105
|
dark: buttonBackground,
|
|
106
106
|
light: buttonBackground,
|
|
107
107
|
hcDark: "#FFFFFF",
|
|
108
108
|
hcLight: "#000000"
|
|
109
109
|
}, ( localize(
|
|
110
|
-
|
|
110
|
+
8171,
|
|
111
111
|
"First color stop of the animated chat input border shown while a request is in flight."
|
|
112
112
|
)), true);
|
|
113
113
|
registerColor("chat.inputWorkingBorderColor2", {
|
|
@@ -116,7 +116,7 @@ registerColor("chat.inputWorkingBorderColor2", {
|
|
|
116
116
|
hcDark: "#A0A0A0",
|
|
117
117
|
hcLight: "#555555"
|
|
118
118
|
}, ( localize(
|
|
119
|
-
|
|
119
|
+
8172,
|
|
120
120
|
"Secondary accent color used by other animated chat input affordances. Not used by the in-flight chat input border."
|
|
121
121
|
)), true);
|
|
122
122
|
registerColor("chat.inputWorkingBorderColor3", {
|
|
@@ -125,7 +125,7 @@ registerColor("chat.inputWorkingBorderColor3", {
|
|
|
125
125
|
hcDark: "#000000",
|
|
126
126
|
hcLight: "#000000"
|
|
127
127
|
}, ( localize(
|
|
128
|
-
|
|
128
|
+
8173,
|
|
129
129
|
"Tertiary accent color used by other animated chat input affordances. Not used by the in-flight chat input border."
|
|
130
130
|
)), true);
|
|
131
131
|
|
|
@@ -266,7 +266,7 @@ let InlineChatController = class InlineChatController {
|
|
|
266
266
|
}
|
|
267
267
|
}));
|
|
268
268
|
const defaultPlaceholderObs = ( visibleSessionObs.map((session, r) => {
|
|
269
|
-
return session?.initialSelection.isEmpty() ? ( localize(
|
|
269
|
+
return session?.initialSelection.isEmpty() ? ( localize(10429, "Generate code")) : ( localize(10430, "Modify selected code"));
|
|
270
270
|
}));
|
|
271
271
|
this.#store.add(autorun(r => {
|
|
272
272
|
const session = visibleSessionObs.read(r);
|
|
@@ -379,7 +379,7 @@ let InlineChatController = class InlineChatController {
|
|
|
379
379
|
if (lastProgress) {
|
|
380
380
|
placeholder = renderAsPlaintext(lastProgress.content);
|
|
381
381
|
}
|
|
382
|
-
this.#zone.rawValue?.widget.chatWidget.setInputPlaceholder(placeholder || ( localize(
|
|
382
|
+
this.#zone.rawValue?.widget.chatWidget.setInputPlaceholder(placeholder || ( localize(10431, "Working...")));
|
|
383
383
|
}
|
|
384
384
|
}));
|
|
385
385
|
this.#store.add(autorun(r => {
|
|
@@ -455,7 +455,7 @@ let InlineChatController = class InlineChatController {
|
|
|
455
455
|
}
|
|
456
456
|
if (entries.length > 0) {
|
|
457
457
|
this.#zone.value.widget.chatWidget.attachmentModel.addContext(...entries);
|
|
458
|
-
const msg = entries.length > 1 ? ( localize(
|
|
458
|
+
const msg = entries.length > 1 ? ( localize(10432, "Fix the attached problems")) : ( localize(10433, "Fix the attached problem"));
|
|
459
459
|
this.#zone.value.widget.chatWidget.input.setValue(msg, true);
|
|
460
460
|
arg.message = msg;
|
|
461
461
|
this.#zone.value.widget.chatWidget.inputEditor.setSelection(( new Selection(1, 1, Number.MAX_SAFE_INTEGER, 1)));
|
|
@@ -257,7 +257,7 @@ let InlineChatWidget = class InlineChatWidget {
|
|
|
257
257
|
);
|
|
258
258
|
this._store.add(this.#chatService.onDidPerformUserAction(e => {
|
|
259
259
|
if (isEqual(e.sessionResource, this.chatWidget.viewModel?.model.sessionResource) && e.action.kind === "vote") {
|
|
260
|
-
this.updateStatus(( localize(
|
|
260
|
+
this.updateStatus(( localize(10440, "Thank you for your feedback!")), {
|
|
261
261
|
resetAfter: 1250
|
|
262
262
|
});
|
|
263
263
|
}
|
|
@@ -270,11 +270,11 @@ let InlineChatWidget = class InlineChatWidget {
|
|
|
270
270
|
if (this.#configurationService.getValue(AccessibilityVerbositySettingId.InlineChat)) {
|
|
271
271
|
const kbLabel = this.#keybindingService.lookupKeybinding(AccessibilityCommandId.OpenAccessibilityHelp)?.getLabel();
|
|
272
272
|
label = kbLabel ? ( localize(
|
|
273
|
-
|
|
273
|
+
10441,
|
|
274
274
|
"Inline Chat Input, Use {0} for Inline Chat Accessibility Help.",
|
|
275
275
|
kbLabel
|
|
276
276
|
)) : ( localize(
|
|
277
|
-
|
|
277
|
+
10442,
|
|
278
278
|
"Inline Chat Input, Run the Inline Chat Accessibility Help command for more information."
|
|
279
279
|
));
|
|
280
280
|
}
|
|
@@ -295,7 +295,7 @@ let InlineChatWidget = class InlineChatWidget {
|
|
|
295
295
|
this._elements.disclaimerLabel.classList.toggle("hidden", !showDisclaimer);
|
|
296
296
|
if (showDisclaimer) {
|
|
297
297
|
const renderedMarkdown = disposables.add(this.#markdownRendererService.render(( new MarkdownString(( localize(
|
|
298
|
-
|
|
298
|
+
10443,
|
|
299
299
|
"By continuing with {0} Copilot, you agree to {1}'s [Terms]({2}) and [Privacy Statement]({3})",
|
|
300
300
|
product.defaultChatAgent?.provider?.default?.name ?? "",
|
|
301
301
|
product.defaultChatAgent?.provider?.default?.name ?? "",
|
|
@@ -417,7 +417,7 @@ let InlineChatWidget = class InlineChatWidget {
|
|
|
417
417
|
}
|
|
418
418
|
};
|
|
419
419
|
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));
|
|
420
|
-
const defaultAriaLabel = ( localize(
|
|
420
|
+
const defaultAriaLabel = ( localize(10444, "Inline Chat Input"));
|
|
421
421
|
let EditorBasedInlineChatWidget = class EditorBasedInlineChatWidget extends InlineChatWidget {
|
|
422
422
|
constructor(
|
|
423
423
|
location,
|
|
@@ -421,7 +421,7 @@ let InlineChatZoneWidget = class InlineChatZoneWidget extends ZoneWidget {
|
|
|
421
421
|
this.widget.domNode.style.display = "";
|
|
422
422
|
this.widget.chatWidget.setVisible(false);
|
|
423
423
|
super.hide();
|
|
424
|
-
status(( localize(
|
|
424
|
+
status(( localize(10445, "Closed inline chat widget")));
|
|
425
425
|
scrollState.restore(this.editor);
|
|
426
426
|
}
|
|
427
427
|
};
|