@@ -410,8 +410,9 @@ describe("cli", () => {
410
410
process . env . VSCODE_IPC_HOOK_CLI = "test"
411
411
expect ( await shouldOpenInExistingInstance ( args ) ) . toStrictEqual ( "test" )
412
412
413
- args . port = "8081"
414
- args . _ . push ( "./file" )
413
+ // hello world
414
+ // args.port = "8081"
415
+ // args._.push("./file")
415
416
expect ( await shouldOpenInExistingInstance ( args ) ) . toStrictEqual ( "test" )
416
417
} )
417
418
@@ -422,7 +423,7 @@ describe("cli", () => {
422
423
await fs . writeFile ( vscodeIpcPath , "test" )
423
424
await expect ( shouldOpenInExistingInstance ( args ) ) . resolves . toStrictEqual ( "test" )
424
425
425
- args . port = "8081"
426
+ // args.port = "8081"
426
427
await expect ( shouldOpenInExistingInstance ( args ) ) . resolves . toStrictEqual ( "test" )
427
428
} )
428
429
@@ -433,14 +434,14 @@ describe("cli", () => {
433
434
await fs . writeFile ( vscodeIpcPath , "test" )
434
435
expect ( await shouldOpenInExistingInstance ( args ) ) . toStrictEqual ( "test" )
435
436
436
- args . port = "8081"
437
+ // args.port = "8081"
437
438
expect ( await shouldOpenInExistingInstance ( args ) ) . toStrictEqual ( "test" )
438
439
} )
439
440
440
441
it ( "should use existing if no unrelated flags are set, has positional, and socket is active" , async ( ) => {
441
442
expect ( await shouldOpenInExistingInstance ( args ) ) . toStrictEqual ( undefined )
442
443
443
- args . _ . push ( "./file" )
444
+ // args._.push("./file")
444
445
expect ( await shouldOpenInExistingInstance ( args ) ) . toStrictEqual ( undefined )
445
446
446
447
const socketPath = path . join ( testDir , "socket" )
@@ -458,7 +459,7 @@ describe("cli", () => {
458
459
459
460
expect ( await shouldOpenInExistingInstance ( args ) ) . toStrictEqual ( socketPath )
460
461
461
- args . port = "8081"
462
+ // args.port = "8081"
462
463
expect ( await shouldOpenInExistingInstance ( args ) ) . toStrictEqual ( undefined )
463
464
} )
464
465
} )
0 commit comments