mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-09-22 13:01:05 +03:00
Improve asynchronous filesystem event processing
- queue and batch filesystem model updates on the main thread - process directory-tree updates and worker-affine listeners asynchronously - coalesce adjacent modified events for the same path - preserve captured file metadata across delayed event delivery - add event, path, and thread-affinity filters for listener subscriptions - configure optimized per-plugin filesystem subscriptions - make listener removal wait for active callbacks safely - handle self-removal without deadlocking - support allocation-free matching of moved source paths - synchronize project directory-tree mutations with active searches - centralize diff-view button visibility around find/replace state - improve code editor wrap-content and scrollbar sizing - add queue, listener, and filesystem-model regression tests
This commit is contained in:
@@ -562,6 +562,17 @@ void GitPlugin::onFileSystemEvent( const FileEvent& ev, const FileInfo& file ) {
|
||||
updateUI();
|
||||
}
|
||||
|
||||
FileSystemListenerOptions GitPlugin::getFileSystemListenerOptions() const {
|
||||
auto options = Plugin::getFileSystemListenerOptions();
|
||||
const auto& workspace = getManager()->getWorkspaceFolder();
|
||||
if ( !workspace.empty() ) {
|
||||
FileSystemListenerFilter filter;
|
||||
filter.path = workspace;
|
||||
options.filters.emplace_back( std::move( filter ) );
|
||||
}
|
||||
return options;
|
||||
}
|
||||
|
||||
void GitPlugin::displayTooltip( UICodeEditor* editor, const Git::Blame& blame,
|
||||
const Vector2f& position ) {
|
||||
// HACK: Gets the old font style to restore it when the tooltip is hidden
|
||||
|
||||
Reference in New Issue
Block a user