mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-25 11:08:51 +01:00
Updat codeActions contribtions schema based on https://github.com/microsoft/vscode/issues/82718#issuecomment-550468267
- Adds a description - Remove schama - Moves the language to the top level so we don't need to duplicate so much info for each code action
This commit is contained in:
@@ -869,38 +869,26 @@
|
||||
],
|
||||
"codeActions": [
|
||||
{
|
||||
"kind": "refactor.extract.constant",
|
||||
"title": "%codeActions.refactor.extract.constant%",
|
||||
"selector": [
|
||||
"languages": [
|
||||
"javascript",
|
||||
"javascriptreact",
|
||||
"typescript",
|
||||
"typescriptreact"
|
||||
],
|
||||
"actions": [
|
||||
{
|
||||
"language": "javascript"
|
||||
"kind": "refactor.extract.constant",
|
||||
"title": "%codeActions.refactor.extract.constant.title%",
|
||||
"description": "%codeActions.refactor.extract.constant.description%"
|
||||
},
|
||||
{
|
||||
"language": "javascriptreact"
|
||||
"kind": "refactor.extract.function",
|
||||
"title": "%codeActions.refactor.extract.function.title%",
|
||||
"description": "%codeActions.refactor.extract.function.description%"
|
||||
},
|
||||
{
|
||||
"language": "typescript"
|
||||
},
|
||||
{
|
||||
"language": "typescriptreact"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"kind": "source.organizeImports",
|
||||
"title": "%codeActions.source.organizeImports%",
|
||||
"selector": [
|
||||
{
|
||||
"language": "javascript"
|
||||
},
|
||||
{
|
||||
"language": "javascriptreact"
|
||||
},
|
||||
{
|
||||
"language": "typescript"
|
||||
},
|
||||
{
|
||||
"language": "typescriptreact"
|
||||
"kind": "source.organizeImports",
|
||||
"title": "%codeActions.source.organizeImports.title%"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user