Explorar el Código

Fixes issue where line blame fails intermittently

main
Eric Amodio hace 3 años
padre
commit
5fdcdcd003
Se han modificado 2 ficheros con 5 adiciones y 2 borrados
  1. +1
    -0
      CHANGELOG.md
  2. +4
    -2
      src/git/gitService.ts

+ 1
- 0
CHANGELOG.md Ver fichero

@ -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 Ver fichero

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

Cargando…
Cancelar
Guardar