Pārlūkot izejas kodu

Adds debug logging to the git fs provider

main
Eric Amodio pirms 5 gadiem
vecāks
revīzija
12d5490d30
1 mainītis faili ar 4 papildinājumiem un 1 dzēšanām
  1. +4
    -1
      src/git/fsProvider.ts

+ 4
- 1
src/git/fsProvider.ts Parādīt failu

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

Notiek ielāde…
Atcelt
Saglabāt