Skip to content

Commit

Permalink
fix(vscode): ensure daemon spawns in shell for Windows compatibility (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
alestiago committed Sep 20, 2023
1 parent afc6d8e commit d7efe88
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions extensions/vscode/src/daemon/dart-frog-daemon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ export class DartFrogDaemon {

this.process = spawn("dart_frog", ["daemon"], {
cwd: workingDirectory,
shell: true,
});
this.process.stdout.on("data", this.stdoutDataListener.bind(this));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ suite("DartFrogDaemon", () => {
childProcessStub.spawn
.withArgs("dart_frog", ["daemon"], {
cwd: workingDirectory,
shell: true,
})
.returns(daemonProcess);

Expand All @@ -73,6 +74,7 @@ suite("DartFrogDaemon", () => {
childProcessStub.spawn
.withArgs("dart_frog", ["daemon"], {
cwd: workingDirectory,
shell: true,
})
.returns(daemonProcess);

Expand All @@ -94,6 +96,7 @@ suite("DartFrogDaemon", () => {
childProcessStub.spawn
.withArgs("dart_frog", ["daemon"], {
cwd: workingDirectory,
shell: true,
})
.returns(daemonProcess);

Expand Down Expand Up @@ -125,6 +128,7 @@ suite("DartFrogDaemon", () => {
childProcessStub.spawn
.withArgs("dart_frog", ["daemon"], {
cwd: workingDirectory,
shell: true,
})
.returns(daemonProcess);

Expand Down Expand Up @@ -235,6 +239,7 @@ suite("DartFrogDaemon", () => {
childProcessStub.spawn
.withArgs("dart_frog", ["daemon"], {
cwd: workingDirectory,
shell: true,
})
.returns(daemonProcess);

Expand Down Expand Up @@ -318,6 +323,7 @@ suite("DartFrogDaemon", () => {
childProcessStub.spawn
.withArgs("dart_frog", ["daemon"], {
cwd: workingDirectory,
shell: true,
})
.returns(daemonProcess);

Expand Down Expand Up @@ -351,6 +357,7 @@ suite("DartFrogDaemon", () => {
childProcessStub.spawn
.withArgs("dart_frog", ["daemon"], {
cwd: workingDirectory,
shell: true,
})
.returns(daemonProcess);

Expand Down

0 comments on commit d7efe88

Please sign in to comment.