提交 9abfea38 编写于 作者: J Jason Malinowski

Don't use DeferredState in service hub initialization

We're on the UI thread, do the proper step to initialize.
上级 28713977
......@@ -70,7 +70,7 @@ private static async Task RegisterWorkspaceHostAsync(Workspace workspace, Remote
// to UI thread to run.
await Task.Factory.SafeStartNew(() =>
{
vsWorkspace.DeferredState.ProjectTracker.RegisterWorkspaceHost(host);
vsWorkspace.GetProjectTrackerAndInitializeIfNecessary(Shell.ServiceProvider.GlobalProvider).RegisterWorkspaceHost(host);
}, CancellationToken.None, ForegroundThreadAffinitizedObject.CurrentForegroundThreadData.TaskScheduler).ConfigureAwait(false);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册