Skip to content

Collapse elements in editor #23

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
micaelgallego opened this issue Mar 12, 2016 · 6 comments
Closed

Collapse elements in editor #23

micaelgallego opened this issue Mar 12, 2016 · 6 comments
Milestone

Comments

@micaelgallego
Copy link

Maybe imports can be collapsed automatically as JDT does for Java

@angelozerr
Copy link
Owner

@angelozerr
Copy link
Owner

Today code folding uses line indentation (like VSCode) and not AST (like JDT). I don't know if it will be easy to fold "import", see https://github.com/angelozerr/typescript.java/blob/master/eclipse/jsdt/ts.eclipse.ide.jsdt.ui/src/ts/eclipse/ide/jsdt/internal/ui/editor/folding/IndentFoldingStrategy.java

@micaelgallego
Copy link
Author

Maybe searching for the first and the last lines with "import" as the first keyword the import section can be detected.

@angelozerr
Copy link
Owner

Yes it's the idea.

@angelozerr angelozerr added this to the 1.1.0 milestone Sep 1, 2016
@angelozerr
Copy link
Owner

@micaelgallego
Copy link
Author

Cool!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants