[Bug] "Load custom instructions from: projects inferred from chat-attached files" also limits the chat search tools

未关闭
#517 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 2 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
52/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
java

调研方向

Start by tracing how the plugin sends workspaceFolders in conversation/create and conversation/turn, then check how the language server uses that list for customization loading and search scope. The issue names no source files or tests, so first locate those entry points and any related tests. Done means the preference limits customization files while grep_search and file_search still cover all open projects.

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

描述

bug

Environment

  • OS: RHEL 9.6
  • Eclipse Version: 2025-12
  • Plugin Version: 0.18.0 or later, tested with 0.21.0 and a later nightly build with PR 504.

Describe the bug
The preference "Load custom instructions from" (Preferences → Copilot → Custom Instructions, added in #136) is
meant to limit where custom instructions are loaded from. With "projects inferred from chat-attached files", it
also limits the search tools: grep_search and file_search only search the projects of the current file and
attached references.

Cause: the plugin sends only these projects as workspaceFolders with conversation/create and
conversation/turn. The language server uses this one list for customization files and for the search tools.

To Reproduce

  1. Open a workspace where project B uses classes from project A.
  2. Set "Load custom instructions from" to "projects inferred from chat-attached files".
  3. Open a file from project A and ask in a new chat: "Find all usages of this class in the workspace."
  4. Only project A is searched. The agent reports that it only has project A as a workspace folder.

Expected behavior
The setting only limits where custom instructions, skills and prompt files are loaded from. Search covers all
open projects.

What might fix it
Let the language server accept separate folder lists for customization files and for the search
scope.

Additional context
Note, if I set the Copilot preference to "Load custom instructions from all projects in workspace" having about 40 projects in my workspace, then trying to search for files in the workspace folders hits the "Task queue limit of 20 reached" problem with a single search request. See discussion in #62 for the original reasons for implementing PR #136 and related issues #24 and #40.

主要语言
Java
星标
129
派生
70
平均合并
3 天 2 小时
30 天内合并 PR
15

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

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

microsoft/copilot-for-eclipse 的其他 Issue

查看 microsoft/copilot-for-eclipse 的全部 Issue

相似的 Issue

更多 Java Issue

把新 issue 发到你的邮箱

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