-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
added the third_party_subcommands function in the cli.rs file #15100
base: master
Are you sure you want to change the base?
Conversation
r? @weihanglo rustbot has assigned @weihanglo. Use |
r? @epage |
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.
While I guess this may come from office hours, could you please link to the original issue, and write a clear description of what this is going to resolve? We have a PR template, if you are unsure how to write a proper description.
Thank you, @weihanglo for sharing the PR template! I am trying to implement the feature for adding third-party subcommands. Here is the tracking issue where two of my PRs were merged relevant to the third-party subcommands and aliases but now I need to call them and during the call in the cli.rs file, this is where I faced the issues that I mentioned in the description. I will be discussing this later on with Ed Page during an office hour. |
The closure returns a Vec of all subcommand candidates. This tries to pass all third-party subcommands as a single candidate. Also, when sharing incomplete code like this either open it as a Draft or just push your branch and share that. |
Hey there,
After grinding for hours, I think I found a place to call the
third_party_subcommands
function in the cli.rs file and after puttingthird_party
return value inside theCodeCompletion::new()
, it gave me the following error:After going to the
candidate.rs
file (that is not present in the cargo repo as I looked through it), I noticed that another fields needs to be added to be implemented in a method that will take arguments and then pass on.Let me know if I am on the right track and if further improvements need to be added.
Thank you!