Browse Source

Adds debug logging to the git fs provider

main
Eric Amodio 5 years ago
parent
commit
12d5490d30
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      src/git/fsProvider.ts

+ 4
- 1
src/git/fsProvider.ts View File

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

Loading…
Cancel
Save