From 0a4ddd0782c79421cde23dccaf3b781ee81618e7 Mon Sep 17 00:00:00 2001 From: Johannes Date: Wed, 29 May 2024 10:55:27 +0200 Subject: [PATCH] fixes https://github.com/microsoft/vscode-copilot/issues/5908 --- src/vs/workbench/contrib/chat/browser/codeBlockPart.css | 4 ++++ src/vs/workbench/contrib/chat/browser/codeBlockPart.ts | 5 +++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/vs/workbench/contrib/chat/browser/codeBlockPart.css b/src/vs/workbench/contrib/chat/browser/codeBlockPart.css index 451220d27cdc4..279626daf8218 100644 --- a/src/vs/workbench/contrib/chat/browser/codeBlockPart.css +++ b/src/vs/workbench/contrib/chat/browser/codeBlockPart.css @@ -143,3 +143,7 @@ color: var(--vscode-textLink-foreground); cursor: pointer; } + +.interactive-result-code-block.compare .message A > CODE { + color: var(--vscode-textLink-foreground); +} diff --git a/src/vs/workbench/contrib/chat/browser/codeBlockPart.ts b/src/vs/workbench/contrib/chat/browser/codeBlockPart.ts index b3ebf986fe844..7037bb3cc7de1 100644 --- a/src/vs/workbench/contrib/chat/browser/codeBlockPart.ts +++ b/src/vs/workbench/contrib/chat/browser/codeBlockPart.ts @@ -732,11 +732,12 @@ export class CodeCompareBlockPart extends Disposable { const uriLabel = this.labelService.getUriLabel(data.edit.uri, { relative: true, noPrefix: true }); const template = data.edit.state.applied > 1 - ? localize('chat.edits.N', "Made {0} changes in [[{1}]]", data.edit.state.applied, uriLabel) - : localize('chat.edits.1', "Made 1 change in [[{0}]]", uriLabel); + ? localize('chat.edits.N', "Made {0} changes in [[``{1}``]]", data.edit.state.applied, uriLabel) + : localize('chat.edits.1', "Made 1 change in [[``{0}``]]", uriLabel); const message = renderFormattedText(template, { + renderCodeSegments: true, actionHandler: { callback: () => { this.openerService.open(data.edit.uri, { fromUserGesture: true, allowCommands: false });