Remove ETXTBUSY check, we don't overwrite binaries

This commit is contained in:
Laurențiu Nicola 2021-12-23 09:50:09 +02:00
parent 3835b3790e
commit 8b304a72f6

View file

@ -30,11 +30,6 @@ async function tryActivate(context: vscode.ExtensionContext) {
const serverPath = await bootstrap(context, config, state).catch(err => { const serverPath = await bootstrap(context, config, state).catch(err => {
let message = "bootstrap error. "; let message = "bootstrap error. ";
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. ";
}
message += 'See the logs in "OUTPUT > Rust Analyzer Client" (should open automatically). '; message += 'See the logs in "OUTPUT > Rust Analyzer Client" (should open automatically). ';
message += 'To enable verbose logs use { "rust-analyzer.trace.extension": true }'; message += 'To enable verbose logs use { "rust-analyzer.trace.extension": true }';