@@ -813,7 +813,7 @@ new file mode 100644
813
813
index 0000000000000000000000000000000000000000..ead6a3cd5e98fdde074f19ee5043f152ed407146
814
814
--- /dev/null
815
815
+++ b/src/vs/server/browser/client.ts
816
- @@ -0,0 +1,239 @@
816
+ @@ -0,0 +1,241 @@
817
817
+ import { Emitter } from 'vs/base/common/event';
818
818
+ import { URI } from 'vs/base/common/uri';
819
819
+ import { localize } from 'vs/nls';
@@ -967,7 +967,7 @@ index 0000000000000000000000000000000000000000..ead6a3cd5e98fdde074f19ee5043f152
967
967
+
968
968
+ const logService = (services.get(ILogService) as ILogService);
969
969
+ const storageService = (services.get(IStorageService) as IStorageService);
970
- + const updateCheckEndpoint = path.join(options.base, "/update/check")
970
+ + const updateCheckEndpoint = path.join(options.base, "/update/check");
971
971
+ const getUpdate = async (): Promise<void> => {
972
972
+ logService.debug('Checking for update...');
973
973
+
@@ -987,8 +987,8 @@ index 0000000000000000000000000000000000000000..ead6a3cd5e98fdde074f19ee5043f152
987
987
+
988
988
+ const lastNoti = storageService.getNumber('csLastUpdateNotification', StorageScope.GLOBAL);
989
989
+ if (lastNoti) {
990
- + // Only remind them again after two days .
991
- + const timeout = 1000*60*24*2 ;
990
+ + // Only remind them again after 1 week .
991
+ + const timeout = 1000*60*24*7 ;
992
992
+ const threshold = lastNoti + timeout;
993
993
+ if (Date.now() < threshold) {
994
994
+ return;
@@ -1011,7 +1011,9 @@ index 0000000000000000000000000000000000000000..ead6a3cd5e98fdde074f19ee5043f152
1011
1011
+ });
1012
1012
+ };
1013
1013
+
1014
- + updateLoop();
1014
+ + if (!options.disableUpdateCheck) {
1015
+ + updateLoop();
1016
+ + }
1015
1017
+
1016
1018
+ // This will be used to set the background color while VS Code loads.
1017
1019
+ const theme = storageService.get('colorThemeData', StorageScope.GLOBAL);
@@ -1448,14 +1450,15 @@ new file mode 100644
1448
1450
index 0000000000000000000000000000000000000000..0a4a91e5e36bda7f888feedda348aaff5fe32d27
1449
1451
--- /dev/null
1450
1452
+++ b/src/vs/server/ipc.d.ts
1451
- @@ -0,0 +1,132 @@
1453
+ @@ -0,0 +1,133 @@
1452
1454
+ /**
1453
1455
+ * External interfaces for integration into code-server over IPC. No vs imports
1454
1456
+ * should be made in this file.
1455
1457
+ */
1456
1458
+ export interface Options {
1457
- + disableTelemetry: boolean
1458
1459
+ base: string
1460
+ + disableTelemetry: boolean
1461
+ + disableUpdateCheck: boolean
1459
1462
+ }
1460
1463
+
1461
1464
+ export interface InitMessage {
0 commit comments