Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move completion resolve code to common layer #11156

Merged
merged 4 commits into from
Nov 11, 2024
Merged
Show file tree
Hide file tree
Changes from 2 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 @@ -4,7 +4,6 @@
using System.Collections.Generic;
using System.Collections.Immutable;
using Microsoft.AspNetCore.Razor.PooledObjects;
using Microsoft.AspNetCore.Razor.Utilities;
using Microsoft.CodeAnalysis.Razor.ProjectSystem;

namespace Microsoft.AspNetCore.Razor.LanguageServer.ProjectSystem;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
using Microsoft.CodeAnalysis.Razor.Logging;
using Microsoft.VisualStudio.LanguageServer.Protocol;

namespace Microsoft.AspNetCore.Razor.LanguageServer.Completion;
namespace Microsoft.CodeAnalysis.Razor.Completion;

internal class AggregateCompletionItemResolver
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using System.Threading.Tasks;
using Microsoft.VisualStudio.LanguageServer.Protocol;

namespace Microsoft.AspNetCore.Razor.LanguageServer.Completion;
namespace Microsoft.CodeAnalysis.Razor.Completion;

internal abstract class CompletionItemResolver
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,13 @@
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Razor.LanguageServer.ProjectSystem;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.Razor.Completion;
using Microsoft.CodeAnalysis.Razor.ProjectSystem;
using Microsoft.CodeAnalysis.Razor.Tooltip;
using Microsoft.VisualStudio.LanguageServer.Protocol;
using Microsoft.VisualStudio.Text.Adornments;

namespace Microsoft.AspNetCore.Razor.LanguageServer.Completion;
namespace Microsoft.CodeAnalysis.Razor.Completion;

