One day, extension creators will have the opportunity to embed the VS Code editor in webview. It is tracked here.