Skip to content

Commit 65fc511

Browse files
committed
Session.open_uri_async: Focus view when open file: URI
1 parent 969a9c8 commit 65fc511

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

plugin/core/sessions.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1508,6 +1508,11 @@ def _open_file_uri_async(
15081508
def handle_continuation(view: Optional[sublime.View]) -> None:
15091509
if view and r:
15101510
center_selection(view, r)
1511+
elif view:
1512+
window = view.window()
1513+
if window:
1514+
window.focus_view(view)
1515+
15111516
sublime.set_timeout_async(lambda: result[1](view))
15121517

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

0 commit comments

Comments
 (0)