Skip to content

Commit 66a315a

Browse files
committed
vscode: Check updates with absolute path
In case the window location path changes. Not entirely sure if it can but best to be on the safe side.
1 parent 37c80c9 commit 66a315a

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

ci/dev/vscode.patch

+5-3
Original file line numberDiff line numberDiff line change
@@ -769,10 +769,10 @@ index 096b9e23493539c9937940a56e555d95bbae38d9..ef37e614004f550f7b64eacd362f6894
769769
remove(key: string, scope: StorageScope): void {
770770
diff --git a/src/vs/server/browser/client.ts b/src/vs/server/browser/client.ts
771771
new file mode 100644
772-
index 0000000000000000000000000000000000000000..c6eef331346ebc244a26e8b1e5919d192225b971
772+
index 0000000000000000000000000000000000000000..772cd5d9e1c66d7893fa13e240df71b2b311c044
773773
--- /dev/null
774774
+++ b/src/vs/server/browser/client.ts
775-
@@ -0,0 +1,237 @@
775+
@@ -0,0 +1,239 @@
776776
+import { Emitter } from 'vs/base/common/event';
777777
+import { URI } from 'vs/base/common/uri';
778778
+import { localize } from 'vs/nls';
@@ -925,10 +925,12 @@ index 0000000000000000000000000000000000000000..c6eef331346ebc244a26e8b1e5919d19
925925
+
926926
+ const logService = (services.get(ILogService) as ILogService);
927927
+ const storageService = (services.get(IStorageService) as IStorageService);
928+
+ // We set this here first in case the path changes.
929+
+ const updateCheckEndpoint = window.location.pathname + "/update/check"
928930
+ const getUpdate = async (): Promise<void> => {
929931
+ logService.debug("Checking for update...");
930932
+
931-
+ const response = await fetch("update/check", {
933+
+ const response = await fetch(updateCheckEndpoint, {
932934
+ headers: { "Accept": "application/json" },
933935
+ });
934936
+ if (!response.ok) {

0 commit comments

Comments
 (0)