Codium-ai / codiumai-vscode-release

266 stars 38 forks source link

Focus cannot be changed to the actual current ipynb file using "Current File" #175

Open christopher-czaban opened 4 months ago

christopher-czaban commented 4 months ago

Issue Description

Summary

The "Focus" feature does not function correctly when trying to switch the focus to a different file. Once a file is initially selected, the feature fails to change the focus to any new file, always reverting to the first focused file. This issue seems to be specifically related to .ipynb files.

Steps to Reproduce

  1. Open Codiumate in VS Code.
  2. Use the "Focus" feature to select a .ipynb file as the current focus.
  3. Attempt to change the focus to another opened file by using the "Current File" option.
  4. Observe that the focus remains on the initially selected .ipynb file and does not change to the new file.
  5. If the initial focus is on a .py file, you can switch focus to another .py file but not to a .ipynb file.

Expected Behavior

When a new file is selected using the "Current File" option, the focus should change to the newly selected file, allowing the coding assistant to provide insights and assistance based on the current file.

Actual Behavior

The focus remains on the initially selected file, and the coding assistant continues to treat the first focused file as the current context, regardless of attempts to switch the focus to another file. When initially focusing on a .ipynb file, it is possible to switch focus to a .py file and from there to other .py files, but not to another .ipynb file again.

Environment

oranshiner commented 4 months ago

Thank you for reporting this issue, we would ry to reproduce and fix it