-
Notifications
You must be signed in to change notification settings - Fork 31
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
#95 Adapt example to conform to GLSPServerLauncher refactoring #62
Conversation
Add launch configs for Eclipse Requires: eclipse-glsp/glsp-server/pull/69 Part of: eclipse-glsp/glsp#95
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.
Change looks good to me, thank you Tobias! I just have some minor comments which you may address and the change might be updated if the server change is updated as well but overall it looks good and works well. Love the much better name of the launcher now and the shared launch configs!
|
||
} catch (ParseException | IOException ex) { | ||
System.out.println("Server start failed!"); | ||
ex.printStackTrace(); |
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.
Is it on purpose that this is a mix of sys.err and sys.out? Cause you could print the stacktrace to sys.out as well by simply handing it in as a parameter.
|
||
try { | ||
CLIParser parser = new CLIParser(args, cliOptions, processName); | ||
if (parser.optionExists("h")) { |
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.
Minor: Extract 'h' as constant or use from server change if available.
public static void main(final String[] args) { | ||
String processName = "WorkflowExampleGlspServer"; | ||
Options cliOptions = CLIParser.getDefaultCLIOptions(); | ||
cliOptions.addOption(new Option("w", "websocket", false, "Use websocket launcher instead of default")); |
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.
Minor: Extract 'w' as constant to avoid risk of rename-mismatches.
Add launch configs for Eclipse
Requires: eclipse-glsp/glsp-server/pull/69
Part of: eclipse-glsp/glsp#95