-
Notifications
You must be signed in to change notification settings - Fork 34.6k
Closed as not planned
Labels
*out-of-scopePosted issue is not in scope of VS CodePosted issue is not in scope of VS Codeapiapi-proposaleditor-code-actionsEditor inplace actions (Ctrl + .)Editor inplace actions (Ctrl + .)feature-requestRequest for new features or functionalityRequest for new features or functionality
Milestone
Description
Problem
For feature requests such as #52846 or any improved refactoring UX, VS Code needs to know all the code actions that are available for a language. Some information about available code actions is provided by CodeActionProviderMetadata
but only if an extension has been activated and the provider has been registered
Proposal
To support this, we likely want a new contribution point that lets extensions statically tell us about the general classes of the code actions that they provide:
{
"contributions": {
"codeActions": [
{
"languages": [
"javascript",
"javascriptreact",
"typescript",
"typescriptreact"
],
"actions": [
{
"kind": "refactor.extract.constant",
"title": "Extract constant",
"description": "Extract expression to a constant."
}
]
}
]
}
}
Potential use cases for this info
- Show on the extension's contribution page Show contributed code actions in extensions view #84091
- IntelliSense for
codeActionsOnSave
(c8d64b1) - IntelliSense for configuring refactors in the keybinding json editor Code action intellisense in the keybindings JSON editor #84033
- IntelliSense for configuring refactors in UI keybinding editor Allow viewing and editing commands with 'args' in the keybindings editor #84072
- Improving the refactor context menu in VS Code
/cc @kieferrm
akaroml, greyepoxy, greyscaled, usernamehw, RandomFractals and 4 more
Metadata
Metadata
Assignees
Labels
*out-of-scopePosted issue is not in scope of VS CodePosted issue is not in scope of VS Codeapiapi-proposaleditor-code-actionsEditor inplace actions (Ctrl + .)Editor inplace actions (Ctrl + .)feature-requestRequest for new features or functionalityRequest for new features or functionality