Skip to content

Commit 27f0f19

Browse files
committed
vscode: Use options.base for update checking
See #2358 (comment)
1 parent 7282ebf commit 27f0f19

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ci/dev/vscode.patch

+4-4
Original file line numberDiff line numberDiff line change
@@ -813,7 +813,7 @@ new file mode 100644
813813
index 0000000000000000000000000000000000000000..ead6a3cd5e98fdde074f19ee5043f152ed407146
814814
--- /dev/null
815815
+++ b/src/vs/server/browser/client.ts
816-
@@ -0,0 +1,240 @@
816+
@@ -0,0 +1,239 @@
817817
+import { Emitter } from 'vs/base/common/event';
818818
+import { URI } from 'vs/base/common/uri';
819819
+import { localize } from 'vs/nls';
@@ -967,8 +967,7 @@ index 0000000000000000000000000000000000000000..ead6a3cd5e98fdde074f19ee5043f152
967967
+
968968
+ const logService = (services.get(ILogService) as ILogService);
969969
+ const storageService = (services.get(IStorageService) as IStorageService);
970-
+ // We set this here first in case the path changes.
971-
+ const updateCheckEndpoint = path.join(window.location.pathname, '/update/check');
970+
+ const updateCheckEndpoint = path.join(options.base, "/update/check")
972971
+ const getUpdate = async (): Promise<void> => {
973972
+ logService.debug('Checking for update...');
974973
+
@@ -1449,13 +1448,14 @@ new file mode 100644
14491448
index 0000000000000000000000000000000000000000..0a4a91e5e36bda7f888feedda348aaff5fe32d27
14501449
--- /dev/null
14511450
+++ b/src/vs/server/ipc.d.ts
1452-
@@ -0,0 +1,131 @@
1451+
@@ -0,0 +1,132 @@
14531452
+/**
14541453
+ * External interfaces for integration into code-server over IPC. No vs imports
14551454
+ * should be made in this file.
14561455
+ */
14571456
+export interface Options {
14581457
+ disableTelemetry: boolean
1458+
+ base: string
14591459
+}
14601460
+
14611461
+export interface InitMessage {

0 commit comments

Comments
 (0)