Skip to content

Commit

Permalink
Remove temporary command/task to tickle help and vignette links
Browse files Browse the repository at this point in the history
  • Loading branch information
jennybc committed Nov 18, 2024
1 parent 2694a20 commit d78dff0
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 24 deletions.
6 changes: 0 additions & 6 deletions extensions/positron-r/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 0 additions & 2 deletions extensions/positron-r/package.nls.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down
9 changes: 0 additions & 9 deletions extensions/positron-r/src/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()');
}),
Expand Down
7 changes: 0 additions & 7 deletions extensions/positron-r/src/tasks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,6 @@ export async function getRPackageTasks(editorFilePath?: string): Promise<vscode.
... await prepCliEnvVars()
}
},
{
task: 'r.task.cliHyperlinks',
message: vscode.l10n.t('{taskName}', { taskName: 'Emit a cli run hyperlink' }),
rcode: 'cli::cli_text("{.run usethis::proj_sitrep()} {.help usethis::proj_sitrep} {.vignette pkgdown::accessibility}")',
package: 'cli',
envVars: { ... await prepCliEnvVars() }
},
{
task: 'r.task.rmarkdownRender',
message: vscode.l10n.t('{taskName}', { taskName: 'Render document with R Markdown' }),
Expand Down

0 comments on commit d78dff0

Please sign in to comment.