-
-
Notifications
You must be signed in to change notification settings - Fork 124
Enable your extension to run on VS Code for the web #461
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
cc @egamma |
Thank you for the PR! I 100% want to support github.dev with Peacock. I’m not sure I follow the changes. Seems like the change in package.json helps it launch in the browser, but there are also a lot of testing related changes and webpack changes/additions. Can you help me understand what those are for? |
@johnpapa no worries! There's more detailed information on Web Extensions To do this I modified your webpack config file to output another web friendly single file compilation of your extension that has the environment of To let VS Code k now your extension will work in the browser, I added a I also upgraded some of the old dependencies and I used I realized I made one error in the launch config to point to the appropriate web version. I'm fixing that now |
I am having difficulty verifying that this works. I'll reach out directly so we can set up a time to connect. |
@all-contributors please add @tanhakabir for code |
I've put up a pull request to add @tanhakabir! 🎉 |
Hey @johnpapa! 👋
I'm part of the VS Code team and we recently launched VS Code for the web with github.dev! You can read the full guide for extension authors creating and migrating extensions here: Web Extensions
In hopes to help you migrate I helped make the changes necessary to make your extensions work on the web.
The changes I made:
browser
entry point to yourpackage.json
to link to the web-friendly compiled extension.gitignore
and.vscodeignore
You can test your extension with a launch configuration or
vscode-test-web
. Learn more on the docs.