Skip to content
Merged
Show file tree
Hide file tree
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
42 changes: 21 additions & 21 deletions eng/Version.Details.props
Original file line number Diff line number Diff line change
Expand Up @@ -6,27 +6,27 @@ This file should be imported by eng/Versions.props
<Project>
<PropertyGroup>
<!-- dotnet/roslyn dependencies -->
<MicrosoftCodeAnalysisAnalyzersPackageVersion>5.3.0-1.25530.6</MicrosoftCodeAnalysisAnalyzersPackageVersion>
<MicrosoftCodeAnalysisCommonPackageVersion>5.3.0-1.25530.6</MicrosoftCodeAnalysisCommonPackageVersion>
<MicrosoftCodeAnalysisCSharpPackageVersion>5.3.0-1.25530.6</MicrosoftCodeAnalysisCSharpPackageVersion>
<MicrosoftCodeAnalysisCSharpEditorFeaturesPackageVersion>5.3.0-1.25530.6</MicrosoftCodeAnalysisCSharpEditorFeaturesPackageVersion>
<MicrosoftCodeAnalysisCSharpFeaturesPackageVersion>5.3.0-1.25530.6</MicrosoftCodeAnalysisCSharpFeaturesPackageVersion>
<MicrosoftCodeAnalysisCSharpWorkspacesPackageVersion>5.3.0-1.25530.6</MicrosoftCodeAnalysisCSharpWorkspacesPackageVersion>
<MicrosoftCodeAnalysisEditorFeaturesPackageVersion>5.3.0-1.25530.6</MicrosoftCodeAnalysisEditorFeaturesPackageVersion>
<MicrosoftCodeAnalysisEditorFeaturesCommonPackageVersion>5.3.0-1.25530.6</MicrosoftCodeAnalysisEditorFeaturesCommonPackageVersion>
<MicrosoftCodeAnalysisEditorFeaturesTextPackageVersion>5.3.0-1.25530.6</MicrosoftCodeAnalysisEditorFeaturesTextPackageVersion>
<MicrosoftCodeAnalysisExternalAccessFSharpPackageVersion>5.3.0-1.25530.6</MicrosoftCodeAnalysisExternalAccessFSharpPackageVersion>
<MicrosoftCodeAnalysisExternalAccessRazorEditorFeaturesPackageVersion>5.3.0-1.25530.6</MicrosoftCodeAnalysisExternalAccessRazorEditorFeaturesPackageVersion>
<MicrosoftCodeAnalysisExternalAccessRazorFeaturesPackageVersion>5.3.0-1.25530.6</MicrosoftCodeAnalysisExternalAccessRazorFeaturesPackageVersion>
<MicrosoftCodeAnalysisLanguageServerProtocolPackageVersion>5.3.0-1.25530.6</MicrosoftCodeAnalysisLanguageServerProtocolPackageVersion>
<MicrosoftCodeAnalysisRemoteServiceHubPackageVersion>5.3.0-1.25530.6</MicrosoftCodeAnalysisRemoteServiceHubPackageVersion>
<MicrosoftCodeAnalysisTestUtilitiesPackageVersion>5.3.0-1.25530.6</MicrosoftCodeAnalysisTestUtilitiesPackageVersion>
<MicrosoftCodeAnalysisVisualBasicWorkspacesPackageVersion>5.3.0-1.25530.6</MicrosoftCodeAnalysisVisualBasicWorkspacesPackageVersion>
<MicrosoftCodeAnalysisWorkspacesCommonPackageVersion>5.3.0-1.25530.6</MicrosoftCodeAnalysisWorkspacesCommonPackageVersion>
<MicrosoftCodeAnalysisWorkspacesMSBuildPackageVersion>5.3.0-1.25530.6</MicrosoftCodeAnalysisWorkspacesMSBuildPackageVersion>
<MicrosoftCommonLanguageServerProtocolFrameworkPackageVersion>5.3.0-1.25530.6</MicrosoftCommonLanguageServerProtocolFrameworkPackageVersion>
<MicrosoftNetCompilersToolsetPackageVersion>5.3.0-1.25530.6</MicrosoftNetCompilersToolsetPackageVersion>
<MicrosoftVisualStudioLanguageServicesPackageVersion>5.3.0-1.25530.6</MicrosoftVisualStudioLanguageServicesPackageVersion>
<MicrosoftCodeAnalysisAnalyzersPackageVersion>5.3.0-2.25555.17</MicrosoftCodeAnalysisAnalyzersPackageVersion>
<MicrosoftCodeAnalysisCommonPackageVersion>5.3.0-2.25555.17</MicrosoftCodeAnalysisCommonPackageVersion>
<MicrosoftCodeAnalysisCSharpPackageVersion>5.3.0-2.25555.17</MicrosoftCodeAnalysisCSharpPackageVersion>
<MicrosoftCodeAnalysisCSharpEditorFeaturesPackageVersion>5.3.0-2.25555.17</MicrosoftCodeAnalysisCSharpEditorFeaturesPackageVersion>
<MicrosoftCodeAnalysisCSharpFeaturesPackageVersion>5.3.0-2.25555.17</MicrosoftCodeAnalysisCSharpFeaturesPackageVersion>
<MicrosoftCodeAnalysisCSharpWorkspacesPackageVersion>5.3.0-2.25555.17</MicrosoftCodeAnalysisCSharpWorkspacesPackageVersion>
<MicrosoftCodeAnalysisEditorFeaturesPackageVersion>5.3.0-2.25555.17</MicrosoftCodeAnalysisEditorFeaturesPackageVersion>
<MicrosoftCodeAnalysisEditorFeaturesCommonPackageVersion>5.3.0-2.25555.17</MicrosoftCodeAnalysisEditorFeaturesCommonPackageVersion>
<MicrosoftCodeAnalysisEditorFeaturesTextPackageVersion>5.3.0-2.25555.17</MicrosoftCodeAnalysisEditorFeaturesTextPackageVersion>
<MicrosoftCodeAnalysisExternalAccessFSharpPackageVersion>5.3.0-2.25555.17</MicrosoftCodeAnalysisExternalAccessFSharpPackageVersion>
<MicrosoftCodeAnalysisExternalAccessRazorEditorFeaturesPackageVersion>5.3.0-2.25555.17</MicrosoftCodeAnalysisExternalAccessRazorEditorFeaturesPackageVersion>
<MicrosoftCodeAnalysisExternalAccessRazorFeaturesPackageVersion>5.3.0-2.25555.17</MicrosoftCodeAnalysisExternalAccessRazorFeaturesPackageVersion>
<MicrosoftCodeAnalysisLanguageServerProtocolPackageVersion>5.3.0-2.25555.17</MicrosoftCodeAnalysisLanguageServerProtocolPackageVersion>
<MicrosoftCodeAnalysisRemoteServiceHubPackageVersion>5.3.0-2.25555.17</MicrosoftCodeAnalysisRemoteServiceHubPackageVersion>
<MicrosoftCodeAnalysisTestUtilitiesPackageVersion>5.3.0-2.25555.17</MicrosoftCodeAnalysisTestUtilitiesPackageVersion>
<MicrosoftCodeAnalysisVisualBasicWorkspacesPackageVersion>5.3.0-2.25555.17</MicrosoftCodeAnalysisVisualBasicWorkspacesPackageVersion>
<MicrosoftCodeAnalysisWorkspacesCommonPackageVersion>5.3.0-2.25555.17</MicrosoftCodeAnalysisWorkspacesCommonPackageVersion>
<MicrosoftCodeAnalysisWorkspacesMSBuildPackageVersion>5.3.0-2.25555.17</MicrosoftCodeAnalysisWorkspacesMSBuildPackageVersion>
<MicrosoftCommonLanguageServerProtocolFrameworkPackageVersion>5.3.0-2.25555.17</MicrosoftCommonLanguageServerProtocolFrameworkPackageVersion>
<MicrosoftNetCompilersToolsetPackageVersion>5.3.0-2.25555.17</MicrosoftNetCompilersToolsetPackageVersion>
<MicrosoftVisualStudioLanguageServicesPackageVersion>5.3.0-2.25555.17</MicrosoftVisualStudioLanguageServicesPackageVersion>
<!-- dotnet/arcade dependencies -->
<MicrosoftDotNetArcadeSdkPackageVersion>9.0.0-beta.25515.2</MicrosoftDotNetArcadeSdkPackageVersion>
<!-- dotnet/aspnetcore dependencies -->
Expand Down
84 changes: 42 additions & 42 deletions eng/Version.Details.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,89 +2,89 @@
<Dependencies>
<Source Uri="https://github.com/dotnet/dotnet" Mapping="razor" Sha="1bdc5cdcf4cf408e00aa3c60f58520083bf2474f" BarId="287856" />
<ProductDependencies>
<Dependency Name="Microsoft.Net.Compilers.Toolset" Version="5.3.0-1.25530.6">
<Dependency Name="Microsoft.Net.Compilers.Toolset" Version="5.3.0-2.25555.17">
<Uri>https://github.com/dotnet/roslyn</Uri>
<Sha>d9459428c3065525eeb740fa8cd7ce6b83c8b550</Sha>
<Sha>b9d497daa87f8c902c451b0d960eaf70dfcda2ef</Sha>
</Dependency>
<Dependency Name="Microsoft.CommonLanguageServerProtocol.Framework" Version="5.3.0-1.25530.6">
<Dependency Name="Microsoft.CommonLanguageServerProtocol.Framework" Version="5.3.0-2.25555.17">
<Uri>https://github.com/dotnet/roslyn</Uri>
<Sha>d9459428c3065525eeb740fa8cd7ce6b83c8b550</Sha>
<Sha>b9d497daa87f8c902c451b0d960eaf70dfcda2ef</Sha>
</Dependency>
<Dependency Name="Microsoft.CodeAnalysis.Common" Version="5.3.0-1.25530.6">
<Dependency Name="Microsoft.CodeAnalysis.Common" Version="5.3.0-2.25555.17">
<Uri>https://github.com/dotnet/roslyn</Uri>
<Sha>d9459428c3065525eeb740fa8cd7ce6b83c8b550</Sha>
<Sha>b9d497daa87f8c902c451b0d960eaf70dfcda2ef</Sha>
</Dependency>
<Dependency Name="Microsoft.CodeAnalysis.CSharp" Version="5.3.0-1.25530.6">
<Dependency Name="Microsoft.CodeAnalysis.CSharp" Version="5.3.0-2.25555.17">
<Uri>https://github.com/dotnet/roslyn</Uri>
<Sha>d9459428c3065525eeb740fa8cd7ce6b83c8b550</Sha>
<Sha>b9d497daa87f8c902c451b0d960eaf70dfcda2ef</Sha>
</Dependency>
<Dependency Name="Microsoft.CodeAnalysis.CSharp.EditorFeatures" Version="5.3.0-1.25530.6">
<Dependency Name="Microsoft.CodeAnalysis.CSharp.EditorFeatures" Version="5.3.0-2.25555.17">
<Uri>https://github.com/dotnet/roslyn</Uri>
<Sha>d9459428c3065525eeb740fa8cd7ce6b83c8b550</Sha>
<Sha>b9d497daa87f8c902c451b0d960eaf70dfcda2ef</Sha>
</Dependency>
<Dependency Name="Microsoft.CodeAnalysis.CSharp.Features" Version="5.3.0-1.25530.6">
<Dependency Name="Microsoft.CodeAnalysis.CSharp.Features" Version="5.3.0-2.25555.17">
<Uri>https://github.com/dotnet/roslyn</Uri>
<Sha>d9459428c3065525eeb740fa8cd7ce6b83c8b550</Sha>
<Sha>b9d497daa87f8c902c451b0d960eaf70dfcda2ef</Sha>
</Dependency>
<Dependency Name="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="5.3.0-1.25530.6">
<Dependency Name="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="5.3.0-2.25555.17">
<Uri>https://github.com/dotnet/roslyn</Uri>
<Sha>d9459428c3065525eeb740fa8cd7ce6b83c8b550</Sha>
<Sha>b9d497daa87f8c902c451b0d960eaf70dfcda2ef</Sha>
</Dependency>
<Dependency Name="Microsoft.CodeAnalysis.EditorFeatures" Version="5.3.0-1.25530.6">
<Dependency Name="Microsoft.CodeAnalysis.EditorFeatures" Version="5.3.0-2.25555.17">
<Uri>https://github.com/dotnet/roslyn</Uri>
<Sha>d9459428c3065525eeb740fa8cd7ce6b83c8b550</Sha>
<Sha>b9d497daa87f8c902c451b0d960eaf70dfcda2ef</Sha>
</Dependency>
<Dependency Name="Microsoft.CodeAnalysis.EditorFeatures.Common" Version="5.3.0-1.25530.6">
<Dependency Name="Microsoft.CodeAnalysis.EditorFeatures.Common" Version="5.3.0-2.25555.17">
<Uri>https://github.com/dotnet/roslyn</Uri>
<Sha>d9459428c3065525eeb740fa8cd7ce6b83c8b550</Sha>
<Sha>b9d497daa87f8c902c451b0d960eaf70dfcda2ef</Sha>
</Dependency>
<Dependency Name="Microsoft.CodeAnalysis.EditorFeatures.Text" Version="5.3.0-1.25530.6">
<Dependency Name="Microsoft.CodeAnalysis.EditorFeatures.Text" Version="5.3.0-2.25555.17">
<Uri>https://github.com/dotnet/roslyn</Uri>
<Sha>d9459428c3065525eeb740fa8cd7ce6b83c8b550</Sha>
<Sha>b9d497daa87f8c902c451b0d960eaf70dfcda2ef</Sha>
</Dependency>
<Dependency Name="Microsoft.CodeAnalysis.Remote.ServiceHub" Version="5.3.0-1.25530.6">
<Dependency Name="Microsoft.CodeAnalysis.Remote.ServiceHub" Version="5.3.0-2.25555.17">
<Uri>https://github.com/dotnet/roslyn</Uri>
<Sha>d9459428c3065525eeb740fa8cd7ce6b83c8b550</Sha>
<Sha>b9d497daa87f8c902c451b0d960eaf70dfcda2ef</Sha>
</Dependency>
<Dependency Name="Microsoft.CodeAnalysis.VisualBasic.Workspaces" Version="5.3.0-1.25530.6">
<Dependency Name="Microsoft.CodeAnalysis.VisualBasic.Workspaces" Version="5.3.0-2.25555.17">
<Uri>https://github.com/dotnet/roslyn</Uri>
<Sha>d9459428c3065525eeb740fa8cd7ce6b83c8b550</Sha>
<Sha>b9d497daa87f8c902c451b0d960eaf70dfcda2ef</Sha>
</Dependency>
<Dependency Name="Microsoft.CodeAnalysis.Workspaces.Common" Version="5.3.0-1.25530.6">
<Dependency Name="Microsoft.CodeAnalysis.Workspaces.Common" Version="5.3.0-2.25555.17">
<Uri>https://github.com/dotnet/roslyn</Uri>
<Sha>d9459428c3065525eeb740fa8cd7ce6b83c8b550</Sha>
<Sha>b9d497daa87f8c902c451b0d960eaf70dfcda2ef</Sha>
</Dependency>
<Dependency Name="Microsoft.CodeAnalysis.Workspaces.MSBuild" Version="5.3.0-1.25530.6">
<Dependency Name="Microsoft.CodeAnalysis.Workspaces.MSBuild" Version="5.3.0-2.25555.17">
<Uri>https://github.com/dotnet/roslyn</Uri>
<Sha>d9459428c3065525eeb740fa8cd7ce6b83c8b550</Sha>
<Sha>b9d497daa87f8c902c451b0d960eaf70dfcda2ef</Sha>
</Dependency>
<Dependency Name="Microsoft.VisualStudio.LanguageServices" Version="5.3.0-1.25530.6">
<Dependency Name="Microsoft.VisualStudio.LanguageServices" Version="5.3.0-2.25555.17">
<Uri>https://github.com/dotnet/roslyn</Uri>
<Sha>d9459428c3065525eeb740fa8cd7ce6b83c8b550</Sha>
<Sha>b9d497daa87f8c902c451b0d960eaf70dfcda2ef</Sha>
</Dependency>
<Dependency Name="Microsoft.CodeAnalysis.Test.Utilities" Version="5.3.0-1.25530.6">
<Dependency Name="Microsoft.CodeAnalysis.Test.Utilities" Version="5.3.0-2.25555.17">
<Uri>https://github.com/dotnet/roslyn</Uri>
<Sha>d9459428c3065525eeb740fa8cd7ce6b83c8b550</Sha>
<Sha>b9d497daa87f8c902c451b0d960eaf70dfcda2ef</Sha>
</Dependency>
<Dependency Name="Microsoft.CodeAnalysis.ExternalAccess.Razor.Features" Version="5.3.0-1.25530.6">
<Dependency Name="Microsoft.CodeAnalysis.ExternalAccess.Razor.Features" Version="5.3.0-2.25555.17">
<Uri>https://github.com/dotnet/roslyn</Uri>
<Sha>d9459428c3065525eeb740fa8cd7ce6b83c8b550</Sha>
<Sha>b9d497daa87f8c902c451b0d960eaf70dfcda2ef</Sha>
</Dependency>
<Dependency Name="Microsoft.CodeAnalysis.ExternalAccess.Razor.EditorFeatures" Version="5.3.0-1.25530.6">
<Dependency Name="Microsoft.CodeAnalysis.ExternalAccess.Razor.EditorFeatures" Version="5.3.0-2.25555.17">
<Uri>https://github.com/dotnet/roslyn</Uri>
<Sha>d9459428c3065525eeb740fa8cd7ce6b83c8b550</Sha>
<Sha>b9d497daa87f8c902c451b0d960eaf70dfcda2ef</Sha>
</Dependency>
<Dependency Name="Microsoft.CodeAnalysis.LanguageServer.Protocol" Version="5.3.0-1.25530.6">
<Dependency Name="Microsoft.CodeAnalysis.LanguageServer.Protocol" Version="5.3.0-2.25555.17">
<Uri>https://github.com/dotnet/roslyn</Uri>
<Sha>d9459428c3065525eeb740fa8cd7ce6b83c8b550</Sha>
<Sha>b9d497daa87f8c902c451b0d960eaf70dfcda2ef</Sha>
</Dependency>
<Dependency Name="Microsoft.CodeAnalysis.ExternalAccess.FSharp" Version="5.3.0-1.25530.6">
<Dependency Name="Microsoft.CodeAnalysis.ExternalAccess.FSharp" Version="5.3.0-2.25555.17">
<Uri>https://github.com/dotnet/roslyn</Uri>
<Sha>d9459428c3065525eeb740fa8cd7ce6b83c8b550</Sha>
<Sha>b9d497daa87f8c902c451b0d960eaf70dfcda2ef</Sha>
</Dependency>
<Dependency Name="Microsoft.CodeAnalysis.Analyzers" Version="5.3.0-1.25530.6">
<Dependency Name="Microsoft.CodeAnalysis.Analyzers" Version="5.3.0-2.25555.17">
<Uri>https://github.com/dotnet/roslyn</Uri>
<Sha>d9459428c3065525eeb740fa8cd7ce6b83c8b550</Sha>
<Sha>b9d497daa87f8c902c451b0d960eaf70dfcda2ef</Sha>
</Dependency>
</ProductDependencies>
<ToolsetDependencies>
Expand Down
1 change: 1 addition & 0 deletions eng/targets/Services.props
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,6 @@
<ServiceHubService Include="Microsoft.VisualStudio.Razor.SpanMapping" ClassName="Microsoft.CodeAnalysis.Remote.Razor.RemoteSpanMappingService+Factory" />
<ServiceHubService Include="Microsoft.VisualStudio.Razor.CodeLens" ClassName="Microsoft.CodeAnalysis.Remote.Razor.RemoteCodeLensService+Factory" />
<ServiceHubService Include="Microsoft.VisualStudio.Razor.DevTools" ClassName="Microsoft.CodeAnalysis.Remote.Razor.RemoteDevToolsService+Factory" />
<ServiceHubService Include="Microsoft.VisualStudio.Razor.DataTipRange" ClassName="Microsoft.CodeAnalysis.Remote.Razor.RemoteDataTipRangeService+Factory" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.

