简体   繁体   English

Vscode Extension API 通过内容匹配搜索工作区中的所有文件

[英]Vscode Extension API search all files in workspace by content matches

update I found it: provideWorkspaceSymbols更新我找到了:provideWorkspaceSymbols

What is the API equivalent of the search menu in vscode? vscode 中搜索菜单的 API 等价物是什么? The vscode.worspace.findFiles() Signature doesn't match the input fields I have in the menu of vscode. vscode.worspace.findFiles()签名与我在 vscode 菜单中的输入字段不匹配。

My problem: I'm writing an html tag to component match extension for an angularjs 1.x project.我的问题:我正在为 angularjs 1.x 项目编写一个 html 标签来匹配组件扩展。 The components class names are listed in imports.ts where the components are registered line by line.组件类名列在imports.ts 中,其中组件是逐行注册的。 This component name is already parsed correct.此组件名称已正确解析。 With the found components name I have to search my component folder (about 1300 components) which I solved with a grep request inside a node exec call.使用找到的组件名称,我必须搜索我的组件文件夹(大约 1300 个组件),我在 node exec 调用中通过 grep 请求解决了这个问题。 But I want to use the vscode API for that.但我想为此使用 vscode API。

Do have any advises/hints?有任何建议/提示吗?

Thanks you.谢谢。

我找到了正确的函数 provideWorkspaceSymbols

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM