-
Notifications
You must be signed in to change notification settings - Fork 30.4k
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
Integrate with fig's generator code #240135
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.
Nice 👍🏼
The merge-base changed after approval.
Tests failing for valid reasons |
for (const command of availableCommands) { | ||
if (!labels.has(command.label)) { | ||
items.push(createCompletionItem(terminalContext.cursorPosition, prefix, command, command.detail)); | ||
} else { |
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.
I think we want it how it was before? Otherwise, it's possible that result had no items, neither files nor folders were requested, and we won't change that.
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.
Good call, that's why the tests failed too 👍
The cause: 015b23f |
This change brings in the majority of dealing with script and custom generators from https://github.com/aws/amazon-q-developer-cli/tree/main/packages/autocomplete. Template generators are out of scope for this PR. It also features a big refactor that pulls all dealing with the
fig/
folder intofig/figInterface.ts
to better segment the "outside" code from the terminal-suggest extension.Example of script generator:
Example of custom generator (showing local branches since -r isn't there):
Limitations:
npm
won't work. We'll need some special handling to get the actual path on Windows I think Terminal suggest: fig generator completions often complain about the executable not existing #240139Part of #239519
Fixes #240131