I would like to add a new webview tab in the editor area. Can anyone suggest a way
to create webview and add it to editor view from an extension ? Should i use the plugin api theia.window.createWebViewPanel() ? A sample code would be very helpful.
For example, if anyone can help to call a plugin api method like theia.window.showInformationMessage(‘hello’); from an extension, i think i should be able call createWebViewPanel. Thanks in advance.
shortly your extension is responsible for creating webviews and you always have references to all of them, on which you can check whether user closed them or not, which titles they have
theia plugin can add webview using : theia.window.createWebviewPanel
theia extension adds webview using vscode interface shown in the example that you provided: vscode.window.createWebviewPanel
The parameters for the above two methods are different. Using vscode.window.createWebviewPanel(), I could not figure out a way to add webviews to Right Top and Bottom portions of theia.
In an extension, can I use theia.window instead of vscode.window apis?
In an extension, can I use theia.window instead of vscode.window apis? Another question is are there any examples that demonstrates theia.window in an extension?
Thank you, @artem-z . But the above links demonstrate how a plugin can use theia.window interface, i believe. I would like to use theia.window from an extension.