22 references to CreateTextEdit
Microsoft.CodeAnalysis.Razor.Workspaces (18)
CodeActions\CSharp\TypeAccessibilityCodeActionProvider.cs (1)
266var fqnTextEdit = LspFactory.CreateTextEdit(fqnDiagnostic.Range, fullyQualifiedName);
CodeActions\Razor\ComponentAccessibilityCodeActionProvider.cs (2)
292var startTagTextEdit = LspFactory.CreateTextEdit(startTag.Name.GetRange(context.CodeDocument.Source), newTagName); 299var endTagTextEdit = LspFactory.CreateTextEdit(endTag.Name.GetRange(context.CodeDocument.Source), newTagName);
CodeActions\Razor\ExtractToCodeBehindCodeActionResolver.cs (1)
65Edits = [LspFactory.CreateTextEdit(removeRange, string.Empty)]
CodeActions\Razor\ExtractToCssCodeActionResolver.cs (1)
57Edits = [LspFactory.CreateTextEdit(removeRange, string.Empty)]
CodeActions\Razor\PromoteUsingCodeActionResolver.cs (1)
77Edits = [LspFactory.CreateTextEdit(removeRange, string.Empty)]
Extensions\LspExtensions_SourceText.cs (2)
56=> LspFactory.CreateTextEdit(text.GetRange(change.Span), change.NewText ?? ""); 59=> LspFactory.CreateTextEdit(text.GetRange(change.Span.Start, change.Span.Start + change.Span.Length), change.NewText ?? "");
Extensions\LspFactory.cs (8)
186=> CreateTextEdit(CreateRange(span), newText); 189=> CreateTextEdit(CreateRange(startLine, startCharacter, endLine, endCharacter), newText); 192=> CreateTextEdit(CreateRange(start, end), newText); 195=> CreateTextEdit(CreateRange(start, end), newText); 198=> CreateTextEdit(CreateZeroWidthRange(line, character), newText); 201=> CreateTextEdit(CreateZeroWidthRange(position), newText); 204=> CreateTextEdit(CreateZeroWidthRange(position.Line, position.Character), newText); 207=> CreateTextEdit(CreateZeroWidthRange(position), newText);
Formatting\UsingDirectiveHelper.cs (2)
298editBuilder.Add(LspFactory.CreateTextEdit(insertRange, builder.ToString())); 319return LspFactory.CreateTextEdit(sourceText.GetRange(removeSpan), string.Empty);
Microsoft.VisualStudio.LanguageServices.Razor.UnitTests (2)
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\CodeActions\Html\HtmlCodeActionProviderTest.cs (1)
85textDocumentEdit.Edits = [LspFactory.CreateTextEdit(context.SourceText.GetRange(span), "Goo /*~~~~~~~~~~~*/ Bar")];
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\CodeActions\Html\HtmlCodeActionResolverTest.cs (1)
46textDocumentEdit.Edits = [LspFactory.CreateTextEdit(sourceText.GetRange(span), "Goo /*~~~~~~~~~~~*/ Bar")];
Microsoft.VisualStudioCode.RazorExtension.UnitTests (2)
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\CodeActions\Html\HtmlCodeActionProviderTest.cs (1)
85textDocumentEdit.Edits = [LspFactory.CreateTextEdit(context.SourceText.GetRange(span), "Goo /*~~~~~~~~~~~*/ Bar")];
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\CodeActions\Html\HtmlCodeActionResolverTest.cs (1)
46textDocumentEdit.Edits = [LspFactory.CreateTextEdit(sourceText.GetRange(span), "Goo /*~~~~~~~~~~~*/ Bar")];