ecode: Added sol format support.

Added new option for the ThreadPool.
This commit is contained in:
Martín Lucas Golini
2021-11-10 19:54:21 -03:00
parent 21e8ae53af
commit 63d998656d
7 changed files with 44 additions and 1092 deletions

View File

@@ -135,11 +135,9 @@ void FormatterModule::runFormatter( UICodeEditor* editor, const Formatter& forma
if ( 0 == result ) {
std::string buffer( 1024, '\0' );
std::string data;
unsigned index = 0;
unsigned bytesRead = 0;
do {
bytesRead = subprocess_read_stdout( &subprocess, &buffer[0], buffer.size() );
index += bytesRead;
data += buffer.substr( 0, bytesRead );
} while ( bytesRead != 0 );