src/search/QuickOpen.js
function _getPluginsForCurrentContext() {
        var curDoc = DocumentManager.getCurrentDocument();

        if (curDoc) {
            var languageId = curDoc.getLanguage().getId();
            return _providerRegistrationHandler.getProvidersForLanguageId(languageId);
        }

        return _providerRegistrationHandler.getProvidersForLanguageId(); //plugins registered for all
    }
function _getPluginsForCurrentContext() {
        var curDoc = DocumentManager.getCurrentDocument();

        if (curDoc) {
            var languageId = curDoc.getLanguage().getId();
            return _providerRegistrationHandler.getProvidersForLanguageId(languageId);
        }

        return _providerRegistrationHandler.getProvidersForLanguageId(); //plugins registered for all
    }
function _getPluginsForCurrentContext ( ) { var curDoc = DocumentManager . getCurrentDocument ( ) ; if ( curDoc ) { var languageId = curDoc . getLanguage ( ) . getId ( ) ; return _providerRegistrationHandler . getProvidersForLanguageId ( languageId ) ; } return _providerRegistrationHandler . getProvidersForLanguageId ( ) ; //plugins registered for all }
Helper function to get the plugins based on the type of the current document.
@private
@returns {Array} Returns the plugings based on the languageId of the current document.
Helper function to get the plugins based on the type of the current document .