using System.Threading;
using System.Threading.Tasks;
using Microsoft.CodeAnalysis.ExternalAccess.Razor;

namespace Microsoft.CodeAnalysis.Razor.Remote;

internal interface IRemoteDataTipRangeService : IRemoteJsonService
{
ValueTask<RemoteResponse<VSInternalDataTip?>> GetDataTipRangeAsync(
JsonSerializableRazorPinnedSolutionInfoWrapper solutionInfo,
JsonSerializableDocumentId razorDocumentId,
Position position,
CancellationToken cancellationToken);
}

Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ internal static class RazorServices
(typeof(IRemoteFindAllReferencesService), null),
(typeof(IRemoteMEFInitializationService), null),
(typeof(IRemoteCodeLensService), null),
(typeof(IRemoteDataTipRangeService), null),
];

private const string ComponentName = "Razor";
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.

using System.Threading;
using System.Threading.Tasks;
using Microsoft.CodeAnalysis.ExternalAccess.Razor;
using Microsoft.CodeAnalysis.Razor.DocumentMapping;
using Microsoft.CodeAnalysis.Razor.Remote;
using Microsoft.CodeAnalysis.Remote.Razor.ProjectSystem;
using Microsoft.CodeAnalysis.Text;
using static Microsoft.CodeAnalysis.Razor.Remote.RemoteResponse<Roslyn.LanguageServer.Protocol.VSInternalDataTip?>;

