From a685b817c5e365a5ca3635a905a214dc5114718f Mon Sep 17 00:00:00 2001 From: Chris Sienkiewicz Date: Fri, 19 Jul 2024 11:21:01 -0700 Subject: [PATCH] Add Razor EA to remote workspace --- .../Remote/ServiceHub/Host/RemoteWorkspaceManager.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Workspaces/Remote/ServiceHub/Host/RemoteWorkspaceManager.cs b/src/Workspaces/Remote/ServiceHub/Host/RemoteWorkspaceManager.cs index d4306cf90b55f..a951ede5524b2 100644 --- a/src/Workspaces/Remote/ServiceHub/Host/RemoteWorkspaceManager.cs +++ b/src/Workspaces/Remote/ServiceHub/Host/RemoteWorkspaceManager.cs @@ -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; @@ -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); /// @@ -105,7 +107,7 @@ private static RemoteWorkspace CreatePrimaryWorkspace() /// the same ). However, this is used by Pythia/Razor/UnitTesting which all /// assume they can get that solution instance and use as desired by them. /// - [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 GetSolutionAsync(ServiceBrokerClient client, Checksum solutionChecksum, CancellationToken cancellationToken) { var assetSource = new SolutionAssetSource(client);