import * as vscode from 'vscode' ; /**
 * Returns a node module installed with VSCode, or undefined if it fails.
 */ export function getCoreNodeModule < T > ( moduleName ) { try { return require ( `${ vscode . env . appRoot }/node_modules.asar/${ moduleName }` ) ; } catch ( err ) { } try { return require ( `${ vscode . env . appRoot }/node_modules/${ moduleName }` ) ; } catch ( err ) { } return undefined ; }