This commit is contained in:
Benjamin Pasero
2016-10-05 19:28:16 +02:00
parent 742fb52847
commit 61328fd66c
4 changed files with 10 additions and 6 deletions

View File

@@ -252,6 +252,10 @@ export class MainThreadDocuments extends MainThreadDocumentsShape {
if (!this._editorService.isVisible(input, true)) {
toBeDisposed.push(resource);
}
if (input) {
input.dispose();
}
});
})).then(() => {
for (let resource of toBeDisposed) {