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

Don't request DTE via COM since it can hang VS #50

Merged
merged 11 commits into from Aug 30, 2022
Merged

Don't request DTE via COM since it can hang VS #50

merged 11 commits into from Aug 30, 2022

Conversation

kzu
Copy link
Collaborator

@kzu kzu commented Aug 29, 2022

We were forcedly attempting to retrieve the DTE from the just-started devenv process, and this was another cause of hangs. Since the .NET injection itself doesn't depend on anything VS-specific, just do a quick warmup wait instead before just injecting the process, since the first test run will already do the VS-friendly wait for devenv to fully initialize.

@kzu kzu enabled auto-merge (rebase) August 29, 2022 19:53
We were forcedly attempting to retrieve the DTE from the just-started devenv process, and this was another cause of hangs. Since the .NET injection itself doesn't depend on anything VS-specific, just do a quick warmup wait instead before just injecting the process, since the first test run will already do the VS-friendly wait for devenv to fully initialize.

Also, successful injection should only be a zero exit code.
No need to request zombie property, already have the ShellInitialized before.
This should preserve the init wait we had, without blocking on COM object retrieval.
@kzu kzu merged commit 8687063 into main Aug 30, 2022
@kzu kzu deleted the dev/nodte branch August 30, 2022 18:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant