How can i use webview in the Theia extension? I am new, please help

It seems that we can use theia.window and theia.WebviewPanel in the Theia plugin, but in the extension how can i use WebviewPanel? Can i import * as theia from ‘@theia/extension’; or somehow? Please somebody help, thank you.

[original thread by PeimingMo]

webviews are VS Code invention, we port them to Theia, please consult VS Code docs: https://code.visualstudio.com/api/extension-guides/webview#webviews-api-basics If something does not work the same way please report the issue

you can also simply develop VS Code extension and then run it in Theia as a plugin