-
-
Couldn't load subscription status.
- Fork 374
Add support for Ctrl+Shift+Enter autofill in query argument objects #2918
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
base: master
Are you sure you want to change the base?
Conversation
|
Important Review skippedBot user detected. To trigger a single review, invoke the You can disable this status message by setting the Comment |
Co-authored-by: imolorhe <4608143+imolorhe@users.noreply.github.com>
Co-authored-by: imolorhe <4608143+imolorhe@users.noreply.github.com>
Co-authored-by: imolorhe <4608143+imolorhe@users.noreply.github.com>
Co-authored-by: imolorhe <4608143+imolorhe@users.noreply.github.com>
Co-authored-by: imolorhe <4608143+imolorhe@users.noreply.github.com>
Co-authored-by: imolorhe <4608143+imolorhe@users.noreply.github.com>
|
Visit the preview URL for this PR (updated for commit c461d48): https://altair-gql--pr2918-copilot-fix-ctrl-shi-g1ce8jir.web.app (expires Sat, 25 Oct 2025 14:35:51 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 Sign: 02d6323d75a99e532a38922862e269d63351a6cf |
|
Only works for object arguments |
Summary
This PR extends the "Fill all fields" feature (Ctrl+Shift+Enter) to work with GraphQL query arguments that accept input object types. Previously, this feature only worked for query fields with selection sets.
Problem
When users placed their cursor inside an argument object and pressed Ctrl+Shift+Enter, nothing would happen:
{ withGOTCharacter(character: { }) # ^ Ctrl+Shift+Enter did nothing here }This was mentioned in the issue comments: "Oh it does not work for arguments. Only query fields"
Solution
The implementation adds a separate code path for handling argument objects while preserving the existing field selection behavior:
Before:
{ withGOTCharacter(character: { }) }After pressing Ctrl+Shift+Enter inside the braces:
{ withGOTCharacter(character: { id: book: { id: url: name: authors: characters: released: } spouse: allegiances: }) }Implementation Details
Core Changes
buildInputObjectFields()function that:addQueryDepthLimitsettingEnhanced User Experience
Files Changed
Testing
Benefits
Closes #[issue-number]
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
downloads.sentry-cdn.comIf you need me to access, download, or install something from one of these locations, you can either:
Original prompt
Fixes #1751
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.