From ed82d43a29df3542ba7e4a7d2181edddc19b9769 Mon Sep 17 00:00:00 2001 From: Amiram Wingarten Date: Wed, 8 Jan 2020 20:46:01 +0200 Subject: [PATCH] Fix add missing await on workspace edits file create Signed-off-by: Amiram Wingarten --- packages/monaco/src/browser/monaco-workspace.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/monaco/src/browser/monaco-workspace.ts b/packages/monaco/src/browser/monaco-workspace.ts index ef6666ddb1733..cb9d5cd8cc539 100644 --- a/packages/monaco/src/browser/monaco-workspace.ts +++ b/packages/monaco/src/browser/monaco-workspace.ts @@ -363,7 +363,7 @@ export class MonacoWorkspace implements lang.Workspace { totalFiles += 1; totalEdits += editOperations.length; } else if (CreateResourceEdit.is(edit) || DeleteResourceEdit.is(edit) || RenameResourceEdit.is(edit)) { - this.performResourceEdit(edit); + await this.performResourceEdit(edit); } else { throw new Error(`Unexpected edit type: ${JSON.stringify(edit)}`); }