Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
jrieken authored May 29, 2024
1 parent 128c499 commit 98909e2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions src/vs/workbench/contrib/chat/browser/codeBlockPart.css
Original file line number Diff line number Diff line change
Expand Up @@ -143,3 +143,7 @@
color: var(--vscode-textLink-foreground);
cursor: pointer;
}

.interactive-result-code-block.compare .message A > CODE {
color: var(--vscode-textLink-foreground);
}
5 changes: 3 additions & 2 deletions src/vs/workbench/contrib/chat/browser/codeBlockPart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
Expand Down

0 comments on commit 98909e2

Please sign in to comment.