import { LanguageMode , LanguageService as HTMLLanguageService , Position , } from '../languageModes' ; import { TextDocument } from 'vscode-languageserver-textdocument' ; export function getHTMLMode ( htmlLanguageService ) { return { getId ( ) { return 'html' ; } , doComplete ( document , position ) { return htmlLanguageService . doComplete ( document , position , htmlLanguageService . parseHTMLDocument ( document ) ) ; } , onDocumentRemoved ( _document ) { } , dispose ( ) { } } ; }