From 1b807159dcee1c533eaae3c68d4b69e922cba62e Mon Sep 17 00:00:00 2001 From: Carlos Scheidegger Date: Wed, 26 Jun 2024 16:07:14 -0700 Subject: [PATCH] improve fix for #8401 without breaking RStudio --- src/command/create/artifacts/project.ts | 2 +- src/project/project-create.ts | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/command/create/artifacts/project.ts b/src/command/create/artifacts/project.ts index f7f1e488e29..a934149c2a1 100644 --- a/src/command/create/artifacts/project.ts +++ b/src/command/create/artifacts/project.ts @@ -202,7 +202,7 @@ async function createArtifact( quiet?: boolean, ) { const dir = createDirective.directory; - const projectTitle = capitalizeTitle(createDirective.name); + const projectTitle = createDirective.name; const directiveType = createDirective.template; // Parse the project type and template diff --git a/src/project/project-create.ts b/src/project/project-create.ts index ef6c036bdbf..33a9b2af581 100644 --- a/src/project/project-create.ts +++ b/src/project/project-create.ts @@ -45,7 +45,6 @@ export interface ProjectCreateOptions { export async function projectCreate(options: ProjectCreateOptions) { // read and validate options options = await readOptions(options); - // computed options const engine = executionEngine(options.engine); if (!engine) { @@ -236,7 +235,7 @@ function projectMarkdownFile( } // write file and return it's name - name = (name + engine.defaultExt).toLocaleLowerCase(); + name = name + engine.defaultExt; const ensureSubDir = (dir: string, name: string, subdirectory?: string) => { if (subdirectory) {