Hirse / brackets-outline-list

Extension for Brackets and Phoenix to display a list of the functions or definitions in the currently opened document.
MIT License
79 stars 30 forks source link

Not showing some classes and functions in Python. #89

Closed pelatx closed 7 years ago

pelatx commented 7 years ago

Details about your environment

What did you do? Please include the actual source code causing the issue.

from screeninfo import get_monitors

class Display (object):

    def __init__ (self):
        self.num_monitors = 0
        self.width = []
        self.height = []
        for m in get_monitors(): 
            self.width.append(str(m)[8:12])
            self.height.append(str(m)[13:17])
            self.num_monitors = len(self.width)

    def get_width (self, monitor_index = 0):
        if monitor_index > self.num_monitors - 1:
            return "Error on display index"
        return self.width[monitor_index]

    def get_height (self, monitor_index = 0):
        if monitor_index > self.num_monitors - 1:
            return "Error on display index"
        return self.height[monitor_index]

    def get_num_monitors (self):
        return self.num_monitors

What did you expect to happen? How did you expect the Outline to look?

I expect the Outline to look:

Display(object)
· __init__(self)
· get_width(self, monitor_index = 0)
· get_height(self, monitor_index = 0)
· get_num_monitors(self)

What actually happened? How did the Outline actually look?

It looks empty.

What have I found?

The problem is the space between the name of the class or method and the parenthesis. Fixing this also does not show the methods get_width and get_height due to the equal sign in the arguments.