Provide commands for the given document and range.
The document in which the command was invoked.
The selector or range for which the command was invoked. This will always be a selection if there is a currently active editor.
Context carrying additional information.
A cancellation token.
An array of commands, quick fixes, or refactorings or a thenable of such. The lack of a result can be
signaled by returning undefined
, null
, or an empty array.
The code action interface defines the contract between extensions and the light bulb feature.
A code action can be any command that is known to the system.