def start_active_views():
window = sublime.active_window()
if window:
views = list() # type: List[sublime.View]
num_groups = window.num_groups()
for group in range(0, num_groups):
view = window.active_view_in_group(group)
if is_supported_view(view):
if window.active_group() == group:
views.insert(0, view)
else:
views.append(view)
if len(views) > 0:
first_view = views.pop(0)
debug('starting active=', first_view.file_name(), 'other=', len(views))
initialize_on_open(first_view)
if len(views) > 0:
for view in views:
didopen_after_initialize.append(view)
评论列表
文章目录