Skip to content
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

feat: Support controlling whether to show stopped daemons #940

Merged
merged 3 commits into from
Aug 24, 2021

Conversation

CsCherrYY
Copy link
Collaborator

@CsCherrYY CsCherrYY commented Aug 24, 2021

related to #935

daemons

},
{
"command": "gradle.showStoppedDaemons",
"title": "Show stopped Daemons"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stopped

},
{
"command": "gradle.hideStoppedDaemons",
"title": "Hide stopped Daemons"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stopped

(projectRootFolder) =>
this.client
.getDaemonsStatus(projectRootFolder, cancellationToken.token)
.then((getDaemonsStatusReply) => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

daemonsStatusReply

let daemonInfoList = getDaemonsStatusReply.getDaemonInfoList();
if (!getShowStoppedDaemons()) {
daemonInfoList = daemonInfoList.filter((daemonInfo) => {
if (
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

return daemonInfo.getStatus() !== DaemonInfo.DaemonStatus.STOPPED

jdneo
jdneo previously approved these changes Aug 24, 2021
@CsCherrYY CsCherrYY merged commit 3497109 into main Aug 24, 2021
@CsCherrYY CsCherrYY deleted the cs-issue935 branch August 24, 2021 09:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants