Skip to content

Commit 1619a8f

Browse files
author
Tewan
committed
Add stub for vpk provider
1 parent 94883f3 commit 1619a8f

File tree

2 files changed

+39
-2
lines changed

2 files changed

+39
-2
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/vpk-provider.ts

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
import { Disposable, Event, EventEmitter, ExtensionContext, FileChangeEvent, FileStat, FileSystemProvider, FileType, Uri, workspace } from "vscode";
2+
3+
export function init(context: ExtensionContext) {
4+
workspace.registerFileSystemProvider("vpk", new VpkFileSystemProvider())
5+
}
6+
7+
export class VpkFileSystemProvider implements FileSystemProvider {
8+
9+
private _emitter = new EventEmitter<Array<FileChangeEvent>>();
10+
onDidChangeFile: Event<FileChangeEvent[]> = this._emitter.event;
11+
12+
watch(uri: Uri, options: { recursive: boolean; excludes: string[]; }): Disposable {
13+
throw new Error("Method not implemented.");
14+
}
15+
stat(uri: Uri): FileStat | Thenable<FileStat> {
16+
throw new Error("Method not implemented.");
17+
}
18+
readDirectory(uri: Uri): [string, FileType][] | Thenable<[string, FileType][]> {
19+
throw new Error("Method not implemented.");
20+
}
21+
createDirectory(uri: Uri): void | Thenable<void> {
22+
throw new Error("Method not implemented.");
23+
}
24+
readFile(uri: Uri): Uint8Array | Thenable<Uint8Array> {
25+
throw new Error("Method not implemented.");
26+
}
27+
writeFile(uri: Uri, content: Uint8Array, options: { create: boolean; overwrite: boolean; }): void | Thenable<void> {
28+
throw new Error("Method not implemented.");
29+
}
30+
delete(uri: Uri, options: { recursive: boolean; }): void | Thenable<void> {
31+
throw new Error("Method not implemented.");
32+
}
33+
rename(oldUri: Uri, newUri: Uri, options: { overwrite: boolean; }): void | Thenable<void> {
34+
throw new Error("Method not implemented.");
35+
}
36+
37+
}

0 commit comments

Comments
 (0)