microsoft / microsoft/copilot-for-eclipse
[Bug] Conversation templates and skills do not update dynamically on project lifecycle changes
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 126
- Forks
- 60
- Avg merge
- 2d 6h
- Merged PRs (30d)
- 5
Description
Currently, when Eclipse starts with an empty workspace (or when projects are imported, opened, closed, or deleted during a session), conversation templates, including slash commands (/), custom prompts, and skills, do not update until Eclipse is completely restarted.
Root Cause
ChatCompletionServiceinitializes its workspace list usingLSPEclipseUtils.getWorkspaceFolders(), which holds a static startup snapshot from LSP4E and does not update when projects are imported or opened at runtime.ChatCompletionServicedoes not register anIResourceChangeListeneronResourcesPlugin.getWorkspace(), so project lifecycle events (adding, removing, opening, or closing projects) never trigger a re-fetch of templates from the language server.
(Note: There is also an upstream language server issue where conversation/templates skips global skills when workspaceFolders is empty, but the Eclipse client must also dynamically refresh its templates whenever workspace projects change).
Steps to Reproduce
- Start Eclipse with an empty workspace (no open projects).
- Open Copilot Chat and type
/in the input box (observe the initial command list). - Import or open a project containing prompts (
.github/prompts/) or skills (.github/skills/). - Type
/in Copilot Chat again.
Expected behavior:
The newly imported project's prompts and skills appear in the / completion list dynamically.
Actual behavior:
The completion list remains unchanged until Eclipse is restarted.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in ChatCompletionService, especially its use of LSPEclipseUtils.getWorkspaceFolders(), then inspect how ResourcesPlugin exposes project lifecycle events. Reproduce with an empty workspace and import or open a project containing .github/prompts/ or .github/skills/. Done means the slash-command list refreshes without restarting Eclipse.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- developer-experience, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Clearly specified
- Newbie friendliness
- 72/100