C# Класс Microsoft.CodeAnalysis.Completion.CompletionListProvider

Extensibility interface for clients who want to participate in completion inside an editor.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
IsTriggerCharacter ( SourceText text, int characterPosition, OptionSet options ) : bool

Returns true if the character at the specific position in the text snapshot should trigger completion. Implementers of this will be called on the main UI thread and should only do minimal textual checks to determine if they should be presented.

ProduceCompletionListAsync ( Microsoft.CodeAnalysis.Completion.CompletionListContext context ) : Task

Implement to register the items and other details for a CompletionList

Описание методов

IsTriggerCharacter() публичный абстрактный Метод

Returns true if the character at the specific position in the text snapshot should trigger completion. Implementers of this will be called on the main UI thread and should only do minimal textual checks to determine if they should be presented.
public abstract IsTriggerCharacter ( SourceText text, int characterPosition, OptionSet options ) : bool
text SourceText
characterPosition int
options OptionSet
Результат bool

ProduceCompletionListAsync() публичный абстрактный Метод

Implement to register the items and other details for a CompletionList
public abstract ProduceCompletionListAsync ( Microsoft.CodeAnalysis.Completion.CompletionListContext context ) : Task
context Microsoft.CodeAnalysis.Completion.CompletionListContext
Результат Task