Skip to content

feat: Support controlling whether to show stopped daemons#940

Merged
CsCherrYY merged 3 commits intomainfrom
cs-issue935
Aug 24, 2021
Merged

feat: Support controlling whether to show stopped daemons#940
CsCherrYY merged 3 commits intomainfrom
cs-issue935

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