use of org.eclipse.che.api.languageserver.shared.lsapi.WorkspaceSymbolParamsDTO in project che by eclipse.
the class FindSymbolAction method searchSymbols.
private Promise<List<SymbolEntry>> searchSymbols(final String value) {
WorkspaceSymbolParamsDTO params = dtoFactory.createDto(WorkspaceSymbolParamsDTO.class);
params.setQuery(value);
params.setFileUri(editorAgent.getActiveEditor().getEditorInput().getFile().getLocation().toString());
return workspaceServiceClient.symbol(params).then(new Function<List<SymbolInformationDTO>, List<SymbolEntry>>() {
@Override
public List<SymbolEntry> apply(List<SymbolInformationDTO> types) throws FunctionException {
return toSymbolEntries(types, value);
}
});
}
Aggregations