src/LiveDevelopment/LiveDevelopment.js
function _classForDocument(doc) {
        switch (doc.getLanguage().getId()) {
        case "less":
        case "scss":
            return CSSPreprocessorDocument;
        case "css":
            return CSSDocument;
        case "javascript":
            return exports.config.experimental ? JSDocument : null;
        }

        if (LiveDevelopmentUtils.isHtmlFileExt(doc.file.fullPath)) {
            return HTMLDocument;
        }

        return null;
    }
function _classForDocument(doc) {
        switch (doc.getLanguage().getId()) {
        case "less":
        case "scss":
            return CSSPreprocessorDocument;
        case "css":
            return CSSDocument;
        case "javascript":
            return exports.config.experimental ? JSDocument : null;
        }

        if (LiveDevelopmentUtils.isHtmlFileExt(doc.file.fullPath)) {
            return HTMLDocument;
        }

        return null;
    }
function _classForDocument ( doc ) { switch ( doc . getLanguage ( ) . getId ( ) ) { case "less" : case "scss" : return CSSPreprocessorDocument ; case "css" : return CSSDocument ; case "javascript" : return exports . config . experimental ? JSDocument : null ; } if ( LiveDevelopmentUtils . isHtmlFileExt ( doc . file . fullPath ) ) { return HTMLDocument ; } return null ; }
Determine which document class should be used for a given document
@param {Document} document
Determine which document class should be used for a given document