66import { Event } from 'vs/base/common/event' ;
77import { Disposable } from 'vs/base/common/lifecycle' ;
88import { IContextKeyService , IContextKey , RawContextKey } from 'vs/platform/contextkey/common/contextkey' ;
9- import { InputFocusedContext } from 'vs/platform/contextkey/common/contextkeys' ;
10- import { IWindowsConfiguration } from 'vs/platform/windows/common/windows' ;
9+ import { InputFocusedContext , IsMacContext , IsLinuxContext , IsWindowsContext , IsWebContext , IsMacNativeContext , IsDevelopmentContext } from 'vs/platform/contextkey/common/contextkeys' ;
1110import { ActiveEditorContext , EditorsVisibleContext , TextCompareEditorVisibleContext , TextCompareEditorActiveContext , ActiveEditorGroupEmptyContext , MultipleEditorGroupsContext , TEXT_DIFF_EDITOR_ID , SplitEditorsVertically , InEditorZenModeContext , IsCenteredLayoutContext , ActiveEditorGroupIndexContext , ActiveEditorGroupLastContext , ActiveEditorIsReadonlyContext , EditorAreaVisibleContext , DirtyWorkingCopiesContext } from 'vs/workbench/common/editor' ;
1211import { trackFocus , addDisposableListener , EventType } from 'vs/base/browser/dom' ;
1312import { preferredSideBySideGroupDirection , GroupDirection , IEditorGroupsService } from 'vs/workbench/services/editor/common/editorGroupsService' ;
@@ -18,27 +17,15 @@ import { WorkbenchState, IWorkspaceContextService } from 'vs/platform/workspace/
1817import { SideBarVisibleContext } from 'vs/workbench/common/viewlet' ;
1918import { IWorkbenchLayoutService , Parts , positionToString } from 'vs/workbench/services/layout/browser/layoutService' ;
2019import { IViewletService } from 'vs/workbench/services/viewlet/browser/viewlet' ;
21- import { isMacintosh , isLinux , isWindows , isWeb } from 'vs/base/common/platform' ;
2220import { PanelPositionContext } from 'vs/workbench/common/panel' ;
2321import { getRemoteName } from 'vs/platform/remote/common/remoteHosts' ;
2422import { IWorkingCopyService } from 'vs/workbench/services/workingCopy/common/workingCopyService' ;
2523
26- export const IsMacContext = new RawContextKey < boolean > ( 'isMac' , isMacintosh ) ;
27- export const IsLinuxContext = new RawContextKey < boolean > ( 'isLinux' , isLinux ) ;
28- export const IsWindowsContext = new RawContextKey < boolean > ( 'isWindows' , isWindows ) ;
29-
30- export const IsWebContext = new RawContextKey < boolean > ( 'isWeb' , isWeb ) ;
31- export const IsMacNativeContext = new RawContextKey < boolean > ( 'isMacNative' , isMacintosh && ! isWeb ) ;
32-
3324export const Deprecated_RemoteAuthorityContext = new RawContextKey < string > ( 'remoteAuthority' , '' ) ;
3425
3526export const RemoteNameContext = new RawContextKey < string > ( 'remoteName' , '' ) ;
3627export const RemoteConnectionState = new RawContextKey < '' | 'initializing' | 'disconnected' | 'connected' > ( 'remoteConnectionState' , '' ) ;
3728
38- export const HasMacNativeTabsContext = new RawContextKey < boolean > ( 'hasMacNativeTabs' , false ) ;
39-
40- export const IsDevelopmentContext = new RawContextKey < boolean > ( 'isDevelopment' , false ) ;
41-
4229export const WorkbenchStateContext = new RawContextKey < string > ( 'workbenchState' , undefined ) ;
4330
4431export const WorkspaceFolderCountContext = new RawContextKey < number > ( 'workspaceFolderCount' , 0 ) ;
@@ -98,10 +85,6 @@ export class WorkbenchContextKeysHandler extends Disposable {
9885
9986 RemoteNameContext . bindTo ( this . contextKeyService ) . set ( getRemoteName ( this . environmentService . configuration . remoteAuthority ) || '' ) ;
10087
101- // macOS Native Tabs
102- const windowConfig = this . configurationService . getValue < IWindowsConfiguration > ( ) ;
103- HasMacNativeTabsContext . bindTo ( this . contextKeyService ) . set ( windowConfig ?. window ?. nativeTabs ) ;
104-
10588 // Development
10689 IsDevelopmentContext . bindTo ( this . contextKeyService ) . set ( ! this . environmentService . isBuilt || this . environmentService . isExtensionDevelopment ) ;
10790
0 commit comments