• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java WorkspaceSymbolParams类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中org.eclipse.lsp4j.WorkspaceSymbolParams的典型用法代码示例。如果您正苦于以下问题:Java WorkspaceSymbolParams类的具体用法?Java WorkspaceSymbolParams怎么用?Java WorkspaceSymbolParams使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



WorkspaceSymbolParams类属于org.eclipse.lsp4j包,在下文中一共展示了WorkspaceSymbolParams类的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: symbol

import org.eclipse.lsp4j.WorkspaceSymbolParams; //导入依赖的package包/类
/**
 * GWT client implementation of {@link WorkspaceService#symbol(WorkspaceSymbolParams)}
 *
 * @param params
 * @return
 */
public Promise<List<SymbolInformation>> symbol(WorkspaceSymbolParams params) {
  return Promises.create(
      (resolve, reject) ->
          requestTransmitter
              .newRequest()
              .endpointId(WS_AGENT_JSON_RPC_ENDPOINT_ID)
              .methodName("workspace/symbol")
              .paramsAsDto(params)
              .sendAndReceiveResultAsListOfDto(SymbolInformation.class)
              .onSuccess(resolve::apply)
              .onFailure(error -> reject.apply(getPromiseError(error))));
}
 
开发者ID:eclipse,项目名称:che,代码行数:19,代码来源:WorkspaceServiceClient.java


示例2: testSymbol

import org.eclipse.lsp4j.WorkspaceSymbolParams; //导入依赖的package包/类
protected void testSymbol(final Procedure1<? super WorkspaceSymbolConfiguraiton> configurator) {
  try {
    @Extension
    final WorkspaceSymbolConfiguraiton configuration = new WorkspaceSymbolConfiguraiton();
    configuration.setFilePath(("MyModel." + this.fileExtension));
    configurator.apply(configuration);
    this.initializeContext(configuration);
    String _query = configuration.getQuery();
    WorkspaceSymbolParams _workspaceSymbolParams = new WorkspaceSymbolParams(_query);
    final List<? extends SymbolInformation> symbols = this.languageServer.symbol(_workspaceSymbolParams).get();
    Procedure1<? super List<? extends SymbolInformation>> _assertSymbols = configuration.getAssertSymbols();
    boolean _tripleNotEquals = (_assertSymbols != null);
    if (_tripleNotEquals) {
      configuration.getAssertSymbols().apply(symbols);
    } else {
      final String actualSymbols = this.toExpectation(symbols);
      this.assertEquals(configuration.getExpectedSymbols(), actualSymbols);
    }
  } catch (Throwable _e) {
    throw Exceptions.sneakyThrow(_e);
  }
}
 
开发者ID:eclipse,项目名称:xtext-core,代码行数:23,代码来源:AbstractLanguageServerTest.java


示例3: symbol

import org.eclipse.lsp4j.WorkspaceSymbolParams; //导入依赖的package包/类
@Override
public CompletableFuture<List<? extends SymbolInformation>> symbol(WorkspaceSymbolParams params) {
    return null;
}
 
开发者ID:adamvoss,项目名称:languagetool-languageserver,代码行数:5,代码来源:NoOpWorkspaceService.java


示例4: symbol

import org.eclipse.lsp4j.WorkspaceSymbolParams; //导入依赖的package包/类
@Override
public CompletableFuture<List<? extends SymbolInformation>> symbol(WorkspaceSymbolParams params) {
	logInfo(">> workspace/symbol");
	WorkspaceSymbolHandler handler = new WorkspaceSymbolHandler();
	return computeAsync((cc) -> {
		return handler.search(params.getQuery(), toMonitor(cc));
	});
}
 
开发者ID:eclipse,项目名称:eclipse.jdt.ls,代码行数:9,代码来源:JDTLanguageServer.java


示例5: symbol

import org.eclipse.lsp4j.WorkspaceSymbolParams; //导入依赖的package包/类
@Override
public CompletableFuture<List<? extends SymbolInformation>> symbol(final WorkspaceSymbolParams params) {
  final Function1<CancelIndicator, List<? extends SymbolInformation>> _function = (CancelIndicator cancelIndicator) -> {
    final IResourceDescriptions indexData = this.workspaceManager.getIndex();
    return this.workspaceSymbolService.getSymbols(params.getQuery(), this.resourceAccess, indexData, cancelIndicator);
  };
  return this.requestManager.<List<? extends SymbolInformation>>runRead(_function);
}
 
开发者ID:eclipse,项目名称:xtext-core,代码行数:9,代码来源:LanguageServerImpl.java


示例6: symbol

import org.eclipse.lsp4j.WorkspaceSymbolParams; //导入依赖的package包/类
@Override
public CompletableFuture<List<? extends SymbolInformation>> symbol(WorkspaceSymbolParams params) {
	LOGGER.info("SERVER: symbolQuery: " + params.getQuery());
	return CompletableFuture.completedFuture(Collections.emptyList());
}
 
开发者ID:lhein,项目名称:camel-language-server,代码行数:6,代码来源:CamelWorkspaceService.java


示例7: symbol

import org.eclipse.lsp4j.WorkspaceSymbolParams; //导入依赖的package包/类
@Override
public CompletableFuture<List<? extends SymbolInformation>> symbol(
    final WorkspaceSymbolParams params) {
  List<? extends SymbolInformation> result = som.getAllSymbolInfo(params.getQuery());
  return CompletableFuture.completedFuture(result);
}
 
开发者ID:smarr,项目名称:SOMns-vscode,代码行数:7,代码来源:SomWorkspace.java


示例8: symbol

import org.eclipse.lsp4j.WorkspaceSymbolParams; //导入依赖的package包/类
@Override
public CompletableFuture<List<? extends SymbolInformation>> symbol(WorkspaceSymbolParams params) {
	throw new UnsupportedOperationException();
}
 
开发者ID:eclipse,项目名称:lsp4j,代码行数:5,代码来源:MockLanguageServer.java


示例9: symbol

import org.eclipse.lsp4j.WorkspaceSymbolParams; //导入依赖的package包/类
/**
 * The workspace symbol request is sent from the client to the server to
 * list project-wide symbols matching the query string.
 *
 * Registration Options: void
 */
@JsonRequest
CompletableFuture<List<? extends SymbolInformation>> symbol(WorkspaceSymbolParams params);
 
开发者ID:smarr,项目名称:SOMns-vscode,代码行数:9,代码来源:WorkspaceService.java



注:本文中的org.eclipse.lsp4j.WorkspaceSymbolParams类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java Email类代码示例发布时间:2022-05-23
下一篇:
Java ExtensionVisitor类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap