Beispiel #1
0
    def draw_breakpoints(self, view):
        filename = view.file_name()
        if filename is None:
            return

        line_numbers = self._load_for_file(filename)
        regions = [util.region_for_line_number(view, n) for n in line_numbers]
        view.add_regions("debug_breakpoint", regions, "string", "dot",
                         sublime.PERSISTENT | sublime.HIDDEN)
Beispiel #2
0
 def mark(self, filename, line_number, scope=None, icon=None, flags=None):
     if not os.path.exists(filename):
         return
     self.clear()
     self.view = util.show_file(filename)
     self.region = util.region_for_line_number(self.view, line_number)
     self.view.show(self.region)
     self.view.add_regions(self.name, [self.region], scope or self.scope,
                           icon or self.icon, flags or self.flags)
Beispiel #3
0
    def draw_breakpoints(self, view):
        filename = view.file_name()
        if filename is None:
            return

        line_numbers = self._load_for_file(filename)
        regions = [util.region_for_line_number(view, n) for n in line_numbers]
        view.add_regions(
            "debug_breakpoint", 
            regions, 
            "string", 
            "dot", 
            sublime.PERSISTENT | sublime.HIDDEN
        )
Beispiel #4
0
 def mark(self, filename, line_number, scope=None, icon=None, flags=None):
     if not os.path.exists(filename):
         return
     self.clear()
     self.view = util.show_file(filename)
     self.region = util.region_for_line_number(self.view, line_number)
     self.view.show(self.region)
     self.view.add_regions(
         self.name, 
         [self.region], 
         scope or self.scope, 
         icon or self.icon,
         flags or self.flags
     )