mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-25 11:08:51 +01:00
Fix organize imports (#164035)
Fixes #163994 This fixes the organize imports command (it was using the wrong id) and also cleans up the implementation
This commit is contained in:
@@ -1351,19 +1351,19 @@
|
||||
},
|
||||
{
|
||||
"command": "typescript.sortImports",
|
||||
"when": "tsSupportsSortImports && editorLangId =~ /^typescript(react)?$/"
|
||||
"when": "supportedCodeAction =~ /(\\s|^)source\\.sortImports\\b/ && editorLangId =~ /^typescript(react)?$/"
|
||||
},
|
||||
{
|
||||
"command": "javascript.sortImports",
|
||||
"when": "tsSupportsSortImports && editorLangId =~ /^javascript(react)?$/"
|
||||
"when": "supportedCodeAction =~ /(\\s|^)source\\.sortImports\\b/ && editorLangId =~ /^javascript(react)?$/"
|
||||
},
|
||||
{
|
||||
"command": "typescript.removeUnusedImports",
|
||||
"when": "tsSupportsRemoveUnusedImports && editorLangId =~ /^typescript(react)?$/"
|
||||
"when": "supportedCodeAction =~ /(\\s|^)source\\.removeUnusedImports\\b/ && editorLangId =~ /^typescript(react)?$/"
|
||||
},
|
||||
{
|
||||
"command": "javascript.removeUnusedImports",
|
||||
"when": "tsSupportsRemoveUnusedImports && editorLangId =~ /^javascript(react)?$/"
|
||||
"when": "supportedCodeAction =~ /(\\s|^)source\\.removeUnusedImports\\b/ && editorLangId =~ /^javascript(react)?$/"
|
||||
}
|
||||
],
|
||||
"editor/context": [
|
||||
|
||||
Reference in New Issue
Block a user