resolveCodeAction

abstract var resolveCodeAction: (codeAction: T, token: CancellationToken) -> ProviderResult<T>?(source)

Given a code action fill in its {@linkcode CodeAction.edit edit}-property. Changes to all other properties, like title, are ignored. A code action that has an edit will not be resolved.

Note that a code action provider that returns commands, not code actions, cannot successfully implement this function. Returning commands is deprecated and instead code actions should be returned.

Parameters

codeAction

A code action.

token

A cancellation token.