Trigger synthetic `on_activated_async` event on startup
We follow ST here and 'emit' an `on_activated_async` event. This is easier
to maintain bc all the side-effects in the event handler run.
E.g. `has_syntax_changed` should be queried on startup
@@ -48,9 +48,9 @@ def plugin_loaded():
style.read_gutter_theme()
# Lint the visible views from the active window on startup
+ bc = BackendController()
for view in other_visible_views():
- if util.is_lintable(view):
- hit(view, "on_load")
+ bc.on_activated_async(view)
def plugin_unloaded():
