Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MonacoContextKeyService

Hierarchy

  • MonacoContextKeyService

Implements

  • ContextKeyService

Index

Constructors

Properties

activeContext?: HTMLElement | IContext
contextKeyService: ContextKeyService
expressions: Map<string, ContextKeyExpression> = ...
onDidChange: Event<ContextKeyChangeEvent> = ...
onDidChangeEmitter: Emitter<ContextKeyChangeEvent> = ...

Methods

  • createKey<T>(key: string, defaultValue: undefined | T): ContextKey<T>
  • createOverlay(overlay: Iterable<[string, unknown]>): ContextMatcher
  • createScoped(target: HTMLElement): ScopedValueStore
  • dispose(): void
  • identifyContext(callersContext?: HTMLElement | IContext, service?: IContextKeyService): undefined | IContext
  • init(): void
  • match(expression: string, context?: HTMLElement): boolean
  • parse(when: string): undefined | ContextKeyExpression
  • parseKeys(expression: string): undefined | Set<string>
  • setContext(key: string, value: unknown): void
  • with<T>(values: Record<string, unknown>, callback: (() => T)): T