Take a code action kind instead of a string for _executeCodeActionProvider

This commit is contained in:
Matt Bierner
2019-02-20 13:34:39 -08:00
parent 178327770c
commit a3e98d6c9b
2 changed files with 2 additions and 2 deletions

View File

@@ -135,7 +135,7 @@ export class ExtHostApiCommands {
args: [
{ name: 'uri', description: 'Uri of a text document', constraint: URI },
{ name: 'range', description: 'Range in a text document', constraint: types.Range },
{ name: 'kind', description: '(optional) Code action kind to return code actions for', },
{ name: 'kind', description: '(optional) Code action kind to return code actions for', constraint: (value: any) => !value || typeof value.value === 'string' },
],
returns: 'A promise that resolves to an array of Command-instances.'
});