@@ -769,10 +769,10 @@ index 096b9e23493539c9937940a56e555d95bbae38d9..ef37e614004f550f7b64eacd362f6894
769769 remove(key: string, scope: StorageScope): void {
770770diff --git a/src/vs/server/browser/client.ts b/src/vs/server/browser/client.ts
771771new file mode 100644
772- index 0000000000000000000000000000000000000000..c6eef331346ebc244a26e8b1e5919d192225b971
772+ index 0000000000000000000000000000000000000000..385b9da491d38a9f5d10fab6e4666c84a892f49d
773773--- /dev/null
774774+++ b/src/vs/server/browser/client.ts
775- @@ -0,0 +1,237 @@
775+ @@ -0,0 +1,240 @@
776776+ import { Emitter } from 'vs/base/common/event';
777777+ import { URI } from 'vs/base/common/uri';
778778+ import { localize } from 'vs/nls';
@@ -792,6 +792,7 @@ index 0000000000000000000000000000000000000000..c6eef331346ebc244a26e8b1e5919d19
792792+ import { Options } from 'vs/server/ipc.d';
793793+ import { IStorageService, StorageScope } from 'vs/platform/storage/common/storage';
794794+ import { ILogService } from 'vs/platform/log/common/log';
795+ + import * as path from 'vs/base/common/path';
795796+
796797+ class TelemetryService extends TelemetryChannelClient {
797798+ public constructor(
@@ -925,10 +926,12 @@ index 0000000000000000000000000000000000000000..c6eef331346ebc244a26e8b1e5919d19
925926+
926927+ const logService = (services.get(ILogService) as ILogService);
927928+ const storageService = (services.get(IStorageService) as IStorageService);
929+ + // We set this here first in case the path changes.
930+ + const updateCheckEndpoint = path.join(window.location.pathname, "/update/check")
928931+ const getUpdate = async (): Promise<void> => {
929932+ logService.debug("Checking for update...");
930933+
931- + const response = await fetch("update/check" , {
934+ + const response = await fetch(updateCheckEndpoint , {
932935+ headers: { "Accept": "application/json" },
933936+ });
934937+ if (!response.ok) {
0 commit comments