We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf83957 commit a9672dfCopy full SHA for a9672df
packages/core/src/shared/lsp/lspResolver.ts
@@ -308,7 +308,14 @@ export class LanguageServerResolver {
308
// attempt to unzip
309
const zipFile = new AdmZip(zip)
310
const extractPath = zip.replace('.zip', '')
311
- zipFile.extractAllTo(extractPath, true)
+
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)
319
} catch (e) {
320
return false
321
}
0 commit comments