Skip to content

Commit 92ddbc7

Browse files
committed
Disable automatic updates
1 parent 4a32858 commit 92ddbc7

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/node/cli.ts

-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ export interface Args extends VsArgs {
2525
readonly auth?: AuthType
2626
readonly cert?: OptionalString
2727
readonly "cert-key"?: string
28-
readonly "disable-updates"?: boolean
2928
readonly "disable-telemetry"?: boolean
3029
readonly help?: boolean
3130
readonly host?: string
@@ -90,7 +89,6 @@ const options: Options<Required<Args>> = {
9089
description: "Path to certificate. Generated if no path is provided.",
9190
},
9291
"cert-key": { type: "string", path: true, description: "Path to certificate key when using non-generated cert." },
93-
"disable-updates": { type: "boolean", description: "Disable automatic updates." },
9492
"disable-telemetry": { type: "boolean", description: "Disable telemetry." },
9593
help: { type: "boolean", short: "h", description: "Show this output." },
9694
json: { type: "boolean" },

src/node/entry.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ const main = async (args: Args): Promise<void> => {
7474
const httpServer = new HttpServer(options)
7575
const vscode = httpServer.registerHttpProvider("/", VscodeHttpProvider, args)
7676
const api = httpServer.registerHttpProvider("/api", ApiHttpProvider, httpServer, vscode, args["user-data-dir"])
77-
const update = httpServer.registerHttpProvider("/update", UpdateHttpProvider, !args["disable-updates"])
77+
const update = httpServer.registerHttpProvider("/update", UpdateHttpProvider, true)
7878
httpServer.registerHttpProvider("/proxy", ProxyHttpProvider)
7979
httpServer.registerHttpProvider("/login", LoginHttpProvider)
8080
httpServer.registerHttpProvider("/static", StaticHttpProvider)
@@ -114,7 +114,7 @@ const main = async (args: Args): Promise<void> => {
114114
httpServer.proxyDomains.forEach((domain) => logger.info(` - *.${domain}`))
115115
}
116116

117-
logger.info(`Automatic updates are ${update.enabled ? "enabled" : "disabled"}`)
117+
// logger.info(`Automatic updates are ${update.enabled ? "enabled" : "disabled"}`)
118118

119119
if (serverAddress && !options.socket && args.open) {
120120
// The web socket doesn't seem to work if browsing with 0.0.0.0.

0 commit comments

Comments
 (0)