WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 79ee5ea

Browse files
committed
Uses openIssue command to open an issue from graph view
(#4746, #4765, PLG-139)
1 parent 1885ea2 commit 79ee5ea

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/webviews/plus/graph/graphWebview.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import type { GenerateChangelogCommandArgs } from '../../../commands/generateCha
1515
import type { GenerateCommitMessageCommandArgs } from '../../../commands/generateCommitMessage';
1616
import type { GenerateRebaseCommandArgs } from '../../../commands/generateRebase';
1717
import type { InspectCommandArgs } from '../../../commands/inspect';
18+
import type { OpenIssueOnRemoteCommandArgs } from '../../../commands/openIssueOnRemote';
1819
import type { OpenOnRemoteCommandArgs } from '../../../commands/openOnRemote';
1920
import type { OpenPullRequestOnRemoteCommandArgs } from '../../../commands/openPullRequestOnRemote';
2021
import type { CreatePatchCommandArgs } from '../../../commands/patches';
@@ -128,7 +129,6 @@ import { configuration } from '../../../system/-webview/configuration';
128129
import { getContext, onDidChangeContext } from '../../../system/-webview/context';
129130
import type { StorageChangeEvent } from '../../../system/-webview/storage';
130131
import { isDarkTheme, isLightTheme } from '../../../system/-webview/vscode';
131-
import { openUrl } from '../../../system/-webview/vscode/uris';
132132
import type { OpenWorkspaceLocation } from '../../../system/-webview/vscode/workspaces';
133133
import { openWorkspace } from '../../../system/-webview/vscode/workspaces';
134134
import { filterMap } from '../../../system/array';
@@ -4278,8 +4278,9 @@ export class GraphWebviewProvider implements WebviewProvider<State, State, Graph
42784278
private openIssueOnRemote(item?: GraphItemContext) {
42794279
if (isGraphItemTypedContext(item, 'issue')) {
42804280
const { url } = item.webviewItemValue;
4281-
// TODO: Add a command for this. See openPullRequestOnRemote above.
4282-
void openUrl(url);
4281+
void executeCommand<OpenIssueOnRemoteCommandArgs>('gitlens.openIssueOnRemote', {
4282+
issue: { url: url },
4283+
});
42834284
}
42844285

42854286
return Promise.resolve();

0 commit comments

Comments
 (0)