From 4f67f4e096ecda9d39da35616b677c7c8fd5eb2d Mon Sep 17 00:00:00 2001 From: Anmol Sethi Date: Sun, 10 May 2020 02:23:41 -0400 Subject: [PATCH] Disable automatic updates --- src/node/cli.ts | 2 -- src/node/entry.ts | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/node/cli.ts b/src/node/cli.ts index 53561d25..34eaf2e5 100644 --- a/src/node/cli.ts +++ b/src/node/cli.ts @@ -25,7 +25,6 @@ export interface Args extends VsArgs { readonly auth?: AuthType readonly cert?: OptionalString readonly "cert-key"?: string - readonly "disable-updates"?: boolean readonly "disable-telemetry"?: boolean readonly help?: boolean readonly host?: string @@ -90,7 +89,6 @@ const options: Options> = { description: "Path to certificate. Generated if no path is provided.", }, "cert-key": { type: "string", path: true, description: "Path to certificate key when using non-generated cert." }, - "disable-updates": { type: "boolean", description: "Disable automatic updates." }, "disable-telemetry": { type: "boolean", description: "Disable telemetry." }, help: { type: "boolean", short: "h", description: "Show this output." }, json: { type: "boolean" }, diff --git a/src/node/entry.ts b/src/node/entry.ts index f048ec9a..fce92dce 100644 --- a/src/node/entry.ts +++ b/src/node/entry.ts @@ -74,7 +74,7 @@ const main = async (args: Args): Promise => { const httpServer = new HttpServer(options) const vscode = httpServer.registerHttpProvider("/", VscodeHttpProvider, args) const api = httpServer.registerHttpProvider("/api", ApiHttpProvider, httpServer, vscode, args["user-data-dir"]) - const update = httpServer.registerHttpProvider("/update", UpdateHttpProvider, !args["disable-updates"]) + const update = httpServer.registerHttpProvider("/update", UpdateHttpProvider, true) httpServer.registerHttpProvider("/proxy", ProxyHttpProvider) httpServer.registerHttpProvider("/login", LoginHttpProvider) httpServer.registerHttpProvider("/static", StaticHttpProvider) @@ -114,7 +114,7 @@ const main = async (args: Args): Promise => { httpServer.proxyDomains.forEach((domain) => logger.info(` - *.${domain}`)) } - logger.info(`Automatic updates are ${update.enabled ? "enabled" : "disabled"}`) + // logger.info(`Automatic updates are ${update.enabled ? "enabled" : "disabled"}`) if (serverAddress && !options.socket && args.open) { // The web socket doesn't seem to work if browsing with 0.0.0.0.