Ver código fonte

Call closeFile during deleteFile in docmanager package. Closes #2865.

Cheryl Quah 7 anos atrás
pai
commit
bc1bc4fd70
1 arquivos alterados com 3 adições e 0 exclusões
  1. 3 0
      packages/docmanager/src/manager.ts

+ 3 - 0
packages/docmanager/src/manager.ts

@@ -230,6 +230,9 @@ class DocumentManager implements IDisposable {
   deleteFile(path: string): Promise<void> {
     return this.services.sessions.stopIfNeeded(path).then(() => {
       return this.services.contents.delete(path);
+    })
+    .then(() => {
+      return this.closeFile(path);
     });
   }