Skip to content

escape backticks so they're rendered correctly #287606

Merged
meganrogge merged 1 commit intomainfrom
sleepy-penguin
Jan 13, 2026
Merged

escape backticks so they're rendered correctly #287606
meganrogge merged 1 commit intomainfrom
sleepy-penguin

Conversation

@meganrogge
Copy link
Copy Markdown
Collaborator

fixes #287593

Copilot AI review requested due to automatic review settings January 13, 2026 18:46
@meganrogge meganrogge self-assigned this Jan 13, 2026
@meganrogge meganrogge added this to the January 2026 milestone Jan 13, 2026
@meganrogge meganrogge enabled auto-merge (squash) January 13, 2026 18:47
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes an issue where backticks in localized messages were not being rendered correctly in Markdown by escaping them with backslashes. The fix ensures that task names and other placeholders wrapped in backticks are displayed as literal backticks in chat messages rather than being interpreted as markdown code delimiters.

Changes:

  • Escaped backticks in all localized strings used within MarkdownString constructors across three task tool files
  • Changed all instances of `{0}` to \`{0}\` in localize() calls for proper markdown rendering

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/runTaskTool.ts Escaped backticks in 11 localized message strings (task not found, task running, terminal messages, and confirmation dialogs)
src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/getTaskOutputTool.ts Escaped backticks in 6 localized message strings (task not found, task running, checking/checked output, terminal not found)
src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/createAndRunTaskTool.ts Escaped backticks in 2 localized message strings (task already exists messages)

@meganrogge meganrogge merged commit c3a8672 into main Jan 13, 2026
27 of 28 checks passed
@meganrogge meganrogge deleted the sleepy-penguin branch January 13, 2026 19:54
return {
invocationMessage: new MarkdownString(localize('taskExists', 'Task `{0}` already exists.', task.label)),
pastTenseMessage: new MarkdownString(localize('taskExistsPast', 'Task `{0}` already exists.', task.label)),
invocationMessage: new MarkdownString(localize('taskExists', 'Task \`{0}\` already exists.', task.label)),
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is also confusing?

Image

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah this didn't fix it, for some reason just didn't hit it when I tested this in oss.... 🤔

Seeing this in insider's

Screenshot 2026-01-14 at 11 53 02 AM

@vs-code-engineering vs-code-engineering bot locked and limited conversation to collaborators Feb 27, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

backticks not converted to markdown for task progress message

4 participants