From 04c229be7ed3a600d52f403193300af55d5427c2 Mon Sep 17 00:00:00 2001 From: Samuel HULTGREN Date: Tue, 15 Sep 2020 19:59:33 +0200 Subject: [PATCH] Instantiate the returned FileSystem object for the frontend binding Fixes issue #8497 Signed-off-by: Samuel HULTGREN --- CHANGELOG.md | 1 + packages/filesystem/src/browser/filesystem-frontend-module.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 19c53c01c841c..f429da377be4e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ ## v1.6.0 - [core] added functionality for handling context menu for `tab-bars` without activating the shell tab-bar [#6965](https://github.com/eclipse-theia/theia/pull/6965) +- [filesystem] fixed issue for the deprecated `FileSystem` where the incorrect thing was injected [#8507](https://github.com/eclipse-theia/theia/pull/8507) [Breaking Changes:](#breaking_changes_1.6.0) diff --git a/packages/filesystem/src/browser/filesystem-frontend-module.ts b/packages/filesystem/src/browser/filesystem-frontend-module.ts index 18421a2bcc907..cc8516d077ed5 100644 --- a/packages/filesystem/src/browser/filesystem-frontend-module.ts +++ b/packages/filesystem/src/browser/filesystem-frontend-module.ts @@ -82,7 +82,7 @@ export default new ContainerModule(bind => { } throw error; }; - return class implements FileSystem { + return new class implements FileSystem { async getFileStat(uri: string): Promise { try { const stat = await fileService.resolve(new URI(uri), { resolveMetadata: true });