Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I include the default editor inside a webview in VSCode?

In my project I created a Webview extension for Visual Studio Code. Inside the Webview I have a text editor (currently monaco editor) and a graphical Modeler.

Now I wondered if there is any way to replace the monaco editor inside my Webview with the standard editor of Visual Studio Code. This would be extremely helpful because I would not have to worry about connecting the custom text Editor to my LSP Extensions and also have 100% the same functionalities as in the rest of Visual Studio Code.

Do You know of any way in which I could achieve this goal?

Best Regards Thomas

like image 765
Thomas Gri Avatar asked Sep 01 '25 20:09

Thomas Gri


1 Answers

The feature request you are looking forward is https://github.com/microsoft/vscode/issues/93265

It is being implemented

In VS Code Help > Interactive Playground you can have an idea of what it will look like, even if it is not exposed through the API yet.

Meanwhile, vscode-python configures the Monaco Editor to look as much as possible to the native text editor.

like image 79
Bilow Avatar answered Sep 03 '25 15:09

Bilow