Skip to content
Merged
Changes from all commits
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 @@ -32,7 +32,7 @@ namespace Microsoft.VisualStudio.ProjectSystem.LanguageServices;
[Export(typeof(IWorkspaceWriter))]
[Export(ExportContractNames.Scopes.UnconfiguredProject, typeof(IProjectDynamicLoadComponent))]
[AppliesTo(ProjectCapability.DotNetLanguageService)]
internal sealed class LanguageServiceHost : OnceInitializedOnceDisposedUnderLockAsync, IProjectDynamicLoadComponent, IWorkspaceWriter
internal sealed class LanguageServiceHost : OnceInitializedOnceDisposedAsync, IProjectDynamicLoadComponent, IWorkspaceWriter
{
private readonly TaskCompletionSource _firstPrimaryWorkspaceSet = new();

Expand Down Expand Up @@ -130,7 +130,7 @@ protected override async Task InitializeCoreAsync(CancellationToken cancellation
// We track per-slice data via this source.
_activeConfigurationGroupSubscriptionService.SourceBlock.SyncLinkOptions(),
target: DataflowBlockFactory.CreateActionBlock<IProjectVersionedValue<(ConfiguredProject ActiveConfiguredProject, ConfigurationSubscriptionSources Sources)>>(
async update => await ExecuteUnderLockAsync(cancellationToken => OnSlicesChanged(update, cancellationToken)),
update => OnSlicesChanged(update, cancellationToken),
_unconfiguredProject,
ProjectFaultSeverity.LimitedFunctionality),
linkOptions: DataflowOption.PropagateCompletion,
Expand Down Expand Up @@ -344,7 +344,7 @@ public async Task AfterLoadInitialConfigurationAsync()
_projectFaultHandler.Forget(result, _unconfiguredProject, ProjectFaultSeverity.LimitedFunctionality);
}

protected override Task DisposeCoreUnderLockAsync(bool initialized)
protected override Task DisposeCoreAsync(bool initialized)
{
_firstPrimaryWorkspaceSet.TrySetCanceled();

Expand Down