-
Notifications
You must be signed in to change notification settings - Fork 27.9k
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
Avoid unfolding when typing ` #83353
Comments
Normally we autoclose the backtick (``) which avoids any dangling backticks that break the syntax tree. |
That's true. In most cases, autoclosing worked in my environment. let x=extremelyLongString;
… // enclosing like functions, objects, arrays are following And to create: let x=`extremelyLongString`; In this case, if I select the text |
This is the same issue as #76990 @mjbvz Some ideas to try out (either in TypeScript or in our code):
|
I cannot understand when autoclosing fired or not.
Choosing |
I ran into this issue also. For me, unfolding happens with opening braces and brackets. I can avoid unfolding if I enclose portions of code in "#region" comments (i.e. for javascript), but overal not an elegant solution. |
Maybe VScode can somehow remember the contents of a line where code has been folded, and find those lines and restore fold state once the |
I am having the same issue. |
Issue Type: Feature Request
When I am editing my JavaScript source and use the character "`" for creating a string expression, I am always careful because JSLint regards whole the source after it as one string and unfolds all foldings after it. Of course, to prevent the problem, I need to type another "`" soon after the first one.
But if I forget it, this happens and I need to refold manually.
So I want JSLint to evaluate the source more slowly, especially deciding string or regex expressions.
VS Code version: Code 1.39.2 (6ab5985, 2019-10-15T15:33:00.827Z)
OS version: Darwin x64 19.0.0
The text was updated successfully, but these errors were encountered: