def plugin_loaded(): # noqa: D401 """Called when plugin has finished loading.""" _remove_old_user_settings() debug = Settings(sublime.load_settings(COLOR_HIGHLIGHTER_SETTINGS_NAME)).debug if debug: print("ColorHighlighter: action=start st=%s" % (st_helper.st_version())) ColorHighlighterPlugin.init()
def plugin_unloaded(): # noqa: D401 """Called when plugin is getting unloaded.""" if Settings(sublime.load_settings(COLOR_HIGHLIGHTER_SETTINGS_NAME)).debug: print("ColorHighlighter: action=stop st=%s" % (st_helper.st_version())) ColorHighlighterPlugin.deinit()