浏览代码

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

main
Ramin Tadayon 1年前
父节点
当前提交
cc3b2ff7d6
找不到此签名对应的密钥 GPG 密钥 ID: 79D60DDE3DFB95F5
共有 1 个文件被更改,包括 16 次插入2 次删除
  1. +16
    -2
      src/uris/deepLinks/deepLinkService.ts

+ 16
- 2
src/uris/deepLinks/deepLinkService.ts 查看文件

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

正在加载...
取消
保存