import ts from "typescript/lib/tsserverlibrary" ; export function createLogFunction ( info ) { return ( ... stuff ) => { const output = stuff . map ( ( value ) => JSON . stringify ( value , null , 2 ) ) . join ( " " ) ; return info . project . projectService . logger . info ( `[twin-macro-autocomplete] ${ output }` ) ; } ; }