diff --git a/packages/common/src/extensionDependencies.ts b/packages/common/src/extensionDependencies.ts index d748061247..a62060bc0c 100644 --- a/packages/common/src/extensionDependencies.ts +++ b/packages/common/src/extensionDependencies.ts @@ -1,13 +1,4 @@ export const extensionDependencies = [ // Cursorless access to Tree sitter "pokey.parse-tree", - - // Register necessary language-IDs for tests - "scala-lang.scala", // scala - "mrob95.vscode-talonscript", // talon - "jrieken.vscode-tree-sitter-query", // scm - "mathiasfrohlich.kotlin", // kotlin - - // Necessary for the `drink cell` and `pour cell` tests - "ms-toolsai.jupyter", ]; diff --git a/packages/cursorless-vscode/package.json b/packages/cursorless-vscode/package.json index 376e617135..6f348480b8 100644 --- a/packages/cursorless-vscode/package.json +++ b/packages/cursorless-vscode/package.json @@ -1227,7 +1227,24 @@ "group": "navigation" } ] - } + }, + "languages": [ + { + "id": "talon" + }, + { + "id": "talon-list" + }, + { + "id": "scala" + }, + { + "id": "kotlin" + }, + { + "id": "scm" + } + ] }, "scripts": { "build": "pnpm run esbuild:prod && pnpm -F cheatsheet-local build:prod && pnpm -F cursorless-vscode-tutorial-webview build:prod && pnpm run populate-dist", diff --git a/packages/cursorless-vscode/src/scripts/initLaunchSandbox.ts b/packages/cursorless-vscode/src/scripts/initLaunchSandbox.ts index 1d66902383..3566d80069 100644 --- a/packages/cursorless-vscode/src/scripts/initLaunchSandbox.ts +++ b/packages/cursorless-vscode/src/scripts/initLaunchSandbox.ts @@ -21,13 +21,16 @@ async function main() { } }); - let extensions = [...extensionDependencies, "pokey.command-server"]; + const extensions = [ + ...extensionDependencies, + "pokey.command-server", + "mrob95.vscode-talonscript", + ]; // Do not attempt to install jrieken:vscode-tree-sitter-query if editor is NOT VSCode, assuming lack of access to VSCode Marketplace - if (cliToolName !== vsCodeToolName) { - extensions = extensions.filter( - (e) => e !== "jrieken.vscode-tree-sitter-query", - ); + if (cliToolName === vsCodeToolName) { + extensions.push("jrieken.vscode-tree-sitter-query"); + } else { console.log( "Not installing jrieken:vscode-tree-sitter-query as it is not on the OpenVSX Marketplace.", );