Procházet zdrojové kódy

Fixes #685, #789 - avoids errors in repo search

main
Eric Amodio před 5 roky
rodič
revize
18d683b9c0
2 změnil soubory, kde provedl 10 přidání a 1 odebrání
  1. +2
    -0
      CHANGELOG.md
  2. +8
    -1
      src/git/gitService.ts

+ 2
- 0
CHANGELOG.md Zobrazit soubor

@ -8,6 +8,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
### Fixed
- Fixes [#685](https://github.com/eamodio/vscode-gitlens/issues/685) - GitLens not loading for a single repository
- Fixes [#789](https://github.com/eamodio/vscode-gitlens/issues/789) - Line blame annotations not working when vscode root is home dir and .gnupg dir is inaccessible
- Fixes [#649](https://github.com/eamodio/vscode-gitlens/issues/649) - GitLens can't see the remote but git can
- Fixes [#798](https://github.com/eamodio/vscode-gitlens/issues/798) - git pull/fetch all repositories
- Fixes [#805](https://github.com/eamodio/vscode-gitlens/issues/805) - Version 9.9.1 breaks working tree comparison

+ 8
- 1
src/git/gitService.ts Zobrazit soubor

@ -369,6 +369,8 @@ export class GitService implements Disposable {
excludes: { [key: string]: boolean },
repositories: string[] = []
): Promise<string[]> {
const cc = Logger.getCorrelationContext();
return new Promise<string[]>((resolve, reject) => {
fs.readdir(root, { withFileTypes: true }, async (err, files) => {
if (err != null) {
@ -391,7 +393,12 @@ export class GitService implements Disposable {
repositories.push(paths.resolve(root, f.name));
}
else if (depth >= 0 && excludes[f.name] !== true) {
await this.repositorySearchCore(paths.resolve(root, f.name), depth, excludes, repositories);
try {
await this.repositorySearchCore(paths.resolve(root, f.name), depth, excludes, repositories);
}
catch (ex) {
Logger.error(ex, cc, 'FAILED');
}
}
}

Načítá se…
Zrušit
Uložit