We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7050df2 commit c521a0aCopy full SHA for c521a0a
src/vs/workbench/electron-browser/workbench.ts
@@ -595,6 +595,10 @@ export class Workbench extends Disposable implements IPartService {
595
private handleContextKeys(): void {
596
this.inZenMode = InEditorZenModeContext.bindTo(this.contextKeyService);
597
598
+ (new RawContextKey<boolean>('isMac', isMacintosh)).bindTo(this.contextKeyService);
599
+ (new RawContextKey<boolean>('isLinux', isLinux)).bindTo(this.contextKeyService);
600
+ (new RawContextKey<boolean>('isWindows', isWindows)).bindTo(this.contextKeyService);
601
+
602
const sidebarVisibleContextRaw = new RawContextKey<boolean>('sidebarVisible', false);
603
this.sideBarVisibleContext = sidebarVisibleContextRaw.bindTo(this.contextKeyService);
604
0 commit comments