Search in sources :

Example 6 with RenameCapabilities

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

the class ClientPreferencesTest method testIsRenameDynamicRegistrationSupported.

@Test
public void testIsRenameDynamicRegistrationSupported() throws Exception {
    assertFalse(prefs.isRenameDynamicRegistrationSupported());
    when(text.getRename()).thenReturn(new RenameCapabilities());
    assertFalse(prefs.isRenameDynamicRegistrationSupported());
    when(text.getRename()).thenReturn(new RenameCapabilities(true));
    assertTrue(prefs.isRenameDynamicRegistrationSupported());
}
Also used : RenameCapabilities(org.eclipse.lsp4j.RenameCapabilities) Test(org.junit.Test)

Aggregations

RenameCapabilities (org.eclipse.lsp4j.RenameCapabilities)6 ClientCapabilities (org.eclipse.lsp4j.ClientCapabilities)5 InitializeParams (org.eclipse.lsp4j.InitializeParams)5 TextDocumentClientCapabilities (org.eclipse.lsp4j.TextDocumentClientCapabilities)5 WorkspaceClientCapabilities (org.eclipse.lsp4j.WorkspaceClientCapabilities)4 PrepareRenameParams (org.eclipse.lsp4j.PrepareRenameParams)2 Range (org.eclipse.lsp4j.Range)2 RenameParams (org.eclipse.lsp4j.RenameParams)2 TextDocumentIdentifier (org.eclipse.lsp4j.TextDocumentIdentifier)2 WorkspaceEdit (org.eclipse.lsp4j.WorkspaceEdit)2 Objects (com.google.common.base.Objects)1 ImmutableList (com.google.common.collect.ImmutableList)1 ImmutableMap (com.google.common.collect.ImmutableMap)1 ImmutableMultimap (com.google.common.collect.ImmutableMultimap)1 ImmutableSet (com.google.common.collect.ImmutableSet)1 LinkedListMultimap (com.google.common.collect.LinkedListMultimap)1 Lists (com.google.common.collect.Lists)1 Multimap (com.google.common.collect.Multimap)1 Inject (com.google.inject.Inject)1 ArrayList (java.util.ArrayList)1