Metadata about the type of code actions that a {@link CodeActionProvider} provides.
Fields
optionalfinalread onlyprovidedCodeActionKinds:Null<ReadOnlyArray<CodeActionKind>>
List of {@link CodeActionKind CodeActionKinds} that a {@link CodeActionProvider} may return.
This list is used to determine if a given CodeActionProvider should be invoked or not.
To avoid unnecessary computation, every CodeActionProvider should list use providedCodeActionKinds. The
list of kinds may either be generic, such as [CodeActionKind.Refactor], or list out every kind provided,
such as [CodeActionKind.Refactor.Extract.append('function'), CodeActionKind.Refactor.Extract.append('constant'), ...].
optionalfinalread onlydocumentation:Null<ReadOnlyArray<{kind:CodeActionKind, command:Command}>>
Static documentation for a class of code actions.
Documentation from the provider is shown in the code actions menu if either:
-
Code actions of
kindare requested by the editor. In this case, the editor will show the documentation that most closely matches the requested code action kind. For example, if a provider has documentation for bothRefactorandRefactorExtract, when the user requests code actions forRefactorExtract, the editor will use the documentation forRefactorExtractinstead of the documentation forRefactor. -
Any code actions of
kindare returned by the provider.
At most one documentation entry will be shown per provider.