Allow disabling built-in TS/JS extension in favor of tsgo

This commit is contained in:
Andrew Branch
2025-04-17 12:13:49 -07:00
parent 6738af2d26
commit a0cd135c8e
5 changed files with 123 additions and 3 deletions

View File

@@ -202,6 +202,12 @@
"description": "%typescript.implementationsCodeLens.enabled%",
"scope": "window"
},
"typescript.unstable.useTsgo": {
"type": "boolean",
"default": false,
"markdownDescription": "%typescript.useTsgo%",
"scope": "window"
},
"typescript.implementationsCodeLens.showOnInterfaceMethods": {
"type": "boolean",
"default": false,
@@ -1626,6 +1632,18 @@
"command": "javascript.removeUnusedImports",
"title": "%typescript.removeUnusedImports%",
"category": "JavaScript"
},
{
"command": "typescript.enableTsgo",
"title": "Use TypeScript Go",
"category": "TypeScript",
"enablement": "!config.typescript.unstable.useTsgo && config.typescript-go.executablePath"
},
{
"command": "typescript.disableTsgo",
"title": "Stop using TypeScript Go",
"category": "TypeScript",
"enablement": "config.typescript.unstable.useTsgo"
}
],
"menus": {