diff --git a/src/vs/workbench/api/common/extHostFileSystemConsumer.ts b/src/vs/workbench/api/common/extHostFileSystemConsumer.ts index cc8805a700b..6d750ef77a5 100644 --- a/src/vs/workbench/api/common/extHostFileSystemConsumer.ts +++ b/src/vs/workbench/api/common/extHostFileSystemConsumer.ts @@ -80,7 +80,8 @@ export class ExtHostConsumerFileSystem { await that._proxy.$ensureActivation(uri.scheme); return (await provider.readFile(uri)).slice(); // safe-copy } else { - return that._proxy.$readFile(uri).then(buff => buff.buffer); + const buff = await that._proxy.$readFile(uri); + return buff.buffer; } } catch (err) { return ExtHostConsumerFileSystem._handleError(err);