提交 b9caa370 编写于 作者: D Daniel Imms 提交者: Benjamin Pasero

Add context keys for platforms (#54894)

Fixes #8962
上级 e3c78282
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册