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

Enable css-peak extension to run on VS Code on the web #122

Open
isidorn opened this issue Nov 25, 2021 · 6 comments
Open

Enable css-peak extension to run on VS Code on the web #122

isidorn opened this issue Nov 25, 2021 · 6 comments

Comments

@isidorn
Copy link

isidorn commented Nov 25, 2021

👋 I'm Isidor, a PM from the VS Code team, and we recently announced VS Code for the Web at https://vscode.dev/, which provides a free, zero-install Microsoft Visual Studio Code experience running entirely in your browser. You can learn more here.

We'd like to ensure css-peak can run in the web, and we have a guide for enabling extensions for the web here. As a couple of highlights:

  • In VS Code for the Web, both the UI and extension host run inside the browser.
  • A web extension is structured like a regular extension, but with a different main file: it's defined by the browser property
  • Access to workspace files needs to go through the VS Code file system API accessible at vscode.workspace.fs
  • There are currently three ways to test a web extension

I checked out your extension and this might be as simple as adding a browser property to your package.json that has the same value as the main property.
Would you be open for a PR that fixes this?

Please let us know if you have questions or feedback on enabling your extension for the web - our team would love to learn from your experiences and collaborate. Thank you!

@bamurtaugh
Copy link

Hi @pranaygp! I was wondering if you might have thoughts on this? We're happy to discuss if you have any questions or feedback. Thank you!

@pranaygp
Copy link
Owner

pranaygp commented Mar 9, 2022 via email

@bamurtaugh
Copy link

Thanks for the response @pranaygp!

I checked out your extension and this might be as simple as adding a browser property to your package.json that has the same value as the main property.

@isidorn based on this, do you think we just need to add: "browser": "./dist/web/extension.js",?

@pranaygp
Copy link
Owner

pranaygp commented Jul 7, 2023

I've enabled the "browser" flag in package.json as requested @isidorn (v4.3.5). Will test to see that it works as expected

@pranaygp
Copy link
Owner

pranaygp commented Jul 7, 2023

@isidorn I'm unable to test this on vscode.dev currently because the extension has been marked as deprecated. Can you please revert that decision ASAP

@isidorn
Copy link
Author

isidorn commented Jul 7, 2023

We have reverted the deprecation of your extension. It is no longer deprecated. It might take an hour or two for this to get propagated in the UI.

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

No branches or pull requests

3 participants