function ajaxReq(action) {
        let xhr = new XMLHttpRequest();

        let url = refreshUrl + "/php-ar.php?currentFile=" + currentFile + '&action=' + action + '&d=' + (new Date()).getTime()

        /**
         * @todo remove for production
         */
        //this is for debugging purposes only
        url += '&XDEBUG_SESSION_START=PHPSTORM';

        xhr.open('GET', url);
        xhr.send();
        return xhr;
    }
//Calls the script php-ar.php, passing it the following parameters: the current file, the action to be perform (start or stop monitoring), and the current time (to avoid caching)
Calls the script php-ar.php, passing it the following parameters: the current file, the action to be perform (start or stop monitoring), and the current time (to avoid caching)
Calls the script php - ar . php passing it the following parameters : the current file the action to be perform ( start or stop monitoring ) and the current time ( to avoid caching )
function ajaxReq(action) {
        let xhr = new XMLHttpRequest();
        let url = refreshUrl + "/php-ar.php?currentFile=" + currentFile + '&action=' + action + '&d=' + (new Date()).getTime()
        url += '&XDEBUG_SESSION_START=PHPSTORM';
        xhr.open('GET', url);
        xhr.send();
        return xhr;
    }
function ajaxReq ( action ) { let xhr = new XMLHttpRequest ( ) ; let url = refreshUrl + "/php-ar.php?currentFile=" + currentFile + '&action=' + action + '&d=' + ( new Date ( ) ) . getTime ( ) url += '&XDEBUG_SESSION_START=PHPSTORM' ; xhr . open ( 'GET' , url ) ; xhr . send ( ) ; return xhr ; }
Calls the script php-ar.php, passing it the following parameters: the current file, the action to be perform (start or stop monitoring), and the current time (to avoid caching)
Calls the script php - ar . php passing it the following parameters : the current file the action to be perform ( start or stop monitoring ) and the current time ( to avoid caching )
/**
         * @todo remove for production
         */ //this is for debugging purposes only