Skip to content

Commit a717b9e

Browse files
Fixes repo deep links getting stuck when using repo path
1 parent f7ee1cf commit a717b9e

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/uris/deepLinks/deepLink.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -388,6 +388,7 @@ export const deepLinkStateTransitionTable: Record<string, Record<string, DeepLin
388388
[DeepLinkServiceState.EnsureRemoteMatch]: {
389389
[DeepLinkServiceAction.DeepLinkErrored]: DeepLinkServiceState.Idle,
390390
[DeepLinkServiceAction.DeepLinkCancelled]: DeepLinkServiceState.Idle,
391+
[DeepLinkServiceAction.RemoteMatchUnneeded]: DeepLinkServiceState.GoToTarget,
391392
[DeepLinkServiceAction.RemoteMatched]: DeepLinkServiceState.GoToTarget,
392393
},
393394
[DeepLinkServiceState.GoToTarget]: {

src/uris/deepLinks/deepLinkService.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -192,9 +192,8 @@ export class DeepLinkService implements Disposable {
192192
repoPath: string | undefined,
193193
remoteUrl: string | undefined,
194194
repoId: string | undefined,
195-
isPending?: boolean,
196195
): Promise<void> {
197-
if (repoPath != null && isPending) {
196+
if (repoPath != null) {
198197
const repoOpenUri = maybeUri(repoPath) ? Uri.parse(repoPath) : repoPath;
199198
try {
200199
const openRepo = await this.container.git.getOrOpenRepository(repoOpenUri, { detectNested: false });
@@ -263,7 +262,6 @@ export class DeepLinkService implements Disposable {
263262
this._context.repoPath,
264263
this._context.remoteUrl,
265264
this._context.mainId,
266-
true,
267265
);
268266

269267
const action = this.getServiceActionFromPendingContext();

0 commit comments

Comments
 (0)