@@ -238,14 +238,6 @@ export class ArchiveFileSystemProvider implements vscode.FileSystemProvider {
238238 throw vscode . FileSystemError . FileNotFound ( uri ) ;
239239 }
240240
241- private async _lookupAsDirectory ( uri : vscode . Uri , silent : boolean ) : Promise < Directory > {
242- let entry = await this . _lookup ( uri , silent ) ;
243- if ( entry instanceof Directory ) {
244- return entry ;
245- }
246- throw vscode . FileSystemError . FileNotADirectory ( uri ) ;
247- }
248-
249241 private async _lookupAsFile ( uri : vscode . Uri , silent : boolean ) : Promise < File > {
250242 let entry = await this . _lookup ( uri , silent ) ;
251243 if ( entry instanceof File ) {
@@ -254,36 +246,16 @@ export class ArchiveFileSystemProvider implements vscode.FileSystemProvider {
254246 throw vscode . FileSystemError . FileIsADirectory ( uri ) ;
255247 }
256248
257- private _lookupParentDirectory ( uri : vscode . Uri ) : Promise < Directory > {
258- const dirname = uri . with ( { path : path . dirname ( uri . path ) } ) ;
259- return this . _lookupAsDirectory ( dirname , false ) ;
260- }
261-
262249 // file events
263250
264251 private _emitter = new vscode . EventEmitter < vscode . FileChangeEvent [ ] > ( ) ;
265- private _bufferedEvents : vscode . FileChangeEvent [ ] = [ ] ;
266- private _fireSoonHandle ?: NodeJS . Timer ;
267252
268253 readonly onDidChangeFile : vscode . Event < vscode . FileChangeEvent [ ] > = this . _emitter . event ;
269254
270255 watch ( _resource : vscode . Uri ) : vscode . Disposable {
271256 // ignore, fires for all changes...
272257 return new vscode . Disposable ( ( ) => { } ) ;
273258 }
274-
275- private _fireSoon ( ...events : vscode . FileChangeEvent [ ] ) : void {
276- this . _bufferedEvents . push ( ...events ) ;
277-
278- if ( this . _fireSoonHandle ) {
279- clearTimeout ( this . _fireSoonHandle ) ;
280- }
281-
282- this . _fireSoonHandle = setTimeout ( ( ) => {
283- this . _emitter . fire ( this . _bufferedEvents ) ;
284- this . _bufferedEvents . length = 0 ;
285- } , 5 ) ;
286- }
287259}
288260
289261/**
0 commit comments