import * as vscode from 'vscode' ; import { IRender } from '../renders/interfaces' ; import { localRender } from '../renders/local' ; import { plantumlServer } from '../renders/plantumlServer' ; import { config , RenderType } from '../config' ; returns export function appliedRender ( uri ) { switch ( config . render ( uri ) ) { case RenderType . Local : return localRender ; case RenderType . PlantUMLServer : return plantumlServer ; default : return localRender ; } }