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

fix issue: check if server already stopped when stop server #64

Merged
merged 3 commits into from
Jan 11, 2018

Conversation

SummerSun
Copy link
Contributor

No description provided.

const server: TomcatServer = await getTargetServer(tomcat, tomcatItem, true);
if (server) {
if(server.isStarted()) {
Copy link
Owner

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.

Copy link
Contributor Author

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.');
Copy link
Owner

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?

Copy link
Contributor Author

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.

@SummerSun SummerSun merged commit 0208616 into develop Jan 11, 2018
@SummerSun SummerSun deleted the qisun_fix3 branch January 11, 2018 08:27
@SummerSun
Copy link
Contributor Author

#42

@SummerSun SummerSun mentioned this pull request Jan 12, 2018
22 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants