Pārlūkot izejas kodu

Fixes matching repo in path mapping for deep link when already open

main
Ramin Tadayon pirms 1 gada
vecāks
revīzija
cc3b2ff7d6
Šim parakstam datu bāzē netika atrasta zināma atslēga GPG atslēgas ID: 79D60DDE3DFB95F5
1 mainītis faili ar 16 papildinājumiem un 2 dzēšanām
  1. +16
    -2
      src/uris/deepLinks/deepLinkService.ts

+ 16
- 2
src/uris/deepLinks/deepLinkService.ts Parādīt failu

@ -478,8 +478,22 @@ export class DeepLinkService implements Disposable {
remoteUrl: remoteUrl,
});
if (matchingLocalRepoPaths.length > 0) {
action = DeepLinkServiceAction.RepoMatchedInLocalMapping;
break;
for (const repo of this.container.git.repositories) {
if (
matchingLocalRepoPaths.some(
p => normalizePath(repo.path.toLowerCase()) === normalizePath(p.toLowerCase()),
)
) {
this._context.repo = repo;
action = DeepLinkServiceAction.RepoMatched;
break;
}
}
if (this._context.repo == null) {
action = DeepLinkServiceAction.RepoMatchedInLocalMapping;
break;
}
}
}

Notiek ielāde…
Atcelt
Saglabāt