Skip to content

Commit a9672df

Browse files
committed
fix(amazonq): Open multiple VSCode instances crashes VSCode
1 parent cf83957 commit a9672df

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

packages/core/src/shared/lsp/lspResolver.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,14 @@ export class LanguageServerResolver {
308308
// attempt to unzip
309309
const zipFile = new AdmZip(zip)
310310
const extractPath = zip.replace('.zip', '')
311-
zipFile.extractAllTo(extractPath, true)
311+
312+
/**
313+
* Avoid overwriting existing files during extraction to prevent file corruption.
314+
* On Mac ARM64 when a language server is already running in one VS Code window,
315+
* attempting to extract and overwrite its files from another window can cause
316+
* the newly started language server to crash with 'EXC_CRASH (SIGKILL (Code Signature Invalid))'.
317+
*/
318+
zipFile.extractAllTo(extractPath, false)
312319
} catch (e) {
313320
return false
314321
}

0 commit comments

Comments
 (0)