Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Prepares agent for being shared between dotnet-watch and VS.
Addresses potential race condition that may occur when applying initial updates to the process. Previously the agent started listening for updates asynchronously in the startup hook. Updates that were performed before the process launched were therefore applied while the app was running. The app may have loaded and executed old code that was already updated before the app launched.
We now apply the initial set of updates synchronously, unless the debugger is attached, in which case the debugger is responsible for doing so.
Blocking for initial pipe connection also addresses potential race condition that may cause deadlock if breakpoints are placed to startup hooks and the agent is loaded by the debugger.
[TODO] Ensures that the agent's startup hook is the first one loaded by the runtime, so that no code runs before the agent applies initial updates.
[TODO] Implements static asset content updating.