Skip to content

Commit c521a0a

Browse files
committed
Add context keys for platforms
Fixes #8962
1 parent 7050df2 commit c521a0a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/vs/workbench/electron-browser/workbench.ts

+4
Original file line numberDiff line numberDiff line change
@@ -595,6 +595,10 @@ export class Workbench extends Disposable implements IPartService {
595595
private handleContextKeys(): void {
596596
this.inZenMode = InEditorZenModeContext.bindTo(this.contextKeyService);
597597

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+
598602
const sidebarVisibleContextRaw = new RawContextKey<boolean>('sidebarVisible', false);
599603
this.sideBarVisibleContext = sidebarVisibleContextRaw.bindTo(this.contextKeyService);
600604

0 commit comments

Comments
 (0)