@@ -31,7 +31,6 @@ import { IConfigurationService } from 'vs/platform/configuration/common/configur
3131import { ParsedArgs } from 'vs/platform/environment/common/environment' ;
3232import { IProcessEnvironment } from 'vs/base/common/platform' ;
3333import { toStoreData , restoreRecentlyOpened } from 'vs/platform/history/common/historyStorage' ;
34- import { IWorkbenchEnvironmentService } from 'vs/workbench/services/environment/common/environmentService' ;
3534import { IDialogService } from 'vs/platform/dialogs/common/dialogs' ;
3635import { IProductService } from 'vs/platform/product/common/product' ;
3736import Severity from 'vs/base/common/severity' ;
@@ -176,7 +175,6 @@ export class SimpleWindowService extends Disposable implements IWindowService {
176175 @IStorageService private readonly storageService : IStorageService ,
177176 @IWorkspaceContextService private readonly workspaceService : IWorkspaceContextService ,
178177 @ILogService private readonly logService : ILogService ,
179- @IWorkbenchEnvironmentService private readonly workbenchEnvironmentService : IWorkbenchEnvironmentService
180178 ) {
181179 super ( ) ;
182180
@@ -372,7 +370,7 @@ export class SimpleWindowService extends Disposable implements IWindowService {
372370 for ( let i = 0 ; i < _uris . length ; i ++ ) {
373371 const uri = _uris [ i ] ;
374372 if ( 'folderUri' in uri ) {
375- const newAddress = `${ document . location . origin } /?folder=${ uri . folderUri . path } ${ this . workbenchEnvironmentService . configuration . connectionToken ? `&tkn= ${ this . workbenchEnvironmentService . configuration . connectionToken } ` : '' } ` ;
373+ const newAddress = `${ document . location . origin } /?folder=${ uri . folderUri . path } ` ;
376374 if ( openFolderInNewWindow ) {
377375 window . open ( newAddress ) ;
378376 } else {
@@ -459,7 +457,6 @@ export class SimpleWindowsService implements IWindowsService {
459457 readonly onRecentlyOpenedChange : Event < void > = Event . None ;
460458
461459 constructor (
462- @IWorkbenchEnvironmentService private readonly workbenchEnvironmentService : IWorkbenchEnvironmentService ,
463460 @IDialogService private readonly dialogService : IDialogService ,
464461 @IProductService private readonly productService : IProductService ,
465462 @IClipboardService private readonly clipboardService : IClipboardService
@@ -651,11 +648,6 @@ export class SimpleWindowsService implements IWindowsService {
651648 addQueryParameter ( 'ibe' , ibe ) ;
652649 }
653650
654- // add connection token
655- if ( this . workbenchEnvironmentService . configuration . connectionToken ) {
656- addQueryParameter ( 'tkn' , this . workbenchEnvironmentService . configuration . connectionToken ) ;
657- }
658-
659651 window . open ( newAddress ) ;
660652
661653 return Promise . resolve ( ) ;
0 commit comments