def run(self,edit):
mname = getModuleName(self.view)
if not mname:
print('[VHDL.navigation] No entity/architecture found !')
return
txt = self.view.substr(sublime.Region(0, self.view.size()))
inst_l = vhdl_util.get_inst_list(txt,mname)
if not inst_l:
print('[VHDL.navigation] No hierarchy found !')
return
sublime.status_message("Show Hierarchy can take some time, please wait ...")
sublime.set_timeout_async(lambda inst_l=inst_l, w=self.view.window(), mname=mname : self.showHierarchy(w,inst_l,mname))
评论列表
文章目录