Skip to content

Commit cf855ae

Browse files
committed
docs(patches): add nots for update-check.diff
1 parent d7a0447 commit cf855ae

File tree

1 file changed

+13
-8
lines changed

1 file changed

+13
-8
lines changed

patches/update-check.diff

+13-8
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ Add a notification that lets you know when an update is out
33
The easiest way to test this is probably to change the version in your
44
package.json and delete the last notification storage item.
55

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+
611
Index: code-server/lib/vscode/src/vs/workbench/browser/client.ts
712
===================================================================
813
--- 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
1419
import { INotificationService, Severity } from 'vs/platform/notification/common/notification';
1520
+import { IProductService } from 'vs/platform/product/common/productService';
1621
+import { IStorageService, StorageScope, StorageTarget } from 'vs/platform/storage/common/storage';
17-
22+
1823
export class CodeServerClient extends Disposable {
1924
constructor (
2025
+ @ILogService private logService: ILogService,
@@ -93,7 +98,7 @@ Index: code-server/lib/vscode/src/vs/base/common/product.ts
9398
readonly codeServerVersion?: string
9499
readonly rootEndpoint?: string
95100
+ readonly updateEndpoint?: string
96-
101+
97102
readonly version: string;
98103
readonly date?: string;
99104
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
114119
+++ code-server/lib/vscode/src/vs/server/node/serverEnvironmentService.ts
115120
@@ -11,6 +11,8 @@ import { refineServiceDecorator } from '
116121
import { IEnvironmentService, INativeEnvironmentService } from 'vs/platform/environment/common/environment';
117-
122+
118123
export const serverOptions: OptionDescriptions<ServerParsedArgs> = {
119124
+ /* ----- code-server ----- */
120125
+ 'disable-update-check': { type: 'boolean' },
121-
126+
122127
/* ----- server setup ----- */
123-
128+
124129
@@ -88,6 +90,8 @@ export const serverOptions: OptionDescri
125130
};
126-
131+
127132
export interface ServerParsedArgs {
128133
+ /* ----- code-server ----- */
129134
+ 'disable-update-check'?: boolean;
130-
135+
131136
/* ----- server setup ----- */
132-
137+

0 commit comments

Comments
 (0)