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

Not sure I understand the need for two settings for workbench.editor.enablePreview #8496

Closed
alexdima opened this issue Jun 29, 2016 · 5 comments
Assignees
Labels
*question Issue represents a question, should be posted to StackOverflow (VS Code)

Comments

@alexdima
Copy link
Member

alexdima commented Jun 29, 2016

Testing #7854

Why is there a special setting workbench.editor.enablePreviewFromQuickOpen ?

AFAIK editors can be opened via ctrl+click to go to definition, via ctrl+click to follow a link, from the extension host, etc.

Do you plan to add a config key for each of those? If not, why the special workbench.editor.enablePreviewFromQuickOpen

@bpasero
Copy link
Member

bpasero commented Jun 29, 2016

@alexandrudima yes we have some people asking for globally enable or disable preview and some users that want to have an editor in non-preview mode when you use quick open. I do agree that eventually we would need settings for all those places.

@bpasero bpasero added the *question Issue represents a question, should be posted to StackOverflow (VS Code) label Jun 29, 2016
@alexdima
Copy link
Member Author

So the usecase you mention is
workbench.editor.enablePreview = true, workbench.editor.enablePreviewFromQuickOpen = false ?

But what does it mean when I set workbench.editor.enablePreview = false, workbench.editor.enablePreviewFromQuickOpen = true

@bpasero
Copy link
Member

bpasero commented Jun 29, 2016

@alexandrudima yes you found the issue with that solution, what I really need is a way to provide settings that impact other settings below. If I had UI it would be something like VS solution to this:

image

With using JSON I am not sure how to express this.

@alexdima
Copy link
Member Author

👍 I don't know either. Maybe @aeschli knows

workbench.editor.enablePreview could be of type false | { quickOpen: boolean; }

I wasn't fishing for the issue, I simply didn't realize these two settings are hierarchical when I saw the settings description.

@bpasero
Copy link
Member

bpasero commented Jun 29, 2016

Yeah, some UI would totally help here, just the keys is not enough.

@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*question Issue represents a question, should be posted to StackOverflow (VS Code)
Projects
None yet
Development

No branches or pull requests

2 participants