Skip to content
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

[folding] Optionally fold chained method calls #6991

Closed
aaronhoffman opened this issue May 28, 2016 · 1 comment
Closed

[folding] Optionally fold chained method calls #6991

aaronhoffman opened this issue May 28, 2016 · 1 comment
Assignees

Comments

@aaronhoffman
Copy link

For frameworks that expose a fluent API (ex: d3.js), it is common to chain method calls on separate lines. Example here:

d3.select(".chart")
  .selectAll("div")
  .data(data)
  .enter()
  .append("div")
  .style("width", function(d) { return d * 10 + "px"; })
  .text(function(d) { return d; });

Currently, the vscode editor.foldAll command folds these chained method calls and hides everything except the first line d3.select(".chart").... It would be nice to optionally enable/disable this functionality based on your use case. (In my case, I would disable it by default for all languages.)

Likely related to folding not being language aware: #3422

@aeschli
Copy link
Contributor

aeschli commented May 30, 2016

Yes, this would need language awareness.

@aeschli aeschli closed this as completed May 30, 2016
@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants