Deploy vscode web with custom web extensions? #967
-
|
Hi I've built a vscode extension and I'd like to deploy a version of vscode for web with the extension bundled. I'm unclear about
@AlexDzhus1994 seems like you might have done this based on #839 do you have a recipe you could share? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
|
Have you looked at the |
Beta Was this translation helpful? Give feedback.
-
|
The following recipe seems to work.
|
Beta Was this translation helpful? Give feedback.
-
|
Spoke too soon. I'm struggling to figure out how to bundle additional extensions as built in extensions. Anyone got any pointers here?
|
Beta Was this translation helpful? Give feedback.
I think I figured this out there's two pieces to this.
One package your extension for web. You can follow the example e.g helloworld-web-sample. These assets will then need to be served by the server for vscode for web.
The main page "workbench.html" contains the HTML attribute
vscode-workbench-web-configurationwhich gets set to a JSON dictionary containing important configuration information. The valueis the JSON representation of an instance of IWorkbenchConstructionOptions. Notably this contains
additionalBuiltinExtensionswhich allows us to bundle in additional web extensions by setting the URIs they are being served