From d78dff04e5cb2eb9a5412016eec2c1ae45fde2e4 Mon Sep 17 00:00:00 2001 From: Jenny Bryan Date: Mon, 18 Nov 2024 12:54:32 -0800 Subject: [PATCH] Remove temporary command/task to tickle help and vignette links --- extensions/positron-r/package.json | 6 ------ extensions/positron-r/package.nls.json | 2 -- extensions/positron-r/src/commands.ts | 9 --------- extensions/positron-r/src/tasks.ts | 7 ------- 4 files changed, 24 deletions(-) diff --git a/extensions/positron-r/package.json b/extensions/positron-r/package.json index efde0500418..7941b5b405b 100644 --- a/extensions/positron-r/package.json +++ b/extensions/positron-r/package.json @@ -87,12 +87,6 @@ "title": "%r.command.packageTest.title%", "shortTitle": "%r.menu.packageTest.title%" }, - { - "command": "r.cliHyperlinks", - "category": "R", - "title": "%r.command.cliHyperlinks.title%", - "shortTitle": "%r.menu.cliHyperlinks.title%" - }, { "command": "r.useTestthat", "category": "R", diff --git a/extensions/positron-r/package.nls.json b/extensions/positron-r/package.nls.json index 2f58467073e..3f5ee6eb8ab 100644 --- a/extensions/positron-r/package.nls.json +++ b/extensions/positron-r/package.nls.json @@ -13,7 +13,6 @@ "r.command.packageBuild.title": "Build R Package", "r.command.packageInstall.title": "Install R Package and Restart R", "r.command.packageTest.title": "Test R Package", - "r.command.cliHyperlinks.title": "Emit cli hyperlinks", "r.command.useTestthat.title": "Configure testthat", "r.command.useTest.title": "Add (or visit) a test file", "r.command.packageCheck.title": "Check R Package", @@ -28,7 +27,6 @@ "r.menu.packageBuild.title": "Build R Package", "r.menu.packageInstall.title": "Install R Package and Restart R", "r.menu.packageTest.title": "Test R Package", - "r.menu.cliHyperlinks.title": "Emit cli hyperlinks", "r.menu.packageCheck.title": "Check R Package", "r.menu.packageDocument.title": "Document R Package", "r.menu.rmarkdownRender.title": "Render Document With R Markdown", diff --git a/extensions/positron-r/src/commands.ts b/extensions/positron-r/src/commands.ts index a50f4c2f2e5..2d6942c1f05 100644 --- a/extensions/positron-r/src/commands.ts +++ b/extensions/positron-r/src/commands.ts @@ -118,15 +118,6 @@ export async function registerCommands(context: vscode.ExtensionContext) { } }), - vscode.commands.registerCommand('r.cliHyperlinks', async () => { - const tasks = await getRPackageTasks(); - const task = tasks.filter(task => task.definition.task === 'r.task.cliHyperlinks')[0]; - const isInstalled = await checkInstalled(task.definition.pkg); - if (isInstalled) { - vscode.tasks.executeTask(task); - } - }), - vscode.commands.registerCommand('r.useTestthat', async () => { executeCodeForCommand('usethis', 'usethis::use_testthat()'); }), diff --git a/extensions/positron-r/src/tasks.ts b/extensions/positron-r/src/tasks.ts index b1f66723d81..9f62b844479 100644 --- a/extensions/positron-r/src/tasks.ts +++ b/extensions/positron-r/src/tasks.ts @@ -59,13 +59,6 @@ export async function getRPackageTasks(editorFilePath?: string): Promise