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

Feature Request: focus on already opened file instead of creating a duplicate tab #34

Open
Ares9323 opened this issue May 20, 2021 · 1 comment
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@Ares9323
Copy link

Hi, it's me again (this time I checked multiple times before opening a new issue)

I often work with my editor splitted vertically with .h files on the left and .cpp files on the right, if I click "Create implementation" and the .cpp file is visible, everything works fine and it focuses on the right window as you can see here:

image

If the .cpp is not focused on the right window, when I click "Create implementation" it creates another tab of the .cpp file in the current panel, despite I have the option "workbench.editor.revealIfOpen": true activated,.
If I open an already opened file by clicking it in the file explorer, the editor will focus it instead of opening a new tab in the current editor (where I have the cursor), this doesn't work with the extension so I think it could be something related to the command it uses to open the file.

image

Thank you!

@amir9480
Copy link
Owner

@Ares9323 Hi

I tried to fix this before
d82e822

But still didn't found a way for all cases

@amir9480 amir9480 added enhancement New feature or request help wanted Extra attention is needed labels May 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants