[typescript] removing a bracket loses all folded areas
See original GitHub issueTS Template added by @mjbvz
TypeScript Version: 4.1.0-dev.20201002
Search Terms
- folding / folds
- getOutlineSpans
(see my comment for a self contained example)
- VSCode Version: 1.47.0
- OS Version: Windows 10 Verison 1909
Steps to Reproduce:
- make an error on the code with all lines collapsed.
- It will automatically expand all the codes. Which is annoying. Bcuz I have to collapse it automatically.
Does this issue occur when all extensions are disabled?: Yes
Issue Analytics
- State:
- Created 3 years ago
- Comments:14 (2 by maintainers)
Top Results From Across the Web
How do I collapse sections of code in Visual Studio Code for ...
Fold All folds all regions in the editor: Ctrl + K , Ctrl + 0 (zero) on Windows and Linux; ⌘ + K...
Read more >Collapse and expand regions of code - Visual Studio (Windows)
If some regions are expanded and some collapsed, then the collapsed regions are expanded. Stop Outlining, (Ctrl+M, Ctrl+P) - Removes all ...
Read more >User and Workspace Settings - Visual Studio Code
Once the file is open in an editor, delete everything between the two curly ... the editor should remove adjacent closing quotes or...
Read more >How To Remove A Loose Bracket - YouTube
Take bracket off wire · How to handle orthodontic emergencies at home · The BEST Way to Remove Braces With Photoshop · Orthodontic...
Read more >Broken Braces? What to do if a Bracket or Wire Breaks (Don't ...
When your braces wire bends, the loose bands can't pull teeth into position. If you notice any changes with the wire being loose,...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
(Experimental duplicate detection) Thanks for submitting this issue. Please also check if it is already covered by an existing one, like:
Maybe if a change results in both 1) the removal of a folding range that’s currently folded, and 2) a syntax error that intersects that range, you could leave it intact? Not sure if you’d have to throw out our entire response of new folding ranges or if it would sometimes be possible to merge them. When you request folding ranges, do you already have syntactic diagnostics? The immediate problem I see with calculating all this on our side is that by the time you ask for new folding ranges, we no longer know what the old ones are (not to mention, we don’t know what regions have been folded, and all this is irrelevant if the user isn’t folding anything).