Skip to content

Commit 4234546

Browse files
committed
release 2.3.1
1 parent 827de04 commit 4234546

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/rmarkdown/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ async function goToChunk(chunk: RMarkdownChunk) {
399399
// Move cursor 1 line below 'chunk start line'
400400
const line = chunk.startLine + 1;
401401
vscode.window.activeTextEditor.selection = new vscode.Selection(line, 0, line, 0);
402-
await vscode.commands.executeCommand('revealLine', { lineNumber: line, at: 'center'});
402+
await vscode.commands.executeCommand('revealLine', { lineNumber: line, at: 'center' });
403403
}
404404

405405
export function goToPreviousChunk(chunks: RMarkdownChunk[] = _getChunks(),

src/rmarkdown/knit.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ export class RMarkdownKnitManager extends RMarkdownManager {
109109
if (yamlParams?.['knit']) {
110110
const knitParam = yamlParams['knit'];
111111
knitCommand = outputFormat ?
112-
`${knitParam}(${docPath}, output_format = '${outputFormat}')`:
112+
`${knitParam}(${docPath}, output_format = '${outputFormat}')` :
113113
`${knitParam}(${docPath})`;
114114
} else if (!this.isREADME(docPath) && yamlParams?.['site']) {
115115
knitCommand = outputFormat ?
@@ -127,7 +127,7 @@ export class RMarkdownKnitManager extends RMarkdownManager {
127127
// check if the workspace of the document is a R Markdown site.
128128
// the definition of what constitutes an R Markdown site differs
129129
// depending on the type of R Markdown site (i.e., "simple" vs. blogdown sites)
130-
private async findSiteParam(): Promise<string|undefined> {
130+
private async findSiteParam(): Promise<string | undefined> {
131131
const rootFolder = vscode.workspace.workspaceFolders[0].uri.fsPath;
132132
const wad = vscode.window.activeTextEditor.document.uri.fsPath;
133133
const indexFile = (await vscode.workspace.findFiles(new vscode.RelativePattern(rootFolder, 'index.{Rmd,rmd, md}'), null, 1))?.[0];
@@ -136,7 +136,7 @@ export class RMarkdownKnitManager extends RMarkdownManager {
136136
// 'Simple' R Markdown websites require all docs to be in the root folder
137137
if (fs.existsSync(siteRoot)) {
138138
return 'rmarkdown::render_site';
139-
// Other generators may allow for docs in subdirs
139+
// Other generators may allow for docs in subdirs
140140
} else if (indexFile) {
141141
const indexData = this.getYamlFrontmatter(indexFile.fsPath);
142142
if (indexData?.['site']) {

src/rmarkdown/preview.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ export class RMarkdownPreviewManager extends RMarkdownManager {
292292
const re = new RegExp(`.*${lim}(.*)${lim}.*`, 'ms');
293293
const outputFile = path.join(tmpDir(), crypto.createHash('sha256').update(filePath).digest('hex') + '.html');
294294
const scriptValues = {
295-
'VSCR_KNIT_DIR' : knitWorkingDirText,
295+
'VSCR_KNIT_DIR': knitWorkingDirText,
296296
'VSCR_LIM': lim,
297297
'VSCR_FILE_PATH': filePath.replace(/\\/g, '/'),
298298
'VSCR_OUTPUT_FILE': outputFile.replace(/\\/g, '/'),

0 commit comments

Comments
 (0)