internal class RazorCompletionItemResolver(IProjectSnapshotManager projectManager) : CompletionItemResolver
{
Expand Down Expand Up @@ -122,13 +120,13 @@
if (useDescriptionProperty)
{
tagHelperClassifiedTextTooltip = await ClassifiedTagHelperTooltipFactory
.TryCreateTooltipAsync(razorCompletionResolveContext.FilePath, descriptionInfo, _projectManager.GetQueryOperations(), cancellationToken)

Check failure on line 123 in src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/Completion/RazorCompletionItemResolver.cs

View check run for this annotation

Azure Pipelines / razor-tooling-ci (Build macOS release)

src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/Completion/RazorCompletionItemResolver.cs#L123

src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/Completion/RazorCompletionItemResolver.cs(123,125): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'IProjectSnapshotManager' does not contain a definition for 'GetQueryOperations' and no accessible extension method 'GetQueryOperations' accepting a first argument of type 'IProjectSnapshotManager' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 123 in src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/Completion/RazorCompletionItemResolver.cs

View check run for this annotation

Azure Pipelines / razor-tooling-ci (Build macOS release)

src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/Completion/RazorCompletionItemResolver.cs#L123

src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/Completion/RazorCompletionItemResolver.cs(123,125): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'IProjectSnapshotManager' does not contain a definition for 'GetQueryOperations' and no accessible extension method 'GetQueryOperations' accepting a first argument of type 'IProjectSnapshotManager' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 123 in src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/Completion/RazorCompletionItemResolver.cs

View check run for this annotation

Azure Pipelines / razor-tooling-ci (Build macOS release)

src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/Completion/RazorCompletionItemResolver.cs#L123

src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/Completion/RazorCompletionItemResolver.cs(123,125): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'IProjectSnapshotManager' does not contain a definition for 'GetQueryOperations' and no accessible extension method 'GetQueryOperations' accepting a first argument of type 'IProjectSnapshotManager' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 123 in src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/Completion/RazorCompletionItemResolver.cs

View check run for this annotation

Azure Pipelines / razor-tooling-ci (Build macOS debug)

src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/Completion/RazorCompletionItemResolver.cs#L123

src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/Completion/RazorCompletionItemResolver.cs(123,125): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'IProjectSnapshotManager' does not contain a definition for 'GetQueryOperations' and no accessible extension method 'GetQueryOperations' accepting a first argument of type 'IProjectSnapshotManager' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 123 in src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/Completion/RazorCompletionItemResolver.cs

View check run for this annotation

Azure Pipelines / razor-tooling-ci (Build macOS debug)

src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/Completion/RazorCompletionItemResolver.cs#L123

src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/Completion/RazorCompletionItemResolver.cs(123,125): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'IProjectSnapshotManager' does not contain a definition for 'GetQueryOperations' and no accessible extension method 'GetQueryOperations' accepting a first argument of type 'IProjectSnapshotManager' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 123 in src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/Completion/RazorCompletionItemResolver.cs

View check run for this annotation

Azure Pipelines / razor-tooling-ci (Build macOS debug)

src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/Completion/RazorCompletionItemResolver.cs#L123

src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/Completion/RazorCompletionItemResolver.cs(123,125): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'IProjectSnapshotManager' does not contain a definition for 'GetQueryOperations' and no accessible extension method 'GetQueryOperations' accepting a first argument of type 'IProjectSnapshotManager' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 123 in src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/Completion/RazorCompletionItemResolver.cs

View check run for this annotation

Azure Pipelines / razor-tooling-ci (Build Linux release)

src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/Completion/RazorCompletionItemResolver.cs#L123

src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/Completion/RazorCompletionItemResolver.cs(123,125): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'IProjectSnapshotManager' does not contain a definition for 'GetQueryOperations' and no accessible extension method 'GetQueryOperations' accepting a first argument of type 'IProjectSnapshotManager' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 123 in src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/Completion/RazorCompletionItemResolver.cs

View check run for this annotation

Azure Pipelines / razor-tooling-ci (Build Linux release)

src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/Completion/RazorCompletionItemResolver.cs#L123

src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/Completion/RazorCompletionItemResolver.cs(123,125): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'IProjectSnapshotManager' does not contain a definition for 'GetQueryOperations' and no accessible extension method 'GetQueryOperations' accepting a first argument of type 'IProjectSnapshotManager' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 123 in src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/Completion/RazorCompletionItemResolver.cs

View check run for this annotation

Azure Pipelines / razor-tooling-ci (Build Linux debug)

src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/Completion/RazorCompletionItemResolver.cs#L123

src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/Completion/RazorCompletionItemResolver.cs(123,125): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'IProjectSnapshotManager' does not contain a definition for 'GetQueryOperations' and no accessible extension method 'GetQueryOperations' accepting a first argument of type 'IProjectSnapshotManager' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 123 in src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/Completion/RazorCompletionItemResolver.cs

View check run for this annotation

Azure Pipelines / razor-tooling-ci (Build Linux debug)

src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/Completion/RazorCompletionItemResolver.cs#L123

src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/Completion/RazorCompletionItemResolver.cs(123,125): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'IProjectSnapshotManager' does not contain a definition for 'GetQueryOperations' and no accessible extension method 'GetQueryOperations' accepting a first argument of type 'IProjectSnapshotManager' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 123 in src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/Completion/RazorCompletionItemResolver.cs

View check run for this annotation

Azure Pipelines / razor-tooling-ci (Build Linux debug)

src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/Completion/RazorCompletionItemResolver.cs#L123

src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/Completion/RazorCompletionItemResolver.cs(123,125): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'IProjectSnapshotManager' does not contain a definition for 'GetQueryOperations' and no accessible extension method 'GetQueryOperations' accepting a first argument of type 'IProjectSnapshotManager' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 123 in src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/Completion/RazorCompletionItemResolver.cs

View check run for this annotation

Azure Pipelines / razor-tooling-ci

src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/Completion/RazorCompletionItemResolver.cs#L123

src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/Completion/RazorCompletionItemResolver.cs(123,125): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'IProjectSnapshotManager' does not contain a definition for 'GetQueryOperations' and no accessible extension method 'GetQueryOperations' accepting a first argument of type 'IProjectSnapshotManager' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 123 in src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/Completion/RazorCompletionItemResolver.cs

View check run for this annotation

Azure Pipelines / razor-tooling-ci

src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/Completion/RazorCompletionItemResolver.cs#L123

src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/Completion/RazorCompletionItemResolver.cs(123,125): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'IProjectSnapshotManager' does not contain a definition for 'GetQueryOperations' and no accessible extension method 'GetQueryOperations' accepting a first argument of type 'IProjectSnapshotManager' could be found (are you missing a using directive or an assembly reference?)
.ConfigureAwait(false);
}
else
{
tagHelperMarkupTooltip = await MarkupTagHelperTooltipFactory
.TryCreateTooltipAsync(razorCompletionResolveContext.FilePath, descriptionInfo, _projectManager.GetQueryOperations(), documentationKind, cancellationToken)

Check failure on line 129 in src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/Completion/RazorCompletionItemResolver.cs

View check run for this annotation

Azure Pipelines / razor-tooling-ci (Build macOS release)

src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/Completion/RazorCompletionItemResolver.cs#L129

src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/Completion/RazorCompletionItemResolver.cs(129,125): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'IProjectSnapshotManager' does not contain a definition for 'GetQueryOperations' and no accessible extension method 'GetQueryOperations' accepting a first argument of type 'IProjectSnapshotManager' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 129 in src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/Completion/RazorCompletionItemResolver.cs

View check run for this annotation

Azure Pipelines / razor-tooling-ci (Build macOS release)

src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/Completion/RazorCompletionItemResolver.cs#L129

src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/Completion/RazorCompletionItemResolver.cs(129,125): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'IProjectSnapshotManager' does not contain a definition for 'GetQueryOperations' and no accessible extension method 'GetQueryOperations' accepting a first argument of type 'IProjectSnapshotManager' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 129 in src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/Completion/RazorCompletionItemResolver.cs

View check run for this annotation

Azure Pipelines / razor-tooling-ci (Build macOS debug)

src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/Completion/RazorCompletionItemResolver.cs#L129

src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/Completion/RazorCompletionItemResolver.cs(129,125): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'IProjectSnapshotManager' does not contain a definition for 'GetQueryOperations' and no accessible extension method 'GetQueryOperations' accepting a first argument of type 'IProjectSnapshotManager' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 129 in src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/Completion/RazorCompletionItemResolver.cs

View check run for this annotation

Azure Pipelines / razor-tooling-ci (Build macOS debug)

src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/Completion/RazorCompletionItemResolver.cs#L129

src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/Completion/RazorCompletionItemResolver.cs(129,125): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'IProjectSnapshotManager' does not contain a definition for 'GetQueryOperations' and no accessible extension method 'GetQueryOperations' accepting a first argument of type 'IProjectSnapshotManager' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 129 in src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/Completion/RazorCompletionItemResolver.cs

View check run for this annotation

Azure Pipelines / razor-tooling-ci (Build Linux release)

src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/Completion/RazorCompletionItemResolver.cs#L129

src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/Completion/RazorCompletionItemResolver.cs(129,125): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'IProjectSnapshotManager' does not contain a definition for 'GetQueryOperations' and no accessible extension method 'GetQueryOperations' accepting a first argument of type 'IProjectSnapshotManager' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 129 in src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/Completion/RazorCompletionItemResolver.cs

View check run for this annotation

Azure Pipelines / razor-tooling-ci (Build Linux release)

src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/Completion/RazorCompletionItemResolver.cs#L129

src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/Completion/RazorCompletionItemResolver.cs(129,125): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'IProjectSnapshotManager' does not contain a definition for 'GetQueryOperations' and no accessible extension method 'GetQueryOperations' accepting a first argument of type 'IProjectSnapshotManager' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 129 in src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/Completion/RazorCompletionItemResolver.cs

View check run for this annotation

Azure Pipelines / razor-tooling-ci (Build Linux debug)

src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/Completion/RazorCompletionItemResolver.cs#L129

src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/Completion/RazorCompletionItemResolver.cs(129,125): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'IProjectSnapshotManager' does not contain a definition for 'GetQueryOperations' and no accessible extension method 'GetQueryOperations' accepting a first argument of type 'IProjectSnapshotManager' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 129 in src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/Completion/RazorCompletionItemResolver.cs

View check run for this annotation

Azure Pipelines / razor-tooling-ci (Build Linux debug)

src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/Completion/RazorCompletionItemResolver.cs#L129

src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/Completion/RazorCompletionItemResolver.cs(129,125): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'IProjectSnapshotManager' does not contain a definition for 'GetQueryOperations' and no accessible extension method 'GetQueryOperations' accepting a first argument of type 'IProjectSnapshotManager' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 129 in src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/Completion/RazorCompletionItemResolver.cs

View check run for this annotation

Azure Pipelines / razor-tooling-ci

src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/Completion/RazorCompletionItemResolver.cs#L129

src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/Completion/RazorCompletionItemResolver.cs(129,125): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'IProjectSnapshotManager' does not contain a definition for 'GetQueryOperations' and no accessible extension method 'GetQueryOperations' accepting a first argument of type 'IProjectSnapshotManager' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 129 in src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/Completion/RazorCompletionItemResolver.cs

View check run for this annotation

Azure Pipelines / razor-tooling-ci

src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/Completion/RazorCompletionItemResolver.cs#L129

src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/Completion/RazorCompletionItemResolver.cs(129,125): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'IProjectSnapshotManager' does not contain a definition for 'GetQueryOperations' and no accessible extension method 'GetQueryOperations' accepting a first argument of type 'IProjectSnapshotManager' could be found (are you missing a using directive or an assembly reference?)
.ConfigureAwait(false);
}

Expand Down
alexgav marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
using Microsoft.AspNetCore.Razor.ProjectSystem;
using Microsoft.AspNetCore.Razor.Test.Common;
using Microsoft.CodeAnalysis.Razor.ProjectSystem;
using Microsoft.CodeAnalysis.Razor.Workspaces.Test;
using Roslyn.Test.Utilities;
using Xunit;
using Xunit.Abstractions;
using static Microsoft.AspNetCore.Razor.Language.CommonMetadata;
using IProjectSnapshotManagerExtensions = Microsoft.CodeAnalysis.Razor.Workspaces.Test.IProjectSnapshotManagerExtensions;

namespace Microsoft.CodeAnalysis.Razor.Tooltip;

Expand All @@ -22,7 +22,7 @@ public class ProjectAvailabilityTests(ITestOutputHelper testOutput) : ToolingTes
public async Task GetProjectAvailabilityText_NoProjects_ReturnsNull()
{
var projectManager = CreateProjectSnapshotManager();
var solutionQueryOperations = projectManager.GetQueryOperations();
var solutionQueryOperations = IProjectSnapshotManagerExtensions.GetQueryOperations(projectManager);

var availability = await solutionQueryOperations.GetProjectAvailabilityTextAsync("file.razor", "MyTagHelper", DisposalToken);

Expand Down Expand Up @@ -60,7 +60,7 @@ await projectManager.UpdateAsync(updater =>
updater.DocumentAdded(hostProject.Key, hostDocument, TestMocks.CreateTextLoader(hostDocument.FilePath, text: ""));
});

var solutionQueryOperations = projectManager.GetQueryOperations();
var solutionQueryOperations = IProjectSnapshotManagerExtensions.GetQueryOperations(projectManager);

var availability = await solutionQueryOperations.GetProjectAvailabilityTextAsync(hostDocument.FilePath, tagHelperTypeName, DisposalToken);

Expand Down Expand Up @@ -109,7 +109,7 @@ await projectManager.UpdateAsync(updater =>
updater.DocumentAdded(hostProject2.Key, hostDocument, TestMocks.CreateTextLoader(hostDocument.FilePath, text: ""));
});

