vscode-markdown-preview-enhanced icon indicating copy to clipboard operation
vscode-markdown-preview-enhanced copied to clipboard

Support VS Code for the Web

Open kingreatwill opened this issue 3 years ago • 3 comments

The 'Markdown All in One' extension is not available in Visual Studio Code for the Web.

https://vscode.dev/

kingreatwill avatar Nov 09 '21 09:11 kingreatwill

:wave: 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 vscode-markdown-preview-enhanced 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 the extension and I see you have a node dependency on the path. Ideally, you should be able to use vscode fs apis as a replacement. I am not sure what other node dependencies you might have?

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!

isidorn avatar Nov 25 '21 10:11 isidorn

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

bamurtaugh avatar Mar 09 '22 00:03 bamurtaugh

Hi guys. Sorry for the late reply. The markdown-preview-enhanced package heavily depends on the mume npm package. However, the mume package uses lots of npm packages and some other dependencies (such as plantuml.jar) that can only run on a local machine. So I would assume in order the migrate markdown-preview-enhanced to the web, we will need to get mume to run on/for web first. And this process will take a while.
Thanks!

shd101wyy avatar Mar 21 '22 11:03 shd101wyy

image

The MPE for VSCode Web is coming soon :tada:

shd101wyy avatar Sep 04 '23 03:09 shd101wyy

Hi @bamurtaugh . May I ask how to publish both extensions for web and native at the same time?
Should I just run vsce publish and that command will publish both? Thank you!

shd101wyy avatar Sep 04 '23 03:09 shd101wyy

Great news, thanks for letting us know! Just running vsce publish should work - users won't need to see 2 different versions of the extension, they should just be able to install the appropriate version for their current platform. Please let us know if you have any trouble!

bamurtaugh avatar Sep 05 '23 01:09 bamurtaugh

Thank you for the help @bamurtaugh !

shd101wyy avatar Sep 05 '23 01:09 shd101wyy

MPE now supports VSCode for the Web :tada:

shd101wyy avatar Sep 05 '23 13:09 shd101wyy

Awesome! Thanks a lot 👏 🎉

isidorn avatar Sep 18 '23 09:09 isidorn