import { diagnosticDefault , LanguageServiceDefaults , LanguageServiceDefaultsImpl , modeConfigurationDefault , registerLanguage } from '../_.contribution' ; import { languages } from '../fillers/monaco-editor-core' ; const languageId = 'flinksql' ; registerLanguage ( { id : languageId , extensions : [ '.flinksql' ] , aliases : [ 'FlinkSQL' ] , loader : ( ) => import ( './flinksql' ) } ) ; const flinkDefaults = new LanguageServiceDefaultsImpl ( languageId , diagnosticDefault , modeConfigurationDefault ) ; languages . onLanguage ( languageId , ( ) => { import ( '../setupLanguageMode' ) . then ( ( mode ) => mode . setupLanguageMode ( flinkDefaults ) ) ; } ) ;