Skip to content

Commit 12d5490

Browse files
committed
Adds debug logging to the git fs provider
1 parent 1ce035f commit 12d5490

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/git/fsProvider.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import {
1515
import { DocumentSchemes } from '../constants';
1616
import { Container } from '../container';
1717
import { GitService, GitTree, GitUri } from '../git/gitService';
18-
import { Iterables, Strings, TernarySearchTree } from '../system';
18+
import { debug, Iterables, Strings, TernarySearchTree } from '../system';
1919

2020
const emptyArray = new Uint8Array(0);
2121

@@ -60,6 +60,7 @@ export class GitFileSystemProvider implements FileSystemProvider, Disposable {
6060
throw FileSystemError.NoPermissions;
6161
}
6262

63+
@debug()
6364
async readDirectory(uri: Uri): Promise<[string, FileType][]> {
6465
const { path, ref, repoPath } = fromGitLensFSUri(uri);
6566

@@ -75,6 +76,7 @@ export class GitFileSystemProvider implements FileSystemProvider, Disposable {
7576
return items;
7677
}
7778

79+
@debug()
7880
async readFile(uri: Uri): Promise<Uint8Array> {
7981
const { path, ref, repoPath } = fromGitLensFSUri(uri);
8082

@@ -90,6 +92,7 @@ export class GitFileSystemProvider implements FileSystemProvider, Disposable {
9092
throw FileSystemError.NoPermissions;
9193
}
9294

95+
@debug()
9396
async stat(uri: Uri): Promise<FileStat> {
9497
const { path, ref, repoPath } = fromGitLensFSUri(uri);
9598

0 commit comments

Comments
 (0)