File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -529,9 +529,10 @@ export const shouldOpenInExistingInstance = async (args: Args): Promise<string |
529
529
}
530
530
531
531
// It's possible the user is trying to spawn another instance of code-server.
532
- // Check if any unrelated flags are set (add one for `_` which always exists),
533
- // that a file or directory was passed, and that the socket is active.
534
- if ( Object . keys ( args ) . length === openInFlagCount + 1 && args . _ . length > 0 ) {
532
+ // Check if any unrelated flags are set (check against one because `_` always
533
+ // exists), that a file or directory was passed, and that the socket is
534
+ // active.
535
+ if ( Object . keys ( args ) . length === 1 && args . _ . length > 0 ) {
535
536
const socketPath = await readSocketPath ( )
536
537
if ( socketPath && ( await canConnect ( socketPath ) ) ) {
537
538
return socketPath
You can’t perform that action at this time.
0 commit comments