Moved plugins and add loaded file filtering
- Moved prettify_json and lsp_completer plugins to sub categories - Add filter_out_loaded_files to prevent opening already-loaded files - Refactor code events into single events module - Fix signal blocking during file load operations - Include READONLY state in source view lifecycle handling
This commit is contained in:
@@ -9,17 +9,17 @@ import re
|
||||
from .singleton import Singleton
|
||||
|
||||
from .dto.base_event import BaseEvent
|
||||
from .dto import code
|
||||
from .dto.code import events as code
|
||||
|
||||
|
||||
|
||||
class EventFactory(Singleton):
|
||||
def __init__(self):
|
||||
|
||||
self._event_classes: Dict[str, Type[BaseEvent]] = {}
|
||||
|
||||
self._auto_register_events( code.__dict__.items() )
|
||||
|
||||
|
||||
def register_event(self, event_type: str, event_class: Type[BaseEvent]):
|
||||
self._event_classes[event_type] = event_class
|
||||
|
||||
|
||||
Reference in New Issue
Block a user