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

PMC initialize should cast DTE2 on main thread (in service locator) #4317

Merged
merged 1 commit into from
Oct 20, 2021

Conversation

zivkan
Copy link
Member

@zivkan zivkan commented Oct 19, 2021

Bug

Fixes: NuGet/Home#11320

Regression? No

Description

Request DTE2 from the service locator, rather than getting DTE and then casting on the current thread.

PR Checklist

  • PR has a meaningful title

  • PR has a linked issue.

  • Described changes

  • Tests

    • Automated tests added
    • OR
    • Test exception
      • This is a thread timing bug when something calls a NuGet API from the UI thread before VS's NuGetPackage is initialized. To me, this feels too obscure to create a test for, as there will be a very high false-negative rate, and in the case where the scenario is hit, it's difficult to cause the test to have a failed result, rather than timeout.
    • OR
    • N/A
  • Documentation

    • Documentation PR or issue filled
    • OR
    • N/A

@zivkan zivkan requested a review from a team as a code owner October 19, 2021 20:55
@zivkan
Copy link
Member Author

zivkan commented Oct 20, 2021

Bypassing merge policy, because this issue is getting attention from high up, so we need to get this in. The build failure is due to infrastructure issues, not product changes (this change doesn't even run on Mac)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants