From 03a1da9d469be92a0ec34c8673293811694b8449 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lauren=C8=9Biu=20Nicola?= Date: Mon, 25 Jan 2021 19:12:54 +0200 Subject: Simplify file download code --- editors/code/src/main.ts | 2 -- editors/code/src/net.ts | 9 +-------- 2 files changed, 1 insertion(+), 10 deletions(-) (limited to 'editors') diff --git a/editors/code/src/main.ts b/editors/code/src/main.ts index 1edb7713d..1900d900a 100644 --- a/editors/code/src/main.ts +++ b/editors/code/src/main.ts @@ -208,7 +208,6 @@ async function bootstrapExtension(config: Config, state: PersistentState): Promi url: artifact.browser_download_url, dest, progressTitle: "Downloading rust-analyzer extension", - overwrite: true, }); }); @@ -340,7 +339,6 @@ async function getServer(config: Config, state: PersistentState): Promise { - if (err.code !== "ENOENT") throw err; - }); - } - await vscode.window.withProgress( { location: vscode.ProgressLocation.Notification, -- cgit v1.2.3