From 9ae6daabbcd1f801f186847b73e0f68d30510815 Mon Sep 17 00:00:00 2001 From: Jens Fischer Date: Sat, 28 Jul 2018 13:34:17 +0200 Subject: [PATCH] Add CodeActionOptions with providedCodeActionKinds --- specification.md | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/specification.md b/specification.md index 9b99d95..3c7eb8b 100644 --- a/specification.md +++ b/specification.md @@ -1326,6 +1326,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. */ @@ -1475,7 +1488,7 @@ interface ServerCapabilities { /** * The server provides code actions. */ - codeActionProvider?: boolean; + codeActionProvider?: boolean | CodeActionOptions; /** * The server provides code lens. */