Skip to content

Commit 76ee9d5

Browse files
author
Andrew Hall
committed
Remove duplicated types
1 parent 003e335 commit 76ee9d5

File tree

6 files changed

+5
-50
lines changed

6 files changed

+5
-50
lines changed

src/Razor/src/Microsoft.VisualStudioCode.RazorExtension/Microsoft.VisualStudioCode.RazorExtension.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
<Content Include="$(PublishDir)\Microsoft.AspNetCore.Razor.Utilities.Shared.dll" Pack="true" PackagePath="content" CopyToOutputDirectory="PreserveNewest" />
4949
<Content Include="$(PublishDir)\Microsoft.CodeAnalysis.Razor.Compiler.dll" Pack="true" PackagePath="content" CopyToOutputDirectory="PreserveNewest" />
5050
<Content Include="$(PublishDir)\Microsoft.CodeAnalysis.Razor.Workspaces.dll" Pack="true" PackagePath="content" CopyToOutputDirectory="PreserveNewest" />
51-
51+
5252
<!-- We don't need to include everything in the bin folder but we do need to add localization resources for the compiler dll -->
5353
<Content Include="$(PublishDir)\cs\**\*.*" Pack="true" PackagePath="content\cs\" CopyToOutputDirectory="PreserveNewest" />
5454
<Content Include="$(PublishDir)\de\**\*.*" Pack="true" PackagePath="content\de\" CopyToOutputDirectory="PreserveNewest" />

src/Razor/src/Microsoft.VisualStudioCode.RazorExtension/Services/RazorDynamicFileUpdate.cs

Lines changed: 0 additions & 12 deletions
This file was deleted.

src/Razor/src/Microsoft.VisualStudioCode.RazorExtension/Services/RazorProvideDynamicFileResponse.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
using System.Text.Json.Serialization;
55
using Microsoft.CodeAnalysis.Text;
66
using Microsoft.VisualStudio.LanguageServer.Protocol;
7+
using Microsoft.CodeAnalysis.Razor.Protocol;
78

89
namespace Microsoft.VisualStudioCode.RazorExtension.Services;
910

@@ -12,8 +13,8 @@ internal sealed class RazorProvideDynamicFileResponse
1213
[JsonPropertyName("csharpDocument")]
1314
public required TextDocumentIdentifier CSharpDocument { get; set; }
1415

15-
[JsonPropertyName("updates")]
16-
public RazorDynamicFileUpdate[]? Updates { get; set; }
16+
[JsonPropertyName("edits")]
17+
public RazorTextChange[]? Edits { get; set; }
1718

1819
[JsonPropertyName("checksum")]
1920
public required string Checksum { get; set; }

src/Razor/src/Microsoft.VisualStudioCode.RazorExtension/Services/ServerTextChange.cs

Lines changed: 0 additions & 15 deletions
This file was deleted.

src/Razor/src/Microsoft.VisualStudioCode.RazorExtension/Services/ServerTextSpan.cs

Lines changed: 0 additions & 19 deletions
This file was deleted.

src/Razor/src/Microsoft.VisualStudioCode.RazorExtension/Services/WorkspaceService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ namespace Microsoft.VisualStudioCode.RazorExtension.Services;
1313
internal sealed class WorkspaceService(ILoggerFactory loggerFactory) : RazorWorkspaceService
1414
{
1515
private readonly ILoggerFactory _loggerFactory = loggerFactory;
16-
private readonly ILogger _logger = loggerFactory.CreateLogger<RazorWorkspaceService>();
16+
private readonly ILogger _logger = loggerFactory.CreateLogger<WorkspaceService>();
1717
private Lock _initializeLock = new();
1818
private RazorWorkspaceListener? _razorWorkspaceListener;
1919
private HashSet<ProjectId> _projectIdWithDynamicFiles = [];

0 commit comments

Comments
 (0)