Skip to content

Commit de4034e

Browse files
authored
Focus view on open file URI from hover (#2934)
1 parent 914e76d commit de4034e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

plugin/hover.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ def _on_navigate(self, uri: str) -> None:
317317
pass
318318
elif scheme == 'file':
319319
if window := self.view.window():
320-
open_file_uri(window, uri)
320+
open_file_uri(window, uri).then(lambda view: window.focus_view(view) if view else None)
321321
elif scheme == CODE_ACTION_SCHEME:
322322
session_name, version, action = decode_code_action_uri(uri)
323323
if version == self.view.change_count() and (session := self.session_by_name(session_name)):

0 commit comments

Comments
 (0)