Skip to content

Commit

Permalink
Adds debug logging to the git fs provider
Browse files Browse the repository at this point in the history
  • Loading branch information
eamodio committed Nov 5, 2019
1 parent 1ce035f commit 12d5490
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/git/fsProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {
import { DocumentSchemes } from '../constants';
import { Container } from '../container';
import { GitService, GitTree, GitUri } from '../git/gitService';
import { Iterables, Strings, TernarySearchTree } from '../system';
import { debug, Iterables, Strings, TernarySearchTree } from '../system';

const emptyArray = new Uint8Array(0);

Expand Down Expand Up @@ -60,6 +60,7 @@ export class GitFileSystemProvider implements FileSystemProvider, Disposable {
throw FileSystemError.NoPermissions;
}

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

Expand All @@ -75,6 +76,7 @@ export class GitFileSystemProvider implements FileSystemProvider, Disposable {
return items;
}

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

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

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

Expand Down

0 comments on commit 12d5490

Please sign in to comment.