diff --git a/changelog.d/62.added.md b/changelog.d/62.added.md index a02957b8..fdf45c45 100644 --- a/changelog.d/62.added.md +++ b/changelog.d/62.added.md @@ -1 +1 @@ -Add option to disable auto-update +Add option to disable auto-update. diff --git a/src/binaryManager.ts b/src/binaryManager.ts index d4483319..813b5058 100644 --- a/src/binaryManager.ts +++ b/src/binaryManager.ts @@ -25,22 +25,6 @@ function getExtensionMirrordPath(): Uri { * @returns Path to mirrord binary or null if not found */ export async function getLocalMirrordBinary(version?: string): Promise { - try { - const mirrordPath = getExtensionMirrordPath(); - await workspace.fs.stat(mirrordPath); - if (version) { - const api = new MirrordAPI(mirrordPath.fsPath); - const installedVersion = await api.getBinaryVersion(); - if (installedVersion === version) { - return mirrordPath.fsPath; - } - } else { - return mirrordPath.fsPath; - } - - } catch (e) { - console.log("couldn't find mirrord in extension storage"); - } try { const mirrordPath = await which("mirrord"); if (version) { @@ -59,6 +43,21 @@ export async function getLocalMirrordBinary(version?: string): Promise