fix: clear session state when changing specs in open mode (#23146)

This commit is contained in:
Emily Rohrbough
2022-08-12 13:00:01 -05:00
committed by GitHub
parent 0729a6833b
commit f1122fcf62
16 changed files with 107 additions and 63 deletions
-9
View File
@@ -95,8 +95,6 @@ export async function spawned (
const [executable, ...rest] = command.split(' ')
// console.log(useExecutable, rest, spawnOpts)
const cp = universalSpawn(executable, rest, {
stdio: 'pipe',
...spawnOpts,
@@ -133,13 +131,6 @@ export async function forked (
) {
const { waitForExit, waitForData, tapErr, tapOut, ...spawnOpts } = opts
// console.log(args)
// let useExecutable = executable
// if (process.platform === 'win32' && !useExecutable.endsWith('.cmd')) {
// useExecutable = `${executable}.cmd`
// }
const cp = fork(modulePath, args, {
stdio: 'pipe',
...spawnOpts,