Open zx616456607 opened 5 months ago
@zx616456607 can you give steps to reproduce?
@zx616456607 can you give steps to reproduce? Steps updated
@zx616456607 since this seems to be a problem that can only be triggered by writing code, do you have some example plugin + extension (for invoking the open handler) that shows the problem? How are you "invoking the openhandler"?
Bug Description:
When opening widget through OpenHandler in Theia, if the opening action is initiated by vscode, such as go to definition or reference function, Theia cannot open the widget. Location discovery is due to the fact that theia cannot open widget because there is a ref in the widgetOptions attribute in WidgetOpenerOptions, and an error 'Reference widget is not in the layout' is reported.
Before calling getOrCreateWidget, after deleting the ref property, you can open widget
Steps to Reproduce:
1.By using vscode api registerDefinitionProvider to implement the code to go to the definition function, package the vscode plug-in as a vsix suffix file 2.Place the vsix plug-in in the plugins directory of the Theia buleprint project and start it 3.Use theia openhandler to open an widget,widget using editorManager to create an editor, after writing code in the editor, use the right mouse button to go to the definition function, unable to open a new widget
Additional Information