Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 623aa95

Browse files
Lets Jira and Linear links appear in commit tooltips
(#4543, #4579)
1 parent a181181 commit 623aa95

File tree

3 files changed

+1
-3
lines changed

3 files changed

+1
-3
lines changed

‎src/git/models/commit.ts‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,6 @@ export class GitCommit implements GitRevisionReference {
551551
if (this.isUncommitted) return undefined;
552552

553553
remote ??= await this.container.git.getRepositoryService(this.repoPath).remotes.getBestRemoteWithIntegration();
554-
if (remote?.provider == null) return undefined;
555554

556555
// TODO@eamodio should we cache these? Seems like we would use more memory than it's worth
557556
// async function getCore(this: GitCommit): Promise<Map<string, EnrichedAutolink> | undefined> {

‎src/hovers/hovers.ts‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,6 @@ export async function detailsMessage(
215215

216216
const cfg = configuration.get('hovers');
217217
const enhancedAutolinks =
218-
remote?.provider != null &&
219218
options?.autolinks !== false &&
220219
(options?.autolinks || cfg.autolinks.enabled) &&
221220
cfg.autolinks.enhanced &&

‎src/views/nodes/commitNode.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ export class CommitNode extends ViewRefNode<'commit', ViewsWithCommits | FileHis
269269
let enrichedAutolinks;
270270
let pr;
271271

272-
if (remote?.supportsIntegration()) {
272+
if (!remote||remote?.supportsIntegration()) {
273273
const [enrichedAutolinksResult, prResult] = await Promise.allSettled([
274274
pauseOnCancelOrTimeoutMapTuplePromise(this.commit.getEnrichedAutolinks(remote), cancellation),
275275
this.getAssociatedPullRequest(this.commit, remote),

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /