-
Notifications
You must be signed in to change notification settings - Fork 202
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
Implement test autocompletion for bash/zsh/fish #749
Conversation
26cdfa9
to
8deccc2
Compare
@@ -275,10 +275,13 @@ object Interpreter { | |||
completion <- cmd.format.showMainName(main) | |||
} state.logger.info(completion) | |||
case Mode.TestsFQCN => | |||
import ExecutionContext.scheduler |
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'm not sure which scheduler should we use here...
801f800
to
a7f257e
Compare
Nice! @tanishiking Will have a look at this next Monday since i'm in vacation for some days, thanks for the new tests 😄 |
…ject <project>` This commit enable bloop to return testsFQCN in a project using `bloop autocomplete --format <shell> --mode testsfqcn --project <project>`. scalacenter#426
We reuse the scheduler that the interpreter runs instead of hardcoding it in the autocompletions engine. Besides, this commit makes some stylistic changes to the code.
a7f257e
to
83af9ca
Compare
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.
@tanishiking Thank you 🙏 I'm sorry for the delay in this PR, I removed the hardcoded ExecutionContext.scheduler
by turning everything into a task and letting the scheduler of the interpreter be the one running the autocompletion task. The rest of the PR LGTM! 😄 This enhancement will be available in the upcoming 1.2.0.
This PR enables
bloop autocomplete --format <shell> --mode testsfqcn --project <project>
bloop test <project> --only
Here are demos
zsh
(in this video, autocompletion transformed the command from
bloop
toblobloop
, but this is not actually happening..., I think this is a problem ofasciinema
and my zsh configuration...)bash
fish