9 instantiations of CompletionChange
Microsoft.CodeAnalysis.Features (9)
Completion\CompletionChange.cs (9)
95return new CompletionChange(textChanges.Single(), textChanges, newPosition, includesCommitCharacter);
105return new CompletionChange(textChange, textChanges: default, newPosition, includesCommitCharacter);
118return new CompletionChange(textChange, textChanges, newPosition, includesCommitCharacter);
128return new CompletionChange(textChange, textChanges, newSpan, includesCommitCharacter, properties);
138return new CompletionChange(textChange, textChanges, newPosition, includesCommitCharacter, properties);
145=> new(textChange, TextChanges, NewPosition, IncludesCommitCharacter);
151=> new(TextChange, textChanges, NewPosition, IncludesCommitCharacter);
157=> new(TextChange, TextChanges, newPostion, IncludesCommitCharacter);
163=> new(TextChange, TextChanges, NewPosition, includesCommitCharacter);
102 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 (49)
Microsoft.CodeAnalysis.LanguageServer (1)
Microsoft.CodeAnalysis.LanguageServer.Protocol (5)
Handler\Completion\CompletionResultFactory.cs (5)
517var completionChange = await GetCompletionChangeOrDisplayNameInCaseOfExceptionAsync(completionService, document, item, cancellationToken).ConfigureAwait(false);
533var completionChange = await GetCompletionChangeOrDisplayNameInCaseOfExceptionAsync(completionService, document, selectedItem, cancellationToken).ConfigureAwait(false);
552private static async Task<CompletionChange> GetCompletionChangeOrDisplayNameInCaseOfExceptionAsync(CompletionService completionService, Document document, CompletionItem completionItem, CancellationToken cancellationToken)
561return CompletionChange.Create(new TextChange(completionItem.Span, completionItem.DisplayText));
681var completionChange = await GetCompletionChangeOrDisplayNameInCaseOfExceptionAsync(completionService, document, selectedItem, cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (3)