Skip to content

Commit f25a39f

Browse files
authored
fix(vscode): windows compatible new route and middleware (#1062)
1 parent f39709d commit f25a39f

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

extensions/vscode/src/commands/new-middleware.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ function executeDartFrogNewMiddlewareCommand(
156156
dartFrogProjectPath: string
157157
): void {
158158
cp.exec(
159-
`dart_frog new middleware '${routePath}'`,
159+
`dart_frog new middleware "${routePath}"`,
160160
{
161161
cwd: dartFrogProjectPath,
162162
},

extensions/vscode/src/commands/new-route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ function executeDartFrogNewRouteCommand(
154154
dartFrogProjectPath: string
155155
): void {
156156
cp.exec(
157-
`dart_frog new route '${routePath}'`,
157+
`dart_frog new route "${routePath}"`,
158158
{
159159
cwd: dartFrogProjectPath,
160160
},

extensions/vscode/src/test/suite/commands/new-middleware.test.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ suite("new-middleware command", () => {
362362

363363
sinon.assert.calledWith(
364364
childProcessStub.exec,
365-
`dart_frog new middleware 'food'`
365+
`dart_frog new middleware "food"`
366366
);
367367
});
368368

@@ -380,7 +380,7 @@ suite("new-middleware command", () => {
380380

381381
sinon.assert.calledWith(
382382
childProcessStub.exec,
383-
`dart_frog new middleware 'food/pizza'`
383+
`dart_frog new middleware "food/pizza"`
384384
);
385385
});
386386

@@ -398,7 +398,7 @@ suite("new-middleware command", () => {
398398

399399
sinon.assert.calledWith(
400400
childProcessStub.exec,
401-
`dart_frog new middleware '/'`
401+
`dart_frog new middleware "/"`
402402
);
403403
});
404404

@@ -416,7 +416,7 @@ suite("new-middleware command", () => {
416416

417417
sinon.assert.calledWith(
418418
childProcessStub.exec,
419-
`dart_frog new middleware 'food/italian'`
419+
`dart_frog new middleware "food/italian"`
420420
);
421421
});
422422

@@ -437,7 +437,7 @@ suite("new-middleware command", () => {
437437

438438
sinon.assert.calledWith(
439439
childProcessStub.exec,
440-
`dart_frog new middleware 'animals/lion'`
440+
`dart_frog new middleware "animals/lion"`
441441
);
442442
});
443443
});

extensions/vscode/src/test/suite/commands/new-route.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ suite("new-route command", () => {
338338

339339
sinon.assert.calledWith(
340340
childProcessStub.exec,
341-
`dart_frog new route '${routePath}'`
341+
`dart_frog new route "${routePath}"`
342342
);
343343
});
344344

@@ -358,7 +358,7 @@ suite("new-route command", () => {
358358

359359
sinon.assert.calledWith(
360360
childProcessStub.exec,
361-
`dart_frog new route '${routePath}'`,
361+
`dart_frog new route "${routePath}"`,
362362
{
363363
cwd: validUri.fsPath,
364364
}

0 commit comments

Comments
 (0)