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

Provided tasks are not available when VSIX extension targets web #159557

Closed
thegecko opened this issue Aug 30, 2022 · 3 comments
Closed

Provided tasks are not available when VSIX extension targets web #159557

thegecko opened this issue Aug 30, 2022 · 3 comments
Assignees
Labels
confirmation-pending tasks Task system issues web Issues related to running VSCode in the web
Milestone

Comments

@thegecko
Copy link
Contributor

Does this issue occur when all extensions are disabled?:No

  • VS Code Version: VS Code Web 1.70.2
  • OS Version: Chrome (Mac OS)

Issue:

Although tasks are not currently officially supported in VS Code web, they do work for PseudoTerminal-based task providers.

However, the packaging method of the VSIX extension effects whether these work or not.

In our testing, tasks in VS Code Web work correctly when:

  • Sideloaded from localhost into vscode.dev
  • Run locally using @vscode/test-web
  • Packaged as a universal extension (without the --target flag) and published on the marketplace

However tasks do not work when the VSIX is packaged explicitly for the web using:

vsce package --target web

In this case, the tasks.json is successfully parsed without squiggles, but the following error appears when executing the task:

Screenshot 2022-08-30 at 13 22 42

I believe there is an intent to increase tasks support in VS Code Web so would be keen to see a fix for this issue.

Steps to Reproduce:

  1. Build this example extension
  2. Package it using vsce package and observe it works as expected in VSCode Web installed from the marketplace
  3. Package it using vsce package --target web and observe it does not work as expected in VSCode Web installed from the marketplace

It's not clear whether this issue is in VS Code vsce or in the marketplace/hosting, but my guess is there is something which blocks tasks when the extension is explicitly built for the web.

@meganrogge meganrogge added tasks Task system issues web Issues related to running VSCode in the web labels Aug 30, 2022
@meganrogge meganrogge added this to the Backlog milestone Sep 26, 2022
@Tyriar Tyriar added the bug Issue identified by VS Code Team member as probable bug label Dec 5, 2022
@meganrogge
Copy link
Contributor

I think this is working as expected. If an extension contributes tasks, the expectation would be that it's packaged for not only the web, as tasks are not really designed to run there.

@meganrogge meganrogge removed the bug Issue identified by VS Code Team member as probable bug label Dec 11, 2024
@meganrogge
Copy link
Contributor

I also have not seen other reports of this, so don't imagine we will get to investigating it any time soon. Thanks for the issue and for your understanding.

@thegecko
Copy link
Contributor Author

If an extension contributes tasks, the expectation would be that it's packaged for not only the web

We do package this for both the desktop and for the web.

We use this flag to create a specific package for the web which doesn't include some binaries so that the web version isn't over inflated.

@vs-code-engineering vs-code-engineering bot locked and limited conversation to collaborators Jan 25, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
confirmation-pending tasks Task system issues web Issues related to running VSCode in the web
Projects
None yet
Development

No branches or pull requests

3 participants