microsoft / microsoft/copilot-for-eclipse

The Copilot Chat view retains file context even after the file is closed

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

Nobody has claimed this yet.

bug good first issue help wanted
Dominant language
Java
Stars
126
Forks
60
Avg merge
2d 6h
Merged PRs (30d)
5

Description

Environment

  • OS: windows 11
  • Eclipse Version: 4.34
  • Plugin Version: 0.18.0

Describe the bug
The Copilot Chat view retains file context even after the file is closed

To Reproduce
Steps to reproduce the behavior:

1 Ensure no file is open in Eclipse. Ensure the active view is not Copilot Chat (e.g., keep the Problems view active).
2 Open a single file in the editor.
3 Switch the active view to Copilot Chat.
4 Close the file.

Expected behavior
The file context should be cleared immediately after the file is closed, regardless of when the Copilot Chat view was activated.

Additional context
If the Copilot Chat view is active before opening the file, then the context is correctly cleared upon file closure.
This indicates inconsistent behavior based on view activation timing.

Contributor guide

Open the contributing guide

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.

Research direction

Start in the Eclipse Copilot Chat view and reproduce the behavior using the listed steps, especially switching to Copilot Chat before closing the file. Trace how file context is cleared on file closure and compare the two view-activation sequences. Done means the context is cleared immediately in both cases.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
58/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.