From fd1487db51dcbd3296e00e3e62a7e8414e1c48d9 Mon Sep 17 00:00:00 2001 From: Veetaha Date: Tue, 7 Jul 2020 12:09:37 +0300 Subject: [PATCH] Consider EPERM error as other vscode processes using rust-analyzer --- editors/code/src/main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editors/code/src/main.ts b/editors/code/src/main.ts index 5877be8b27..4b990afa19 100644 --- a/editors/code/src/main.ts +++ b/editors/code/src/main.ts @@ -54,7 +54,7 @@ async function tryActivate(context: vscode.ExtensionContext) { const serverPath = await bootstrap(config, state).catch(err => { let message = "bootstrap error. "; - if (err.code === "EBUSY" || err.code === "ETXTBSY") { + if (err.code === "EBUSY" || err.code === "ETXTBSY" || err.code === "EPERM") { message += "Other vscode windows might be using rust-analyzer, "; message += "you should close them and reload this window to retry. "; }