use of org.eclipse.lsp4j.DidOpenTextDocumentParams in project sts4 by spring-projects.
the class LanguageServerHarness method openDocument.
public TextDocumentInfo openDocument(TextDocumentInfo documentInfo) throws Exception {
DidOpenTextDocumentParams didOpen = new DidOpenTextDocumentParams();
didOpen.setTextDocument(documentInfo.getDocument());
if (getServer() != null) {
getServer().getTextDocumentService().didOpen(didOpen);
}
return documentInfo;
}
Aggregations