Cleanups: imports and debug code

This commit is contained in:
Kris De Volder
2017-10-03 11:09:29 -07:00
parent 8bb96887fd
commit 3133ec7e8e
2 changed files with 1 additions and 10 deletions

View File

@@ -12,14 +12,10 @@ package org.springframework.tooling.ls.eclipse.gotosymbol.dialogs;
import java.util.Collection;
import java.util.List;
import java.util.Optional;
import java.util.concurrent.Callable;
import java.util.stream.Collectors;
import org.eclipse.core.runtime.Assert;
import org.eclipse.core.runtime.Platform;
import org.eclipse.jface.viewers.ISelection;
import org.eclipse.jface.viewers.TreeViewer;
import org.eclipse.lsp4j.SymbolInformation;
import org.springframework.ide.eclipse.boot.util.Log;
import org.springsource.ide.eclipse.commons.livexp.core.AsyncLiveExpression.AsyncMode;

View File

@@ -14,16 +14,12 @@ import java.util.Collection;
import java.util.List;
import java.util.concurrent.CompletableFuture;
import org.eclipse.core.commands.ExecutionEvent;
import org.eclipse.lsp4e.LSPEclipseUtils;
import org.eclipse.lsp4e.LanguageServiceAccessor;
import org.eclipse.lsp4e.LanguageServiceAccessor.LSPDocumentInfo;
import org.eclipse.lsp4j.DocumentSymbolParams;
import org.eclipse.lsp4j.SymbolInformation;
import org.eclipse.lsp4j.TextDocumentIdentifier;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.ui.IEditorPart;
import org.eclipse.ui.handlers.HandlerUtil;
import org.eclipse.ui.texteditor.ITextEditor;
import com.google.common.collect.ImmutableList;
@@ -42,7 +38,7 @@ public class InFileSymbolsProvider implements SymbolsProvider {
super();
this.info = target;
}
@Override
public Collection<SymbolInformation> fetchFor(String query) throws Exception {
DocumentSymbolParams params = new DocumentSymbolParams(
@@ -50,7 +46,6 @@ public class InFileSymbolsProvider implements SymbolsProvider {
CompletableFuture<List<? extends SymbolInformation>> symbolsFuture = info.getLanguageClient()
.getTextDocumentService().documentSymbol(params);
List<? extends SymbolInformation> symbols = symbolsFuture.get();
Thread.sleep(2000);
return symbols == null ? ImmutableList.of() : ImmutableList.copyOf(symbols);
}