We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 82b7909 commit 6ce489aCopy full SHA for 6ce489a
src/node/cli.ts
@@ -488,7 +488,7 @@ export const shouldOpenInExistingInstance = async (args: Args): Promise<string |
488
// It's possible the user is trying to spawn another instance of code-server.
489
// Check if any unrelated flags are set (add one for `_` which always exists),
490
// that a file or directory was passed, and that the socket is active.
491
- if (Object.keys(args).length === openInFlagCount + 1 && args._.length > 0) {
+ if (Object.keys(args).length === 1 && args._.length > 0) {
492
const socketPath = await readSocketPath()
493
if (socketPath && (await canConnect(socketPath))) {
494
return socketPath
0 commit comments