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

Allow extensions to force-open the references view #151896

Open
dummdidumm opened this issue Jun 12, 2022 · 0 comments
Open

Allow extensions to force-open the references view #151896

dummdidumm opened this issue Jun 12, 2022 · 0 comments
Assignees
Labels
feature-request Request for new features or functionality references-viewlet
Milestone

Comments

@dummdidumm
Copy link

From what I can see it is not possible to force-open the references view. Whether or not that view is opened when calling the command editor.action.showReferences seems to depend on the setting references.preferredLocation, which is set to peek by default. I'd like a way to ignore this setting and force-open the references view, for example through a dedicated command. My use case is implementing a custom command in the Svelte for VS Code extension which in the end should open this view.

It seems you may want this behavior, too, since right now "find file references" is implemented by temporarily switching the user config from "peek" to "view", which creates an empty vscode setting folder/file in the workplace if none exists already, which feels buggy (#134405 would solve this, too, for you, but wouldn't solve my problem)

Searched for: references force view

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request Request for new features or functionality references-viewlet
Projects
None yet
Development

No branches or pull requests

2 participants