Skip to content

Commit

Permalink
Add Razor EA to remote workspace (#74465)
Browse files Browse the repository at this point in the history
  • Loading branch information
chsienki authored Jul 23, 2024
1 parent b193f1f commit 2cd12e8
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
using System.Threading;
using System.Threading.Tasks;
using Microsoft.CodeAnalysis.ExternalAccess.AspNetCore.Internal.EmbeddedLanguages;
using Microsoft.CodeAnalysis.ExternalAccess.Razor;
using Microsoft.CodeAnalysis.Host.Mef;
using Microsoft.ServiceHub.Framework;
using Microsoft.VisualStudio.Composition;
Expand All @@ -25,6 +26,7 @@ internal class RemoteWorkspaceManager
MefHostServices.DefaultAssemblies
.Add(typeof(AspNetCoreEmbeddedLanguageClassifier).Assembly)
.Add(typeof(BrokeredServiceBase).Assembly)
.Add(typeof(RazorAnalyzerAssemblyResolver).Assembly)
.Add(typeof(RemoteWorkspacesResources).Assembly);

/// <summary>
Expand Down Expand Up @@ -105,7 +107,7 @@ private static RemoteWorkspace CreatePrimaryWorkspace()
/// the same <paramref name="solutionChecksum"/>). However, this is used by Pythia/Razor/UnitTesting which all
/// assume they can get that solution instance and use as desired by them.
/// </summary>
[Obsolete("Use RunServiceAsync (that is passsed a Solution) instead", error: false)]
[Obsolete("Use RunServiceAsync (that is passed a Solution) instead", error: false)]
public async ValueTask<Solution> GetSolutionAsync(ServiceBrokerClient client, Checksum solutionChecksum, CancellationToken cancellationToken)
{
var assetSource = new SolutionAssetSource(client);
Expand Down

0 comments on commit 2cd12e8

Please sign in to comment.