-
Notifications
You must be signed in to change notification settings - Fork 35
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
fix issue: check if server already stopped when stop server #64
Conversation
const server: TomcatServer = await getTargetServer(tomcat, tomcatItem, true); | ||
if (server) { | ||
if(server.isStarted()) { |
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.
In the previous version. If the server is already started, it will stop and start, so no need for the information here.
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 will suggest that we make a restart command to silently stop then start a running server.
src/extension.ts
Outdated
const server: TomcatServer = await getTargetServer(tomcat, tomcatItem); | ||
if (server) { | ||
if (!server.isStarted()) { | ||
vscode.window.showInformationMessage('This Tomcat Server was stopped.'); |
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.
Should this message also in the Dialogmessage constants?
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.
yes, but that PR is in review, so just use pure string here.
No description provided.