Skip to content

Commit

Permalink
Add context keys for platforms
Browse files Browse the repository at this point in the history
Fixes #8962
  • Loading branch information
Tyriar committed Jul 23, 2018
1 parent 7050df2 commit c521a0a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/vs/workbench/electron-browser/workbench.ts
Original file line number Diff line number Diff line change
Expand Up @@ -595,6 +595,10 @@ export class Workbench extends Disposable implements IPartService {
private handleContextKeys(): void {
this.inZenMode = InEditorZenModeContext.bindTo(this.contextKeyService);

(new RawContextKey<boolean>('isMac', isMacintosh)).bindTo(this.contextKeyService);
(new RawContextKey<boolean>('isLinux', isLinux)).bindTo(this.contextKeyService);
(new RawContextKey<boolean>('isWindows', isWindows)).bindTo(this.contextKeyService);

const sidebarVisibleContextRaw = new RawContextKey<boolean>('sidebarVisible', false);
this.sideBarVisibleContext = sidebarVisibleContextRaw.bindTo(this.contextKeyService);

Expand Down

0 comments on commit c521a0a

Please sign in to comment.