Skip to content

VSCode dependencies

@vscode/ripgrep

ripgrep 是一个面向行的搜索工具,它在遵循 gitignore 规则的同时,递归地搜索当前目录以寻找正则表达式模式

sh
# 从 `D:\repos\171h\notes\notes\vscode-repo.md` 文件中搜索 `script`
.\rg.exe script D:\repos\171h\notes\notes\vscode-repo.md

documentation

github

这个 npm 包涉及3个github仓库, BurntSushi/ripgrep 是主仓库,microsoft/ripgrep-prebuiltBurntSushi/ripgrep 的预编译版本,microsoft/vscode-ripgrep 用于下载 microsoft/ripgrep-prebuilt 的 release 版本,最z终的 rg.exe 会被 vscode 引用。

  1. microsoft/vscode-ripgrep

    • url: https://github.com/microsoft/vscode-ripgrep
    • Description: For consuming the ripgrep binary from microsoft/ripgrep-prebuilt in a Node project
    • 用于从 microsoft/ripgrep-prebuilt github 项目中下载 ripgrep 二进制文件
  2. microsoft/ripgrep-prebuilt

    • https://github.com/microsoft/ripgrep-prebuilt
      • Builds ripgrep on Azure Pipelines for multiple platforms and makes the binaries available as Github releases
      • BurntSushi/ripgrep 预编译版本, vscode 编译时使用 microsoft/vscode-ripgrep 从此仓库的 release 下载 rg.exe
  3. BurntSushi/ripgrep

    • https://github.com/BurntSushi/ripgrep
      • ripgrep is a line-oriented search tool that recursively searches the current directory for a regex pattern. By default, ripgrep will respect gitignore rules and automatically skip hidden files/directories and binary files. (To disable all automatic filtering by default, use rg -uuu.) ripgrep has first class support on Windows, macOS and Linux, with binary downloads available for every release. ripgrep is similar to other popular search tools like The Silver Searcher, ack and grep.
      • ripgrep 是一个命令行工具,用于搜索文件中给出的模式