Browse Source

Fixes tooltip bold markdown formatting

main
Eric Amodio 2 years ago
parent
commit
bcbcb55b28
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      src/views/nodes/autolinkedItemNode.ts
  2. +1
    -1
      src/views/nodes/pullRequestNode.ts

+ 1
- 1
src/views/nodes/autolinkedItemNode.ts View File

@ -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'

+ 1
- 1
src/views/nodes/pullRequestNode.ts View File

@ -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

Loading…
Cancel
Save