8 instantiations of CompletionChange
Microsoft.CodeAnalysis.Features (8)
Completion\CompletionChange.cs (8)
83return new CompletionChange(textChanges.Single(), textChanges, newPosition, includesCommitCharacter);
93return new CompletionChange(textChange, textChanges: default, newPosition, includesCommitCharacter);
106return new CompletionChange(textChange, textChanges, newPosition, includesCommitCharacter);
116return new CompletionChange(textChange, textChanges, newPosition, includesCommitCharacter, properties);
123=> new(textChange, TextChanges, NewPosition, IncludesCommitCharacter);
129=> new(TextChange, textChanges, NewPosition, IncludesCommitCharacter);
135=> new(TextChange, TextChanges, newPostion, IncludesCommitCharacter);
141=> new(TextChange, TextChanges, NewPosition, includesCommitCharacter);
101 references to CompletionChange
Microsoft.AspNetCore.App.Analyzers (12)
Microsoft.AspNetCore.App.Analyzers.Test (14)
RouteEmbeddedLanguage\FrameworkParametersCompletionProviderTests.cs (10)
37var change = await result.Service.GetChangeAsync(result.Document, result.Completions.ItemsList[0]);
65var change = await result.Service.GetChangeAsync(result.Document, result.Completions.ItemsList[0]);
93var change = await result.Service.GetChangeAsync(result.Document, result.Completions.ItemsList[0]);
121var change = await result.Service.GetChangeAsync(result.Document, result.Completions.ItemsList[0]);
151var change = await result.Service.GetChangeAsync(result.Document, result.Completions.ItemsList[0]);
179var change = await result.Service.GetChangeAsync(result.Document, result.Completions.ItemsList[0]);
207var change = await result.Service.GetChangeAsync(result.Document, result.Completions.ItemsList[0]);
235var change = await result.Service.GetChangeAsync(result.Document, result.Completions.ItemsList[0]);
263var change = await result.Service.GetChangeAsync(result.Document, result.Completions.ItemsList[0]);
997var change = await result.Service.GetChangeAsync(result.Document, result.Completions.ItemsList[0]);
Microsoft.CodeAnalysis.CSharp.Features (9)
Microsoft.CodeAnalysis.EditorFeatures (1)
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (1)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (2)
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (5)
IntelliSense\CSharpCompletionCommandHandlerTests.vb (5)
8229Public Overrides Function GetChangeAsync(document As Document, item As CompletionItem, commitKey As Char?, cancellationToken As CancellationToken) As Task(Of CompletionChange)
8238Dim change = CompletionChange.Create(
8274Public Overrides Function GetChangeAsync(document As Document, item As CompletionItem, commitKey As Char?, cancellationToken As CancellationToken) As Task(Of CompletionChange)
8281Return Task.FromResult(CompletionChange.Create(New TextChange(item.Span, commitText)))
10779Public Overrides Function GetChangeAsync(document As Document, item As CompletionItem, commitKey As Char?, cancellationToken As CancellationToken) As Task(Of CompletionChange)
Microsoft.CodeAnalysis.Features (48)
Microsoft.CodeAnalysis.LanguageServer (1)
Microsoft.CodeAnalysis.LanguageServer.Protocol (5)
Handler\Completion\CompletionResultFactory.cs (5)
511var completionChange = await GetCompletionChangeOrDisplayNameInCaseOfExceptionAsync(completionService, document, item, cancellationToken).ConfigureAwait(false);
527var completionChange = await GetCompletionChangeOrDisplayNameInCaseOfExceptionAsync(completionService, document, selectedItem, cancellationToken).ConfigureAwait(false);
546private static async Task<CompletionChange> GetCompletionChangeOrDisplayNameInCaseOfExceptionAsync(CompletionService completionService, Document document, CompletionItem completionItem, CancellationToken cancellationToken)
555return CompletionChange.Create(new TextChange(completionItem.Span, completionItem.DisplayText));
675var completionChange = await GetCompletionChangeOrDisplayNameInCaseOfExceptionAsync(completionService, document, selectedItem, cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (3)