var solutionQueryOperations = projectManager.GetQueryOperations();
var solutionQueryOperations = IProjectSnapshotManagerExtensions.GetQueryOperations(projectManager);

var availability = await solutionQueryOperations.GetProjectAvailabilityTextAsync(hostDocument.FilePath, tagHelperTypeName, DisposalToken);

Expand Down Expand Up @@ -157,7 +157,7 @@ await projectManager.UpdateAsync(updater =>
updater.DocumentAdded(hostProject2.Key, hostDocument, TestMocks.CreateTextLoader(hostDocument.FilePath, text: ""));
});

var solutionQueryOperations = projectManager.GetQueryOperations();
var solutionQueryOperations = IProjectSnapshotManagerExtensions.GetQueryOperations(projectManager);

var availability = await solutionQueryOperations.GetProjectAvailabilityTextAsync(hostDocument.FilePath, tagHelperTypeName, DisposalToken);

Expand Down Expand Up @@ -201,7 +201,7 @@ await projectManager.UpdateAsync(updater =>
updater.DocumentAdded(hostProject2.Key, hostDocument, TestMocks.CreateTextLoader(hostDocument.FilePath, text: ""));
});

var solutionQueryOperations = projectManager.GetQueryOperations();
var solutionQueryOperations = IProjectSnapshotManagerExtensions.GetQueryOperations(projectManager);

var availability = await solutionQueryOperations.GetProjectAvailabilityTextAsync(hostDocument.FilePath, "MyTagHelper", DisposalToken);

Expand Down
Loading