mirror of
https://github.com/microsoft/language-server-protocol.git
synced 2025-12-23 08:48:16 +00:00
Merge pull request #534 from Gama11/codeActionOptions
Add CodeActionOptions with providedCodeActionKinds
This commit is contained in:
commit
20d0cecf4f
1 changed files with 14 additions and 1 deletions
|
|
@ -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.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue