We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1b6375a commit 1e57858Copy full SHA for 1e57858
packages/bp/src/core/bpfs/ghost-service.ts
@@ -423,6 +423,10 @@ export class ScopedGhostService {
423
await this.cache.invalidate(this.bufferCacheKey(fileName))
424
}
425
426
+ private async _invalidateFolder(folderName: string) {
427
+ await this.cache.invalidateStartingWith(folderName)
428
+ }
429
+
430
async invalidateFile(rootFolder: string, fileName: string): Promise<void> {
431
const filePath = this._normalizeFileName(rootFolder, fileName)
432
await this._invalidateFile(filePath)
@@ -680,6 +684,7 @@ export class ScopedGhostService {
680
684
681
685
const folderName = this._normalizeFolderName(folder)
682
686
await this.primaryDriver.deleteDir(folderName)
687
+ await this._invalidateFolder(folderName)
683
688
689
690
async directoryListing(
0 commit comments