@@ -769,10 +769,10 @@ index 096b9e23493539c9937940a56e555d95bbae38d9..ef37e614004f550f7b64eacd362f6894
769769 remove(key: string, scope: StorageScope): void {
770770diff --git a/src/vs/server/browser/client.ts b/src/vs/server/browser/client.ts
771771new file mode 100644
772- index 0000000000000000000000000000000000000000..71df1d2b0a718c6a6fbb66a075be52d1be3ff00d
772+ index 0000000000000000000000000000000000000000..bae5b43e07e33b24ed5cc62d39c6b929c0bc4e5f
773773--- /dev/null
774774+++ b/src/vs/server/browser/client.ts
775- @@ -0,0 +1,239 @@
775+ @@ -0,0 +1,241 @@
776776+ import { Emitter } from 'vs/base/common/event';
777777+ import { URI } from 'vs/base/common/uri';
778778+ import { localize } from 'vs/nls';
@@ -926,7 +926,7 @@ index 0000000000000000000000000000000000000000..71df1d2b0a718c6a6fbb66a075be52d1
926926+
927927+ const logService = (services.get(ILogService) as ILogService);
928928+ const storageService = (services.get(IStorageService) as IStorageService);
929- + const updateCheckEndpoint = path.join(options.base, "/update/check")
929+ + const updateCheckEndpoint = path.join(options.base, "/update/check");
930930+ const getUpdate = async (): Promise<void> => {
931931+ logService.debug("Checking for update...");
932932+
@@ -946,8 +946,8 @@ index 0000000000000000000000000000000000000000..71df1d2b0a718c6a6fbb66a075be52d1
946946+
947947+ const lastNoti = storageService.getNumber("csLastUpdateNotification", StorageScope.GLOBAL);
948948+ if (lastNoti) {
949- + // Only remind them again after two days .
950- + const timeout = 1000*60*24*2 ;
949+ + // Only remind them again after 1 week .
950+ + const timeout = 1000*60*24*7 ;
951951+ const threshold = lastNoti + timeout;
952952+ if (Date.now() < threshold) {
953953+ return;
@@ -970,7 +970,9 @@ index 0000000000000000000000000000000000000000..71df1d2b0a718c6a6fbb66a075be52d1
970970+ });
971971+ };
972972+
973- + updateLoop();
973+ + if (!options.disableUpdateCheck) {
974+ + updateLoop();
975+ + }
974976+
975977+ // This will be used to set the background color while VS Code loads.
976978+ const theme = storageService.get("colorThemeData", StorageScope.GLOBAL);
@@ -1404,17 +1406,18 @@ index 0000000000000000000000000000000000000000..56331ff1fc32bbd82e769aaecb551e42
14041406+ require('../../bootstrap-amd').load('vs/server/entry');
14051407diff --git a/src/vs/server/ipc.d.ts b/src/vs/server/ipc.d.ts
14061408new file mode 100644
1407- index 0000000000000000000000000000000000000000..fd0115a74eb2d7362a3bf2543cb354a29a58936a
1409+ index 0000000000000000000000000000000000000000..14f658f2702034a0500aebb5417576e5d6ffe406
14081410--- /dev/null
14091411+++ b/src/vs/server/ipc.d.ts
1410- @@ -0,0 +1,132 @@
1412+ @@ -0,0 +1,133 @@
14111413+ /**
14121414+ * External interfaces for integration into code-server over IPC. No vs imports
14131415+ * should be made in this file.
14141416+ */
14151417+ export interface Options {
1416- + disableTelemetry: boolean
14171418+ base: string
1419+ + disableTelemetry: boolean
1420+ + disableUpdateCheck: boolean
14181421+ }
14191422+
14201423+ export interface InitMessage {
0 commit comments