You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would love to see the ability to fold a single level like methods on classes, or top-level functions only.
It looks like suggestions like this have been rejected before (#888). However, I wonder if options like these would be less agressive to fold. The use case is working with very large react files that have a single class with many methods on them. A small example would be this:
import*asReactfrom"react";classAppextendsReact.Component{state={isShowing: true};handleOnClick=()=>{// fold this function};render(){// fold this functionconst{ props, state }=this;return(<div><buttononClick={this.handleOnClick}>{state.isShowing ? "hide" : "show"}</button>{state.isShowing&&(<div>{props.list.map(image=>(<imgsrc={image.src}alt=""/>))}</div>)}</div>);}}exportdefaultApp;
are the main constraints on not adding fine grained control to folding the cpu load?
The text was updated successfully, but these errors were encountered:
Guys, could you, please, review my PR #1136 .
It solves problem completely and makes folds fully configurable.
If PR is acceptable I can update it to match the latest code.
I would love to see the ability to fold a single level like methods on classes, or top-level functions only.
It looks like suggestions like this have been rejected before (#888). However, I wonder if options like these would be less agressive to fold. The use case is working with very large react files that have a single class with many methods on them. A small example would be this:
are the main constraints on not adding fine grained control to folding the cpu load?
The text was updated successfully, but these errors were encountered: