mirror of
https://github.com/sigmasternchen/xtext-core
synced 2025-03-16 08:48:55 +00:00
Merge pull request #474 from RealTYPICAL/master
https://github.com/Microsoft/language-server-protocol/blob/master/pro…
This commit is contained in:
commit
19b98df5b3
2 changed files with 1033 additions and 1017 deletions
|
@ -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());
|
||||
}
|
||||
|
||||
|
|
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue