Crate ra_ap_ide_completion
source · [−]Expand description
completions
crate provides utilities for generating completions of user input.
Structs
CompletionItem
describes a single completion variant in the editor pop-up.
It is basically a POD with various properties. To construct a
CompletionItem
, use new
method and the Builder
struct.
A user supplied snippet.
Enums
The type of the completion item.
A snippet scope describing where a snippet may apply to. These may differ slightly in meaning depending on the snippet trigger.
Functions
Main entry point for completion. We run completion as a two-phase process.
Resolves additional completion data at the position given. This is used for import insertion done via completions like flyimport and custom user snippets.