def on_activated_async(view):
"""Called upon activating a view. Execution in a worker thread.
Args:
view (sublime.View): current view
"""
logging.debug(" on_activated_async view id %s", view.buffer_id())
if Tools.is_valid_view(view):
if not completer:
return
if completer.exist_for_view(view.buffer_id()):
logging.debug(" view %s, already has a completer",
view.buffer_id())
return
logging.info(" init completer for view id %s" % view.buffer_id())
completer.init(view)
logging.info(" init completer for view id %s done" %
view.buffer_id())
评论列表
文章目录