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

Go To Definition opens file in preview mode instead of normal window #238228

Open
tomerbarkan opened this issue Jan 19, 2025 · 0 comments
Open

Go To Definition opens file in preview mode instead of normal window #238228

tomerbarkan opened this issue Jan 19, 2025 · 0 comments
Assignees
Labels
new release Issues found in a recent release of VS Code triage-needed

Comments

@tomerbarkan
Copy link

Does this issue occur when all extensions are disabled?: Yes/No
Yes, but you need at least one language extension such as C# to get the Go To Definition function.

  • VS Code Version: 1.96.4
  • OS Version: Windows 10 build 19045

Steps to Reproduce:

  1. Right click a class that is defined in a different file that is not already open, then click Go To Definition (or CTRL + click the class).

Expected:
File will open in a new window in normal mode

Actual:
File opens in preview mode and will be replaced the next time you use Go To Definition or open another file in preview mode.

Additional info:
The documentation states that Preview Mode is supposed to be used in two instances: when single clicking a file in the file explorer, or when opening it from the Quick Open if the workbench.editor.enablePreviewFromQuickOpen setting is set to true. It does not mention Go To Definition and there is no setting to control it.

Suggested fix:
Add a setting to control whether or not Go To Definition opens in preview mode.

@vs-code-engineering vs-code-engineering bot added new release Issues found in a recent release of VS Code triage-needed labels Jan 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new release Issues found in a recent release of VS Code triage-needed
Projects
None yet
Development

No branches or pull requests

2 participants