44 references to GetTextChange
Microsoft.AspNetCore.Razor.Test.Common.Tooling (1)
AssertExtensions.cs (1)
46
text = text.WithChanges(textDocumentEdit.Edits.Select(e => text.
GetTextChange
((TextEdit)e)));
Microsoft.CodeAnalysis.Razor.Workspaces (5)
CodeActions\CSharp\CSharpCodeActionResolver.cs (1)
51
var csharpTextChanges = textDocumentEdit.Edits.SelectAsArray(e => csharpSourceText.
GetTextChange
((TextEdit)e));
CodeActions\Razor\GenerateEventHandlerCodeActionResolver.cs (1)
119
var csharpTextChanges = edits.SelectAsArray(csharpSourceText.
GetTextChange
);
Completion\Delegation\DelegatedCompletionHelper.cs (1)
401
var changes = textEdits.SelectAsArray(csharpSourceText.
GetTextChange
);
Formatting\FormattingUtilities.cs (2)
222
var changes = edits.SelectAsArray(htmlSourceText.
GetTextChange
);
234
var changes = edits.SelectAsArray(e => htmlSourceText.
GetTextChange
((TextEdit)e));
Microsoft.CodeAnalysis.Remote.Razor (4)
Completion\RemoteCompletionService.cs (1)
298
var change = generatedText.
GetTextChange
(provisionalTextEdit);
InlayHints\RemoteInlayHintService.cs (1)
101
var changes = hint.TextEdits.SelectAsArray(csharpSourceText.
GetTextChange
);
RemoveAndSortUsings\RemoteRemoveAndSortUsingsService.cs (2)
70
return textEdits.SelectAsArray(sourceText.
GetTextChange
);
90
return textEdits.SelectAsArray(codeDocument.Source.Text.
GetTextChange
);
Microsoft.VisualStudio.LanguageServices.Razor (3)
src\Razor\src\Razor\src\Microsoft.CodeAnalysis.Razor.CohostingShared\Formatting\CohostDocumentFormattingEndpoint.cs (1)
82
var htmlChanges = htmlEdits.SelectAsArray(sourceText.
GetTextChange
);
src\Razor\src\Razor\src\Microsoft.CodeAnalysis.Razor.CohostingShared\Formatting\CohostOnTypeFormattingEndpoint.cs (1)
111
htmlChanges = htmlEdits.SelectAsArray(sourceText.
GetTextChange
);
src\Razor\src\Razor\src\Microsoft.CodeAnalysis.Razor.CohostingShared\Formatting\CohostRangeFormattingEndpoint.cs (1)
85
var htmlChanges = htmlEdits.SelectAsArray(sourceText.
GetTextChange
);
Microsoft.VisualStudio.LanguageServices.Razor.UnitTests (18)
Cohost\CohostOnTypeFormattingEndpointTest.cs (1)
169
var changes = edits.Select(inputText.
GetTextChange
);
Cohost\CohostRangeFormattingEndpointTest.cs (1)
211
var changes = edits.Select(inputText.
GetTextChange
);
Cohost\CohostRoslynCodeActionTest.cs (1)
273
.Select(e => generatedSourceText.
GetTextChange
((TextEdit)e)));
Cohost\CohostRoslynRenameTest.cs (1)
344
.Select(e => inputText.
GetTextChange
((TextEdit)e));
Cohost\CohostWrapWithTagEndpointTest.cs (1)
228
var changedDoc = sourceText.WithChanges(result.TextEdits.Select(sourceText.
GetTextChange
));
Cohost\Formatting\FormattingLogTest.cs (1)
105
var formattedText = sourceText.WithChanges(edits.Select(sourceText.
GetTextChange
));
Cohost\Formatting\FormattingTestBase.cs (1)
90
var changes = edits.Select(inputText.
GetTextChange
);
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\AutoInsert\RazorOnAutoInsertProviderTestBase.cs (1)
49
var change = source.
GetTextChange
(edit);
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\CodeActions\Html\HtmlCodeActionProviderTest.cs (1)
123
var changed = text.WithChanges(documentEdits[0].Edits.Select(e => text.
GetTextChange
((TextEdit)e)));
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\CodeActions\Html\HtmlCodeActionResolverTest.cs (1)
85
var changed = text.WithChanges(documentEdits[0].Edits.Select(e => text.
GetTextChange
((TextEdit)e)));
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Endpoints\CohostDocumentCompletionEndpointTest.cs (3)
1498
changedText = text.WithChanges(text.
GetTextChange
(edit));
1505
changedText = text.WithChanges(text.
GetTextChange
(textEdit));
1545
changedText = changedText.WithChanges(result.AdditionalTextEdits.Select(changedText.
GetTextChange
));
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Endpoints\CohostInlayHintEndpointTest.cs (1)
266
.Select(inputText.
GetTextChange
);
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Endpoints\CohostOnAutoInsertEndpointTest.cs (1)
615
var change = sourceText.
GetTextChange
(result.TextEdit);
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Formatting\DocumentFormattingTestBase.cs (2)
82
var htmlChangesResult = htmlEditsResult.Select(source.
GetTextChange
);
105
var changes = edits.Select(inputText.
GetTextChange
);
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Formatting\HtmlFormattingTest.cs (1)
696
var changes = edits.Select(inputText.
GetTextChange
);
Microsoft.VisualStudioCode.RazorExtension (3)
src\Razor\src\Razor\src\Microsoft.CodeAnalysis.Razor.CohostingShared\Formatting\CohostDocumentFormattingEndpoint.cs (1)
82
var htmlChanges = htmlEdits.SelectAsArray(sourceText.
GetTextChange
);
src\Razor\src\Razor\src\Microsoft.CodeAnalysis.Razor.CohostingShared\Formatting\CohostOnTypeFormattingEndpoint.cs (1)
111
htmlChanges = htmlEdits.SelectAsArray(sourceText.
GetTextChange
);
src\Razor\src\Razor\src\Microsoft.CodeAnalysis.Razor.CohostingShared\Formatting\CohostRangeFormattingEndpoint.cs (1)
85
var htmlChanges = htmlEdits.SelectAsArray(sourceText.
GetTextChange
);
Microsoft.VisualStudioCode.RazorExtension.UnitTests (10)
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\AutoInsert\RazorOnAutoInsertProviderTestBase.cs (1)
49
var change = source.
GetTextChange
(edit);
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\CodeActions\Html\HtmlCodeActionProviderTest.cs (1)
123
var changed = text.WithChanges(documentEdits[0].Edits.Select(e => text.
GetTextChange
((TextEdit)e)));
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\CodeActions\Html\HtmlCodeActionResolverTest.cs (1)
85
var changed = text.WithChanges(documentEdits[0].Edits.Select(e => text.
GetTextChange
((TextEdit)e)));
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Endpoints\CohostDocumentCompletionEndpointTest.cs (3)
1498
changedText = text.WithChanges(text.
GetTextChange
(edit));
1505
changedText = text.WithChanges(text.
GetTextChange
(textEdit));
1545
changedText = changedText.WithChanges(result.AdditionalTextEdits.Select(changedText.
GetTextChange
));
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Endpoints\CohostInlayHintEndpointTest.cs (1)
266
.Select(inputText.
GetTextChange
);
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Endpoints\CohostOnAutoInsertEndpointTest.cs (1)
615
var change = sourceText.
GetTextChange
(result.TextEdit);
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Formatting\DocumentFormattingTestBase.cs (1)
105
var changes = edits.Select(inputText.
GetTextChange
);
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Formatting\HtmlFormattingTest.cs (1)
696
var changes = edits.Select(inputText.
GetTextChange
);