From de99fa71992b0d86e245b14a946b8c4914c1be6c Mon Sep 17 00:00:00 2001
From: Veetaha <gerzoh1@gmail.com>
Date: Sun, 8 Mar 2020 21:47:35 +0200
Subject: vscode: fix inversion of askBeforeDownload

---
 editors/code/src/config.ts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'editors/code/src')

diff --git a/editors/code/src/config.ts b/editors/code/src/config.ts
index cb9af86c0..948c12c2d 100644
--- a/editors/code/src/config.ts
+++ b/editors/code/src/config.ts
@@ -134,7 +134,7 @@ export class Config {
             file: prebuiltBinaryName,
             storage: this.ctx.globalState,
             tag: Config.extensionVersion,
-            askBeforeDownload: !(this.cfg.get("askBeforeDownload") as boolean),
+            askBeforeDownload: this.cfg.get("askBeforeDownload") as boolean,
             repo: {
                 name: "rust-analyzer",
                 owner: "rust-analyzer",
-- 
cgit v1.2.3