Bladeren bron

Adds logging for #2615

main
Eric Amodio 1 jaar geleden
bovenliggende
commit
90509a2b38
1 gewijzigde bestanden met toevoegingen van 11 en 1 verwijderingen
  1. +11
    -1
      src/git/gitProviderService.ts

+ 11
- 1
src/git/gitProviderService.ts Bestand weergeven

@ -2284,10 +2284,20 @@ export class GitProviderService implements Disposable {
return repository; return repository;
} else { } else {
const stats = await workspace.fs.stat(uri); const stats = await workspace.fs.stat(uri);
const bestPath = getBestPath(uri);
Logger.debug(
scope,
`Ensuring URI is a folder; repository=${repository?.toString()}, uri=${uri.toString(true)} stats.type=${
stats.type
}, bestPath=${bestPath}, visitedPaths.has=${this._visitedPaths.has(bestPath)}`,
);
// If the uri isn't a directory, go up one level // If the uri isn't a directory, go up one level
if ((stats.type & FileType.Directory) !== FileType.Directory) { if ((stats.type & FileType.Directory) !== FileType.Directory) {
uri = Uri.joinPath(uri, '..'); uri = Uri.joinPath(uri, '..');
if (!options?.force && this._visitedPaths.has(getBestPath(uri))) return repository;
if (!options?.force && this._visitedPaths.has(bestPath)) return repository;
} }
isDirectory = true; isDirectory = true;

Laden…
Annuleren
Opslaan