mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-26 13:03:31 +00:00
Consider EPERM error as other vscode processes using rust-analyzer
This commit is contained in:
parent
d4bc2f25de
commit
fd1487db51
1 changed files with 1 additions and 1 deletions
|
@ -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. ";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue