ISelectedItemProvider Interface
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Indicates that the object is capable of returning a CompletionItem which is currently or has been recently selected.
public interface class ISelectedItemProvider
public interface ISelectedItemProvider
type ISelectedItemProvider = interface
Public Interface ISelectedItemProvider
Methods
GetSelectedItemAsync(GetSelectedItemOptions, CancellationToken) |
Gets currently selected CompletionItem in accordance with GetSelectedItemOptions.
Supplied
Passing GetLastAvailableItem leads to returning:
Currently selected CompletionItem when completion is not changing;
Currently selected CompletionItem when completion is reacting to user's input;
Passing WaitForComputation leads to returning:
Currently selected CompletionItem when completion is not changing;
CompletionItem which is going to be selected after reacting to user's input,
if completion user interface is already visible;
Passing WaitForContextAndComputation leads to returning: Currently selected CompletionItem when completion is not changing; CompletionItem which is going to be selected after receiving items from the providers, sorting them, and reacting to outstanding user's input. This yields current thread until completion items are received and selected item is calculated. |