Collapse to definition (Edit -> Outlining -> Collapse to Definitions) is an extremly useful feature when it comes to getting an overview of the code structure in a file. When you do it in C# you get your code collapsed to the level of method signatures.
In TypeScript version 0.8. it worked the same way. Now in version 0.9 it collapses to the topmost module, leaving one just element in the document and hiding everything else effectively rendering this feature useless.
At first I though it a bug, because
- there is not much sense in collapsing everything
- you can achieve the same by running "Toggle all Outlining" (Edit -> Outlining -> Toggle all Outlinig"
So I created a bug (https://typescript.codeplex.com/workitem/954
) which was closed on the same day with the following reason:
"This is by design.. it collapses the code to the definition of the module."
I hope it's some sort of mistake, and you guys didn't really mean it's by design, so the bug should be reopened.
Or... please give me a clue why you did it this way