-
Notifications
You must be signed in to change notification settings - Fork 57
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
Conversation
extension/package.json
Outdated
}, | ||
{ | ||
"command": "gradle.showStoppedDaemons", | ||
"title": "Show stopped Daemons" |
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.
Stopped
extension/package.json
Outdated
}, | ||
{ | ||
"command": "gradle.hideStoppedDaemons", | ||
"title": "Hide stopped Daemons" |
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.
Stopped
(projectRootFolder) => | ||
this.client | ||
.getDaemonsStatus(projectRootFolder, cancellationToken.token) | ||
.then((getDaemonsStatusReply) => { |
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.
daemonsStatusReply
let daemonInfoList = getDaemonsStatusReply.getDaemonInfoList(); | ||
if (!getShowStoppedDaemons()) { | ||
daemonInfoList = daemonInfoList.filter((daemonInfo) => { | ||
if ( |
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.
return daemonInfo.getStatus() !== DaemonInfo.DaemonStatus.STOPPED
related to #935