Make sure more TS commands are disabled when tsgo is active

We need to clear the contexts when switching to tsgo
This commit is contained in:
Matt Bierner
2025-10-16 17:14:38 -07:00
parent af6adc61ce
commit d02b204cb0
4 changed files with 23 additions and 10 deletions

View File

@@ -1632,7 +1632,7 @@
},
{
"command": "typescript.goToProjectConfig",
"when": "editorLangId == typescriptreact"
"when": "editorLangId == typescriptreact && typescript.isManagedFile"
},
{
"command": "javascript.goToProjectConfig",
@@ -1682,7 +1682,7 @@
"editor/context": [
{
"command": "typescript.goToSourceDefinition",
"when": "tsSupportsSourceDefinition && (resourceLangId == typescript || resourceLangId == typescriptreact || resourceLangId == javascript || resourceLangId == javascriptreact)",
"when": "!config.typescript.experimental.useTsgo && tsSupportsSourceDefinition && (resourceLangId == typescript || resourceLangId == typescriptreact || resourceLangId == javascript || resourceLangId == javascriptreact)",
"group": "navigation@1.41"
}
],