New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Copilot suggestions shouldn't show up in unfocused notebook cells #133353
Comments
Does it generally make sense to hide ghost text if the editor does not have focus anymore? |
Not sure - does copilot still have a mode where they open extra suggestions in a side editor? I thought that switching normal editors while using copilot might be a real use case. For the purposes of this issue, either way is fine. |
+1 for hiding ghost text for blurred text editor. |
Implemented. |
Unfortunately, the hover used to cycle through inline suggestions also takes the focus from the editor as soon as the user clicks on it. Thus, we cannot hide the ghost text when the editor loses focus. I don't know how to not hide the ghost text when the hover gets focus. Even worse, when the hover gets the focus and then loses it to something else (e.g. the sidebar), the ghost text should also hide, but this is even harder to detect. |
Is there no concept that says whether focus is inside the editor or inside an editor widget? I thought there was a context key for that case. |
There is, but it does not work: #133518 seems to fixes this, but I have no idea why. It is also a time grave. I've already spent quite some time debugging this stuff. |
I moved this to october, as the PR that fixes the fix for this will also be merged not before next milestone (due to vacation). |
Is there any way to accomplish this @hediet
The text was updated successfully, but these errors were encountered: