[][src]Crate ra_ap_completion

completions crate provides utilities for generating completions of user input.

Structs

CompletionConfig
CompletionItem

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.

ImportEdit

An extra import to add after the completion is applied.

Enums

CompletionItemKind
CompletionResolveCapability

A resolve capability, supported on the server. If the client registers any completion resolve capabilities, the server is able to render completion items' corresponding fields later, not during an initial completion item request. See https://github.com/rust-analyzer/rust-analyzer/issues/6366 for more details.

CompletionScore
InsertTextFormat

Functions

completions

Main entry point for completion. We run completion as a two-phase process.

resolve_completion_edits

Resolves additional completion data at the position given.