microsoft / TypeScript-Sublime-Plugin

IO wrapper around TypeScript language services, allowing for easy consumption by editor plugins
Apache License 2.0
1.72k stars 237 forks source link

Add missing required arguments in call to `show_tooltip_popup()` #750

Closed robsgreen closed 4 years ago

robsgreen commented 4 years ago

When hovering over the error indicator in the gutter, the following error is displayed in the console:

Traceback (most recent call last):
  File "/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py", line 1082, in run_
    return self.run(edit, **args)
  File "~/Library/Application Support/Sublime Text 3/Packages/TypeScript/typescript/commands/quick_info.py", line 146, in run
    self.show_tooltip_popup(display_point, error_html, None, None)
TypeError: show_tooltip_popup() missing 2 required positional arguments: 'info_html' and 'doc'

The call to show_tooltip_popup() is missing several required positional arguments, this PR fixes the method call to include what is required.

orta commented 4 years ago

Confirmed both the bug, and that this fixes it! Thanks!