@@ -238,14 +238,6 @@ export class ArchiveFileSystemProvider implements vscode.FileSystemProvider {
238
238
throw vscode . FileSystemError . FileNotFound ( uri ) ;
239
239
}
240
240
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
-
249
241
private async _lookupAsFile ( uri : vscode . Uri , silent : boolean ) : Promise < File > {
250
242
let entry = await this . _lookup ( uri , silent ) ;
251
243
if ( entry instanceof File ) {
@@ -254,36 +246,16 @@ export class ArchiveFileSystemProvider implements vscode.FileSystemProvider {
254
246
throw vscode . FileSystemError . FileIsADirectory ( uri ) ;
255
247
}
256
248
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
-
262
249
// file events
263
250
264
251
private _emitter = new vscode . EventEmitter < vscode . FileChangeEvent [ ] > ( ) ;
265
- private _bufferedEvents : vscode . FileChangeEvent [ ] = [ ] ;
266
- private _fireSoonHandle ?: NodeJS . Timer ;
267
252
268
253
readonly onDidChangeFile : vscode . Event < vscode . FileChangeEvent [ ] > = this . _emitter . event ;
269
254
270
255
watch ( _resource : vscode . Uri ) : vscode . Disposable {
271
256
// ignore, fires for all changes...
272
257
return new vscode . Disposable ( ( ) => { } ) ;
273
258
}
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
- }
287
259
}
288
260
289
261
/**
0 commit comments