-
Notifications
You must be signed in to change notification settings - Fork 39.2k
Fix terminal approval UI missing backslashes on Windows paths #309797
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -335,10 +335,19 @@ abstract class BaseChatConfirmationWidget<T> extends Disposable { | |||||||||||||||||||||||||||||||||||||
| this._domNode = elements.root; | ||||||||||||||||||||||||||||||||||||||
| this._buttonsDomNode = elements.buttons; | ||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||
| const titleMd = new MarkdownString('', { supportThemeIcons: true }); | ||||||||||||||||||||||||||||||||||||||
| if (icon) { | ||||||||||||||||||||||||||||||||||||||
| titleMd.appendMarkdown(`$(${icon.id}) `); | ||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||
| if (typeof title === 'string') { | ||||||||||||||||||||||||||||||||||||||
| titleMd.appendText(title); | ||||||||||||||||||||||||||||||||||||||
| } else { | ||||||||||||||||||||||||||||||||||||||
| titleMd.appendMarkdown(title.value); | ||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+338
to
+346
|
||||||||||||||||||||||||||||||||||||||
| const titleMd = new MarkdownString('', { supportThemeIcons: true }); | |
| if (icon) { | |
| titleMd.appendMarkdown(`$(${icon.id}) `); | |
| } | |
| if (typeof title === 'string') { | |
| titleMd.appendText(title); | |
| } else { | |
| titleMd.appendMarkdown(title.value); | |
| } | |
| const convertedTitleMd = ChatQueryTitlePart.toMdString(title); | |
| const titleMd = icon | |
| ? (() => { | |
| const prefixedTitleMd = new MarkdownString('', { supportThemeIcons: true }); | |
| prefixedTitleMd.appendMarkdown(`$(${icon.id}) `); | |
| prefixedTitleMd.appendMarkdown(convertedTitleMd.value); | |
| return prefixedTitleMd; | |
| })() | |
| : convertedTitleMd; |
Copilot
AI
Apr 14, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When title is an IMarkdownString, this constructs a brand-new MarkdownString but only copies title.value, dropping any other IMarkdownString metadata (commonly isTrusted, supportHtml, baseUri, and potentially supportThemeIcons). That can change how links/commands resolve or whether markdown is trusted. Consider initializing titleMd with options derived from the incoming title (and then force-enable theme icons to support the icon prefix), so consumer-provided markdown semantics are preserved.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When
titleis anIMarkdownString, this constructs a brand-newMarkdownStringbut only copiestitle.value, dropping any otherIMarkdownStringmetadata (commonlyisTrusted,supportHtml,baseUri, and potentiallysupportThemeIcons). That can change how links/commands resolve or whether markdown is trusted. Consider initializingtitleMdwith options derived from the incomingtitle(and then force-enable theme icons to support the icon prefix), so consumer-provided markdown semantics are preserved.