Skip to content

Commit 8065ea5

Browse files
committed
Adds command to show arg hints
1 parent ce04696 commit 8065ea5

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

Default.sublime-commands

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,9 @@
2222
{
2323
"caption": "tern_for_sublime: Disable Project",
2424
"command": "tern_disable_project"
25+
},
26+
{
27+
"caption": "tern_for_sublime: Show Argument Hints",
28+
"command": "tern_show_arg_hints"
2529
}
2630
]

tern.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -624,6 +624,15 @@ def run(self, edit, **args):
624624
pfile = get_pfile(self.view)
625625
pfile.project.disabled = True
626626

627+
class TernShowArgHints(sublime_plugin.WindowCommand):
628+
def run(self, **args):
629+
view = self.window.active_view()
630+
if not view:
631+
return
632+
pfile = get_pfile(view)
633+
if pfile is not None:
634+
show_argument_hints(pfile, view)
635+
627636
# fetch a certain setting from the package settings file and if it doesn't exist check the
628637
# Preferences.sublime-settings file for backwards compatibility.
629638
def get_setting(key, default):

0 commit comments

Comments
 (0)