Click or drag to resize

CompletionService Class



A per language service for constructing context dependent list of completions that can be presented to a user during typing in an editor.
Inheritance Hierarchy

Namespace:  Microsoft.CodeAnalysis.Completion
Assembly:  Microsoft.CodeAnalysis.Features (in Microsoft.CodeAnalysis.Features.dll) Version: 2.3.0-dev-56735-00. Commit Hash: <developer build>
Syntax
public abstract class CompletionService : ILanguageService

The CompletionService type exposes the following members.

Constructors
  NameDescription
Protected methodCompletionService
Initializes a new instance of the CompletionService class
Top
Properties
  NameDescription
Public propertyLanguage
The language from LanguageNames this service corresponds to.
Top
Methods
  NameDescription
Public methodFilterItems
Given a list of completion items that match the current code typed by the user, returns the item that is considered the best match, and whether or not that item should be selected or not. itemToFilterText provides the values that each individual completion item should be filtered against.
Public methodGetChangeAsync
Public methodGetCompletionsAsync
Public methodGetDefaultCompletionListSpan
Public methodGetDefaultItemSpan Obsolete.
Gets the span of the syntax element at the caret position. This is the most common value used for Span.
Public methodGetDescriptionAsync
Public methodGetRules
Gets the current presentation and behavior rules.
Public methodStatic memberGetService
Gets the service corresponding to the specified document.
Public methodShouldTriggerCompletion
Returns true if the character recently inserted or deleted in the text should trigger completion.
Top
See Also