We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 75dc281 commit 0f0bb0cCopy full SHA for 0f0bb0c
typescript/commands/quick_info.py
@@ -68,7 +68,7 @@ def handle_quick_info(self, quick_info_resp_dict, display_point):
68
html = self.template.substitute(text_parts)
69
70
settings = sublime.load_settings("TypeScript.sublime-settings")
71
- self.view.show_popup(html, flags=sublime.HIDE_ON_MOUSE_MOVE_AWAY, location=display_point, max_height=300, max_width=settings.get("quick_info_popup_max_width") or 1024)
+ self.view.show_popup(html, flags=sublime.HIDE_ON_MOUSE_MOVE_AWAY, location=display_point, max_height=300, max_width=settings.get("quick_info_popup_max_width") or self.view.viewport_extent()[0])
72
73
def get_error_text_html(self, pt):
74
client_info = cli.get_or_add_file(self.view.file_name())
0 commit comments