How to focus a customized file when it was opend

Hi, after several tries, and searched around in the theia community, I still could not fix this issue

  • I have a customized widget to open XXX.zchecker(customized WidgetOpenHandler)

what I notoced is that , when we click on a file, the tree node can auto highlight(or focus???)
but when I open the widget by openHandler(in other words not by click action ), the widget can be opened, but the tree node did not highlight??

I know I must miss something, hope can get some help!

Hi @zhoujingfighting,

I think Vince recently answered a similar question here. Does this help you? You should be able to focus the element in the navigator widget yourself this way.

@msujew thanks for your reply, I will have a try :wink: