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.

Files open in wrong window

See original GitHub issue

Using the File: Open command (<kbd>Ctrl</kbd>+<kbd>O</kbd>) to open a file from a restored (i.e. not maximized) window results in the file opening in another, pre-existing maximised window instead.

  • VS Code Version: 1.61.2
  • OS Version: Linux x64 3.10.0-1160.45.1.el7.x86_64
Commit: 6cba118ac49a1b88332f312a8f67186f7f3c1643
Date: 2021-10-19T14:58:13.605Z
Electron: 13.5.1
Chrome: 91.0.4472.164
Node.js: 14.16.0
V8: 9.1.269.39-electron.0

Steps to Reproduce:

  1. Open a VSCode window and maximise it
  2. Open another VSCode window and make sure it is not maximised
  3. In the unmaximized window, do <kbd>Ctrl</kbd>+<kbd>O</kbd> (or use the File: Open command from the command pallette) and open a file
  4. The file will instead open in the maximised window

Using RHEL 7 (GNOME). I am unable to test this with the Inisders build as it’s a work device. I cannot reproduce on Windows.

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

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:12 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
sbattencommented, Nov 4, 2021

I got a VM that can repro today with Fedora 35… will be able to debug now thanks

0reactions
MetRonniecommented, Nov 4, 2021

Yes I can still reproduce with 2 code windows created like that. I did File > Open from the un-maximised window while the maximised window was in the background, and the file ended up opening in the maximised window (which then came to the foreground). Same as before.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Source file opens into wrong window - Visual Studio Feedback
Right click on Error List and select 'Dock ' · Right click on Output and select 'Dock' · Close the remaining document in...
Read more >
Visual Studio Clicking Find Results Opens Code in Wrong ...
The files open in the same position as the Find Results when the window is docked in the positions immediately next to the...
Read more >
Files opening in wrong window - MSDN - Microsoft
1. Reboot the operating system to safe mode; 2. Disable all Add-ins; 3. Use Visual Studio Setup Wizard (via Control Panel) to repair...
Read more >
How to fix the problem of files opening with the wrong ...
Firstly, right click the Windows icon and open “settings”. · Click the option “Default apps” on the left menu. · The menu on...
Read more >
FIX: Files Open in the Wrong Program on Windows 10/11, 7
All you need to do is right-click on the file you want to open and select 'Choose another app'. This will open a...
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