Theia: Question: It's possible to add custom panel to theia debug extension?

Created on 5 Mar 2020  路  1Comment  路  Source: eclipse-theia/theia

Hello,
There is some way to add panel to @theia/debug widget (like in my image)

Thanks in advance.
Capture

debug question

Most helpful comment

Yes, you should be able to grab debug view container and call addWidget on it via custom Theia extension. With a vscode extension you can declare that your view should belong to debug view container.

That's how it is implemented in the plugin system: https://github.com/eclipse-theia/theia/blob/3d5e4f98d2bc6a370b8db726568e6feecb93d20a/packages/plugin-ext/src/main/browser/view/plugin-view-registry.ts#L124-L127

Basically whenever the debug view is created it injects a new view into it. The same done on the startup in the case if the debug widget was already created:

https://github.com/eclipse-theia/theia/blob/3d5e4f98d2bc6a370b8db726568e6feecb93d20a/packages/plugin-ext/src/main/browser/view/plugin-view-registry.ts#L447-L451

>All comments

Yes, you should be able to grab debug view container and call addWidget on it via custom Theia extension. With a vscode extension you can declare that your view should belong to debug view container.

That's how it is implemented in the plugin system: https://github.com/eclipse-theia/theia/blob/3d5e4f98d2bc6a370b8db726568e6feecb93d20a/packages/plugin-ext/src/main/browser/view/plugin-view-registry.ts#L124-L127

Basically whenever the debug view is created it injects a new view into it. The same done on the startup in the case if the debug widget was already created:

https://github.com/eclipse-theia/theia/blob/3d5e4f98d2bc6a370b8db726568e6feecb93d20a/packages/plugin-ext/src/main/browser/view/plugin-view-registry.ts#L447-L451

Was this page helpful?
0 / 5 - 0 ratings