Setup basic typescript.isManagedFile context

This commit is contained in:
Matt Bierner
2017-11-30 16:37:23 -08:00
parent 04c4491a43
commit 7c13230aff
4 changed files with 62 additions and 8 deletions

View File

@@ -483,23 +483,23 @@
"commandPalette": [
{
"command": "typescript.reloadProjects",
"when": "editorLangId == 'typescript'"
"when": "editorLangId == typescript && typescript.isManagedFile"
},
{
"command": "typescript.reloadProjects",
"when": "editorLangId == typescriptreact"
"when": "editorLangId == typescriptreact && typescript.isManagedFile"
},
{
"command": "javascript.reloadProjects",
"when": "editorLangId == 'javascript'"
"when": "editorLangId == javascript && typescript.isManagedFile"
},
{
"command": "javascript.reloadProjects",
"when": "editorLangId == javascriptreact"
"when": "editorLangId == javascriptreact && typescript.isManagedFile"
},
{
"command": "typescript.goToProjectConfig",
"when": "editorLangId == 'typescript'"
"when": "editorLangId == typescript && typescript.isManagedFile"
},
{
"command": "typescript.goToProjectConfig",
@@ -507,11 +507,11 @@
},
{
"command": "javascript.goToProjectConfig",
"when": "editorLangId == 'javascript'"
"when": "editorLangId == javascript && typescript.isManagedFile"
},
{
"command": "javascript.goToProjectConfig",
"when": "editorLangId == javascriptreact"
"when": "editorLangId == javascriptreact && typescript.isManagedFile"
}
]
},