Merge pull request #534 from Gama11/codeActionOptions

Add CodeActionOptions with providedCodeActionKinds
This commit is contained in:
Dirk Bäumer 2018-08-21 11:19:30 +02:00 committed by GitHub
commit 20d0cecf4f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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.
*/