5243: Consider EPERM error as other vscode processes using rust-analyzer r=matklad a=Veetaha

According to: https://github.com/rust-analyzer/rust-analyzer/issues/5009#issuecomment-654561497

Co-authored-by: Veetaha <veetaha2@gmail.com>
This commit is contained in:
bors[bot] 2020-07-07 09:22:39 +00:00 committed by GitHub
commit 0058f97d57
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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. ";
}