-
Notifications
You must be signed in to change notification settings - Fork 36.9k
Add Fig spec for Azure Developer CLI (azd) #272348
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds support for Azure Developer CLI (azd) autocomplete in VS Code's integrated terminal by introducing a comprehensive Fig specification. The spec enables IntelliSense suggestions for azd commands, subcommands, options, and dynamic content like environments, templates, and extensions.
Key Changes
- Added a new Fig spec file for the Azure Developer CLI with full command hierarchy coverage
- Implemented dynamic generators for listing environments, templates, extensions, and environment variables
- Integrated the azd spec into the terminal-suggest extension's available specs list
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| extensions/terminal-suggest/src/completions/azd.ts | New comprehensive Fig spec defining all azd commands, options, and dynamic generators |
| extensions/terminal-suggest/src/terminalSuggestMain.ts | Added import and registration of the azd spec |
f783f9b to
69490ec
Compare
meganrogge
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
|
@JeffreyCA how did you create this script? I think some tests would be good to add. |
Tyriar
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is awesome 👏
@JeffreyCA please feel free to ping us on Teams to get any updates to this merged quickly, notifications sometimes slip through the cracks.
|
Created #272906 so we can verify and mention in release notes |
|
Thanks for accepting this! 🙂
See Azure/azure-dev#5955. Since azd uses the Cobra CLI framework I based this off Fig's Cobra integration module that's referenced in their official docs. In short, it implements a subcommand I added tests on our side to ensure there's a local copy of the spec that's up to date in our repo, like when a new command is added. Would that suffice or were you suggesting a test in vscode repo? |
|
@JeffreyCA it would be best to live in your repo. For some specs we have tests: There's not that useful as they repeat a lot of stuff in the spec, but what they definitely are useful for is as a sanity check that everything's working. So a single or few small test cases could be useful to add like in code.test.ts. Thanks again! |
Resolves Azure/azure-dev#5656
This pull request adds a Fig autocomplete spec for Azure Developer CLI (
azd) for integrated terminal IntelliSense support: