Skip to content
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

Position in file is lost when switching to another file and then get back to the first file #1930

Open
victor-moga opened this issue Nov 10, 2024 · 0 comments
Labels
bug Something isn't working triage needed

Comments

@victor-moga
Copy link

victor-moga commented Nov 10, 2024

Description

When you navigate inside a file, then you go to another file keeping the previous one open and when you get back to the first file, the position of the cursor in the first file is lost, so it automatically shows up the top of that file.

To Reproduce

  1. Open the file a.cpp and navigate through it so you go to a specific cpp function inside that file.
  2. Open the file b.cpp in another tab while keeping the file a.cpp open in its tab.
  3. When you get back to the opened tab of the file a.cpp, you are redirected to the top of the file a.cpp.
    So when you are focusing much on a specific function in a.cpp and just wanted to check something related to that in b.cpp, when you get back to the open tab of a.cpp, you completely lost the position of the cursor on the function that you were working on.

Expected Behavior

The position of the cursor in the open file that you left open in a tab for a while should be the same when you get back to it.

Version Information

CodeEdit: [0.3.2]
macOS: [14.1.2 (23B92)]

Additional Context

No response

Screenshots

No response

@victor-moga victor-moga added the bug Something isn't working label Nov 10, 2024
@victor-moga victor-moga changed the title Position in file is lost when switching to another file and then get back to that file Position in file is lost when switching to another file and then get back to the first file Nov 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage needed
Projects
Status: 🆕 New
Development

No branches or pull requests

1 participant