provideCodeActions
Get code actions for a given range in a document.
Only return code actions that are relevant to user for the requested range. Also keep in mind how the returned code actions will appear in the UI. The lightbulb widget and Refactor
commands for instance show returned code actions as a list, so do not return a large number of code actions that will overwhelm the user.
Parameters
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 the actions are being requested in the currently active editor.
Provides additional information about what code actions are being requested. You can use this to see what specific type of code actions are being requested by the editor in order to return more relevant actions and avoid returning irrelevant code actions that the editor will discard.
A cancellation token.