Ver código fonte

Adds debug logging to the git fs provider

main
Eric Amodio 5 anos atrás
pai
commit
12d5490d30
1 arquivos alterados com 4 adições e 1 exclusões
  1. +4
    -1
      src/git/fsProvider.ts

+ 4
- 1
src/git/fsProvider.ts Ver arquivo

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

Carregando…
Cancelar
Salvar