Skip to content
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

Add web support #5

Merged
merged 15 commits into from
Nov 10, 2021
Merged

Add web support #5

merged 15 commits into from
Nov 10, 2021

Conversation

Hacksore
Copy link
Member

@Hacksore Hacksore commented Nov 7, 2021

Currently, this extension is not supported in the browser via https://github.dev.

image

This change aims to provide the same functionality without breaking anything 🤞.

Outstandinng issue

I can't seem to get any env vars to be passed via webpacks DefinePlugin. It's not a huge deal but means when you run it locally it won't open the test file.

Resources I used for this change:
https://github.com/microsoft/vscode-extension-samples/tree/main/helloworld-web-sample
https://code.visualstudio.com/docs/editor/vscode-web#_extensions
https://code.visualstudio.com/api/extension-guides/web-extensions
https://webpack.js.org/configuration/resolve/#resolvefallback

@Hacksore Hacksore requested a review from alex-oser November 7, 2021 15:31
@Hacksore Hacksore changed the title Add web support [WIP] Add web support Nov 7, 2021
@Hacksore Hacksore marked this pull request as draft November 7, 2021 18:51
@Hacksore Hacksore marked this pull request as ready for review November 10, 2021 01:52
@Hacksore Hacksore changed the title [WIP] Add web support Add web support Nov 10, 2021
src/extension.ts Outdated Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
Copy link
Member

@alex-oser alex-oser left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@alex-oser alex-oser merged commit a485bb1 into develop Nov 10, 2021
@alex-oser alex-oser deleted the browser-support-webpack branch November 10, 2021 02:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants