@@ -583,20 +583,21 @@ index ede771a03e..bb40fcdd6b 100644
583
583
if (!userDataProvider) {
584
584
const remoteUserDataUri = this.getRemoteUserDataUri();
585
585
diff --git a/src/vs/workbench/browser/web.simpleservices.ts b/src/vs/workbench/browser/web.simpleservices.ts
586
- index 25414d8733..a0de828393 100644
586
+ index 25414d8733..20b0ad4a49 100644
587
587
--- a/src/vs/workbench/browser/web.simpleservices.ts
588
588
+++ b/src/vs/workbench/browser/web.simpleservices.ts
589
- @@ -38,6 +38,9 @@ import { IRemoteAgentService } from 'vs/workbench/services/remote/common/remoteA
589
+ @@ -38,6 +38,10 @@ import { IRemoteAgentService } from 'vs/workbench/services/remote/common/remoteA
590
590
import { IExperimentService, IExperiment, ExperimentActionType, ExperimentState } from 'vs/workbench/contrib/experiments/common/experimentService';
591
591
import { ExtensionHostDebugChannelClient, ExtensionHostDebugBroadcastChannel } from 'vs/platform/debug/common/extensionHostDebugIpc';
592
592
import { IWorkbenchEnvironmentService } from 'vs/workbench/services/environment/common/environmentService';
593
593
+ import { ExtensionManagementChannelClient } from 'vs/platform/extensionManagement/common/extensionManagementIpc';
594
+ + import { withQuery } from 'vs/server/src/client';
594
595
+ import { IUploadService, UploadService } from 'vs/server/src/upload';
595
596
+ registerSingleton(IUploadService, UploadService, true);
596
597
597
598
//#region Extension Tips
598
599
599
- @@ -131,7 +134 ,15 @@ export class SimpleExtensionManagementService implements IExtensionManagementSer
600
+ @@ -131,7 +135 ,15 @@ export class SimpleExtensionManagementService implements IExtensionManagementSer
600
601
}
601
602
}
602
603
@@ -613,7 +614,7 @@ index 25414d8733..a0de828393 100644
613
614
614
615
//#endregion
615
616
616
- @@ -251,7 +262 ,7 @@ export class SimpleUpdateService implements IUpdateService {
617
+ @@ -251,7 +263 ,7 @@ export class SimpleUpdateService implements IUpdateService {
617
618
}
618
619
}
619
620
@@ -622,25 +623,32 @@ index 25414d8733..a0de828393 100644
622
623
623
624
//#endregion
624
625
625
- @@ -491,7 +502,7 @@ export class SimpleWindowService extends Disposable implements IWindowService {
626
+ @@ -491,7 +503,11 @@ export class SimpleWindowService extends Disposable implements IWindowService {
626
627
for (let i = 0; i < _uris.length; i++) {
627
628
const uri = _uris[i];
628
629
if ('folderUri' in uri) {
629
630
- const newAddress = `${document.location.origin}/?folder=${uri.folderUri.path}${this.workbenchEnvironmentService.configuration.connectionToken ? `&tkn=${this.workbenchEnvironmentService.configuration.connectionToken}` : ''}`;
630
- + const newAddress = `${window.location}?folder=${uri.folderUri.path}${this.workbenchEnvironmentService.configuration.connectionToken ? `&tkn=${this.workbenchEnvironmentService.configuration.connectionToken}` : ''}`;
631
+ + const newAddress = withQuery(window.location.toString(), {
632
+ + folder: uri.folderUri.path,
633
+ + tkn: this.workbenchEnvironmentService.configuration.connectionToken,
634
+ + workspace: undefined,
635
+ + });
631
636
if (openFolderInNewWindow) {
632
637
window.open(newAddress);
633
638
} else {
634
- @@ -499,7 +510,7 @@ export class SimpleWindowService extends Disposable implements IWindowService {
639
+ @@ -499,7 +515,10 @@ export class SimpleWindowService extends Disposable implements IWindowService {
635
640
}
636
641
}
637
642
if ('workspaceUri' in uri) {
638
643
- const newAddress = `${document.location.origin}/?workspace=${uri.workspaceUri.path}`;
639
- + const newAddress = `${window.location}?workspace=${uri.workspaceUri.path}`;
644
+ + const newAddress = withQuery(window.location.toString(), {
645
+ + folder: undefined,
646
+ + workspace: uri.workspaceUri.path,
647
+ + });
640
648
if (openFolderInNewWindow) {
641
649
window.open(newAddress);
642
650
} else {
643
- @@ -718,6 +729 ,7 @@ export class SimpleWindowsService implements IWindowsService {
651
+ @@ -718,6 +737 ,7 @@ export class SimpleWindowsService implements IWindowsService {
644
652
}
645
653
646
654
relaunch(_options: { addArgs?: string[], removeArgs?: string[] }): Promise<void> {
0 commit comments