浏览代码

Fixes issue where line blame fails intermittently

main
Eric Amodio 3 年前
父节点
当前提交
5fdcdcd003
共有 2 个文件被更改,包括 5 次插入2 次删除
  1. +1
    -0
      CHANGELOG.md
  2. +4
    -2
      src/git/gitService.ts

+ 1
- 0
CHANGELOG.md 查看文件

@ -25,6 +25,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
- Fixes [#1507](https://github.com/eamodio/vscode-gitlens/issues/1507) - Communicate git error instead of "unable to find git"
- Fixes [#1512](https://github.com/eamodio/vscode-gitlens/issues/1512) - Git tag command can add an extra `-m`
- Fixes [#1402](https://github.com/eamodio/vscode-gitlens/issues/1402) - File history missing commits from other branches
- Fixes an issue where the current line blame intermittently fails to appear
## [11.4.1] - 2021-04-14

+ 4
- 2
src/git/gitService.ts 查看文件

@ -3110,9 +3110,11 @@ export class GitService implements Disposable {
provider: RichRemoteProvider,
options?: { timeout?: number },
): Promise<PullRequest | undefined>;
@gate<GitService['getPullRequestForCommit']>((ref, remoteOrProvider) => {
@gate<GitService['getPullRequestForCommit']>((ref, remoteOrProvider, options) => {
const provider = GitRemote.is(remoteOrProvider) ? remoteOrProvider.provider : remoteOrProvider;
return `${ref}${provider != null ? `|${provider.id}:${provider.domain}/${provider.path}` : ''}`;
return `${ref}${provider != null ? `|${provider.id}:${provider.domain}/${provider.path}` : ''}|${
options?.timeout
}`;
})
@debug<GitService['getPullRequestForCommit']>({
args: {

正在加载...
取消
保存