Skip to content

Commit

Permalink
Add context keys for platforms (#54894)
Browse files Browse the repository at this point in the history
Fixes #8962
  • Loading branch information
Tyriar authored and bpasero committed Aug 7, 2018
1 parent e3c7828 commit b9caa37
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 @@ -597,6 +597,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 b9caa37

Please sign in to comment.