mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-26 03:29:00 +01:00
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:
@@ -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"
|
||||
}
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user