I want add two FileNavigatorWidget in viewContainer,what should I do?

And each FileNavigatorWidget show different folder,How to do?

[original thread by oyo]


And I want to dynamic create, when I execute the command of add folder, it will show different folder in new FileNavigatorWidget

You will need to extend this widget to make widget.id customizable and then define widget factories for different widgets.


@anton-kosyakov but how to show different folder?because FileNavigator being injected as a Singleton in https://github.com/eclipse-theia/theia/issues/4385

I answered on the issue.