You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Async methods should not call IVsTask.Wait() or IVsTask.GetResult() but instead should simply await the IVsTask.
The VSTHRD002 or VSTHRD103 rules, or a new one perhaps, may be the best place to raise a warning when not awaiting an IVsTask from an async method.
Note it's OK to call these synchronously blocking methods from synchronous methods, since IVsTask mitigates its own deadlocks, similar to JoinableTask.Join().
The text was updated successfully, but these errors were encountered:
This also ensures that code fixes are only offered when the (extension) method that is prescribed as an async substitute is actually available so that the code fix does not lead to a compiler error.
Fixesmicrosoft#287
Async methods should not call
IVsTask.Wait()
orIVsTask.GetResult()
but instead should simply await theIVsTask
.The VSTHRD002 or VSTHRD103 rules, or a new one perhaps, may be the best place to raise a warning when not awaiting an
IVsTask
from an async method.Note it's OK to call these synchronously blocking methods from synchronous methods, since
IVsTask
mitigates its own deadlocks, similar toJoinableTask.Join()
.The text was updated successfully, but these errors were encountered: