Skip to content

Commit eb2e533

Browse files
committed
Fix build
1 parent a6cb941 commit eb2e533

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/Razor/test/Microsoft.AspNetCore.Razor.LanguageServer.Test/Formatting_NetFx/TestHtmlFormatter.cs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,20 @@
66
using System.Threading;
77
using System.Threading.Tasks;
88
using Microsoft.AspNetCore.Razor.ProjectSystem;
9-
using Microsoft.AspNetCore.Razor.Threading;
109
using Microsoft.CodeAnalysis.Text;
1110
using Microsoft.VisualStudio.LanguageServer.Protocol;
1211

1312
namespace Microsoft.AspNetCore.Razor.LanguageServer.Formatting;
1413

1514
internal class TestHtmlFormatter : IHtmlFormatter
1615
{
17-
public Task<ImmutableArray<TextChange>> GetDocumentFormattingEditsAsync(IDocumentSnapshot documentSnapshot, Uri uri, FormattingOptions options, CancellationToken cancellationToken)
16+
public Task<ImmutableArray<TextChange>?> GetDocumentFormattingEditsAsync(IDocumentSnapshot documentSnapshot, Uri uri, FormattingOptions options, CancellationToken cancellationToken)
1817
{
19-
return SpecializedTasks.EmptyImmutableArray<TextChange>();
18+
return Task.FromResult<ImmutableArray<TextChange>?>([]);
2019
}
2120

22-
public Task<ImmutableArray<TextChange>> GetOnTypeFormattingEditsAsync(IDocumentSnapshot documentSnapshot, Uri uri, Position position, string triggerCharacter, FormattingOptions options, CancellationToken cancellationToken)
21+
public Task<ImmutableArray<TextChange>?> GetOnTypeFormattingEditsAsync(IDocumentSnapshot documentSnapshot, Uri uri, Position position, string triggerCharacter, FormattingOptions options, CancellationToken cancellationToken)
2322
{
24-
return SpecializedTasks.EmptyImmutableArray<TextChange>();
23+
return Task.FromResult<ImmutableArray<TextChange>?>([]);
2524
}
2625
}

0 commit comments

Comments
 (0)