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)
RouteEmbeddedLanguage\FrameworkParametersCompletionProvider.cs (6)
77public override Task<CompletionChange> GetChangeAsync(Document document, CompletionItem item, char? commitKey, CancellationToken cancellationToken) 87return Task.FromResult(CompletionChange.Create( 255var change = embeddedItem.Change; 464public readonly CompletionChange Change; 467string displayText, string inlineDescription, string fullDescription, string glyph, CompletionChange change) 528CompletionChange.Create(
RouteEmbeddedLanguage\RoutePatternCompletionProvider.cs (6)
71public override Task<CompletionChange> GetChangeAsync(Document document, CompletionItem item, char? commitKey, CancellationToken cancellationToken) 81return Task.FromResult(CompletionChange.Create( 134var change = embeddedItem.Change; 312public readonly CompletionChange Change; 315string displayText, string inlineDescription, string fullDescription, string glyph, CompletionChange change) 380CompletionChange.Create(
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]);
RouteEmbeddedLanguage\RoutePatternCompletionProviderTests.cs (4)
69var change = await result.Service.GetChangeAsync(result.Document, result.Completions.ItemsList[0]); 122var change = await result.Service.GetChangeAsync(result.Document, result.Completions.ItemsList[0]); 151var change = await result.Service.GetChangeAsync(result.Document, result.Completions.ItemsList[0]); 180var change = await result.Service.GetChangeAsync(result.Document, result.Completions.ItemsList[0]);
Microsoft.CodeAnalysis.CSharp.Features (9)
Completion\CompletionProviders\OperatorsAndIndexer\UnnamedSymbolCompletionProvider.cs (4)
142public override Task<CompletionChange> GetChangeAsync( 175private static Task<CompletionChange> ReplaceTextAfterOperatorAsync(Document document, CompletionItem item, string text, CancellationToken cancellationToken) 178private static async Task<CompletionChange> ReplaceTextAfterOperatorAsync( 200return CompletionChange.Create(
Completion\CompletionProviders\OperatorsAndIndexer\UnnamedSymbolCompletionProvider_Conversions.cs (2)
76private static async Task<CompletionChange> GetConversionChangeAsync( 127return CompletionChange.Create(
Completion\CompletionProviders\OperatorsAndIndexer\UnnamedSymbolCompletionProvider_Indexers.cs (1)
39private static Task<CompletionChange> GetIndexerChangeAsync(Document document, CompletionItem item, CancellationToken cancellationToken)
Completion\CompletionProviders\OperatorsAndIndexer\UnnamedSymbolCompletionProvider_Operators.cs (2)
123private async Task<CompletionChange> GetOperatorChangeAsync( 151return CompletionChange.Create(fullTextChange, newPosition);
Microsoft.CodeAnalysis.EditorFeatures (1)
IntelliSense\AsyncCompletion\CommitManager.cs (1)
215CompletionChange change;
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (1)
Completion\AbstractCompletionProviderTests.cs (1)
654var commit = await service.GetChangeAsync(document, completionItem, commitChar, CancellationToken.None);
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (2)
Completion\CompletionServiceTests.cs (2)
124public override Task<CompletionChange> GetChangeAsync(Document document, CompletionItem item, char? commitKey, CancellationToken cancellationToken) 126return Task.FromResult(CompletionChange.Create(new TextChange(item.Span, nameof(DebugAssertTestCompletionProvider))));
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)
Completion\CommonCompletionProvider.cs (2)
110public override async Task<CompletionChange> GetChangeAsync(Document document, CompletionItem item, char? commitKey = null, CancellationToken cancellationToken = default) 114return CompletionChange.Create(change);
Completion\CompletionChange.cs (13)
64/// Creates a new <see cref="CompletionChange"/> instance. 78public static CompletionChange Create( 87public static CompletionChange Create( 98public static CompletionChange Create( 109internal static CompletionChange Create( 120/// Creates a copy of this <see cref="CompletionChange"/> with the <see cref="TextChange"/> property changed. 122public CompletionChange WithTextChange(TextChange textChange) 126/// Creates a copy of this <see cref="CompletionChange"/> with the <see cref="TextChanges"/> property changed. 128public CompletionChange WithTextChanges(ImmutableArray<TextChange> textChanges) 132/// Creates a copy of this <see cref="CompletionChange"/> with the <see cref="NewPosition"/> property changed. 134public CompletionChange WithNewPosition(int? newPostion) 138/// Creates a copy of this <see cref="CompletionChange"/> with the <see cref="IncludesCommitCharacter"/> property changed. 140public CompletionChange WithIncludesCommitCharacter(bool includesCommitCharacter)
Completion\CompletionProvider.cs (2)
78public virtual Task<CompletionChange> GetChangeAsync(Document document, CompletionItem item, char? commitKey, CancellationToken cancellationToken) 79=> Task.FromResult(CompletionChange.Create(new TextChange(item.Span, item.DisplayText)));
Completion\CompletionService.cs (3)
238public virtual async Task<CompletionChange> GetChangeAsync( 259return CompletionChange.Create(new TextChange(new TextSpan(), "")); 267return CompletionChange.Create(new TextChange(item.Span, item.DisplayText));
Completion\Providers\AbstractAggregateEmbeddedLanguageCompletionProvider.cs (1)
108public override Task<CompletionChange> GetChangeAsync(Document document, CompletionItem item, char? commitKey, CancellationToken cancellationToken)
Completion\Providers\AbstractAwaitCompletionProvider.cs (2)
166public sealed override async Task<CompletionChange> GetChangeAsync(Document document, CompletionItem item, char? commitKey, CancellationToken cancellationToken) 238return CompletionChange.Create(Utilities.Collapse(newText, allChanges), allChanges);
Completion\Providers\AbstractDocCommentCompletionProvider.cs (2)
274public override async Task<CompletionChange> GetChangeAsync(Document document, CompletionItem item, char? commitChar = null, CancellationToken cancellationToken = default) 304return CompletionChange.Create(
Completion\Providers\AbstractInternalsVisibleToCompletionProvider.cs (2)
268public override async Task<CompletionChange> GetChangeAsync(Document document, CompletionItem item, char? commitKey = null, CancellationToken cancellationToken = default) 281return CompletionChange.Create(textChange);
Completion\Providers\AbstractMemberInsertingCompletionProvider.cs (2)
46public override async Task<CompletionChange> GetChangeAsync(Document document, CompletionItem item, char? commitKey = null, CancellationToken cancellationToken = default) 73return CompletionChange.Create(change, changesArray, newPosition, includesCommitCharacter: true);
Completion\Providers\EmbeddedLanguageCompletionProvider.cs (1)
24public abstract Task<CompletionChange> GetChangeAsync(Document document, CompletionItem item, char? commitKey, CancellationToken cancellationToken);
Completion\Providers\ImportCompletionProvider\AbstractImportCompletionProvider.cs (3)
115public override async Task<CompletionChange> GetChangeAsync( 135return CompletionChange.Create(new TextChange(completionItem.Span, completionText)); 168return CompletionChange.Create(change, changes);
Completion\Providers\Snippets\AbstractSnippetCompletionProvider.cs (2)
22public override async Task<CompletionChange> GetChangeAsync(Document document, CompletionItem item, char? commitKey = null, CancellationToken cancellationToken = default) 63return CompletionChange.Create(change, allTextChanges.AsImmutable(), properties: props, snippetChange.FinalCaretPosition, includesCommitCharacter: true);
EmbeddedLanguages\DateAndTime\DateAndTimeEmbeddedCompletionProvider.cs (2)
215public override Task<CompletionChange> GetChangeAsync(Document document, CompletionItem item, char? commitKey, CancellationToken cancellationToken) 226return Task.FromResult(CompletionChange.Create(
EmbeddedLanguages\DateAndTime\DateAndTimeItem.cs (2)
12string displayText, string inlineDescription, string fullDescription, CompletionChange change, bool isDefault) 17public readonly CompletionChange Change = change;
EmbeddedLanguages\DateAndTime\EmbeddedCompletionContext.cs (1)
144CompletionChange.Create(
EmbeddedLanguages\RegularExpressions\LanguageServices\EmbeddedCompletionContext.cs (1)
63CompletionChange.Create(
EmbeddedLanguages\RegularExpressions\LanguageServices\RegexEmbeddedCompletionProvider.cs (3)
287change: CompletionChange.Create( 445public override Task<CompletionChange> GetChangeAsync(Document document, CompletionItem item, char? commitKey, CancellationToken cancellationToken) 455return Task.FromResult(CompletionChange.Create(
EmbeddedLanguages\RegularExpressions\LanguageServices\RegexItem.cs (2)
12string displayText, string inlineDescription, string fullDescription, CompletionChange change) 17public readonly CompletionChange Change = change;
ExternalAccess\Pythia\Api\PythiaCompletionProviderBase.cs (1)
79public override Task<CompletionChange> GetChangeAsync(Document document, CompletionItem item, char? commitKey = null, CancellationToken cancellationToken = default)
SpellCheck\AbstractSpellCheckCodeFixProvider.cs (1)
203var change = await service.GetChangeAsync(document, item, commitCharacter: null, cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.LanguageServer (1)
Services\StarredCompletions\StarredCompletionProvider.cs (1)
30public override async Task<CompletionChange> GetChangeAsync(Document document, CompletionItem item, char? commitKey = null, CancellationToken cancellationToken = default)
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)
Completion\CompletionFeaturesTests.cs (1)
896public override Task<CompletionChange> GetChangeAsync(Document document, CodeAnalysis.Completion.CompletionItem item, char? commitCharacter = null, CancellationToken cancellationToken = default)
Completion\CompletionResolveTests.cs (2)
497public override Task<CompletionChange> GetChangeAsync( 508return Task.FromResult(CompletionChange.Create(textChange, newPosition: 0));