VsixCommunity / Community.VisualStudio.Toolkit

Making it easier to write Visual Studio extensions
Other
256 stars 44 forks source link

Fixed some compiler warnings #353

Closed reduckted closed 2 years ago

reduckted commented 2 years ago

I noticed a few compiler warnings.

Notifications\RatingPrompt.cs(137,21): warning VSTHRD010: Accessing "Community.VisualStudio.Toolkit.InfoBar.TryGetWpfElement" should only be done on the main thread. Await JoinableTaskFactory.SwitchToMainThreadAsync() first.

Notifications\RatingPrompt.cs(148,21): warning VSTHRD010: Accessing "Community.VisualStudio.Toolkit.InfoBar.Close" should only be done on the main thread. Await JoinableTaskFactory.SwitchToMainThreadAsync() first.

Windows\WindowFrame.cs(236,20): warning VSTHRD010: Accessing "IVsWindowFrame" should only be done on the main thread. Await JoinableTaskFactory.SwitchToMainThreadAsync() first.

MEF\TokenOutliningTaggerBase.cs(60,40): warning CS8602: Dereference of a possibly null reference.
madskristensen commented 2 years ago

Thanks