Skip to content

Commit

Permalink
Instantiate the returned FileSystem object for the frontend binding
Browse files Browse the repository at this point in the history
Fixes issue #8497

Signed-off-by: Samuel HULTGREN <samuel.hultgren@st.com>
  • Loading branch information
slhultgren committed Sep 18, 2020
1 parent b43a162 commit ed540ee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

<a name="breaking_changes_1.6.0">[Breaking Changes:](#breaking_changes_1.6.0)</a>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<FileStat | undefined> {
try {
const stat = await fileService.resolve(new URI(uri), { resolveMetadata: true });
Expand Down

0 comments on commit ed540ee

Please sign in to comment.