import { injectable, inject } from 'inversify'; import { Functional } from '../../parts/functional'; import { MapStore, EventBus } from '../../../services'; import { ServicesIoc, WorkbenchIoc } from '../../../ioc'; export interface IHtmlSyntaxIntegrator { } @injectable() export class HtmlSyntaxIntegrator implements IHtmlSyntaxIntegrator { constructor( // services @inject(ServicesIoc.Identifier.MapStore) private _mapStore: MapStore, @inject(ServicesIoc.Identifier.EventBus) private _eventBus: EventBus, // parts @inject(WorkbenchIoc.PartsIdentifier.Functional) private _functional: Functional ) { } getVariableValue(key: string, storeKey?: string) { let variable = this._functional.getVariable(key, storeKey); return variable && variable.value; } }