Skip to content

Commit 62a00c4

Browse files
authored
fix(vscode): ensure create command is Windows compatible (#1068)
1 parent d7efe88 commit 62a00c4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

extensions/vscode/src/commands/create.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ async function executeDartFrogCreateCommand(
110110
projectName: string
111111
): Promise<void> {
112112
return cp.exec(
113-
`dart_frog create '${projectName}'`,
113+
`dart_frog create "${projectName}"`,
114114
{
115115
cwd: outputDirectory,
116116
},

extensions/vscode/src/test/suite/commands/create.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ suite("create command", () => {
185185

186186
sinon.assert.calledOnceWithMatch(
187187
childProcessStub.exec,
188-
"dart_frog create 'my_project'",
188+
`dart_frog create "my_project"`,
189189
{ cwd: targetUri.fsPath }
190190
);
191191
});
@@ -201,7 +201,7 @@ suite("create command", () => {
201201

202202
sinon.assert.calledOnceWithMatch(
203203
childProcessStub.exec,
204-
"dart_frog create 'my_project'",
204+
`dart_frog create "my_project"`,
205205
{ cwd: targetUri.fsPath }
206206
);
207207
});

0 commit comments

Comments
 (0)