Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions plugin/core/sessions.py
Original file line number Diff line number Diff line change
Expand Up @@ -1508,6 +1508,11 @@ def _open_file_uri_async(
def handle_continuation(view: Optional[sublime.View]) -> None:
if view and r:
center_selection(view, r)
elif view:
window = view.window()
if window:
window.focus_view(view)

sublime.set_timeout_async(lambda: result[1](view))

sublime.set_timeout(lambda: open_file(self.window, uri, flags, group).then(handle_continuation))
Expand Down