Skip to content

Commit 32b1887

Browse files
authored
fix: clean up temp svn files when closed (#819)
1 parent 0713af3 commit 32b1887

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/temp_svn_fs.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,11 @@ class TempSvnFs implements FileSystemProvider, Disposable {
6767
this._disposables.push(
6868
workspace.registerFileSystemProvider("tempsvnfs", this, {
6969
isCaseSensitive: true
70+
}),
71+
workspace.onDidCloseTextDocument(event => {
72+
if (event.uri.scheme === "tempsvnfs") {
73+
this.delete(event.uri);
74+
}
7075
})
7176
);
7277
}

0 commit comments

Comments
 (0)