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

ES6 class functions support #79

Closed yngve-sk closed 7 years ago

yngve-sk commented 7 years ago

ES6 class functions show up as anonymous functions in the outline. It has been super helpful when not using ES6 classes and I would love for this to work on ES6 classes.

I.e: class test { a(arg1, arg2, arg3) { ... } }

will show as: function(arg1, arg2, arg3) in the outline.

screen shot 2017-01-28 at 5 39 53 pm

It seems the parser isn't picking up on the ES6 class name. In JSParser.js in the _visit function the Node has an id of null...

Hirse commented 7 years ago

Thanks for this bug report. Could you please add the version information as requested in the issue template?

yngve-sk commented 7 years ago

Details about your environment OS: Mac OSX sierra (10.12.2) JS version: ES6

Hope this helps!

Hraesvelg commented 7 years ago

hi,

i have the same problem, the outline view doesn't support ES6 !

Brackets : 1.8.0-17108 Outline : 1.0.0-alpha.0

Hirse commented 7 years ago

@yngve-sk, @Hraesvelg feel free to install the extension from source and see if it is fixed. I'll release the fix after solving a few other issues.