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

Get VS Code extension available in online editors #34

Open
2 of 7 tasks
tatomyr opened this issue Jul 12, 2022 · 4 comments
Open
2 of 7 tasks

Get VS Code extension available in online editors #34

tatomyr opened this issue Jul 12, 2022 · 4 comments

Comments

@tatomyr
Copy link
Contributor

tatomyr commented Jul 12, 2022

What should we improve?

At the moment, our extension isn't working in online editors.
However, Github Codespaces is essentially a an online VS Code emulator, so it should support using our extension.

How should we improve it?

Describe alternatives you've considered

None

Additional context

See this article for more details on developing extensions for Github Codespaces.

@tatomyr tatomyr added question Further information is requested p1 Type: Enhancement labels Jul 12, 2022
@tatomyr tatomyr self-assigned this Jul 12, 2022
@tatomyr
Copy link
Contributor Author

tatomyr commented Jul 12, 2022

Here is the general info about extensions in vscode-web.

According to this guide a web extension should have "browser" field defined in package.json (alongside "main" field).
This should enable the extension in https://vscode.dev/ environment.

Here is the list of requirements to the web extension.
We already cover most of them.
However, we have to substitute process and path global variables; file system API should go through vscode.workspace.fs; use browser version of Language Server Protocol.

@tatomyr tatomyr removed the question Further information is requested label Jul 12, 2022
@tatomyr
Copy link
Contributor Author

tatomyr commented Jul 13, 2022

It appears it could be tested locally with --extensionDevelopmentKind=web flag. See more details here.

@RomanHotsiy RomanHotsiy added p2 and removed p1 labels Jul 18, 2022
@roman-sainchuk
Copy link
Contributor

Here are some details about testing web extension before publishing.

@roman-sainchuk
Copy link
Contributor

We made language server browser-compatible and moved it to separate repository

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants