import { DataHandle , getLineIndices } from "@azure-tools/datastore" ; param content returns export function createDataHandle ( content , props = { } ) { const name = props . name ?? "test-generated" ; const key = name . includes ( "://" ) ? name : `mem://${ name }` ; return new DataHandle ( key , { status : "loaded" , name , identity : [ name ] , artifactType : "" , cached : content , lineIndices : getLineIndices ( content ) , positionSourceMap : undefined , pathSourceMap : undefined , } , false ) ; }