Skip to content

Commit 1fc7a76

Browse files
committed
Added patched-vscode changes
1 parent f649c4b commit 1fc7a76

File tree

17 files changed

+18
-94
lines changed

17 files changed

+18
-94
lines changed

patched-vscode/build/gulpfile.extensions.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ const compilations = [
6363
'php-language-features/tsconfig.json',
6464
'search-result/tsconfig.json',
6565
'references-view/tsconfig.json',
66-
'sagemaker-extension/tsconfig.json',
6766
'simple-browser/tsconfig.json',
6867
'tunnel-forwarding/tsconfig.json',
6968
'typescript-language-features/test-workspace/tsconfig.json',

patched-vscode/build/npm/dirs.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ const dirs = [
3939
'extensions/npm',
4040
'extensions/php-language-features',
4141
'extensions/references-view',
42-
'extensions/sagemaker-extension',
4342
'extensions/search-result',
4443
'extensions/simple-browser',
4544
'extensions/tunnel-forwarding',

patched-vscode/src/vs/base/common/network.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -168,9 +168,7 @@ class RemoteAuthoritiesImpl {
168168
return URI.from({
169169
scheme: platform.isWeb ? this._preferredWebSchema : Schemas.vscodeRemoteResource,
170170
authority: `${host}:${port}`,
171-
path: platform.isWeb
172-
? (window.location.pathname + "/" + this._remoteResourcesPath).replace(/\/\/+/g, "/")
173-
: this._remoteResourcesPath,
171+
path: this._remoteResourcesPath,
174172
query
175173
});
176174
}

patched-vscode/src/vs/base/common/product.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ export type ExtensionVirtualWorkspaceSupport = {
5555
};
5656

5757
export interface IProductConfiguration {
58-
readonly rootEndpoint?: string
5958
readonly version: string;
6059
readonly date?: string;
6160
readonly quality?: string;

patched-vscode/src/vs/code/browser/workbench/workbench-dev.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
<script src="{{WORKBENCH_WEB_BASE_URL}}/out/vs/loader.js"></script>
3939
<script src="{{WORKBENCH_WEB_BASE_URL}}/out/vs/webPackagePaths.js"></script>
4040
<script>
41-
const baseUrl = new URL('{{WORKBENCH_WEB_BASE_URL}}', window.location).toString();
41+
const baseUrl = new URL('{{WORKBENCH_WEB_BASE_URL}}', window.location.origin).toString();
4242
Object.keys(self.webPackagePaths).map(function (key, index) {
4343
self.webPackagePaths[key] = `${baseUrl}/remote/web/node_modules/${key}/${self.webPackagePaths[key]}`;
4444
});

patched-vscode/src/vs/code/browser/workbench/workbench.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
<script src="{{WORKBENCH_WEB_BASE_URL}}/out/vs/loader.js"></script>
3737
<script src="{{WORKBENCH_WEB_BASE_URL}}/out/vs/webPackagePaths.js"></script>
3838
<script>
39-
const baseUrl = new URL('{{WORKBENCH_WEB_BASE_URL}}', window.location).toString();
39+
const baseUrl = new URL('{{WORKBENCH_WEB_BASE_URL}}', window.location.origin).toString();
4040
Object.keys(self.webPackagePaths).map(function (key, index) {
4141
self.webPackagePaths[key] = `${baseUrl}/node_modules/${key}/${self.webPackagePaths[key]}`;
4242
});

patched-vscode/src/vs/code/browser/workbench/workbench.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -304,8 +304,7 @@ class LocalStorageURLCallbackProvider extends Disposable implements IURLCallback
304304
this.startListening();
305305
}
306306

307-
const path = (window.location.pathname + "/" + this._callbackRoute).replace(/\/\/+/g, "/");
308-
return URI.parse(window.location.href).with({ path: path, query: queryParams.join('&') });
307+
return URI.parse(window.location.href).with({ path: this._callbackRoute, query: queryParams.join('&') });
309308
}
310309

311310
private startListening(): void {

patched-vscode/src/vs/platform/extensionResourceLoader/common/extensionResourceLoader.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import { getServiceMachineId } from 'vs/platform/externalServices/common/service
1616
import { IStorageService } from 'vs/platform/storage/common/storage';
1717
import { TelemetryLevel } from 'vs/platform/telemetry/common/telemetry';
1818
import { getTelemetryLevel, supportsTelemetry } from 'vs/platform/telemetry/common/telemetryUtils';
19+
import { RemoteAuthorities } from 'vs/base/common/network';
1920
import { getRemoteServerRootPath } from 'vs/platform/remote/common/remoteHosts';
2021
import { TargetPlatform } from 'vs/platform/extensions/common/extensions';
2122

@@ -101,7 +102,7 @@ export abstract class AbstractExtensionResourceLoaderService implements IExtensi
101102
: version,
102103
path: 'extension'
103104
}));
104-
return this._isWebExtensionResourceEndPoint(uri) ? URI.joinPath(URI.parse(window.location.href), uri.path) : uri;
105+
return this._isWebExtensionResourceEndPoint(uri) ? uri.with({ scheme: RemoteAuthorities.getPreferredWebSchema() }) : uri;
105106
}
106107
return undefined;
107108
}

patched-vscode/src/vs/platform/remote/browser/browserSocketFactory.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,6 @@ export class BrowserSocketFactory implements ISocketFactory<RemoteConnectionType
280280
connect({ host, port }: WebSocketRemoteConnection, path: string, query: string, debugLabel: string): Promise<ISocket> {
281281
return new Promise<ISocket>((resolve, reject) => {
282282
const webSocketSchema = (/^https:/.test(window.location.href) ? 'wss' : 'ws');
283-
path = (window.location.pathname + "/" + path).replace(/\/\/+/g, "/")
284283
const socket = this._webSocketFactory.create(`${webSocketSchema}://${(/:/.test(host) && !/\[/.test(host)) ? `[${host}]` : host}:${port}${path}?${query}&skipWebSocketFrames=false`, debugLabel);
285284
const errorListener = socket.onError(reject);
286285
socket.onOpen(() => {

patched-vscode/src/vs/platform/telemetry/common/1dsAppender.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ export interface IAppInsightsCore {
1818
unload(isAsync: boolean, unloadComplete: (unloadState: ITelemetryUnloadState) => void): void;
1919
}
2020

21-
const endpointUrl = 'https://0.0.0.0/OneCollector/1.0';
22-
const endpointHealthUrl = 'https://0.0.0.0/ping';
21+
const endpointUrl = 'https://mobile.events.data.microsoft.com/OneCollector/1.0';
22+
const endpointHealthUrl = 'https://mobile.events.data.microsoft.com/ping';
2323

2424
async function getClient(instrumentationKey: string, addInternalFlag?: boolean, xhrOverride?: IXHROverride): Promise<IAppInsightsCore> {
2525
const oneDs = await importAMDNodeModule<typeof import('@microsoft/1ds-core-js')>('@microsoft/1ds-core-js', 'dist/ms.core.js');

0 commit comments

Comments
 (0)