@@ -2,7 +2,15 @@ Index: sagemaker-code-editor/vscode/src/vs/server/node/webClientServer.ts
22===================================================================
33--- sagemaker-code-editor.orig/vscode/src/vs/server/node/webClientServer.ts
44+++ sagemaker-code-editor/vscode/src/vs/server/node/webClientServer.ts
5- @@ -40,6 +40,10 @@ const textMimeType: { [ext: string]: str
5+ @@ -6,6 +6,7 @@
6+ import { createReadStream, existsSync, writeFileSync } from 'fs';
7+ import {readFile } from 'fs/promises';
8+ import { Promises } from 'vs/base/node/pfs';
9+ + import { spawn } from 'child_process';
10+ import * as fs from 'fs';
11+ import * as path from 'path';
12+ import * as http from 'http';
13+ @@ -40,6 +41,10 @@ const textMimeType: { [ext: string]: str
614 '.svg': 'image/svg+xml',
715 };
816
@@ -13,23 +21,23 @@ Index: sagemaker-code-editor/vscode/src/vs/server/node/webClientServer.ts
1321 /**
1422 * Return an error to the client.
1523 */
16- @@ -142,6 +146 ,7 @@ export class WebClientServer {
24+ @@ -142,6 +147 ,7 @@ export class WebClientServer {
1725 private readonly _callbackRoute: string;
1826 private readonly _webExtensionRoute: string;
1927 private readonly _idleRoute: string;
2028+ private readonly _postStartupScriptRoute: string;
2129
2230 constructor(
2331 private readonly _connectionToken: ServerConnectionToken,
24- @@ -158,6 +163 ,7 @@ export class WebClientServer {
32+ @@ -158,6 +164 ,7 @@ export class WebClientServer {
2533 this._callbackRoute = `${serverRootPath}/callback`;
2634 this._webExtensionRoute = `${serverRootPath}/web-extension-resource`;
2735 this._idleRoute = '/api/idle';
2836+ this._postStartupScriptRoute = '/api/poststartup';
2937 }
3038
3139 /**
32- @@ -186,6 +192 ,9 @@ export class WebClientServer {
40+ @@ -186,6 +193 ,9 @@ export class WebClientServer {
3341 // extension resource support
3442 return this._handleWebExtensionResource(req, res, parsedUrl);
3543 }
@@ -39,7 +47,7 @@ Index: sagemaker-code-editor/vscode/src/vs/server/node/webClientServer.ts
3947
4048 return serveError(req, res, 404, 'Not found.');
4149 } catch (error) {
42- @@ -524,6 +533 ,41 @@ export class WebClientServer {
50+ @@ -524,6 +534 ,41 @@ export class WebClientServer {
4351 serveError(req, res, 500, error.message)
4452 }
4553 }
0 commit comments