Crate ra_ap_ide_assists[][src]

Expand description

assists crate provides a bunch of code assists, also known as code actions (in LSP) or intentions (in IntelliJ).

An assist is a micro-refactoring, which is automatically activated in certain context. For example, if the cursor is over ,, a “swap ,” assist becomes available.

Modules

utils

Assorted functions shared by several assists.

Structs

Assist
AssistConfig
AssistId

Unique identifier of the assist, should not be shown to the user directly.

GroupLabel
SingleResolve

Hold the AssistId data of a certain assist to resolve. The original id object cannot be used due to a 'static lifetime and the requirement to construct this struct dynamically during the resolve handling.

Enums

AssistKind
AssistResolveStrategy

A way to control how many asssist to resolve during the assist resolution. When an assist is resolved, its edits are calculated that might be costly to always do by default.

Functions

assists

Return all the assists applicable at the given position.