@@ -3,6 +3,11 @@ Add a notification that lets you know when an update is out
3
3
The easiest way to test this is probably to change the version in your
4
4
package.json and delete the last notification storage item.
5
5
6
+ 1. change version in root `package.json`
7
+ 2. Open DevTools > Application > Storage (top-level)
8
+ 3. Click "Clear site data"
9
+ 4. See update notification
10
+
6
11
Index: code-server/lib/vscode/src/vs/workbench/browser/client.ts
7
12
===================================================================
8
13
--- code-server.orig/lib/vscode/src/vs/workbench/browser/client.ts
@@ -14,7 +19,7 @@ Index: code-server/lib/vscode/src/vs/workbench/browser/client.ts
14
19
import { INotificationService, Severity } from 'vs/platform/notification/common/notification';
15
20
+ import { IProductService } from 'vs/platform/product/common/productService';
16
21
+ import { IStorageService, StorageScope, StorageTarget } from 'vs/platform/storage/common/storage';
17
-
22
+
18
23
export class CodeServerClient extends Disposable {
19
24
constructor (
20
25
+ @ILogService private logService: ILogService,
@@ -93,7 +98,7 @@ Index: code-server/lib/vscode/src/vs/base/common/product.ts
93
98
readonly codeServerVersion?: string
94
99
readonly rootEndpoint?: string
95
100
+ readonly updateEndpoint?: string
96
-
101
+
97
102
readonly version: string;
98
103
readonly date?: string;
99
104
Index: code-server/lib/vscode/src/vs/server/node/webClientServer.ts
@@ -114,19 +119,19 @@ Index: code-server/lib/vscode/src/vs/server/node/serverEnvironmentService.ts
114
119
+++ code-server/lib/vscode/src/vs/server/node/serverEnvironmentService.ts
115
120
@@ -11,6 +11,8 @@ import { refineServiceDecorator } from '
116
121
import { IEnvironmentService, INativeEnvironmentService } from 'vs/platform/environment/common/environment';
117
-
122
+
118
123
export const serverOptions: OptionDescriptions<ServerParsedArgs> = {
119
124
+ /* ----- code-server ----- */
120
125
+ 'disable-update-check': { type: 'boolean' },
121
-
126
+
122
127
/* ----- server setup ----- */
123
-
128
+
124
129
@@ -88,6 +90,8 @@ export const serverOptions: OptionDescri
125
130
};
126
-
131
+
127
132
export interface ServerParsedArgs {
128
133
+ /* ----- code-server ----- */
129
134
+ 'disable-update-check'?: boolean;
130
-
135
+
131
136
/* ----- server setup ----- */
132
-
137
+
0 commit comments