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
ChatCompletionService initializes its workspace list using LSPEclipseUtils.getWorkspaceFolders(), which holds a static startup snapshot from LSP4E and does not update when projects are imported or opened at runtime.
ChatCompletionService does not register an IResourceChangeListener on ResourcesPlugin.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.
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/templatesskips global skills whenworkspaceFoldersis empty, but the Eclipse client must also dynamically refresh its templates whenever workspace projects change).Steps to Reproduce
/in the input box (observe the initial command list)..github/prompts/) or skills (.github/skills/)./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.