mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-05-29 17:46:29 +03:00
Ups, staged the wrong files:
Improved ThreadPool. ecode: Make consistent the find/search highlighting with the actual results (Closes SpartanJ/ecode#73). Fixed $NPROC in LSP client commands.
This commit is contained in:
@@ -86,7 +86,7 @@ void ProjectDirectoryTree::scan( const ProjectDirectoryTree::ScanCompleteEvent&
|
||||
#endif
|
||||
#if EE_PLATFORM != EE_PLATFORM_EMSCRIPTEN || defined( __EMSCRIPTEN_PTHREADS__ )
|
||||
},
|
||||
[scanComplete, this] {
|
||||
[scanComplete, this] ( const auto& ) {
|
||||
if ( scanComplete )
|
||||
scanComplete( *this );
|
||||
} );
|
||||
@@ -155,12 +155,12 @@ std::shared_ptr<FileListModel> ProjectDirectoryTree::matchTree( const std::strin
|
||||
|
||||
void ProjectDirectoryTree::asyncFuzzyMatchTree( const std::string& match, const size_t& max,
|
||||
ProjectDirectoryTree::MatchResultCb res ) const {
|
||||
mPool->run( [&, match, max, res]() { res( fuzzyMatchTree( match, max ) ); }, []() {} );
|
||||
mPool->run( [&, match, max, res]() { res( fuzzyMatchTree( match, max ) ); } );
|
||||
}
|
||||
|
||||
void ProjectDirectoryTree::asyncMatchTree( const std::string& match, const size_t& max,
|
||||
ProjectDirectoryTree::MatchResultCb res ) const {
|
||||
mPool->run( [&, match, max, res]() { res( matchTree( match, max ) ); }, []() {} );
|
||||
mPool->run( [&, match, max, res]() { res( matchTree( match, max ) ); } );
|
||||
}
|
||||
|
||||
std::shared_ptr<FileListModel>
|
||||
|
||||
Reference in New Issue
Block a user