Skip to content

Conversation

@CGNonofr
Copy link
Contributor

@CGNonofr CGNonofr commented Sep 9, 2025

fix #265845

In #212163, the registerSupportedExecutions was changed so that in web mode, the function doesn't wait for all default task extensions registration before running the task, because in web mode, only the custom mode is supported.

However, when there is a remote server, the server will register the support for all task execution types, but later.

A race condition can happen, in which the tasks are parsed before the server reports the supported task executions, leading to a Warning: shell tasks are unavailable in the current environment. error.

This PR makes the registerSupportedExecutions method wait for all task supported executions in web mode when there is a remote agent.

@meganrogge
Copy link
Contributor

Thanks!

@meganrogge meganrogge added this to the September 2025 milestone Sep 9, 2025
@meganrogge meganrogge enabled auto-merge (squash) September 9, 2025 16:21
@meganrogge meganrogge merged commit 1355ffc into microsoft:main Sep 9, 2025
17 checks passed
@vs-code-engineering vs-code-engineering bot locked and limited conversation to collaborators Oct 24, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Race conditon on supported task types in web + server environment

3 participants