org.eclipse.lsp4j.CodeLensCapabilities Java Examples

The following examples show how to use org.eclipse.lsp4j.CodeLensCapabilities. 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: ClientPreferencesTest.java    From eclipse.jdt.ls with Eclipse Public License 2.0 5 votes vote down vote up
@Test
public void testIsCodeLensDynamicRegistrationSupported() throws Exception {
	assertFalse(prefs.isCodeLensDynamicRegistrationSupported());
	when(text.getCodeLens()).thenReturn(new CodeLensCapabilities());
	assertFalse(prefs.isCodeLensDynamicRegistrationSupported());
	when(text.getCodeLens()).thenReturn(new CodeLensCapabilities(true));
	assertTrue(prefs.isCodeLensDynamicRegistrationSupported());
}
 
Example #2
Source File: TextDocumentClientCapabilities.java    From lsp4j with Eclipse Public License 2.0 4 votes vote down vote up
/**
 * Capabilities specific to the `textDocument/codeLens`
 */
@Pure
public CodeLensCapabilities getCodeLens() {
  return this.codeLens;
}
 
Example #3
Source File: TextDocumentClientCapabilities.java    From lsp4j with Eclipse Public License 2.0 4 votes vote down vote up
/**
 * Capabilities specific to the `textDocument/codeLens`
 */
public void setCodeLens(final CodeLensCapabilities codeLens) {
  this.codeLens = codeLens;
}