-
Notifications
You must be signed in to change notification settings - Fork 32
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Bug description
- Version of the vssdk-analyzers: 17.11.13-preview
- Analyzer rule: VSTHRD010
- Error (exception message, type, and callstack where applicable):
To Reproduce
private JoinableTaskContext joinableTaskContext;
public int Invoke(IVsInvokablePrivate pInvokable)
{
try
{
return this.joinableTaskContext.Factory.Run(async delegate
{
await this.joinableTaskContext.Factory.SwitchToMainThreadAsync();
return pInvokable.Invoke(); // Fires
});
}
catch (Exception ex)
{
return Marshal.GetHRForException(ex);
}
}Expected behavior
Should not fire
Screenshots
Analyzer outputs warning
Additional context
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working