Conversation
c0d63ff to
445d4c2
Compare
|
Size Change: -826 B (0%) Total Size: 26 MB ℹ️ View Unchanged
|
445d4c2 to
81dbd0a
Compare
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request fundamentally changes how keybindings are interpreted by removing wildcard behavior for modifiers. This ensures that key combinations are matched precisely, enhancing the customizability and predictability of keyboard shortcuts. The implementation involved refining the KeypressContext to handle keypresses more accurately and updating documentation and tests to reflect these stricter rules. Highlights
Changelog
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request successfully removes the wildcard behavior from keybindings by updating the matching logic in keyMatchers.ts. This improves clarity and makes keybindings more explicit. The changes are consistently applied across the keybinding configurations and tests. The PR also includes valuable bug fixes in KeypressContext.tsx related to escape sequence handling. However, the removal of wildcard matching might cause regressions for some commands that previously matched with modifiers. I've added a comment with a suggestion to address this potential breaking change.

Summary
Remove wildcard behavior on keybindings
Details
This change is necessary to support clear customizable key bindings.
This change revealed some bugs in KeypressContext which are fixed here. I also narrowed fastEnter buffering to be more discriminating.
Also: Update docs about
shift+entersupport on Windows Terminal.Related Issues
For #21294
How to Validate
Try out all the various hotkeys.
Pre-Merge Checklist