interface ILangImpl { conf : monaco . languages . LanguageConfiguration ; language : monaco . languages . IMonarchLanguage ; } const language = { id : "bsl" , extensions : [ ".bsl" , ".os" ] , } ; monaco . languages . register ( language ) ; monaco . languages . onLanguage ( language . id , ( ) => { import ( "./configuration" ) . then ( ( module ) => { monaco . languages . setLanguageConfiguration ( language . id , module . conf ) ; monaco . languages . setMonarchTokensProvider ( language . id , module . language ) ; } ) ; } ) ;