diff --git a/specification.md b/specification.md index 50048fd..a45c875 100644 --- a/specification.md +++ b/specification.md @@ -1354,6 +1354,19 @@ export interface SignatureHelpOptions { triggerCharacters?: string[]; } +/** + * Code Action options. + */ +export interface CodeActionOptions { + /** + * CodeActionKinds that this server may return. + * + * The list of kinds may be generic, such as `CodeActionKind.Refactor`, or the server + * may list out every specific kind they provide. + */ + providedCodeActionKinds?: CodeActionKind[]; +} + /** * Code Lens options. */ @@ -1509,7 +1522,7 @@ interface ServerCapabilities { /** * The server provides code actions. */ - codeActionProvider?: boolean; + codeActionProvider?: boolean | CodeActionOptions; /** * The server provides code lens. */