Skip to content
This repository was archived by the owner on Nov 18, 2022. It is now read-only.

Commit 5f755a2

Browse files
committed
Consider EPERM error as other vscode processes using rust-analyzer
1 parent 1586fab commit 5f755a2

File tree

1 file changed

+1
-1
lines changed
  • rust-analyzer/editors/code/src

1 file changed

+1
-1
lines changed

rust-analyzer/editors/code/src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ async function tryActivate(context: vscode.ExtensionContext) {
5454
const serverPath = await bootstrap(config, state).catch(err => {
5555
let message = "bootstrap error. ";
5656

57-
if (err.code === "EBUSY" || err.code === "ETXTBSY") {
57+
if (err.code === "EBUSY" || err.code === "ETXTBSY" || err.code === "EPERM") {
5858
message += "Other vscode windows might be using rust-analyzer, ";
5959
message += "you should close them and reload this window to retry. ";
6060
}

0 commit comments

Comments
 (0)