UNPKG

@theia/monaco

Version:
23 lines 1.66 kB
import { ContextKeyService as TheiaContextKeyService, ContextKey, ContextKeyChangeEvent, ScopedValueStore, ContextMatcher, ContextKeyValue } from '@theia/core/lib/browser/context-key-service'; import { Emitter } from '@theia/core'; import { AbstractContextKeyService } from '@theia/monaco-editor-core/esm/vs/platform/contextkey/browser/contextKeyService'; import { ContextKeyExpression, IContext, IContextKeyService } from '@theia/monaco-editor-core/esm/vs/platform/contextkey/common/contextkey'; export declare class MonacoContextKeyService implements TheiaContextKeyService { protected readonly onDidChangeEmitter: Emitter<ContextKeyChangeEvent>; readonly onDidChange: import("@theia/core").Event<ContextKeyChangeEvent>; get contextKeyService(): AbstractContextKeyService; protected init(): void; createKey<T extends ContextKeyValue>(key: string, defaultValue: T | undefined): ContextKey<T>; activeContext?: HTMLElement | IContext; match(expression: string, context?: HTMLElement): boolean; protected identifyContext(callersContext?: HTMLElement | IContext, service?: IContextKeyService): IContext | undefined; protected readonly expressions: Map<string, ContextKeyExpression>; parse(when: string): ContextKeyExpression | undefined; parseKeys(expression: string): Set<string> | undefined; with<T>(values: Record<string, unknown>, callback: () => T): T; createScoped(target: HTMLElement): ScopedValueStore; createOverlay(overlay: Iterable<[string, unknown]>): ContextMatcher; setContext(key: string, value: unknown): void; dispose(): void; } //# sourceMappingURL=monaco-context-key-service.d.ts.map