def goToLocation(cmd, src_path, caller, view):
line = caller['line'];
path = src_path + caller['filename']
# Open the file and jump to the line
new_view = view.window().open_file(path + ":%d:0" % line, sublime.ENCODED_POSITION)
if new_view.is_loading():
global g_open_callbacks_on_load
g_open_callbacks_on_load[path] = lambda: finishGoingToLocation(caller, new_view)
return
finishGoingToLocation(caller, new_view)
评论列表
文章目录