question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. ItĀ collects links to all the places you might be looking at while hunting down a tough bug.

And, if youā€™re still stuck at the end, weā€™re happy to hop on a call to see how we can help out.

[folding] Folding is "jumping" when a file is opened in 2 windows

See original GitHub issue

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version: 1.71.2
  • OS Version: MAC Monterey 12.6

Steps to Reproduce:

Before this last update it was common for me to use a file opened in 2 windows, ā€œfoldā€ the functions of window 1 and leave only what I wanted while looking for parameters or other things to use in window 2 for example in other functions.

However, now if I change anything in both windows, the ā€œcursorā€ jumps to where it was changed and no longer respects the ā€œfoldingā€ in the previous window, as shown in the images below.

1 - somefunction2 window 2 - If I change something, window 1 ā€œlose foldingā€ previous 1

2 - somefunction1 window 2 - If I change something, window 1 ā€œlose foldingā€ previous 2

Is there any configuration to keep the feature prior to this update? Thanks.

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
aeschlicommented, Oct 27, 2022

Iā€™ll look at it in November.

2reactions
OziOcbcommented, Oct 27, 2022

@aeschli, are there any plans for fixing this issue? As a Vue dev, I must admit that this auto-expanding behaviour is super annoying when working with single-file-components.

Read more comments on GitHub >

github_iconTop Results From Across the Web

File Open/File Save: Jumping From Selected Directories
The left-hand pane of the File Open and File Save dialogs "jump" from the folder I have scrolled to back to ... Step...
Read more >
[folding] Confusing behavior of Go to next fold #133108 - GitHub
Fold b and place cursor after the opening { of the class ... go to next problem where it just jumps to the...
Read more >
Editing file in splits breaks the folding
With this setup, when one again looks in the view directory (after opening and folding a fresh file), one can see that for...
Read more >
Code folds are automatically opened when cursor moves over ...
Open up your user settings. On windows the shortcut is CTRL + , Ā· Search for vim.foldfix and check the checkbox so the...
Read more >
Keyboard shortcuts for Windows - Visual Studio Code
Quick Open, Go to Fileā€¦ Ctrl+Shift+N. New window/instance ... Jump to matching bracket. Ctrl+] / [ ... Fold (collapse) all subregions. Ctrl+K Ctrl+]....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found