Skip to content

feat: add keybindings to toggle settings UI #251466

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

rzhao271
Copy link
Contributor

@rzhao271 rzhao271 commented Jun 14, 2025

This PR adds keybindings to toggle between the Settings editor and settings.json file.

I see a few issues with this PR and wanted to request some feedback.

  1. I couldn't get the keybindings to appear in the keybindings editor until I changed SettingsEditorTitleContribution to block startup. This issue is similar to cmd + , does not work for opening settings view on macOS on lastest vscode insiders #159875.

  2. CONTEXT_SETTINGS_JSON_EDITOR isn't actually set anywhere. Instead, I currently use a much longer context key expression, openUserSettingsEditorWhen, around line 1306. I'd like to double-check whether that large context key could cause perf issues, and if so, get the JSON editor context key working properly, first.

  3. I had to set the new keybinding weights to be +1 to prevent SETTINGS_COMMAND_OPEN_SETTINGS, which has no when clause, from always stealing the keybinds. I'm thinking that fixing up CONTEXT_SETTINGS_JSON_EDITOR and using it would be a better solution, but is there something else I should try?

@rzhao271 rzhao271 requested a review from bpasero June 14, 2025 00:45
@rzhao271 rzhao271 self-assigned this Jun 14, 2025
@rzhao271 rzhao271 added this to the June 2025 milestone Jun 14, 2025
@rzhao271 rzhao271 marked this pull request as ready for review June 14, 2025 00:55
@bpasero bpasero requested review from ulugbekna and removed request for bpasero June 14, 2025 05:33
@bpasero
Copy link
Member

bpasero commented Jun 14, 2025

Assigning to @ulugbekna who had the idea and owns the keybindings component.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants