mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-24 18:49:00 +01:00
Add code actions contributon point
For #82718 Fixes #52846 This adds a newly proposed codeActions contribution point. For details, see #82718 This change also makes the intellisense for the `editor.codeActionsOnSave` property dynamic by using the new contribution point
This commit is contained in:
@@ -866,6 +866,44 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"codeActions": [
|
||||
{
|
||||
"kind": "refactor.extract.constant",
|
||||
"title": "%codeActions.refactor.extract.constant%",
|
||||
"selector": [
|
||||
{
|
||||
"language": "javascript"
|
||||
},
|
||||
{
|
||||
"language": "javascriptreact"
|
||||
},
|
||||
{
|
||||
"language": "typescript"
|
||||
},
|
||||
{
|
||||
"language": "typescriptreact"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"kind": "source.organizeImports",
|
||||
"title": "%codeActions.source.organizeImports%",
|
||||
"selector": [
|
||||
{
|
||||
"language": "javascript"
|
||||
},
|
||||
{
|
||||
"language": "javascriptreact"
|
||||
},
|
||||
{
|
||||
"language": "typescript"
|
||||
},
|
||||
{
|
||||
"language": "typescriptreact"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user