Переглянути джерело

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

main
Eric Amodio 5 роки тому
джерело
коміт
18d683b9c0
2 змінених файлів з 10 додано та 1 видалено
  1. +2
    -0
      CHANGELOG.md
  2. +8
    -1
      src/git/gitService.ts

+ 2
- 0
CHANGELOG.md Переглянути файл

@ -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 Переглянути файл

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

Завантаження…
Відмінити
Зберегти