Browse Source

Fixes issue where line blame fails intermittently

main
Eric Amodio 3 years ago
parent
commit
5fdcdcd003
2 changed files with 5 additions and 2 deletions
  1. +1
    -0
      CHANGELOG.md
  2. +4
    -2
      src/git/gitService.ts

+ 1
- 0
CHANGELOG.md View File

@ -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 View File

@ -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: {

Loading…
Cancel
Save