You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
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.
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.
The text was updated successfully, but these errors were encountered:
@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.
Currently VSCode uses
tasks.json
to detect the tasks. If there is aFileSystemProvider
registered, it will use it to readtasks.json
. The problem with that is the tasks may not make sense if they come from something else other thanfile:/.../.vscode/tasks.json
. E.g. if the file system provider is of a remote kind (like fetching files from sftp or Live Share), tasks fromtasks.json
most likely won't work locally.To deal with this scenario, VSCode may provide different options:
tasks.json
. This work may be merged into TaskProvider: resolveTask() never gets called #33523. VSCode should pass along the URI of the originaltasks.json
to the extension code that overrides the task execution.tasks.json
based on the file scheme. This will be a new API. Alternatively, you can make VSCode respecttasks.json
only fromfile:
scheme and let the extensions opt in other schemes if they so chose.The text was updated successfully, but these errors were encountered: