def plugin_unloaded(): from package_control import events if events.pre_upgrade(package_name): print('Upgrading from %s!' % events.pre_upgrade(package_name)) elif events.remove(package_name): print('Removing %s!' % events.remove(package_name))
def plugin_unloaded(): from package_control import events if events.pre_upgrade(PACKAGE_NAME): status_msg('Upgrading from %s' % events.pre_upgrade(PACKAGE_NAME)) elif events.remove(PACKAGE_NAME): status_msg('Removing %s' % events.remove(PACKAGE_NAME))
def plugin_unloaded(): PACKAGE_NAME = __name__.split('.')[0] from package_control import events if events.remove(PACKAGE_NAME): PACKAGES_PATH = sublime.packages_path() DEFAULT_PATH = os.path.join(PACKAGES_PATH, "Default") import shutil shutil.rmtree(DEFAULT_PATH) print('Removing %s!' % events.remove(PACKAGE_NAME))
def plugin_unloaded(): try: from package_control import events if events.pre_upgrade(__pkg_name__): status_msg('Upgrading from %s' % events.pre_upgrade(__pkg_name__)) elif events.remove(__pkg_name__): status_msg('Removing %s' % events.remove(__pkg_name__)) except Exception as e: print(e)
def plugin_unloaded(): try: from package_control import events if events.pre_upgrade('package_control-tester'): print('Upgrading from %s!' % events.pre_upgrade('package_control-tester')) elif events.remove('package_control-tester'): print('Removing %s!' % events.remove('package_control-tester')) except (ImportError): pass
def plugin_unloaded(): PACKAGE_NAME = __name__.split('.')[0] from package_control import events if events.pre_upgrade(PACKAGE_NAME): print('Upgrading from %s!' % events.pre_upgrade(PACKAGE_NAME)) elif events.remove(PACKAGE_NAME): # set_language("EN", True) cleanup() sublime_plugin.reload_plugin('Default') print('Removing %s!' % events.remove(PACKAGE_NAME))
def plugin_unloaded(): print("Unloading 1self plugin") runThread = False from package_control import events if events.pre_upgrade(package_name): print('Upgrading from %s!' % events.pre_upgrade(package_name)) elif events.remove(package_name): print('Removing %s!' % events.remove(package_name)) event = create_uninstall_event() if event is not None: send_event_to_platform(event)
def plugin_unloaded(): if UNSUBSCRIBE: UNSUBSCRIBE() if events.remove(PACKAGE_NAME): print('JS Custom: Uninstalling. Removing all syntaxes.') sublime.run_command('clear_js_custom_user_data')
def plugin_unloaded() -> None: if UNSUBSCRIBE: UNSUBSCRIBE() if events.remove(PACKAGE_NAME): logger.info('Uninstalling. Removing all syntaxes.') sublime.run_command('clear_js_custom_user_data')
def plugin_unloaded(): if "package_control" in sys.modules: from package_control import events if events.remove(package_name): # Native package causes some conflicts. enable_native_markdown_package()
def plugin_unloaded(): if package_control_installed: if events.remove('Log Highlight') or events.pre_upgrade( 'Log Highlight'): lhs = get_prefs() lhs.clear_on_change('lh-prefs') return
def plugin_unloaded(): # engine stop if package_control_installed: if events.remove('testing') or events.pre_upgrade('testing'): print('else remove/pre_upgrade') print('plugin_unloaded')
def plugin_unloaded(): settings.clear_listener() from package_control import events if events.pre_upgrade(PACKAGE_NAME) or events.remove(PACKAGE_NAME): cleaning.clean_all()
def plugin_unloaded(): # engine stop if package_control_installed: if events.remove('Guna') or events.pre_upgrade('Guna'): engine.stop() pass
def plugin_unloaded(): from package_control import events package_name = GLOBAL_SET['package_name'] if events.remove(package_name): print('remove {0}'.format(package_name)) cache_dir = os.path.join(sublime.cache_path(), package_name) shutil.rmtree(cache_dir)
def cleanup(cls) -> None: def run_async() -> None: if os.path.isdir(cls.package_storage()): shutil.rmtree(cls.package_storage()) if events.remove(cls.package_name): sublime.set_timeout_async(run_async, 1000) super().cleanup()
def plugin_unloaded(): try: from package_control import events if events.remove(package_name): Tools.removePreferences() except: pass
def plugin_unloaded(): for k in openfiles: try: openfiles[k].close() except Exception as e: if getSetting('debug', False): print(e) sublime.save_settings(setting_file) if events.remove(package_name): if os.path.isdir(getDocphpPath()): shutil.rmtree(getDocphpPath())
def plugin_unloaded(): from package_control import events if events.remove(package_name): # remove settings packages = getPackagesPath() st_settings = path.join(packages, 'User', 'deviot.sublime-settings') if (path.exists(st_settings)): remove(st_settings) # remove deviot user folder user = getDeviotUserPath() if (path.isdir(user)): rmtree(user)
def plugin_unloaded(): try: from package_control import events if events.pre_upgrade('SublimeLinter') or events.remove( 'SublimeLinter'): logger.info("Enable kill_switch.") persist.kill_switch = True persist.linter_classes.clear() except ImportError: pass queue.unload() persist.settings.unobserve()
def plugin_unloaded(): for k in openfiles: try: openfiles[k].close() except Exception as e: if getSetting("debug"): print(e) sublime.save_settings(setting_file) from package_control import events if events.remove(package_name): if os.path.isdir(getDocphpPath()): shutil.rmtree(getDocphpPath())
def plugin_unloaded(): log_handler.uninstall() try: from package_control import events if events.pre_upgrade('SublimeLinter') or events.remove('SublimeLinter'): logger.info("Enable kill_switch.") persist.kill_switch = True persist.linter_classes.clear() except ImportError: pass queue.unload() persist.settings.unobserve()
def plugin_unloaded(): is_upgrading = False was_removed = False clear_listener() try: from package_control import events except ImportError as error: pass else: is_upgrading = events.pre_upgrade(__package__) was_removed = events.remove(__package__) finally: if is_upgrading or was_removed: clean_all()
def plugin_unloaded(): """ A File Icon unloaded. Raises: ImportError: If `Package Control` is not installed. """ is_upgrading = False was_removed = False settings.clear_listener() try: from package_control import events except ImportError as error: logging.log(NOPC_MSG) logging.dump(error) else: is_upgrading = events.pre_upgrade(PACKAGE_NAME) was_removed = events.remove(PACKAGE_NAME) finally: if is_upgrading or was_removed: cleaning.clean_all()
def plugin_unloaded(): from package_control import events if events.remove('TabNine'): TabNineProcess.run_tabnine(True, ['--uninstalled'])
def plugin_unloaded(): from package_control import events if events.remove('TabNine'): tabnine_proc.uninstalling()
def plugin_unloaded(): from package_control import events if events.remove("Tabnine"): uninstalling()
def plugin_unloaded(): """Handles the plugin unloaded event""" if events.remove(HYPNOTOADSVN_PKGNAME) is not False: menu.remove_user_side_bar()