Add trigger type to CodeActionContext #34595
Labels
api
editor-code-actions
Editor inplace actions (Ctrl + .)
feature-request
Request for new features or functionality
Part of #33555
Problems
Extensions currently do not know how a code actions request was triggered. Code actions may be requested automatically by vscode or when the user requests them
Proposal
Add a
trigger
type toCodeActionContext
:auto
: Code actions requested by VS Code automaticallymanual
: Code actions requested by user / commandExtensions could use this to determine which code actions they want to compute / show. For example, an extension may decide to only compute refactorings when a user requests them
// @jrieken
The text was updated successfully, but these errors were encountered: