From bcbcb55b289dd3099eefc9015d1bcedb175a18eb Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Tue, 8 Feb 2022 03:12:05 -0500 Subject: [PATCH] Fixes tooltip bold markdown formatting --- src/views/nodes/autolinkedItemNode.ts | 2 +- src/views/nodes/pullRequestNode.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/nodes/autolinkedItemNode.ts b/src/views/nodes/autolinkedItemNode.ts index f0ad5d4..823e51f 100644 --- a/src/views/nodes/autolinkedItemNode.ts +++ b/src/views/nodes/autolinkedItemNode.ts @@ -51,7 +51,7 @@ export class AutolinkedItemNode extends ViewNode { this.issue.type === IssueOrPullRequestType.PullRequest ? 'Pull Request' : 'Issue' } \\#${this.issue.id} on ${this.issue.provider.name}"`; const tooltip = new MarkdownString( - `${IssueOrPullRequest.getMarkdownIcon(this.issue)} [**${this.issue.title}**](${ + `${IssueOrPullRequest.getMarkdownIcon(this.issue)} [**${this.issue.title.trim()}**](${ this.issue.url }${linkTitle}) \\\n[#${this.issue.id}](${this.issue.url}${linkTitle}) was ${ this.issue.closed ? 'closed' : 'opened' diff --git a/src/views/nodes/pullRequestNode.ts b/src/views/nodes/pullRequestNode.ts index 572ecca..d753a2b 100644 --- a/src/views/nodes/pullRequestNode.ts +++ b/src/views/nodes/pullRequestNode.ts @@ -68,7 +68,7 @@ export class PullRequestNode extends ViewNode { const linkTitle = ` "Open Pull Request \\#${this.pullRequest.id} on ${this.pullRequest.provider.name}"`; tooltip.appendMarkdown( - `${PullRequest.getMarkdownIcon(this.pullRequest)} [**${this.pullRequest.title}**](${ + `${PullRequest.getMarkdownIcon(this.pullRequest)} [**${this.pullRequest.title.trim()}**](${ this.pullRequest.url }${linkTitle}) \\\n[#${this.pullRequest.id}](${this.pullRequest.url}${linkTitle}) by [@${ this.pullRequest.author.name