Consider EPERM error as other vscode processes using rust-analyzer

This commit is contained in:
Veetaha 2020-07-07 12:09:37 +03:00
parent d4bc2f25de
commit fd1487db51

View file

@ -54,7 +54,7 @@ async function tryActivate(context: vscode.ExtensionContext) {
const serverPath = await bootstrap(config, state).catch(err => { const serverPath = await bootstrap(config, state).catch(err => {
let message = "bootstrap error. "; 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 += "Other vscode windows might be using rust-analyzer, ";
message += "you should close them and reload this window to retry. "; message += "you should close them and reload this window to retry. ";
} }