eclipse-typescript
eclipse-typescript copied to clipboard
Support folding
There is good documentation of how to do this here: http://www.eclipse.org/articles/Article-Folding-in-Eclipse-Text-Editors/folding.html
The reason I really wanted this feature was for folding of the copyright header at the top of files however the TypeScript services doesn't return an outlining region for that, so this feature is only useful for folding functions, classes, interfaces, modules, etc...
There were several difficulties encountered while trying to implement this:
- syntax highlighting broke
- caret events were firing like crazy (didn't fully investigate why) which caused poor performance
- existing annotations must not be deleted/replaced - they need to be conserved somehow - tracking them properly will be challenging
Due to the limitations of the support currently offered and the difficulties encountered in making it work well, I've decided to delay this feature for now.
It would be really nice to have folding with typescript. What are the plans at this point of time?
Would love to have this working. Just need someone to invest the time into hooking this feature up. I haven't looked into it again since initially filing this issue. I suspect the difficulty is similar to before. If anyone does decide to try this one out please let us know since we are trying to find someone to work on this plugin more regularly so there is a chance we might get to more issues for this project in the next few months.
Are you talking about the typescript-plugin as a whole, or a specific part of it?
This specific feature would need someone to code it.