Skip to content

Commit 391d548

Browse files
committed
Update Patched VS Code version to 1.93.0 with patches applied
1 parent 89f33d8 commit 391d548

File tree

5 files changed

+29
-54
lines changed

5 files changed

+29
-54
lines changed

patches/local-storage.diff

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ Index: sagemaker-code-editor/vscode/src/vs/server/node/webClientServer.ts
2020
===================================================================
2121
--- sagemaker-code-editor.orig/vscode/src/vs/server/node/webClientServer.ts
2222
+++ sagemaker-code-editor/vscode/src/vs/server/node/webClientServer.ts
23-
@@ -332,6 +332,7 @@ export class WebClientServer {
23+
@@ -330,6 +330,7 @@ export class WebClientServer {
2424
const workbenchWebConfiguration = {
2525
remoteAuthority,
26-
webviewEndpoint: vscodeBase + this._staticRoute + '/out/vs/workbench/contrib/webview/browser/pre',
26+
serverBasePath: this._basePath,
2727
+ userDataPath: this._environmentService.userDataPath,
2828
_wrapWebWorkerExtHostInIframe,
2929
developmentOptions: { enableSmokeTestDriver: this._environmentService.args['enable-smoke-test-driver'] ? true : undefined, logLevel: this._logService.getLevel() },
@@ -32,7 +32,7 @@ Index: sagemaker-code-editor/vscode/src/vs/workbench/browser/web.api.ts
3232
===================================================================
3333
--- sagemaker-code-editor.orig/vscode/src/vs/workbench/browser/web.api.ts
3434
+++ sagemaker-code-editor/vscode/src/vs/workbench/browser/web.api.ts
35-
@@ -276,6 +276,11 @@ export interface IWorkbenchConstructionO
35+
@@ -298,6 +298,11 @@ export interface IWorkbenchConstructionO
3636
*/
3737
readonly configurationDefaults?: Record<string, any>;
3838

patches/sagemaker-idle-extension.patch

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -269,10 +269,10 @@ Index: sagemaker-code-editor/vscode/build/gulpfile.extensions.js
269269
===================================================================
270270
--- sagemaker-code-editor.orig/vscode/build/gulpfile.extensions.js
271271
+++ sagemaker-code-editor/vscode/build/gulpfile.extensions.js
272-
@@ -61,6 +61,7 @@ const compilations = [
272+
@@ -59,6 +59,7 @@ const compilations = [
273+
'extensions/references-view/tsconfig.json',
273274
'extensions/search-result/tsconfig.json',
274275
'extensions/simple-browser/tsconfig.json',
275-
'extensions/sagemaker-extension/tsconfig.json',
276276
+ 'extensions/sagemaker-idle-extension/tsconfig.json',
277277
'extensions/tunnel-forwarding/tsconfig.json',
278278
'extensions/typescript-language-features/test-workspace/tsconfig.json',
@@ -281,10 +281,10 @@ Index: sagemaker-code-editor/vscode/build/npm/dirs.js
281281
===================================================================
282282
--- sagemaker-code-editor.orig/vscode/build/npm/dirs.js
283283
+++ sagemaker-code-editor/vscode/build/npm/dirs.js
284-
@@ -40,6 +40,7 @@ const dirs = [
284+
@@ -38,6 +38,7 @@ const dirs = [
285+
'extensions/npm',
285286
'extensions/php-language-features',
286287
'extensions/references-view',
287-
'extensions/sagemaker-extension',
288288
+ 'extensions/sagemaker-idle-extension',
289289
'extensions/search-result',
290290
'extensions/simple-browser',
@@ -296,28 +296,28 @@ Index: sagemaker-code-editor/vscode/src/vs/server/node/webClientServer.ts
296296
@@ -4,6 +4,7 @@
297297
*--------------------------------------------------------------------------------------------*/
298298

299-
import { createReadStream } from 'fs';
299+
import { createReadStream, promises } from 'fs';
300300
+import {readFile } from 'fs/promises';
301-
import { Promises } from 'vs/base/node/pfs';
302301
import * as path from 'path';
303302
import * as http from 'http';
304-
@@ -100,6 +101,7 @@ export class WebClientServer {
303+
import * as url from 'url';
304+
@@ -101,6 +102,7 @@ export class WebClientServer {
305305
private readonly _staticRoute: string;
306306
private readonly _callbackRoute: string;
307307
private readonly _webExtensionRoute: string;
308308
+ private readonly _idleRoute: string;
309309

310310
constructor(
311311
private readonly _connectionToken: ServerConnectionToken,
312-
@@ -115,6 +117,7 @@ export class WebClientServer {
312+
@@ -117,6 +119,7 @@ export class WebClientServer {
313313
this._staticRoute = `${serverRootPath}/static`;
314314
this._callbackRoute = `${serverRootPath}/callback`;
315315
this._webExtensionRoute = `${serverRootPath}/web-extension-resource`;
316316
+ this._idleRoute = '/api/idle';
317317
}
318318

319319
/**
320-
@@ -132,6 +135,9 @@ export class WebClientServer {
320+
@@ -134,6 +137,9 @@ export class WebClientServer {
321321
if (pathname === this._basePath) {
322322
return this._handleRoot(req, res, parsedUrl);
323323
}
@@ -327,7 +327,7 @@ Index: sagemaker-code-editor/vscode/src/vs/server/node/webClientServer.ts
327327
if (pathname === this._callbackRoute) {
328328
// callback support
329329
return this._handleCallback(res);
330-
@@ -451,6 +457,27 @@ export class WebClientServer {
330+
@@ -468,4 +474,25 @@ export class WebClientServer {
331331
});
332332
return void res.end(data);
333333
}
@@ -353,5 +353,3 @@ Index: sagemaker-code-editor/vscode/src/vs/server/node/webClientServer.ts
353353
+ }
354354
+ }
355355
}
356-
357-
/**

patches/sagemaker-integration.diff

Lines changed: 14 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -69,24 +69,24 @@ Index: sagemaker-code-editor/vscode/src/vs/workbench/browser/web.main.ts
6969
===================================================================
7070
--- sagemaker-code-editor.orig/vscode/src/vs/workbench/browser/web.main.ts
7171
+++ sagemaker-code-editor/vscode/src/vs/workbench/browser/web.main.ts
72-
@@ -95,6 +95,7 @@ import { TunnelSource } from 'vs/workbench/services/re
72+
@@ -96,6 +96,7 @@ import { ISecretStorageService } from 'v
7373
import { TunnelSource } from 'vs/workbench/services/remote/common/tunnelModel';
7474
import { mainWindow } from 'vs/base/browser/window';
7575
import { INotificationService, Severity } from 'vs/platform/notification/common/notification';
7676
+import { SagemakerServerClient } from 'vs/workbench/browser/client';
7777

7878
export class BrowserMain extends Disposable {
7979

80-
@@ -129,6 +130,9 @@ export class BrowserMain extends Disposable {
81-
80+
@@ -131,6 +132,9 @@ export class BrowserMain extends Disposa
8281
// Startup
8382
const instantiationService = workbench.startup();
84-
+
83+
8584
+ // Create instance of SagemakerServerClient
8685
+ this._register(instantiationService.createInstance(SagemakerServerClient));
87-
86+
+
8887
// Window
8988
this._register(instantiationService.createInstance(BrowserWindow));
89+
9090
Index: sagemaker-code-editor/vscode/product.json
9191
===================================================================
9292
--- sagemaker-code-editor.orig/vscode/product.json
@@ -100,14 +100,14 @@ Index: sagemaker-code-editor/vscode/product.json
100100
"applicationName": "code-oss",
101101
"dataFolderName": ".vscode-oss",
102102
"win32MutexName": "vscodeoss",
103-
@@ -34,52 +34,16 @@
103+
@@ -32,53 +32,17 @@
104104
"urlProtocol": "code-oss",
105105
"webviewContentExternalBaseUrlTemplate": "https://{{uuid}}.vscode-cdn.net/insider/ef65ac1ba57f57f2a3961bfe94aa20481caca4c6/out/vs/workbench/contrib/webview/browser/pre/",
106106
"builtInExtensions": [
107107
- {
108108
- "name": "ms-vscode.js-debug-companion",
109-
- "version": "1.1.2",
110-
- "sha256": "e034b8b41beb4e97e02c70f7175bd88abe66048374c2bd629f54bb33354bc2aa",
109+
- "version": "1.1.3",
110+
- "sha256": "7380a890787452f14b2db7835dfa94de538caf358ebc263f9d46dd68ac52de93",
111111
- "repo": "https://github.com/microsoft/vscode-js-debug-companion",
112112
- "metadata": {
113113
- "id": "99cb0b7f-7354-4278-b8da-6cc79972169d",
@@ -122,8 +122,8 @@ Index: sagemaker-code-editor/vscode/product.json
122122
- },
123123
- {
124124
- "name": "ms-vscode.js-debug",
125-
- "version": "1.90.0",
126-
- "sha256": "1317dd7d1ac50641c1534a3e957ecbc94349f4fbd897acb916da11eea3208a66",
125+
- "version": "1.93.0",
126+
- "sha256": "9339cb8e6b77f554df54d79e71f533279cb76b0f9b04c207f633bfd507442b6a",
127127
- "repo": "https://github.com/microsoft/vscode-js-debug",
128128
- "metadata": {
129129
- "id": "25629058-ddac-4e17-abba-74678e126c5d",
@@ -152,6 +152,7 @@ Index: sagemaker-code-editor/vscode/product.json
152152
- "publisherDisplayName": "Microsoft"
153153
- }
154154
- }
155+
- ]
155156
+ ],
156157
+ "extensionsGallery": {
157158
+ "serviceUrl": "https://open-vsx.org/vscode/gallery",
@@ -164,37 +165,13 @@ Index: sagemaker-code-editor/vscode/product.json
164165
+ },
165166
+ "linkProtectionTrustedDomains": [
166167
+ "https://open-vsx.org"
167-
]
168-
Index: sagemaker-code-editor/vscode/src/vs/platform/product/common/product.ts
169-
===================================================================
170-
--- sagemaker-code-editor.orig/vscode/src/vs/platform/product/common/product.ts
171-
+++ sagemaker-code-editor/vscode/src/vs/platform/product/common/product.ts
172-
@@ -59,15 +59,17 @@ else {
173-
if (Object.keys(product).length === 0) {
174-
Object.assign(product, {
175-
version: '1.90.0-dev',
176-
- nameShort: 'Code - OSS Dev',
177-
- nameLong: 'Code - OSS Dev',
178-
+ nameShort: 'CodeEditor',
179-
+ nameLong: 'Code Editor',
180-
applicationName: 'code-oss',
181-
dataFolderName: '.vscode-oss',
182-
+ commit: "hellocommit",
183-
+ date: "hellodate",
184-
urlProtocol: 'code-oss',
185-
reportIssueUrl: 'https://github.com/microsoft/vscode/issues/new',
186-
licenseName: 'MIT',
187-
licenseUrl: 'https://github.com/microsoft/vscode/blob/main/LICENSE.txt',
188-
- serverLicenseUrl: 'https://github.com/microsoft/vscode/blob/main/LICENSE.txt'
189-
+ serverLicenseUrl: 'https://github.com/microsoft/vscode/blob/main/LICENSE.txt',
190-
});
191-
}
168+
+ ]
192169
}
193170
Index: sagemaker-code-editor/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.ts
194171
===================================================================
195172
--- sagemaker-code-editor.orig/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.ts
196173
+++ sagemaker-code-editor/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.ts
197-
@@ -779,8 +779,8 @@ export class GettingStartedPage extends EditorPane {
174+
@@ -800,8 +800,8 @@ export class GettingStartedPage extends
198175
}));
199176

200177
const header = $('.header', {},
@@ -379,7 +356,7 @@ Index: sagemaker-code-editor/vscode/src/vs/workbench/contrib/welcomeGettingStart
379356
===================================================================
380357
--- sagemaker-code-editor.orig/vscode/src/vs/workbench/contrib/welcomeGettingStarted/common/gettingStartedContent.ts
381358
+++ sagemaker-code-editor/vscode/src/vs/workbench/contrib/welcomeGettingStarted/common/gettingStartedContent.ts
382-
@@ -257,8 +257,8 @@ export const walkthroughs: GettingStartedWalkthroughCo
359+
@@ -310,8 +310,8 @@ export const walkthroughs: GettingStarte
383360

384361
{
385362
id: 'SetupWeb',

patches/series

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ local-storage.diff
77
sagemaker-integration.diff
88
license.diff
99
sagemaker-idle-extension.patch
10-
terminal-crash-mitigation.patch
10+
terminal-crash-mitigation.patch

vscode

Submodule vscode updated 2591 files

0 commit comments

Comments
 (0)