AutoCompletePlugin::updateDocCache is now aware of document closing

Set the tooltip on tab editor split
When changing folder update/save the last folder
Allow disabling welcome screen (SpartanJ/ecode#279).
This commit is contained in:
Martín Lucas Golini
2024-06-02 23:36:14 -03:00
parent 851dfc3ccb
commit 9a77c33a7e
7 changed files with 43 additions and 4 deletions

View File

@@ -117,6 +117,17 @@ AutoCompletePlugin::~AutoCompletePlugin() {
editor.first->removeEventListener( listener );
editor.first->unregisterPlugin( this );
}
bool isUpdating = false;
do {
{
Lock lu( mDocsUpdatingMutex );
isUpdating = std::any_of( mDocsUpdating.begin(), mDocsUpdating.end(),
[]( const auto& du ) { return du.second == true; } );
}
if ( isUpdating )
Sys::sleep( Milliseconds( 1 ) );
} while ( isUpdating );
}
void AutoCompletePlugin::load( PluginManager* pluginManager ) {