Skip to content

Commit

Permalink
Update goto_diagnostic.py
Browse files Browse the repository at this point in the history
  • Loading branch information
95833 authored Dec 22, 2024
1 parent 41d1410 commit e1e94a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/goto_diagnostic.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ def open_location(
session: Session, location: Location, flags: sublime.NewFileFlags = sublime.NewFileFlags.NONE, group: int = -1
) -> sublime.View:
uri, position = get_uri_and_position_from_location(location)
file_name = to_encoded_filename(parse_uri(uri)[1], position)
file_name = to_encoded_filename(session.config.map_uri_on_payload(uri, is_from_client_to_server=False), position)
return session.window.open_file(file_name, flags=flags | sublime.NewFileFlags.ENCODED_POSITION, group=group)


Expand Down

0 comments on commit e1e94a9

Please sign in to comment.