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

Open
#517 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
52/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
java

Research direction

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.

Written by the indexing model from the issue text.

Description

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.

Dominant language
Java
Stars
128
Forks
70
Avg merge
5d 20h
Merged PRs (30d)
3

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from microsoft/copilot-for-eclipse

All issues in microsoft/copilot-for-eclipse

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.