Open emil14 opened 1 year ago
Thanks for you feedback. Our intent was to introduce extract variable for any expression, including trivial ones. What do you think if in case of primary, i.e. the simplest expressions, we show the action only when there's non empty selection?
I think it should work only if expression selected is not an assignment selection
@emil14 Ok. Will think about it. I made it work this way since it was done in a similar way in other language service providers.
It seems like right now it just always accessible. E.g. this code
Would anyway suggest me to extract
x
to a new variable likeDoesn't make much sense