**Title:** File search passes empty ripgrep type and fails

未关闭 适合新手
#3,295 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
65/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
领域
cli, search

调研方向

从组装 ripgrep 命令的 file-search 工具入口点开始,因为 payload 没有指定源文件或测试。重现一次不指定文件类型的搜索,并检查生成的参数;完成的标准是空类型不会生成 --type/-t 参数,而有效类型仍然能够正常工作。

由索引模型根据 Issue 内容生成。

描述

Title: File search passes empty ripgrep type and fails

Description

Copilot Desktop file/code searches fail across all projects with:

rg: unrecognized file type:

The file-search tool appears to pass an empty file type to ripgrep, equivalent to:

rg --type '' PATTERN

Reproduction

  1. Open any project in Copilot Desktop.
  2. Ask Copilot to search project files without specifying a language/file type.
  3. Search fails with the error above.
  4. Reproduces across all projects and sessions.

Observed

An empty type value fails consistently. A valid registered type such as js works.

Expected

When no file type is specified, omit the --type/-t argument entirely.

Environment

  • Copilot Desktop/CLI version: 1.0.80
  • OS: macOS Darwin
  • Date observed: August 28, 2026

Field Value
App version 1.1.14
OS macOS 27.0.0
Theme GitHub
Path /chat
Tenure Week 3
主要语言
没有语言数据
星标
2.1k
派生
157
PR 合并指标
30 天内没有已合并 PR

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

github/app 的其他 Issue

查看 github/app 的全部 Issue

相似的 Issue

更多 CLI Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。