org.eclipse.lsp4j.services.LanguageClientAware Java Examples
The following examples show how to use
org.eclipse.lsp4j.services.LanguageClientAware.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: Server.java From netbeans with Apache License 2.0 | 5 votes |
private static void run(InputStream in, OutputStream out) throws Exception { LanguageServerImpl server = new LanguageServerImpl(); Launcher<LanguageClient> serverLauncher = LSPLauncher.createServerLauncher(server, in, out); ((LanguageClientAware) server).connect(serverLauncher.getRemoteProxy()); serverLauncher.startListening(); while (true) { try { Thread.sleep(100000); } catch (InterruptedException ex) { //ignore } } }
Example #2
Source File: CamelLSPWebSocketEndpoint.java From camel-language-server with Apache License 2.0 | 4 votes |
@Override protected void connect(Collection<Object> localServices, LanguageClient remoteProxy) { localServices.stream() .filter(LanguageClientAware.class::isInstance) .forEach(languageClientAware -> ((LanguageClientAware) languageClientAware).connect(remoteProxy)); }
Example #3
Source File: Server.java From netbeans with Apache License 2.0 | 4 votes |
@Override public void connect(LanguageClient client) { this.client = client; ((LanguageClientAware) getTextDocumentService()).connect(client); }
Example #4
Source File: TeiidDdlWebSocketEndpoint.java From syndesis with Apache License 2.0 | 4 votes |
@Override protected void connect(Collection<Object> localServices, LanguageClient remoteProxy) { localServices.stream() .filter(LanguageClientAware.class::isInstance) .forEach(languageClientAware -> ((LanguageClientAware) languageClientAware).connect(remoteProxy)); }