Hide TS commands when not in js/ts file

This commit is contained in:
Matt Bierner 2017-11-30 16:39:53 -08:00
parent 7c13230aff
commit 37a9b31ea6

View file

@ -512,6 +512,18 @@
{
"command": "javascript.goToProjectConfig",
"when": "editorLangId == javascriptreact && typescript.isManagedFile"
},
{
"command": "typescript.selectTypeScriptVersion",
"when": "typescript.isManagedFile"
},
{
"command": "typescript.openTsServerLog",
"when": "typescript.isManagedFile"
},
{
"command": "typescript.restartTsServer",
"when": "typescript.isManagedFile"
}
]
},