src/languageTools/ClientLoader.js
function sendLanguageClientInfo() {
        //Init node with Information required by Language Client
        clientInfoLoadedPromise = clientInfoDomain.exec("initialize", _bracketsPath, ToolingInfo);

        function logInitializationError() {
            console.error("Failed to Initialize LanguageClient Module Information.");
        }

        //Attach success and failure function for the clientInfoLoadedPromise
        clientInfoLoadedPromise.then(function (success) {
            if (!success) {
                logInitializationError();
                return;
            }

            if (Array.isArray(pendingClientsToBeLoaded)) {
                pendingClientsToBeLoaded.forEach(function (pendingClient) {
                    pendingClient.load();
                });
            } else {
                exports.trigger("languageClientModuleInitialized");
            }
            pendingClientsToBeLoaded = null;
        }, function () {
            logInitializationError();
        });
    }
function sendLanguageClientInfo() {
        //Init node with Information required by Language Client
        clientInfoLoadedPromise = clientInfoDomain.exec("initialize", _bracketsPath, ToolingInfo);

        function logInitializationError() {
            console.error("Failed to Initialize LanguageClient Module Information.");
        }

        //Attach success and failure function for the clientInfoLoadedPromise
        clientInfoLoadedPromise.then(function (success) {
            if (!success) {
                logInitializationError();
                return;
            }

            if (Array.isArray(pendingClientsToBeLoaded)) {
                pendingClientsToBeLoaded.forEach(function (pendingClient) {
                    pendingClient.load();
                });
            } else {
                exports.trigger("languageClientModuleInitialized");
            }
            pendingClientsToBeLoaded = null;
        }, function () {
            logInitializationError();
        });
    }
function sendLanguageClientInfo ( ) { //Init node with Information required by Language Client clientInfoLoadedPromise = clientInfoDomain . exec ( "initialize" , _bracketsPath , ToolingInfo ) ; function logInitializationError ( ) { console . error ( "Failed to Initialize LanguageClient Module Information." ) ; } //Attach success and failure function for the clientInfoLoadedPromise clientInfoLoadedPromise . then ( function ( success ) { if ( ! success ) { logInitializationError ( ) ; return ; } if ( Array . isArray ( pendingClientsToBeLoaded ) ) { pendingClientsToBeLoaded . forEach ( function ( pendingClient ) { pendingClient . load ( ) ; } ) ; } else { exports . trigger ( "languageClientModuleInitialized" ) ; } pendingClientsToBeLoaded = null ; } , function ( ) { logInitializationError ( ) ; } ) ; }
This function passes Brackets's native directory path as well as the tooling commands
required by the LanguageClient node module. This information is then maintained in memory
in the node process server for succesfully loading and functioning of all language clients
since it is a direct dependency.
This function passes Brackets s native directory path as well as the tooling commands required by the LanguageClient node module . This information is then maintained in memory in the node process server for succesfully loading and functioning of all language clients since it is a direct dependency .