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

Ouverte
#517 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Les mainteneurs répondent en général sous 2 jours

Personne n'a encore pris cette issue.

Évaluation

Difficulté
4/5
Temps estimé
3-5 jours
Accessibilité débutants
52/100
Type d'issue
Bug
Clarté
Plutôt claire
Activité
Active
Stack technique
java

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

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.

Langage dominant
Java
Étoiles
129
Forks
70
Merge moyen
3 j 2 h
PR mergées (30 j)
15

Préparer son environnement

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de microsoft/copilot-for-eclipse

Toutes les issues de microsoft/copilot-for-eclipse

Issues similaires

Plus d'issues Java

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.