diff --git a/src/hovers/hovers.ts b/src/hovers/hovers.ts index d506691..69bf90d 100644 --- a/src/hovers/hovers.ts +++ b/src/hovers/hovers.ts @@ -129,6 +129,7 @@ export namespace Hovers { message = `${diff}\n---\n\nChanges  ${previous}  ${GlyphChars.ArrowLeftRightLong}  ${current}   |   ${message}`; const markdown = new MarkdownString(message, true); + markdown.supportHtml = true; markdown.isTrusted = true; return markdown; } @@ -174,6 +175,7 @@ export namespace Hovers { }  ${current}${message == null ? '' : `   |   ${message}`}`; const markdown = new MarkdownString(message, true); + markdown.supportHtml = true; markdown.isTrusted = true; return markdown; } @@ -238,6 +240,7 @@ export namespace Hovers { }); const markdown = new MarkdownString(details, true); + markdown.supportHtml = true; markdown.isTrusted = true; return markdown; } diff --git a/src/views/nodes/branchNode.ts b/src/views/nodes/branchNode.ts index 3e02922..45a8c98 100644 --- a/src/views/nodes/branchNode.ts +++ b/src/views/nodes/branchNode.ts @@ -389,6 +389,9 @@ export class BranchNode } tooltip = new MarkdownString(tooltip, true); + tooltip.supportHtml = true; + tooltip.isTrusted = true; + if (this.branch.starred) { tooltip.appendMarkdown('\\\n$(star-full) Favorited'); } diff --git a/src/views/nodes/branchTrackingStatusNode.ts b/src/views/nodes/branchTrackingStatusNode.ts index 74e457e..95eb190 100644 --- a/src/views/nodes/branchTrackingStatusNode.ts +++ b/src/views/nodes/branchTrackingStatusNode.ts @@ -256,7 +256,12 @@ export class BranchTrackingStatusNode extends ViewNode impleme tooltip += `\n\nLast fetched ${Dates.getFormatter(new Date(lastFetched)).fromNow()}`; } item.iconPath = icon; - item.tooltip = new MarkdownString(tooltip, true); + + const markdown = new MarkdownString(tooltip, true); + markdown.supportHtml = true; + markdown.isTrusted = true; + + item.tooltip = markdown; return item; } diff --git a/src/views/nodes/commitNode.ts b/src/views/nodes/commitNode.ts index 5ae5a1a..b734dd3 100644 --- a/src/views/nodes/commitNode.ts +++ b/src/views/nodes/commitNode.ts @@ -167,6 +167,7 @@ export class CommitNode extends ViewRefNode { item.iconPath = this.status?.hasConflicts ? new ThemeIcon('warning', new ThemeColor('list.warningForeground')) : new ThemeIcon('debug-pause', new ThemeColor('list.foreground')); - item.tooltip = new MarkdownString( + + const markdown = new MarkdownString( `${`Merging ${ this.mergeStatus.incoming != null ? GitReference.toString(this.mergeStatus.incoming) : '' }into ${GitReference.toString(this.mergeStatus.current)}`}${ @@ -90,6 +91,10 @@ export class MergeStatusNode extends ViewNode { }`, true, ); + markdown.supportHtml = true; + markdown.isTrusted = true; + + item.tooltip = markdown; return item; } diff --git a/src/views/nodes/rebaseStatusNode.ts b/src/views/nodes/rebaseStatusNode.ts index 20417bc..99524b5 100644 --- a/src/views/nodes/rebaseStatusNode.ts +++ b/src/views/nodes/rebaseStatusNode.ts @@ -106,7 +106,8 @@ export class RebaseStatusNode extends ViewNode { item.iconPath = this.status?.hasConflicts ? new ThemeIcon('warning', new ThemeColor('list.warningForeground')) : new ThemeIcon('debug-pause', new ThemeColor('list.foreground')); - item.tooltip = new MarkdownString( + + const markdown = new MarkdownString( `${`Rebasing ${ this.rebaseStatus.incoming != null ? GitReference.toString(this.rebaseStatus.incoming) : '' }onto ${GitReference.toString(this.rebaseStatus.current)}`}\n\nStep ${ @@ -121,6 +122,10 @@ export class RebaseStatusNode extends ViewNode { }`, true, ); + markdown.supportHtml = true; + markdown.isTrusted = true; + + item.tooltip = markdown; return item; } diff --git a/src/views/nodes/repositoryNode.ts b/src/views/nodes/repositoryNode.ts index 1c7b247..c051f2c 100644 --- a/src/views/nodes/repositoryNode.ts +++ b/src/views/nodes/repositoryNode.ts @@ -270,7 +270,12 @@ export class RepositoryNode extends SubscribeableViewNode { dark: Container.instance.context.asAbsolutePath(`images/dark/icon-repo${iconSuffix}.svg`), light: Container.instance.context.asAbsolutePath(`images/light/icon-repo${iconSuffix}.svg`), }; - item.tooltip = new MarkdownString(tooltip, true); + + const markdown = new MarkdownString(tooltip, true); + markdown.supportHtml = true; + markdown.isTrusted = true; + + item.tooltip = markdown; return item; }