[lsp] ensure resources are initialized

This commit is contained in:
Sven Efftinge 2017-01-11 15:15:59 +01:00
parent d2bd0da853
commit 6761c499cc
2 changed files with 7 additions and 2 deletions

View file

@ -115,7 +115,10 @@ class ProjectManager {
}
def Resource getResource(URI uri) {
resourceSet.getResource(uri, true)
val resource = resourceSet.getResource(uri, true)
// initialize
resource.contents
return resource
}
def void reportProjectIssue(String message, String code, Severity severity) {

View file

@ -152,7 +152,9 @@ public class ProjectManager {
}
public Resource getResource(final URI uri) {
return this.resourceSet.getResource(uri, true);
final Resource resource = this.resourceSet.getResource(uri, true);
resource.getContents();
return resource;
}
public void reportProjectIssue(final String message, final String code, final Severity severity) {