提交 0ddfe140 编写于 作者: S Sam Harwell

Continue on captured context after switching to the main thread

上级 bf301b0f
......@@ -65,7 +65,7 @@ internal class VisualStudioActiveDocumentTracker : ForegroundThreadAffinitizedOb
{
await ThreadingContext.JoinableTaskFactory.SwitchToMainThreadAsync();
var monitorSelectionService = (IVsMonitorSelection)await asyncServiceProvider.GetServiceAsync(typeof(SVsShellMonitorSelection)).ConfigureAwait(false);
var monitorSelectionService = (IVsMonitorSelection)await asyncServiceProvider.GetServiceAsync(typeof(SVsShellMonitorSelection)).ConfigureAwait(true);
if (ErrorHandler.Succeeded(monitorSelectionService.GetCurrentElementValue((uint)VSConstants.VSSELELEMID.SEID_DocumentFrame, out var value)))
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册