@@ -7,13 +7,13 @@ import { Event } from 'vs/base/common/event';
77import { Disposable } from 'vs/base/common/lifecycle' ;
88import { IContextKeyService , IContextKey } from 'vs/platform/contextkey/common/contextkey' ;
99import { InputFocusedContext } from 'vs/platform/contextkey/common/contextkeys' ;
10- import { IWindowService , IWindowsConfiguration } from 'vs/platform/windows/common/windows' ;
10+ import { IWindowsConfiguration } from 'vs/platform/windows/common/windows' ;
1111import { ActiveEditorContext , EditorsVisibleContext , TextCompareEditorVisibleContext , TextCompareEditorActiveContext , ActiveEditorGroupEmptyContext , MultipleEditorGroupsContext , TEXT_DIFF_EDITOR_ID , SplitEditorsVertically , InEditorZenModeContext } from 'vs/workbench/common/editor' ;
1212import { IsMacContext , IsLinuxContext , IsWindowsContext , HasMacNativeTabsContext , IsDevelopmentContext , SupportsWorkspacesContext , SupportsOpenFileFolderContext , WorkbenchStateContext , WorkspaceFolderCountContext , IsRemoteContext } from 'vs/workbench/common/contextkeys' ;
1313import { trackFocus , addDisposableListener , EventType } from 'vs/base/browser/dom' ;
1414import { preferredSideBySideGroupDirection , GroupDirection , IEditorGroupsService } from 'vs/workbench/services/editor/common/editorGroupsService' ;
1515import { IConfigurationService } from 'vs/platform/configuration/common/configuration' ;
16- import { IEnvironmentService } from 'vs/platform/ environment/common/environment ' ;
16+ import { IWorkbenchEnvironmentService } from 'vs/workbench/services/ environment/common/environmentService ' ;
1717import { IEditorService } from 'vs/workbench/services/editor/common/editorService' ;
1818import { WorkbenchState , IWorkspaceContextService } from 'vs/platform/workspace/common/workspace' ;
1919import { SideBarVisibleContext } from 'vs/workbench/common/viewlet' ;
@@ -43,8 +43,7 @@ export class WorkbenchContextKeysHandler extends Disposable {
4343 @IContextKeyService private contextKeyService : IContextKeyService ,
4444 @IWorkspaceContextService private contextService : IWorkspaceContextService ,
4545 @IConfigurationService private configurationService : IConfigurationService ,
46- @IEnvironmentService private environmentService : IEnvironmentService ,
47- @IWindowService private windowService : IWindowService ,
46+ @IWorkbenchEnvironmentService private environmentService : IWorkbenchEnvironmentService ,
4847 @IEditorService private editorService : IEditorService ,
4948 @IEditorGroupsService private editorGroupService : IEditorGroupsService ,
5049 @IWorkbenchLayoutService private layoutService : IWorkbenchLayoutService ,
@@ -88,7 +87,7 @@ export class WorkbenchContextKeysHandler extends Disposable {
8887 IsLinuxContext . bindTo ( this . contextKeyService ) ;
8988 IsWindowsContext . bindTo ( this . contextKeyService ) ;
9089
91- IsRemoteContext . bindTo ( this . contextKeyService ) . set ( ! ! this . windowService . getConfiguration ( ) . remoteAuthority ) ;
90+ IsRemoteContext . bindTo ( this . contextKeyService ) . set ( ! ! this . environmentService . configuration . remoteAuthority ) ;
9291
9392 // macOS Native Tabs
9493 const windowConfig = this . configurationService . getValue < IWindowsConfiguration > ( ) ;
@@ -99,7 +98,7 @@ export class WorkbenchContextKeysHandler extends Disposable {
9998
10099 // File Pickers
101100 SupportsWorkspacesContext . bindTo ( this . contextKeyService ) ;
102- SupportsOpenFileFolderContext . bindTo ( this . contextKeyService ) . set ( ! ! this . windowService . getConfiguration ( ) . remoteAuthority ) ;
101+ SupportsOpenFileFolderContext . bindTo ( this . contextKeyService ) . set ( ! ! this . environmentService . configuration . remoteAuthority ) ;
103102
104103 // Editors
105104 this . activeEditorContext = ActiveEditorContext . bindTo ( this . contextKeyService ) ;
0 commit comments