import { createConnection , TextDocuments } from 'vscode-languageserver' ; const connection = createConnection ( ) ; const documents = new TextDocuments ( ) ; connection . onInitialize ( ( ) => ( { capabilities : { textDocumentSync : documents . syncKind , completionProvider : { triggerCharacters : [ ... 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-_"' ] } } } ) ) ; documents . listen ( connection ) ; connection . listen ( ) ; export { connection , documents } ;