code: def update_todo_menu(self):
          
          editorstack = self.get_current_editorstack()
          results = editorstack.get_todo_results()
          self.todo_menu.clear()
          filename = self.get_current_filename()
          for text, line0 in results:
              icon = ima.icon('todo')
              slot = lambda _checked, _l=line0: self.load(filename, goto=_l)
              action = create_action(self, text=text, icon=icon, triggered=slot)
              self.todo_menu.addAction(action)
          self.update_todo_actions()
docs: Update todo list menu