Search in sources :

Example 1 with SymbolTagSupportCapabilities

use of org.eclipse.lsp4j.SymbolTagSupportCapabilities in project eclipse.jdt.ls by eclipse.

the class ClientPreferencesTest method testIsSymbolTagSupported.

@Test
public void testIsSymbolTagSupported() throws Exception {
    assertFalse(prefs.isSymbolTagSupported());
    DocumentSymbolCapabilities capabilities = new DocumentSymbolCapabilities();
    when(text.getDocumentSymbol()).thenReturn(capabilities);
    capabilities.setTagSupport(new SymbolTagSupportCapabilities());
    assertTrue(prefs.isSymbolTagSupported());
}
Also used : DocumentSymbolCapabilities(org.eclipse.lsp4j.DocumentSymbolCapabilities) SymbolTagSupportCapabilities(org.eclipse.lsp4j.SymbolTagSupportCapabilities) Test(org.junit.Test)

Aggregations

DocumentSymbolCapabilities (org.eclipse.lsp4j.DocumentSymbolCapabilities)1 SymbolTagSupportCapabilities (org.eclipse.lsp4j.SymbolTagSupportCapabilities)1 Test (org.junit.Test)1