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

Be able disable task detection from tasks.json or override tasks execution #73748

Open
IlyaBiryukov opened this issue May 14, 2019 · 1 comment
Assignees
Labels
feature-request Request for new features or functionality tasks Task system issues
Milestone

Comments

@IlyaBiryukov
Copy link

IlyaBiryukov commented May 14, 2019

Currently VSCode uses tasks.json to detect the tasks. If there is a FileSystemProvider registered, it will use it to read tasks.json. The problem with that is the tasks may not make sense if they come from something else other than file:/.../.vscode/tasks.json. E.g. if the file system provider is of a remote kind (like fetching files from sftp or Live Share), tasks from tasks.json most likely won't work locally.

To deal with this scenario, VSCode may provide different options:

  1. An ability to override task execution for any tasks from tasks.json. This work may be merged into TaskProvider: resolveTask() never gets called #33523. VSCode should pass along the URI of the original tasks.json to the extension code that overrides the task execution.
  2. An ability to disable tasks detection from tasks.json based on the file scheme. This will be a new API. Alternatively, you can make VSCode respect tasks.json only from file: scheme and let the extensions opt in other schemes if they so chose.
@jamesharris-garmin
Copy link

jamesharris-garmin commented Aug 7, 2019

@IlyaBiryukov, @alexr00 Do we have a path forward on this? it really breaks the ability to write tasks that are usable across platforms if we don't have the workspaceFolder properly defined.

@alexr00 alexr00 assigned meganrogge and unassigned alexr00 Jun 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request Request for new features or functionality tasks Task system issues
Projects
None yet
Development

No branches or pull requests

4 participants