import * as vscode from 'vscode' ; import * as crsALExt from 'crs-al-language-extension-api' ; export class CRSALLangExtHelper { private static _crsALLangExtApi : crsALExt . ICRSExtensionPublicApi | undefined = undefined ; public static async GetCrsAlLangExt ( ) { if ( ! this . _crsALLangExtApi ) { let crsExtension = vscode . extensions . getExtension ( 'waldo.crs-al-language-extension' ) ; if ( crsExtension ) { if ( crsExtension . isActive ) this . _crsALLangExtApi = crsExtension . exports ; else this . _crsALLangExtApi = await crsExtension . activate ( ) ; } } return this . _crsALLangExtApi ; } }