@codingame/monaco-vscode-katex-common 26.1.0 → 26.1.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/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/interactiveCommon.d.ts +0 -7
- package/vscode/src/vs/workbench/contrib/interactive/browser/interactiveCommon.js +0 -11
- package/vscode/src/vs/workbench/contrib/interactive/browser/replInputHintContentWidget.d.ts +0 -20
- package/vscode/src/vs/workbench/contrib/interactive/browser/replInputHintContentWidget.js +0 -150
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/executionStatusBarItemController.d.ts +0 -22
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/executionStatusBarItemController.js +0 -338
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/notebookVisibleCellObserver.d.ts +0 -18
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/notebookVisibleCellObserver.js +0 -58
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindWidget.d.ts +0 -75
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindWidget.js +0 -364
- package/vscode/src/vs/workbench/contrib/replNotebook/browser/interactiveEditor.css +0 -21
- package/vscode/src/vs/workbench/contrib/replNotebook/browser/media/interactive.css +0 -36
- package/vscode/src/vs/workbench/contrib/replNotebook/browser/replEditor.d.ts +0 -110
- package/vscode/src/vs/workbench/contrib/replNotebook/browser/replEditor.js +0 -692
- package/vscode/src/vs/workbench/contrib/replNotebook/browser/replEditorInput.d.ts +0 -40
- package/vscode/src/vs/workbench/contrib/replNotebook/browser/replEditorInput.js +0 -158
|
@@ -84,7 +84,7 @@ registerAction2(class OpenFileInDiffAction extends WorkingSetAction {
|
|
|
84
84
|
constructor() {
|
|
85
85
|
super({
|
|
86
86
|
id: "chatEditing.openFileInDiff",
|
|
87
|
-
title: ( localize2(
|
|
87
|
+
title: ( localize2(5286, "Open Changes in Diff Editor")),
|
|
88
88
|
icon: Codicon.diffSingle,
|
|
89
89
|
menu: [{
|
|
90
90
|
id: MenuId.ChatEditingWidgetModifiedFilesToolbar,
|
|
@@ -115,7 +115,7 @@ registerAction2(class AcceptAction extends WorkingSetAction {
|
|
|
115
115
|
constructor() {
|
|
116
116
|
super({
|
|
117
117
|
id: "chatEditing.acceptFile",
|
|
118
|
-
title: ( localize2(
|
|
118
|
+
title: ( localize2(5287, "Keep")),
|
|
119
119
|
icon: Codicon.check,
|
|
120
120
|
menu: [{
|
|
121
121
|
when: ( ContextKeyExpr.and(( ContextKeyExpr.equals("resourceScheme", CHAT_EDITING_MULTI_DIFF_SOURCE_RESOLVER_SCHEME)), ContextKeyExpr.notIn(
|
|
@@ -141,7 +141,7 @@ registerAction2(class DiscardAction extends WorkingSetAction {
|
|
|
141
141
|
constructor() {
|
|
142
142
|
super({
|
|
143
143
|
id: "chatEditing.discardFile",
|
|
144
|
-
title: ( localize2(
|
|
144
|
+
title: ( localize2(5288, "Undo")),
|
|
145
145
|
icon: Codicon.discard,
|
|
146
146
|
menu: [{
|
|
147
147
|
when: ( ContextKeyExpr.and(( ContextKeyExpr.equals("resourceScheme", CHAT_EDITING_MULTI_DIFF_SOURCE_RESOLVER_SCHEME)), ContextKeyExpr.notIn(
|
|
@@ -167,9 +167,9 @@ class ChatEditingAcceptAllAction extends EditingSessionAction {
|
|
|
167
167
|
constructor() {
|
|
168
168
|
super({
|
|
169
169
|
id: "chatEditing.acceptAllFiles",
|
|
170
|
-
title: ( localize(
|
|
170
|
+
title: ( localize(5289, "Keep")),
|
|
171
171
|
icon: Codicon.check,
|
|
172
|
-
tooltip: ( localize(
|
|
172
|
+
tooltip: ( localize(5290, "Keep All Edits")),
|
|
173
173
|
precondition: hasUndecidedChatEditingResourceContextKey,
|
|
174
174
|
keybinding: {
|
|
175
175
|
primary: KeyMod.CtrlCmd | KeyCode.Enter,
|
|
@@ -193,9 +193,9 @@ class ChatEditingDiscardAllAction extends EditingSessionAction {
|
|
|
193
193
|
constructor() {
|
|
194
194
|
super({
|
|
195
195
|
id: "chatEditing.discardAllFiles",
|
|
196
|
-
title: ( localize(
|
|
196
|
+
title: ( localize(5291, "Undo")),
|
|
197
197
|
icon: Codicon.discard,
|
|
198
|
-
tooltip: ( localize(
|
|
198
|
+
tooltip: ( localize(5292, "Undo All Edits")),
|
|
199
199
|
precondition: hasUndecidedChatEditingResourceContextKey,
|
|
200
200
|
menu: [{
|
|
201
201
|
id: MenuId.ChatEditingWidgetToolbar,
|
|
@@ -226,8 +226,8 @@ class ToggleExplanationWidgetAction extends EditingSessionAction {
|
|
|
226
226
|
constructor() {
|
|
227
227
|
super({
|
|
228
228
|
id: ToggleExplanationWidgetAction.ID,
|
|
229
|
-
title: ( localize(
|
|
230
|
-
tooltip: ( localize(
|
|
229
|
+
title: ( localize(5293, "Explain")),
|
|
230
|
+
tooltip: ( localize(5294, "Toggle Change Explanations")),
|
|
231
231
|
precondition: hasUndecidedChatEditingResourceContextKey,
|
|
232
232
|
menu: [{
|
|
233
233
|
id: MenuId.ChatEditingWidgetToolbar,
|
|
@@ -251,17 +251,17 @@ async function discardAllEditsWithConfirmation(accessor, currentEditingSession)
|
|
|
251
251
|
const entries = currentEditingSession.entries.get().filter(e => e.state.get() === ModifiedFileEntryState.Modified);
|
|
252
252
|
if (entries.length > 0) {
|
|
253
253
|
const confirmation = await dialogService.confirm({
|
|
254
|
-
title: ( localize(
|
|
254
|
+
title: ( localize(5295, "Undo all edits?")),
|
|
255
255
|
message: entries.length === 1 ? ( localize(
|
|
256
|
-
|
|
256
|
+
5296,
|
|
257
257
|
"This will undo changes made in {0}. Do you want to proceed?",
|
|
258
258
|
basename(entries[0].modifiedURI)
|
|
259
259
|
)) : ( localize(
|
|
260
|
-
|
|
260
|
+
5297,
|
|
261
261
|
"This will undo changes made in {0} files. Do you want to proceed?",
|
|
262
262
|
entries.length
|
|
263
263
|
)),
|
|
264
|
-
primaryButton: ( localize(
|
|
264
|
+
primaryButton: ( localize(5298, "Yes")),
|
|
265
265
|
type: "info"
|
|
266
266
|
});
|
|
267
267
|
if (!confirmation.confirmed) {
|
|
@@ -276,7 +276,7 @@ class ChatEditingShowChangesAction extends EditingSessionAction {
|
|
|
276
276
|
this.ID = "chatEditing.viewChanges";
|
|
277
277
|
}
|
|
278
278
|
static {
|
|
279
|
-
this.LABEL = ( localize(
|
|
279
|
+
this.LABEL = ( localize(5299, "View All Edits"));
|
|
280
280
|
}
|
|
281
281
|
constructor() {
|
|
282
282
|
super({
|
|
@@ -309,7 +309,7 @@ class ViewAllSessionChangesAction extends Action2 {
|
|
|
309
309
|
constructor() {
|
|
310
310
|
super({
|
|
311
311
|
id: ViewAllSessionChangesAction.ID,
|
|
312
|
-
title: ( localize2(
|
|
312
|
+
title: ( localize2(5300, "View All Changes")),
|
|
313
313
|
icon: Codicon.diffMultiple,
|
|
314
314
|
category: CHAT_CATEGORY,
|
|
315
315
|
precondition: ChatContextKeys.hasAgentSessionChanges,
|
|
@@ -351,7 +351,7 @@ class ViewAllSessionChangesAction extends Action2 {
|
|
|
351
351
|
multiDiffSourceUri: sessionResource.with({
|
|
352
352
|
scheme: sessionResource.scheme + "-worktree-changes"
|
|
353
353
|
}),
|
|
354
|
-
title: ( localize(
|
|
354
|
+
title: ( localize(5301, "All Session Changes")),
|
|
355
355
|
resources
|
|
356
356
|
});
|
|
357
357
|
session?.setRead(true);
|
|
@@ -390,13 +390,13 @@ async function restoreSnapshotWithConfirmation(accessor, item) {
|
|
|
390
390
|
if (editsToUndo === 1) {
|
|
391
391
|
if (entriesModifiedInRequestsToRemove.length === 1) {
|
|
392
392
|
message = ( localize(
|
|
393
|
-
|
|
393
|
+
5302,
|
|
394
394
|
"This will remove your last request and undo the edits made to {0}. Do you want to proceed?",
|
|
395
395
|
basename(entriesModifiedInRequestsToRemove[0].modifiedURI)
|
|
396
396
|
));
|
|
397
397
|
} else {
|
|
398
398
|
message = ( localize(
|
|
399
|
-
|
|
399
|
+
5303,
|
|
400
400
|
"This will remove your last request and undo edits made to {0} files in your working set. Do you want to proceed?",
|
|
401
401
|
entriesModifiedInRequestsToRemove.length
|
|
402
402
|
));
|
|
@@ -404,24 +404,24 @@ async function restoreSnapshotWithConfirmation(accessor, item) {
|
|
|
404
404
|
} else {
|
|
405
405
|
if (entriesModifiedInRequestsToRemove.length === 1) {
|
|
406
406
|
message = ( localize(
|
|
407
|
-
|
|
407
|
+
5304,
|
|
408
408
|
"This will remove all subsequent requests and undo edits made to {0}. Do you want to proceed?",
|
|
409
409
|
basename(entriesModifiedInRequestsToRemove[0].modifiedURI)
|
|
410
410
|
));
|
|
411
411
|
} else {
|
|
412
412
|
message = ( localize(
|
|
413
|
-
|
|
413
|
+
5305,
|
|
414
414
|
"This will remove all subsequent requests and undo edits made to {0} files in your working set. Do you want to proceed?",
|
|
415
415
|
entriesModifiedInRequestsToRemove.length
|
|
416
416
|
));
|
|
417
417
|
}
|
|
418
418
|
}
|
|
419
419
|
const confirmation = shouldPrompt ? await dialogService.confirm({
|
|
420
|
-
title: editsToUndo === 1 ? ( localize(
|
|
420
|
+
title: editsToUndo === 1 ? ( localize(5306, "Do you want to undo your last edit?")) : ( localize(5307, "Do you want to undo {0} edits?", editsToUndo)),
|
|
421
421
|
message: message,
|
|
422
|
-
primaryButton: ( localize(
|
|
422
|
+
primaryButton: ( localize(5308, "Yes")),
|
|
423
423
|
checkbox: {
|
|
424
|
-
label: ( localize(
|
|
424
|
+
label: ( localize(5309, "Don't ask again")),
|
|
425
425
|
checked: false
|
|
426
426
|
},
|
|
427
427
|
type: "info"
|
|
@@ -443,7 +443,7 @@ registerAction2(class RemoveAction extends Action2 {
|
|
|
443
443
|
constructor() {
|
|
444
444
|
super({
|
|
445
445
|
id: "workbench.action.chat.undoEdits",
|
|
446
|
-
title: ( localize2(
|
|
446
|
+
title: ( localize2(5310, "Undo Requests")),
|
|
447
447
|
f1: false,
|
|
448
448
|
category: CHAT_CATEGORY,
|
|
449
449
|
icon: Codicon.discard,
|
|
@@ -485,8 +485,8 @@ registerAction2(class RestoreCheckpointAction extends Action2 {
|
|
|
485
485
|
constructor() {
|
|
486
486
|
super({
|
|
487
487
|
id: "workbench.action.chat.restoreCheckpoint",
|
|
488
|
-
title: ( localize2(
|
|
489
|
-
tooltip: ( localize2(
|
|
488
|
+
title: ( localize2(5311, "Restore Checkpoint")),
|
|
489
|
+
tooltip: ( localize2(5312, "Restores workspace and chat to this point")),
|
|
490
490
|
f1: false,
|
|
491
491
|
category: CHAT_CATEGORY,
|
|
492
492
|
keybinding: {
|
|
@@ -527,7 +527,7 @@ registerAction2(class RestoreLastCheckpoint extends Action2 {
|
|
|
527
527
|
constructor() {
|
|
528
528
|
super({
|
|
529
529
|
id: "workbench.action.chat.restoreLastCheckpoint",
|
|
530
|
-
title: ( localize2(
|
|
530
|
+
title: ( localize2(5313, "Restore to Last Checkpoint")),
|
|
531
531
|
f1: false,
|
|
532
532
|
category: CHAT_CATEGORY,
|
|
533
533
|
icon: Codicon.discard,
|
|
@@ -577,7 +577,7 @@ registerAction2(class EditAction extends Action2 {
|
|
|
577
577
|
constructor() {
|
|
578
578
|
super({
|
|
579
579
|
id: "workbench.action.chat.editRequests",
|
|
580
|
-
title: ( localize2(
|
|
580
|
+
title: ( localize2(5314, "Edit Request")),
|
|
581
581
|
f1: false,
|
|
582
582
|
category: CHAT_CATEGORY,
|
|
583
583
|
icon: Codicon.edit,
|
|
@@ -616,7 +616,7 @@ registerAction2(class OpenWorkingSetHistoryAction extends Action2 {
|
|
|
616
616
|
constructor() {
|
|
617
617
|
super({
|
|
618
618
|
id: OpenWorkingSetHistoryAction.id,
|
|
619
|
-
title: ( localize(
|
|
619
|
+
title: ( localize(5315, "Open File")),
|
|
620
620
|
menu: [{
|
|
621
621
|
id: MenuId.ChatEditingCodeBlockContext,
|
|
622
622
|
group: "navigation",
|
|
@@ -642,7 +642,7 @@ registerAction2(class OpenWorkingSetHistoryAction extends Action2 {
|
|
|
642
642
|
constructor() {
|
|
643
643
|
super({
|
|
644
644
|
id: OpenWorkingSetHistoryAction.id,
|
|
645
|
-
title: ( localize(
|
|
645
|
+
title: ( localize(5316, "Open File Snapshot")),
|
|
646
646
|
menu: [{
|
|
647
647
|
id: MenuId.ChatEditingCodeBlockContext,
|
|
648
648
|
group: "navigation",
|
|
@@ -666,7 +666,7 @@ registerAction2(class OpenWorkingSetHistoryAction extends Action2 {
|
|
|
666
666
|
if (snapshot) {
|
|
667
667
|
const editor = await editorService.openEditor({
|
|
668
668
|
resource: snapshot,
|
|
669
|
-
label: ( localize(
|
|
669
|
+
label: ( localize(5317, "{0} (Snapshot)", basename(context.uri))),
|
|
670
670
|
options: {
|
|
671
671
|
activation: EditorActivation.ACTIVATE
|
|
672
672
|
}
|
|
@@ -683,7 +683,7 @@ registerAction2(class ResolveSymbolsContextAction extends EditingSessionAction {
|
|
|
683
683
|
constructor() {
|
|
684
684
|
super({
|
|
685
685
|
id: "workbench.action.edits.addFilesFromReferences",
|
|
686
|
-
title: ( localize2(
|
|
686
|
+
title: ( localize2(5318, "Add Files From References")),
|
|
687
687
|
f1: false,
|
|
688
688
|
category: CHAT_CATEGORY,
|
|
689
689
|
menu: {
|
|
@@ -747,7 +747,7 @@ class ViewPreviousEditsAction extends EditingSessionAction {
|
|
|
747
747
|
this.Id = "chatEditing.viewPreviousEdits";
|
|
748
748
|
}
|
|
749
749
|
static {
|
|
750
|
-
this.Label = ( localize(
|
|
750
|
+
this.Label = ( localize(5319, "View Previous Edits"));
|
|
751
751
|
}
|
|
752
752
|
constructor() {
|
|
753
753
|
super({
|
package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorActions.js
CHANGED
|
@@ -63,7 +63,7 @@ class NavigateAction extends ChatEditingEditorAction {
|
|
|
63
63
|
constructor(next) {
|
|
64
64
|
super({
|
|
65
65
|
id: next ? "chatEditor.action.navigateNext" : "chatEditor.action.navigatePrevious",
|
|
66
|
-
title: next ? ( localize2(
|
|
66
|
+
title: next ? ( localize2(5321, "Go to Next Chat Edit")) : ( localize2(5322, "Go to Previous Chat Edit")),
|
|
67
67
|
icon: next ? Codicon.arrowDown : Codicon.arrowUp,
|
|
68
68
|
precondition: ( ContextKeyExpr.and(ChatContextKeys.enabled, ctxHasEditorModification)),
|
|
69
69
|
keybinding: {
|
|
@@ -127,9 +127,9 @@ class KeepOrUndoAction extends ChatEditingEditorAction {
|
|
|
127
127
|
constructor(id, _keep) {
|
|
128
128
|
super({
|
|
129
129
|
id,
|
|
130
|
-
title: _keep ? ( localize2(
|
|
131
|
-
shortTitle: _keep ? ( localize2(
|
|
132
|
-
tooltip: _keep ? ( localize2(
|
|
130
|
+
title: _keep ? ( localize2(5323, "Keep Chat Edits")) : ( localize2(5324, "Undo Chat Edits")),
|
|
131
|
+
shortTitle: _keep ? ( localize2(5325, "Keep")) : ( localize2(5326, "Undo")),
|
|
132
|
+
tooltip: _keep ? ( localize2(5327, "Keep Chat Edits in this File")) : ( localize2(5328, "Undo Chat Edits in this File")),
|
|
133
133
|
precondition: ( ContextKeyExpr.and(ctxHasEditorModification, ( ctxIsCurrentlyBeingModified.negate()))),
|
|
134
134
|
icon: _keep ? Codicon.check : Codicon.discard,
|
|
135
135
|
f1: true,
|
|
@@ -179,8 +179,8 @@ class AcceptRejectHunkAction extends ChatEditingEditorAction {
|
|
|
179
179
|
constructor(_accept) {
|
|
180
180
|
super({
|
|
181
181
|
id: _accept ? acceptHunkId : undoHunkId,
|
|
182
|
-
title: _accept ? ( localize2(
|
|
183
|
-
shortTitle: _accept ? ( localize2(
|
|
182
|
+
title: _accept ? ( localize2(5329, "Keep this Change")) : ( localize2(5330, "Undo this Change")),
|
|
183
|
+
shortTitle: _accept ? ( localize2(5331, "Keep")) : ( localize2(5332, "Undo")),
|
|
184
184
|
precondition: ( ContextKeyExpr.and(ctxHasEditorModification, ( ctxIsCurrentlyBeingModified.negate()))),
|
|
185
185
|
f1: true,
|
|
186
186
|
keybinding: {
|
|
@@ -227,7 +227,7 @@ class ToggleDiffAction extends ChatEditingEditorAction {
|
|
|
227
227
|
constructor() {
|
|
228
228
|
super({
|
|
229
229
|
id: "chatEditor.action.toggleDiff",
|
|
230
|
-
title: ( localize2(
|
|
230
|
+
title: ( localize2(5333, "Toggle Diff Editor for Chat Edits")),
|
|
231
231
|
category: CHAT_CATEGORY,
|
|
232
232
|
toggled: {
|
|
233
233
|
condition: ( ContextKeyExpr.or(EditorContextKeys.inDiffEditor, ( ActiveEditorContext.isEqualTo(TEXT_DIFF_EDITOR_ID)))),
|
|
@@ -264,7 +264,7 @@ class ToggleAccessibleDiffViewAction extends ChatEditingEditorAction {
|
|
|
264
264
|
constructor() {
|
|
265
265
|
super({
|
|
266
266
|
id: "chatEditor.action.showAccessibleDiffView",
|
|
267
|
-
title: ( localize2(
|
|
267
|
+
title: ( localize2(5334, "Show Accessible Diff View for Chat Edits")),
|
|
268
268
|
f1: true,
|
|
269
269
|
precondition: ( ContextKeyExpr.and(ctxHasEditorModification, ( ctxIsCurrentlyBeingModified.negate()))),
|
|
270
270
|
keybinding: {
|
|
@@ -282,7 +282,7 @@ class ReviewChangesAction extends ChatEditingEditorAction {
|
|
|
282
282
|
constructor() {
|
|
283
283
|
super({
|
|
284
284
|
id: "chatEditor.action.reviewChanges",
|
|
285
|
-
title: ( localize2(
|
|
285
|
+
title: ( localize2(5335, "Review")),
|
|
286
286
|
precondition: ( ContextKeyExpr.and(ctxHasEditorModification, ( ctxIsCurrentlyBeingModified.negate()))),
|
|
287
287
|
menu: [{
|
|
288
288
|
id: MenuId.ChatEditingEditorContent,
|
|
@@ -303,8 +303,8 @@ class AcceptAllEditsAction extends ChatEditingEditorAction {
|
|
|
303
303
|
constructor() {
|
|
304
304
|
super({
|
|
305
305
|
id: AcceptAllEditsAction.ID,
|
|
306
|
-
title: ( localize2(
|
|
307
|
-
tooltip: ( localize2(
|
|
306
|
+
title: ( localize2(5336, "Keep All Chat Edits")),
|
|
307
|
+
tooltip: ( localize2(5337, "Keep All Chat Edits in this Session")),
|
|
308
308
|
precondition: ( ContextKeyExpr.and(ctxHasEditorModification, ( ctxIsCurrentlyBeingModified.negate()))),
|
|
309
309
|
icon: Codicon.checkAll,
|
|
310
310
|
f1: true,
|
|
@@ -323,7 +323,7 @@ class MultiDiffAcceptDiscardAction extends Action2 {
|
|
|
323
323
|
constructor(accept) {
|
|
324
324
|
super({
|
|
325
325
|
id: accept ? "chatEditing.multidiff.acceptAllFiles" : "chatEditing.multidiff.discardAllFiles",
|
|
326
|
-
title: accept ? ( localize(
|
|
326
|
+
title: accept ? ( localize(5338, "Keep All Edits")) : ( localize(5339, "Undo All Edits")),
|
|
327
327
|
icon: accept ? Codicon.check : Codicon.discard,
|
|
328
328
|
menu: {
|
|
329
329
|
when: ( ContextKeyExpr.equals("resourceScheme", CHAT_EDITING_MULTI_DIFF_SOURCE_RESOLVER_SCHEME)),
|
|
@@ -374,7 +374,7 @@ class ExplainMultiDiffAction extends Action2 {
|
|
|
374
374
|
constructor() {
|
|
375
375
|
super({
|
|
376
376
|
id: "chatEditing.multidiff.explain",
|
|
377
|
-
title: ( localize(
|
|
377
|
+
title: ( localize(5340, "Explain")),
|
|
378
378
|
menu: {
|
|
379
379
|
when: ( ContextKeyExpr.and(( ContextKeyExpr.or(...( explainMultiDiffSchemes.map(scheme => ( ContextKeyExpr.equals("resourceScheme", scheme)))))), ( ContextKeyExpr.has(`config.${ChatConfiguration.ExplainChangesEnabled}`)))),
|
|
380
380
|
id: MenuId.MultiDiffEditorContent,
|
|
@@ -520,7 +520,7 @@ function registerChatEditorActions() {
|
|
|
520
520
|
MenuRegistry.appendMenuItem(MenuId.ChatEditingEditorContent, {
|
|
521
521
|
command: {
|
|
522
522
|
id: navigationBearingFakeActionId,
|
|
523
|
-
title: ( localize(
|
|
523
|
+
title: ( localize(5341, "Navigation Status")),
|
|
524
524
|
precondition: ( ContextKeyExpr.false())
|
|
525
525
|
},
|
|
526
526
|
group: "navigate",
|
package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorOverlay.js
CHANGED
|
@@ -200,9 +200,9 @@ let ChatEditorOverlayWidget = class ChatEditorOverlayWidget extends Disposable {
|
|
|
200
200
|
} = that._navigationBearings.read(r);
|
|
201
201
|
if (changeCount > 0) {
|
|
202
202
|
const n = activeIdx === -1 ? "1" : `${activeIdx + 1}`;
|
|
203
|
-
this.label.innerText = ( localize(
|
|
203
|
+
this.label.innerText = ( localize(5349, "{0} of {1}", n, changeCount));
|
|
204
204
|
} else {
|
|
205
|
-
this.label.innerText = ( localize(
|
|
205
|
+
this.label.innerText = ( localize(5350, "—"));
|
|
206
206
|
}
|
|
207
207
|
this.updateTooltip();
|
|
208
208
|
}));
|
|
@@ -217,18 +217,18 @@ let ChatEditorOverlayWidget = class ChatEditorOverlayWidget extends Disposable {
|
|
|
217
217
|
}
|
|
218
218
|
let result;
|
|
219
219
|
if (changeCount === 1 && entriesCount === 1) {
|
|
220
|
-
result = ( localize(
|
|
220
|
+
result = ( localize(5351, "1 change in 1 file"));
|
|
221
221
|
} else if (changeCount === 1) {
|
|
222
|
-
result = ( localize(
|
|
222
|
+
result = ( localize(5352, "1 change in {0} files", entriesCount));
|
|
223
223
|
} else if (entriesCount === 1) {
|
|
224
|
-
result = ( localize(
|
|
224
|
+
result = ( localize(5353, "{0} changes in 1 file", changeCount));
|
|
225
225
|
} else {
|
|
226
|
-
result = ( localize(
|
|
226
|
+
result = ( localize(5354, "{0} changes in {1} files", changeCount, entriesCount));
|
|
227
227
|
}
|
|
228
228
|
if (!that._isBusy.get()) {
|
|
229
229
|
return result;
|
|
230
230
|
}
|
|
231
|
-
return localize(
|
|
231
|
+
return localize(5355, "{0} - Working...", result);
|
|
232
232
|
}
|
|
233
233
|
})();
|
|
234
234
|
}
|
package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingExplanationWidget.js
CHANGED
|
@@ -95,7 +95,7 @@ class ChatEditingExplanationWidget extends Disposable {
|
|
|
95
95
|
return {
|
|
96
96
|
startLineNumber: change.modified.startLineNumber,
|
|
97
97
|
endLineNumber: change.modified.endLineNumberExclusive - 1,
|
|
98
|
-
explanation: ( localize(
|
|
98
|
+
explanation: ( localize(5359, "Generating explanation...")),
|
|
99
99
|
read: false,
|
|
100
100
|
loading: true,
|
|
101
101
|
originalText,
|
|
@@ -116,7 +116,7 @@ class ChatEditingExplanationWidget extends Disposable {
|
|
|
116
116
|
this._headerNode.appendChild(this._toggleButton);
|
|
117
117
|
this._dismissButton = $("div.chat-explanation-dismiss");
|
|
118
118
|
this._dismissButton.appendChild(renderIcon(Codicon.close));
|
|
119
|
-
this._dismissButton.title = ( localize(
|
|
119
|
+
this._dismissButton.title = ( localize(5360, "Dismiss"));
|
|
120
120
|
this._headerNode.appendChild(this._dismissButton);
|
|
121
121
|
this._domNode.appendChild(this._headerNode);
|
|
122
122
|
this._bodyNode = $("div.chat-explanation-body");
|
|
@@ -178,35 +178,35 @@ class ChatEditingExplanationWidget extends Disposable {
|
|
|
178
178
|
this._readIndicator.appendChild(renderIcon(Codicon.circle));
|
|
179
179
|
this._readIndicator.classList.add("read");
|
|
180
180
|
this._readIndicator.classList.remove("partial", "unread");
|
|
181
|
-
this._readIndicator.title = ( localize(
|
|
181
|
+
this._readIndicator.title = ( localize(5361, "Mark as unread"));
|
|
182
182
|
} else if (someRead) {
|
|
183
183
|
this._readIndicator.appendChild(renderIcon(Codicon.circleFilled));
|
|
184
184
|
this._readIndicator.classList.remove("read", "unread");
|
|
185
185
|
this._readIndicator.classList.add("partial");
|
|
186
|
-
this._readIndicator.title = ( localize(
|
|
186
|
+
this._readIndicator.title = ( localize(5362, "Mark all as read"));
|
|
187
187
|
} else {
|
|
188
188
|
this._readIndicator.appendChild(renderIcon(Codicon.circleFilled));
|
|
189
189
|
this._readIndicator.classList.remove("read", "partial");
|
|
190
190
|
this._readIndicator.classList.add("unread");
|
|
191
|
-
this._readIndicator.title = ( localize(
|
|
191
|
+
this._readIndicator.title = ( localize(5363, "Mark as read"));
|
|
192
192
|
}
|
|
193
193
|
}
|
|
194
194
|
_updateTitle() {
|
|
195
195
|
const count = this._explanations.length;
|
|
196
196
|
if (count === 1) {
|
|
197
|
-
this._titleNode.textContent = ( localize(
|
|
197
|
+
this._titleNode.textContent = ( localize(5364, "1 change"));
|
|
198
198
|
} else {
|
|
199
|
-
this._titleNode.textContent = ( localize(
|
|
199
|
+
this._titleNode.textContent = ( localize(5365, "{0} changes", count));
|
|
200
200
|
}
|
|
201
201
|
}
|
|
202
202
|
_updateToggleButton() {
|
|
203
203
|
clearNode(this._toggleButton);
|
|
204
204
|
if (this._isExpanded) {
|
|
205
205
|
this._toggleButton.appendChild(renderIcon(Codicon.chevronUp));
|
|
206
|
-
this._toggleButton.title = ( localize(
|
|
206
|
+
this._toggleButton.title = ( localize(5366, "Collapse"));
|
|
207
207
|
} else {
|
|
208
208
|
this._toggleButton.appendChild(renderIcon(Codicon.chevronDown));
|
|
209
|
-
this._toggleButton.title = ( localize(
|
|
209
|
+
this._toggleButton.title = ( localize(5367, "Expand"));
|
|
210
210
|
}
|
|
211
211
|
}
|
|
212
212
|
_buildExplanationItems() {
|
|
@@ -217,9 +217,9 @@ class ChatEditingExplanationWidget extends Disposable {
|
|
|
217
217
|
const item = $("div.chat-explanation-item");
|
|
218
218
|
const lineInfo = $("span.chat-explanation-line-info");
|
|
219
219
|
if (exp.startLineNumber === exp.endLineNumber) {
|
|
220
|
-
lineInfo.textContent = ( localize(
|
|
220
|
+
lineInfo.textContent = ( localize(5368, "Line {0}", exp.startLineNumber));
|
|
221
221
|
} else {
|
|
222
|
-
lineInfo.textContent = ( localize(
|
|
222
|
+
lineInfo.textContent = ( localize(5369, "Lines {0}-{1}", exp.startLineNumber, exp.endLineNumber));
|
|
223
223
|
}
|
|
224
224
|
item.appendChild(lineInfo);
|
|
225
225
|
const text = $("span.chat-explanation-text");
|
|
@@ -238,7 +238,7 @@ class ChatEditingExplanationWidget extends Disposable {
|
|
|
238
238
|
item.appendChild(itemReadIndicator);
|
|
239
239
|
const replyButton = $("div.chat-explanation-reply-button");
|
|
240
240
|
replyButton.appendChild(renderIcon(Codicon.arrowRight));
|
|
241
|
-
replyButton.title = ( localize(
|
|
241
|
+
replyButton.title = ( localize(5370, "Follow up on this change"));
|
|
242
242
|
item.appendChild(replyButton);
|
|
243
243
|
this._eventStore.add(addDisposableListener(replyButton, "click", async e => {
|
|
244
244
|
e.stopPropagation();
|
package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessionPickerActionItem.js
CHANGED
|
@@ -141,7 +141,7 @@ let ChatSessionPickerActionItem = class ChatSessionPickerActionItem extends Acti
|
|
|
141
141
|
domChildren.push($(
|
|
142
142
|
"span.chat-session-option-label",
|
|
143
143
|
undefined,
|
|
144
|
-
this.currentOption?.name ?? group?.description ?? ( localize(
|
|
144
|
+
this.currentOption?.name ?? group?.description ?? ( localize(5507, "Pick Option"))
|
|
145
145
|
));
|
|
146
146
|
}
|
|
147
147
|
domChildren.push(...renderLabelWithIcons(`$(chevron-down)`));
|
package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessions.contribution.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ import { IChatSession, IChatSessionContentProvider, IChatSessionItem, IChatSessi
|
|
|
15
15
|
import { IChatSessionsService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatSessionsService.service";
|
|
16
16
|
import { IChatModel } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/model/chatModel";
|
|
17
17
|
import { IChatService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService/chatService.service";
|
|
18
|
+
import { Target } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/promptSyntax/service/promptsService";
|
|
18
19
|
export declare class ChatSessionsService extends Disposable implements IChatSessionsService {
|
|
19
20
|
private readonly _logService;
|
|
20
21
|
private readonly _chatAgentService;
|
|
@@ -136,7 +137,7 @@ export declare class ChatSessionsService extends Disposable implements IChatSess
|
|
|
136
137
|
* Get the customAgentTarget for a specific session type.
|
|
137
138
|
* When set, the mode picker should show filtered custom agents matching this target.
|
|
138
139
|
*/
|
|
139
|
-
getCustomAgentTargetForSessionType(chatSessionType: string):
|
|
140
|
+
getCustomAgentTargetForSessionType(chatSessionType: string): Target;
|
|
140
141
|
getContentProviderSchemes(): string[];
|
|
141
142
|
}
|
|
142
143
|
export declare enum ChatSessionPosition {
|