Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,17 @@ protected override async Task InitializeAsync(CancellationToken cancellationToke
Assumes.Present(_componentModel_doNotAccessDirectly);
}

protected override Task OnAfterPackageLoadedAsync(CancellationToken cancellationToken)
protected override async Task OnAfterPackageLoadedAsync(CancellationToken cancellationToken)
{
// TODO: remove, workaround for https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1985204
var globalOptions = ComponentModel.GetService<IGlobalOptionService>();
if (globalOptions.GetOption(SemanticSearchFeatureFlag.Enabled))
{
await JoinableTaskFactory.SwitchToMainThreadAsync(cancellationToken);
UIContext.FromUIContextGuid(new Guid(SemanticSearchFeatureFlag.UIContextId)).IsActive = true;
}

return base.OnAfterPackageLoadedAsync(cancellationToken);
await base.OnAfterPackageLoadedAsync(cancellationToken).ConfigureAwait(false);
}

protected async Task LoadComponentsInUIContextOnceSolutionFullyLoadedAsync(CancellationToken cancellationToken)
Expand Down
Loading