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