namespace Microsoft.CodeAnalysis.Remote.Razor;

internal sealed class RemoteDataTipRangeService(in ServiceArgs args) : RazorDocumentServiceBase(in args), IRemoteDataTipRangeService
{
internal sealed class Factory : FactoryBase<IRemoteDataTipRangeService>
{
protected override IRemoteDataTipRangeService CreateService(in ServiceArgs args)
=> new RemoteDataTipRangeService(in args);
}

private readonly IDocumentMappingService _documentMappingService = args.ExportProvider.GetExportedValue<IDocumentMappingService>();

public ValueTask<RemoteResponse<VSInternalDataTip?>> GetDataTipRangeAsync(
JsonSerializableRazorPinnedSolutionInfoWrapper solutionInfo,
JsonSerializableDocumentId documentId,
Position position,
CancellationToken cancellationToken)
{
return RunServiceAsync(
solutionInfo,
documentId,
context => GetDataTipRangeAsync(context, position, cancellationToken),
cancellationToken);
}

private async ValueTask<RemoteResponse<VSInternalDataTip?>> GetDataTipRangeAsync(
RemoteDocumentContext context,
Position position,
CancellationToken cancellationToken)
{
var codeDocument = await context.GetCodeDocumentAsync(cancellationToken).ConfigureAwait(false);
var razorIndex = codeDocument.Source.Text.GetRequiredAbsoluteIndex(position);
var csharpDocument = codeDocument.GetRequiredCSharpDocument();

if (!_documentMappingService.TryMapToCSharpDocumentPosition(csharpDocument, razorIndex, out var csharpPosition, out _))
{
return NoFurtherHandling;
}

var generatedDocument = await context.Snapshot.GetGeneratedDocumentAsync(cancellationToken).ConfigureAwait(false);

var csharpResult = await ExternalAccess.Razor.Cohost.Handlers.DataTipRange.GetDataTipRangeAsync(generatedDocument, csharpPosition, cancellationToken).ConfigureAwait(false);
if (csharpResult?.ExpressionRange is null)
{
return NoFurtherHandling;
}

if (!DocumentMappingService.TryMapToRazorDocumentRange(csharpDocument, csharpResult.HoverRange, out var razorHoverRange)
|| !DocumentMappingService.TryMapToRazorDocumentRange(csharpDocument, csharpResult.ExpressionRange, out var razorExpressionRange))
{
return NoFurtherHandling;
}

var razorResult = new VSInternalDataTip()
{
HoverRange = razorHoverRange,
ExpressionRange = razorExpressionRange,
DataTipTags = csharpResult.DataTipTags,
};

return Results(razorResult);
}
}
Loading