Skip to main content

Module code_actions

Module code_actions 

Source

Functions§

code_actions
Handle code action request.
import_code_actions
AUTO-IMPORT quickfixes: for each unresolved reference in range that some project module publicly exports but this file does NOT import, offer an Import <Module>. action whose single edit inserts the statement in the right place (after existing imports, else before the first ## block). An ambiguous name (exported by several modules) offers one action per module. THE lever — the compiler error becomes a one-click fix before a build is ever run.
unused_import_actions
“Remove unused import” quickfixes: an Import X. whose module’s names are never referenced in this file. The editor complement of the largo check unused-import warning — a one-click removal.