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

Avoid UI thread dependency in the constructor #10593

Merged
merged 2 commits into from
Jul 10, 2024

Conversation

AmadeusW
Copy link
Contributor

@AmadeusW AmadeusW commented Jul 8, 2024

Summary of the changes

  • The constructors of MEF parts must be free threaded
  • Get IVsTextManager4 on demand, rather than in the constructor of RazorLSPTextViewConnectionListener
  • This removes UI thread dependency, and allows Razor to be loaded asynchronously on solution restore, reducing UI delay on startup.

Fixes:
#10592

@AmadeusW AmadeusW requested a review from a team as a code owner July 8, 2024 17:35
@DustinCampbell
Copy link
Member

@AmadeusW: I'm guessing that you don't have permission to merge this into Razor. Are you ready for us to merge?

@AmadeusW
Copy link
Contributor Author

@DustinCampbell that's correct. Yes, please merge.

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.

4 participants