From 2cfee55a04cc030339d11fdee88efe1af1c73631 Mon Sep 17 00:00:00 2001 From: JooYoung Seo Date: Thu, 27 Oct 2022 15:05:51 -0500 Subject: [PATCH 01/12] add r.release command --- package.json | 9 +++++++-- src/extension.ts | 5 +++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 1a3ab1696..8fa4a0030 100644 --- a/package.json +++ b/package.json @@ -446,6 +446,11 @@ "category": "R Package", "command": "r.loadAll" }, + { + "title": "Release", + "category": "R Package", + "command": "r.release" + }, { "title": "Build", "category": "R Package", @@ -1767,7 +1772,7 @@ "default": false, "description": "Default boolean value for automatically sharing R browser ports with guests." }, - "r.plot.devArgs" :{ + "r.plot.devArgs": { "type": "object", "markdownDescription": "The arguments for the png device to replay user graphics to show in VSCode. Requires `#r.plot.useHttpgd#` to be set to `false`. \n\nChanges the option `vsc.dev.args` in R.", "default": { @@ -1989,4 +1994,4 @@ "vsls": "^1.0.4753", "winreg": "^1.2.4" } -} +} \ No newline at end of file diff --git a/src/extension.ts b/src/extension.ts index d15bf329d..2369a8912 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -70,7 +70,7 @@ export async function activate(context: vscode.ExtensionContext): Promise rTerminal.runSelectionOrWord(['t', 'head']), 'r.names': () => rTerminal.runSelectionOrWord(['names']), 'r.runSource': () => { void rTerminal.runSource(false); }, - 'r.runSelection': (code?: string) => { code ? void rTerminal.runTextInTerm(code) : void rTerminal.runSelection(); }, + 'r.runSelection': (code?: string) => { code ? void rTerminal.runTextInTerm(code) : void rTerminal.runSelection(); }, 'r.runFromLineToEnd': rTerminal.runFromLineToEnd, 'r.runFromBeginningToLine': rTerminal.runFromBeginningToLine, 'r.runSelectionRetainCursor': rTerminal.runSelectionRetainCursor, @@ -109,13 +109,14 @@ export async function activate(context: vscode.ExtensionContext): Promise rmarkdown.newDraft(), - 'r.newFileDocument': () => vscode.workspace.openTextDocument({language: 'r'}).then((v) => vscode.window.showTextDocument(v)), + 'r.newFileDocument': () => vscode.workspace.openTextDocument({ language: 'r' }).then((v) => vscode.window.showTextDocument(v)), // editor independent commands 'r.createGitignore': rGitignore.createGitignore, 'r.createLintrConfig': lintrConfig.createLintrConfig, 'r.generateCCppProperties': cppProperties.generateCppProperties, 'r.loadAll': () => rTerminal.runTextInTerm('devtools::load_all()'), + 'r.release': () => rTerminal.runTextInTerm('devtools::release()'), // environment independent commands. this is a workaround for using the Tasks API: https://github.com/microsoft/vscode/issues/40758 'r.build': () => vscode.commands.executeCommand('workbench.action.tasks.runTask', 'R: Build'), From e9b8a7082b131d0aea2ceb0a46c762f3c8d8357f Mon Sep 17 00:00:00 2001 From: JooYoung Seo Date: Thu, 27 Oct 2022 15:10:57 -0500 Subject: [PATCH 02/12] add r.spellCheck command --- package.json | 5 +++++ src/extension.ts | 1 + 2 files changed, 6 insertions(+) diff --git a/package.json b/package.json index 8fa4a0030..7a2375262 100644 --- a/package.json +++ b/package.json @@ -451,6 +451,11 @@ "category": "R Package", "command": "r.release" }, + { + "title": "Spell check", + "category": "R Package", + "command": "r.spellCheck" + }, { "title": "Build", "category": "R Package", diff --git a/src/extension.ts b/src/extension.ts index 2369a8912..021b1df9e 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -117,6 +117,7 @@ export async function activate(context: vscode.ExtensionContext): Promise rTerminal.runTextInTerm('devtools::load_all()'), 'r.release': () => rTerminal.runTextInTerm('devtools::release()'), + 'r.spellCheck': () => rTerminal.runTextInTerm('devtools::spell_check()'), // environment independent commands. this is a workaround for using the Tasks API: https://github.com/microsoft/vscode/issues/40758 'r.build': () => vscode.commands.executeCommand('workbench.action.tasks.runTask', 'R: Build'), From 57062a5d5caa113c19ad8356beaf8a4caec89849 Mon Sep 17 00:00:00 2001 From: JooYoung Seo Date: Thu, 27 Oct 2022 15:13:41 -0500 Subject: [PATCH 03/12] cosmetic change --- package.json | 8 ++++---- src/extension.ts | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 7a2375262..abd4b87ea 100644 --- a/package.json +++ b/package.json @@ -447,14 +447,14 @@ "command": "r.loadAll" }, { - "title": "Release", + "title": "Spell check", "category": "R Package", - "command": "r.release" + "command": "r.spellCheck" }, { - "title": "Spell check", + "title": "CRAN Release", "category": "R Package", - "command": "r.spellCheck" + "command": "r.release" }, { "title": "Build", diff --git a/src/extension.ts b/src/extension.ts index 021b1df9e..efc48acda 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -116,8 +116,8 @@ export async function activate(context: vscode.ExtensionContext): Promise rTerminal.runTextInTerm('devtools::load_all()'), - 'r.release': () => rTerminal.runTextInTerm('devtools::release()'), 'r.spellCheck': () => rTerminal.runTextInTerm('devtools::spell_check()'), + 'r.release': () => rTerminal.runTextInTerm('devtools::release()'), // environment independent commands. this is a workaround for using the Tasks API: https://github.com/microsoft/vscode/issues/40758 'r.build': () => vscode.commands.executeCommand('workbench.action.tasks.runTask', 'R: Build'), From 350d0ef67a485381675d24332a97ee60af38b981 Mon Sep 17 00:00:00 2001 From: JooYoung Seo Date: Thu, 27 Oct 2022 15:18:23 -0500 Subject: [PATCH 04/12] add r.devMode command --- package.json | 5 +++++ src/extension.ts | 1 + 2 files changed, 6 insertions(+) diff --git a/package.json b/package.json index abd4b87ea..1cdd49e5c 100644 --- a/package.json +++ b/package.json @@ -446,6 +446,11 @@ "category": "R Package", "command": "r.loadAll" }, + { + "title": "Toggle Development Mode", + "category": "R Package", + "command": "r.devMode" + }, { "title": "Spell check", "category": "R Package", diff --git a/src/extension.ts b/src/extension.ts index efc48acda..56722dd93 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -116,6 +116,7 @@ export async function activate(context: vscode.ExtensionContext): Promise rTerminal.runTextInTerm('devtools::load_all()'), + 'r.devMode': () => rTerminal.runTextInTerm('devtools::dev_mode()'), 'r.spellCheck': () => rTerminal.runTextInTerm('devtools::spell_check()'), 'r.release': () => rTerminal.runTextInTerm('devtools::release()'), From a53376ab524b9e2d3f5c8be8500460fe3eb1976e Mon Sep 17 00:00:00 2001 From: JooYoung Seo Date: Thu, 27 Oct 2022 15:27:42 -0500 Subject: [PATCH 05/12] add r.checkRhub command --- package.json | 5 +++++ src/extension.ts | 1 + 2 files changed, 6 insertions(+) diff --git a/package.json b/package.json index 1cdd49e5c..5ec95764d 100644 --- a/package.json +++ b/package.json @@ -456,6 +456,11 @@ "category": "R Package", "command": "r.spellCheck" }, + { + "title": "CRAN Checks for Package on R-Hub", + "category": "R Package", + "command": "r.checkRhub" + }, { "title": "CRAN Release", "category": "R Package", diff --git a/src/extension.ts b/src/extension.ts index 56722dd93..b3bf6dab2 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -118,6 +118,7 @@ export async function activate(context: vscode.ExtensionContext): Promise rTerminal.runTextInTerm('devtools::load_all()'), 'r.devMode': () => rTerminal.runTextInTerm('devtools::dev_mode()'), 'r.spellCheck': () => rTerminal.runTextInTerm('devtools::spell_check()'), + 'r.checkRhub': () => rTerminal.runTextInTerm('devtools::check_rhub()'), 'r.release': () => rTerminal.runTextInTerm('devtools::release()'), // environment independent commands. this is a workaround for using the Tasks API: https://github.com/microsoft/vscode/issues/40758 From 9d1d54ca5c6f536edc2f73a8e06c9a2949ba3b74 Mon Sep 17 00:00:00 2001 From: JooYoung Seo Date: Thu, 27 Oct 2022 17:04:12 -0500 Subject: [PATCH 06/12] add r.checkWinDevel command --- package.json | 5 +++++ src/extension.ts | 1 + 2 files changed, 6 insertions(+) diff --git a/package.json b/package.json index 5ec95764d..fbe92a103 100644 --- a/package.json +++ b/package.json @@ -461,6 +461,11 @@ "category": "R Package", "command": "r.checkRhub" }, + { + "title": "CRAN Checks for Package on Win-Builder", + "category": "R Package", + "command": "r.checkWinDevel" + }, { "title": "CRAN Release", "category": "R Package", diff --git a/src/extension.ts b/src/extension.ts index b3bf6dab2..ff570fca6 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -119,6 +119,7 @@ export async function activate(context: vscode.ExtensionContext): Promise rTerminal.runTextInTerm('devtools::dev_mode()'), 'r.spellCheck': () => rTerminal.runTextInTerm('devtools::spell_check()'), 'r.checkRhub': () => rTerminal.runTextInTerm('devtools::check_rhub()'), + 'r.checkWinDevel': () => rTerminal.runTextInTerm('devtools::check_win_devel()'), 'r.release': () => rTerminal.runTextInTerm('devtools::release()'), // environment independent commands. this is a workaround for using the Tasks API: https://github.com/microsoft/vscode/issues/40758 From 14ab90547ae320e631d9d244708950cc2d06fd40 Mon Sep 17 00:00:00 2001 From: JooYoung Seo Date: Thu, 27 Oct 2022 17:15:09 -0500 Subject: [PATCH 07/12] add r.useVersion command --- package.json | 5 +++++ src/extension.ts | 1 + 2 files changed, 6 insertions(+) diff --git a/package.json b/package.json index fbe92a103..c4d5735e8 100644 --- a/package.json +++ b/package.json @@ -441,6 +441,11 @@ "category": "R", "command": "r.previewEnvironment" }, + { + "title": "Increment Package Version", + "category": "R Package", + "command": "r.useVersion" + }, { "title": "Load All", "category": "R Package", diff --git a/src/extension.ts b/src/extension.ts index ff570fca6..6db6e1eae 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -121,6 +121,7 @@ export async function activate(context: vscode.ExtensionContext): Promise rTerminal.runTextInTerm('devtools::check_rhub()'), 'r.checkWinDevel': () => rTerminal.runTextInTerm('devtools::check_win_devel()'), 'r.release': () => rTerminal.runTextInTerm('devtools::release()'), + 'r.useVersion': () => rTerminal.runTextInTerm('usethis::use_version()'), // environment independent commands. this is a workaround for using the Tasks API: https://github.com/microsoft/vscode/issues/40758 'r.build': () => vscode.commands.executeCommand('workbench.action.tasks.runTask', 'R: Build'), From b6396fa99d5b185d14b3dd1717f871b5c74e3bf3 Mon Sep 17 00:00:00 2001 From: JooYoung Seo Date: Thu, 27 Oct 2022 17:20:41 -0500 Subject: [PATCH 08/12] add r.useCranComments command --- package.json | 5 +++++ src/extension.ts | 1 + 2 files changed, 6 insertions(+) diff --git a/package.json b/package.json index c4d5735e8..0504e1a6b 100644 --- a/package.json +++ b/package.json @@ -446,6 +446,11 @@ "category": "R Package", "command": "r.useVersion" }, + { + "title": "CRAN Submission Comments", + "category": "R Package", + "command": "r.useCranComments" + }, { "title": "Load All", "category": "R Package", diff --git a/src/extension.ts b/src/extension.ts index 6db6e1eae..a32abc8c2 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -122,6 +122,7 @@ export async function activate(context: vscode.ExtensionContext): Promise rTerminal.runTextInTerm('devtools::check_win_devel()'), 'r.release': () => rTerminal.runTextInTerm('devtools::release()'), 'r.useVersion': () => rTerminal.runTextInTerm('usethis::use_version()'), + 'r.useCranComments': () => rTerminal.runTextInTerm('usethis::use_cran_comments()'), // environment independent commands. this is a workaround for using the Tasks API: https://github.com/microsoft/vscode/issues/40758 'r.build': () => vscode.commands.executeCommand('workbench.action.tasks.runTask', 'R: Build'), From c0305a9ebcce4680517990cabd7681ee07099a23 Mon Sep 17 00:00:00 2001 From: JooYoung Seo Date: Thu, 27 Oct 2022 17:35:02 -0500 Subject: [PATCH 09/12] add r.useGit command --- package.json | 5 +++++ src/extension.ts | 1 + 2 files changed, 6 insertions(+) diff --git a/package.json b/package.json index 0504e1a6b..ce62fcc03 100644 --- a/package.json +++ b/package.json @@ -441,6 +441,11 @@ "category": "R", "command": "r.previewEnvironment" }, + { + "title": "Initialise A Git Repository", + "category": "R Package", + "command": "r.useGit" + }, { "title": "Increment Package Version", "category": "R Package", diff --git a/src/extension.ts b/src/extension.ts index a32abc8c2..c3d3f116a 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -123,6 +123,7 @@ export async function activate(context: vscode.ExtensionContext): Promise rTerminal.runTextInTerm('devtools::release()'), 'r.useVersion': () => rTerminal.runTextInTerm('usethis::use_version()'), 'r.useCranComments': () => rTerminal.runTextInTerm('usethis::use_cran_comments()'), + 'r.useGit': () => rTerminal.runTextInTerm('usethis::use_git()'), // environment independent commands. this is a workaround for using the Tasks API: https://github.com/microsoft/vscode/issues/40758 'r.build': () => vscode.commands.executeCommand('workbench.action.tasks.runTask', 'R: Build'), From b1f191c6df2aac76759ad409ee7371be95f4a943 Mon Sep 17 00:00:00 2001 From: JooYoung Seo Date: Thu, 27 Oct 2022 17:41:11 -0500 Subject: [PATCH 10/12] add r.useGitHub command --- package.json | 5 +++++ src/extension.ts | 1 + 2 files changed, 6 insertions(+) diff --git a/package.json b/package.json index ce62fcc03..cf3066d33 100644 --- a/package.json +++ b/package.json @@ -446,6 +446,11 @@ "category": "R Package", "command": "r.useGit" }, + { + "title": "Connect a Local Repo with GitHub", + "category": "R Package", + "command": "r.useGitHub" + }, { "title": "Increment Package Version", "category": "R Package", diff --git a/src/extension.ts b/src/extension.ts index c3d3f116a..dbc114a76 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -124,6 +124,7 @@ export async function activate(context: vscode.ExtensionContext): Promise rTerminal.runTextInTerm('usethis::use_version()'), 'r.useCranComments': () => rTerminal.runTextInTerm('usethis::use_cran_comments()'), 'r.useGit': () => rTerminal.runTextInTerm('usethis::use_git()'), + 'r.useGitHub': () => rTerminal.runTextInTerm('usethis::use_github()'), // environment independent commands. this is a workaround for using the Tasks API: https://github.com/microsoft/vscode/issues/40758 'r.build': () => vscode.commands.executeCommand('workbench.action.tasks.runTask', 'R: Build'), From 61288889522acdd77472564757cbd90975670750 Mon Sep 17 00:00:00 2001 From: JooYoung Seo Date: Thu, 27 Oct 2022 17:53:46 -0500 Subject: [PATCH 11/12] add r.useNewsMd command --- package.json | 5 +++++ src/extension.ts | 1 + 2 files changed, 6 insertions(+) diff --git a/package.json b/package.json index cf3066d33..dfe26eab3 100644 --- a/package.json +++ b/package.json @@ -441,6 +441,11 @@ "category": "R", "command": "r.previewEnvironment" }, + { + "title": "Create NEWS", + "category": "R Package", + "command": "r.useNewsMd" + }, { "title": "Initialise A Git Repository", "category": "R Package", diff --git a/src/extension.ts b/src/extension.ts index dbc114a76..937dc93e1 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -123,6 +123,7 @@ export async function activate(context: vscode.ExtensionContext): Promise rTerminal.runTextInTerm('devtools::release()'), 'r.useVersion': () => rTerminal.runTextInTerm('usethis::use_version()'), 'r.useCranComments': () => rTerminal.runTextInTerm('usethis::use_cran_comments()'), + 'r.useNewsMd': () => rTerminal.runTextInTerm('usethis::use_news_md()'), 'r.useGit': () => rTerminal.runTextInTerm('usethis::use_git()'), 'r.useGitHub': () => rTerminal.runTextInTerm('usethis::use_github()'), From 118d3b6f92a9054c80cf88fe0fa2fb0c93b90e76 Mon Sep 17 00:00:00 2001 From: JooYoung Seo Date: Thu, 27 Oct 2022 18:04:57 -0500 Subject: [PATCH 12/12] add r.pkgdownBuildSite command --- package.json | 5 +++++ src/extension.ts | 1 + 2 files changed, 6 insertions(+) diff --git a/package.json b/package.json index dfe26eab3..6f3353294 100644 --- a/package.json +++ b/package.json @@ -466,6 +466,11 @@ "category": "R Package", "command": "r.useCranComments" }, + { + "title": "Build {pkgdown} Web Site", + "category": "R Package", + "command": "r.pkgdownBuildSite" + }, { "title": "Load All", "category": "R Package", diff --git a/src/extension.ts b/src/extension.ts index 937dc93e1..60f808240 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -126,6 +126,7 @@ export async function activate(context: vscode.ExtensionContext): Promise rTerminal.runTextInTerm('usethis::use_news_md()'), 'r.useGit': () => rTerminal.runTextInTerm('usethis::use_git()'), 'r.useGitHub': () => rTerminal.runTextInTerm('usethis::use_github()'), + 'r.pkgdownBuildSite': () => rTerminal.runTextInTerm('pkgdown::build_site()'), // environment independent commands. this is a workaround for using the Tasks API: https://github.com/microsoft/vscode/issues/40758 'r.build': () => vscode.commands.executeCommand('workbench.action.tasks.runTask', 'R: Build'),