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 as a web extension? #298

Open
whilp opened this issue Nov 20, 2021 · 3 comments
Open

Enable as a web extension? #298

whilp opened this issue Nov 20, 2021 · 3 comments

Comments

@whilp
Copy link
Sponsor

whilp commented Nov 20, 2021

It would be amazing to view and edit data files without a heavy installation. I imagine some of the dependencies here would make it hard to fully enable this extension for the web. But perhaps a useful subset could still be exposed?

https://code.visualstudio.com/api/extension-guides/web-extensions

@RandomFractals
Copy link
Owner

RandomFractals commented Nov 20, 2021

yeah, this extension is grossly out of date, and updating it to work with new https://vscode.dev in a browser might require some elbow grease.

I am starting to work on a simpler tabular data viewer next week and will consider making it work in a browser too:

https://github.com/RandomFractals/tabular-data-viewer

@christian-bromann
Copy link

@RandomFractals I just went through this exercise in Marquee. Maybe this helps to get some inspirations. Main tasks were:

  • create additional webpack bundle
  • replace fs with vscode.workspace.fs where ever possible (and if not use if (globalThis.process) { ... } to exclude the code from the web extension bundle)
  • load webview template via vscode.workspace.fs or bundle it with your extension

@RandomFractals
Copy link
Owner

RandomFractals commented Feb 15, 2022

@christian-bromann yes, I am familiar with the steps. I might do it eventually in this or the new tabular data viewer extension. I still think the number of devs using it in a web editor is a much smaller audience, and there are other simpler extensions that show data grids in the new web editor version.

Btw, your Marquee dash is really cool! I played with it a bit and liked it a lot. Probably the first dash for vscode devs that I actually enjoyed using and exploring the code behind.

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