Merge pull request #474 from RealTYPICAL/master

https://github.com/Microsoft/language-server-protocol/blob/master/pro
This commit is contained in:
Christian Dietrich 2017-09-27 12:52:18 +02:00 committed by GitHub
commit 19b98df5b3
2 changed files with 1033 additions and 1017 deletions

View file

@ -105,6 +105,8 @@ import org.eclipse.xtext.ide.server.commands.ExecutableCommandRegistry
WorkspaceManager workspaceManager
InitializeParams params
boolean hasShutdownBeenCalled = false;
@Inject
def void setWorkspaceManager(WorkspaceManager manager) {
this.workspaceManager = manager
@ -196,9 +198,15 @@ import org.eclipse.xtext.ide.server.commands.ExecutableCommandRegistry
}
override exit() {
if(this.hasShutdownBeenCalled) {
System.exit(0);
} else {
System.exit(1);
}
}
override CompletableFuture<Object> shutdown() {
this.hasShutdownBeenCalled = true;
return CompletableFuture.completedFuture(new Object());
}