12 instantiations of RazorTextChange
Microsoft.CodeAnalysis.Razor.Workspaces (12)
DocumentMapping\RazorEditService.cs (4)
147
normalizedChanges.Add(new
RazorTextChange
()
245
return new
RazorTextChange
()
270
return new
RazorTextChange
()
334
edits.Add(new
RazorTextChange
()
DocumentMapping\RazorEditService_Methods.cs (2)
69
edits.Add(new
RazorTextChange
()
111
edits.Add(new
RazorTextChange
()
DocumentMapping\RazorEditService_UsingDirectives.cs (4)
85
edits.Add(new
RazorTextChange
()
170
edits.Add(new
RazorTextChange
()
215
edits.Add(new
RazorTextChange
()
232
edits.Add(new
RazorTextChange
()
Extensions\LspExtensions_SourceText.cs (1)
49
=>
new
()
Extensions\LspExtensions_TextChange.cs (1)
13
return new
RazorTextChange
()
33 references to RazorTextChange
Microsoft.CodeAnalysis.Razor.Workspaces (31)
DocumentMapping\IRazorEditService.cs (2)
26
Task<ImmutableArray<
RazorTextChange
>> MapCSharpEditsAsync(
27
ImmutableArray<
RazorTextChange
> textChanges,
DocumentMapping\RazorEditService.cs (14)
36
public async Task<ImmutableArray<
RazorTextChange
>> MapCSharpEditsAsync(
37
ImmutableArray<
RazorTextChange
> textChanges,
45
using var edits = new PooledArrayBuilder<
RazorTextChange
>();
71
ref PooledArrayBuilder<
RazorTextChange
> edits,
108
private ImmutableArray<
RazorTextChange
> NormalizeEdits(ImmutableArray<
RazorTextChange
> changes, CancellationToken cancellationToken)
114
using var normalizedChanges = new PooledArrayBuilder<
RazorTextChange
>(changes.Length);
220
private
RazorTextChange
? TryGetMappedEdit(
222
RazorTextChange
change)
290
ref PooledArrayBuilder<
RazorTextChange
> edits,
291
ImmutableArray<
RazorTextChange
> csharpEdits,
294
out ImmutableArray<
RazorTextChange
> skippedEdits)
298
using var skipped = new PooledArrayBuilder<
RazorTextChange
>();
300
foreach (
var
csharpEdit in csharpEdits)
DocumentMapping\RazorEditService_Methods.cs (2)
25
private static void AddMethodChanges(ref PooledArrayBuilder<
RazorTextChange
> edits, RazorCodeDocument codeDocument, ImmutableArray<CSharpMethod> addedMethods, RazorFormattingOptions options)
80
private static void AddMethodsInNewCodeBlock(ref PooledArrayBuilder<
RazorTextChange
> edits, RazorCodeDocument codeDocument, ImmutableArray<CSharpMethod> methods, RazorFormattingOptions options)
DocumentMapping\RazorEditService_UsingDirectives.cs (6)
43
ref PooledArrayBuilder<
RazorTextChange
> edits,
72
ref PooledArrayBuilder<
RazorTextChange
> edits,
119
void AddNewUsingsToBlock(ref PooledArrayBuilder<
RazorTextChange
> edits, ImmutableArray<RazorUsingDirectiveSyntax> existingUsings, ImmutableArray<string> addedUsings)
178
private static void AddRemoveUsingsChanges(ref PooledArrayBuilder<
RazorTextChange
> edits, RazorCodeDocument codeDocument, ImmutableArray<string> removedUsings, CancellationToken cancellationToken)
196
ref PooledArrayBuilder<
RazorTextChange
> edits,
228
private static void AddRemoveEdit(ref PooledArrayBuilder<
RazorTextChange
> edits, RazorUsingDirectiveSyntax node, SourceText text)
Extensions\LspExtensions_SourceText.cs (2)
48
public static
RazorTextChange
GetRazorTextChange(this SourceText text, TextEdit edit)
58
public static TextEdit GetTextEdit(this SourceText text,
RazorTextChange
change)
Extensions\LspExtensions_TextChange.cs (1)
11
public static
RazorTextChange
ToRazorTextChange(this TextChange textChange)
Extensions\RazorTextChangeExtensions.cs (1)
10
public static TextChange ToTextChange(this
RazorTextChange
razorTextChange)
Protocol\DocumentMapping\RazorMapToDocumentEditsParams.cs (1)
18
public required
RazorTextChange
[] TextChanges { get; init; }
Protocol\DocumentMapping\RazorMapToDocumentEditsResponse.cs (1)
11
public required
RazorTextChange
[] TextChanges { get; init; }
Protocol\UpdateBufferRequest.cs (1)
24
public required
RazorTextChange
[] Changes { get; set; }
Microsoft.VisualStudio.LanguageServices.Razor (1)
LanguageClient\Extensions\TextChangeExtensions.cs (1)
11
public static ITextChange ToVisualStudioTextChange(this
RazorTextChange
razorTextChange)
Microsoft.VisualStudio.LanguageServices.Razor.UnitTests (1)
Cohost\Formatting\FormattingLogTest.cs (1)
85
var htmlChanges = JsonSerializer.Deserialize<
RazorTextChange
[]>(htmlChangesFile, JsonHelpers.JsonSerializerOptions);