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

Support VS Code for the Web

Open AndreaPi opened this issue 3 years ago • 13 comments

Proposal

Visual Studio Code for the Web is the web-based editor that powers github.dev.

Being compatible with it can help the Markdown editing experience on GitHub in web browser.

image

References

AndreaPi avatar Aug 14 '21 18:08 AndreaPi

Duplicate of #948

Lemmingh avatar Aug 15 '21 02:08 Lemmingh

I've enabled the virtual workspaces support although some features may not work as expected.

People who are interested can install the dev build. https://code.visualstudio.com/api/advanced-topics/remote-extensions#installing-a-development-version-of-your-extension

yzhang-gh avatar Aug 15 '21 04:08 yzhang-gh

Too many modules depend on sync fs, while VS Code's fs is async. That's the major problem.

Lemmingh avatar Aug 15 '21 04:08 Lemmingh

According to a recently published authoring guide, there is much more to do than just supporting Virtual Workspaces.

Lemmingh avatar Sep 03 '21 06:09 Lemmingh

Hi, VS Code PM here 👋

Yeah, we would love to have vscode-markdown available on the web if that is possible. 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

@yzhang-gh 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 22 '21 17:11 isidorn

Thanks for reaching out.

I am willing to make this extension available for the VS Code Web. However, I won't have enough time to do this until (exactly) one month later...

yzhang-gh avatar Nov 23 '21 15:11 yzhang-gh

This is great news. In a couple of months would be great!

isidorn avatar Nov 23 '21 15:11 isidorn

I have published a fork of this extension that supports vscode web with some limitations. markdown-all-in-one-for-web

Limitations:

  • No NLS, only English.
  • No print to pdf.
  • No welcome message.

I wish this could help you.

Because of the limitations, it can not merge directly, so I am not making a PR. Also, I am not fully testing the change I made.

Btw, Thank you made this great extension. @yzhang-gh

0x-jerry avatar Dec 25 '21 09:12 0x-jerry

@0x-jerry thanks for working on this. Instead of publishing a fork can you instead open a PR to this extension. I think that would be more helpful? Thanks a lot!

isidorn avatar Jan 03 '22 13:01 isidorn

@isidorn Yes, I agree with you. But as I mentioned above, there have some limitations that need to be solved. And it needs time to solve that which I don't have recently. That is why I am not open a PR, I will try to solve those limitations and open a PR when I have time, but that may take a long time.

0x-jerry avatar Jan 04 '22 00:01 0x-jerry

Prerequisites:

Lemmingh avatar Jan 05 '22 17:01 Lemmingh

Is this still being worked on?

tuta-amb avatar Jan 15 '24 16:01 tuta-amb

Unfortunately no as it requires a relative long period of time to sort all these things out.

yzhang-gh avatar Jan 16 '24 12:01 yzhang-gh