Why i cann't reveal Explorer files to the Editor Widget?

My pseudocode is as below:

EditorWidgetFactory.createWidget(myNavigatableWidgetOptions).then(function(editor: EditorWidget) {
FileNavigatorContribution.selectWidgetFileNode(editor);
});

Running these codes, it selects the file in the explorer, however, the selected file doesn’t open in the EditorWidget.

Please help, thx.

[original thread by AlwaysMing]

Please watch about how to create a widget: https://www.youtube.com/watch?v=T1HDIy7LfFg

You should never use factories directly, only contribute to support new kind of widgets.

Later in the talk it is clarified how to reveal or focus the widget. You should use ApplicationShell for it.