Skip to content

Commit

Permalink
Add stub for vpk provider
Browse files Browse the repository at this point in the history
  • Loading branch information
Tewan committed Sep 28, 2021
1 parent fa0e75c commit 5e7d9cf
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

37 changes: 37 additions & 0 deletions src/vpk-provider.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
import { Disposable, Event, EventEmitter, ExtensionContext, FileChangeEvent, FileStat, FileSystemProvider, FileType, Uri, workspace } from "vscode";

export function init(context: ExtensionContext) {
workspace.registerFileSystemProvider("vpk", new VpkFileSystemProvider())
}

export class VpkFileSystemProvider implements FileSystemProvider {

private _emitter = new EventEmitter<Array<FileChangeEvent>>();
onDidChangeFile: Event<FileChangeEvent[]> = this._emitter.event;

watch(uri: Uri, options: { recursive: boolean; excludes: string[]; }): Disposable {
throw new Error("Method not implemented.");
}
stat(uri: Uri): FileStat | Thenable<FileStat> {
throw new Error("Method not implemented.");
}
readDirectory(uri: Uri): [string, FileType][] | Thenable<[string, FileType][]> {
throw new Error("Method not implemented.");
}
createDirectory(uri: Uri): void | Thenable<void> {
throw new Error("Method not implemented.");
}
readFile(uri: Uri): Uint8Array | Thenable<Uint8Array> {
throw new Error("Method not implemented.");
}
writeFile(uri: Uri, content: Uint8Array, options: { create: boolean; overwrite: boolean; }): void | Thenable<void> {
throw new Error("Method not implemented.");
}
delete(uri: Uri, options: { recursive: boolean; }): void | Thenable<void> {
throw new Error("Method not implemented.");
}
rename(oldUri: Uri, newUri: Uri, options: { overwrite: boolean; }): void | Thenable<void> {
throw new Error("Method not implemented.");
}

}

0 comments on commit 5e7d9cf

Please sign in to comment.