From f63101166befdf0ff44c0bc0a4aad7055da50c11 Mon Sep 17 00:00:00 2001 From: Adam Tao Date: Sat, 11 Apr 2026 15:48:47 +0800 Subject: [PATCH] fix: random pipe path length extends limit on macos Signed-off-by: Adam Tao --- jsonrpc/src/node/main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jsonrpc/src/node/main.ts b/jsonrpc/src/node/main.ts index 1edc22984..31a440a05 100644 --- a/jsonrpc/src/node/main.ts +++ b/jsonrpc/src/node/main.ts @@ -179,7 +179,7 @@ export function generateRandomPipeName(): string { } let randomLength: number = 32; - const fixedLength = 'lsp-.sock'.length; + const fixedLength = '/lsp-.sock'.length; const tmpDir: string = fs.realpathSync(XDG_RUNTIME_DIR ?? os.tmpdir()); const limit = safeIpcPathLengths.get(process.platform); if (limit !== undefined) {