예제 #1
0
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))
예제 #2
0
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))
예제 #3
0
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))
예제 #4
0
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))
예제 #5
0
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
예제 #8
0
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))
예제 #9
0
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))
예제 #10
0
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)
예제 #11
0
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')
예제 #12
0
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()
예제 #14
0
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
예제 #15
0
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()
예제 #16
0
파일: testing.py 프로젝트: pouco26/testing
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')
예제 #17
0
    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()
예제 #18
0
파일: Guna.py 프로젝트: uglyprincess/Guna
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)
예제 #20
0
    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()
예제 #21
0
def plugin_unloaded():
    try:
        from package_control import events

        if events.remove(package_name):
            Tools.removePreferences()
    except:
        pass
예제 #22
0
def plugin_unloaded():
    try:
        from package_control import events

        if events.remove(package_name):
            Tools.removePreferences()
    except:
        pass
예제 #23
0
파일: docphp.py 프로젝트: husanjun/docphp
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())
예제 #24
0
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)
예제 #25
0
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()
예제 #26
0
파일: docphp.py 프로젝트: garveen/docphp
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())
예제 #27
0
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()
예제 #28
0
    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()
예제 #29
0
    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():
        """
        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()
예제 #31
0
def plugin_unloaded():
    from package_control import events

    if events.remove('TabNine'):
        TabNineProcess.run_tabnine(True, ['--uninstalled'])
예제 #32
0
def plugin_unloaded():
    from package_control import events

    if events.remove('TabNine'):
        tabnine_proc.uninstalling()
예제 #33
0
def plugin_unloaded():
    from package_control import events

    if events.remove("Tabnine"):
        uninstalling()
예제 #34
0
def plugin_unloaded():
    """Handles the plugin unloaded event"""
    if events.remove(HYPNOTOADSVN_PKGNAME) is not False:
        menu.remove_user_side_bar()