-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Outline explorer highlighted item doesn't change when "Follow cursor position" is unchecked #14134
Comments
Thanks for reporting this regression @jnsebgosselin. You said
I see two problems about this:
Especially given point 1, I think we shouldn't change the current behavior. |
Its your decision to make, but as a user, I disagree with you on this. However, if its too complicated or tricky to implement, than as a developer, I understand the decision. In my opinion however, if the highlighted item in the outline explorer doesn't reflect the cursor positioning in the editor, than it is just confusing UX to have anything highlighted in the outline explorer when the option "Follow cursor position" is unchecked. Maybe we should just not highlight anything then. What information is the user supposed to get from the highlighted item in the outline explorer if not in which file and what part of the file he is? It was the "expand-items-automatically-to-follow-the-cursor-position" that was the problem, not the fact that the highlighted item in the outline explorer was reflecting the position of the cursor in the editor.
Than we just need to change the "Follow cursor position" wording or add a tooltip to that action that clarifies what it does exactly. But imo, I don't really see this as a problem, there is nuances in "Follow cursor position" that doesn't make it wrong to allow the highlighted item to reflect the position of the cursor in the editor. Anyway, maybe this is just me and this is a non-issue. You should ask what others think about this I think. |
@ccordoba12 ok after paying a little bit more attention to this feature while working, if its technically too challenging to implement this feature back, it is not a big deal. I can get behind that 100%. However, in my opinion, this still represents a UX downgrade from what we had before the migration to the pyls. The outline explorer is an awesome tool to see where you are in the editor at a glance of an eye. Now, you just need to think a little bit more than before. If I recall correctly, I think this feature was introduced late in the 4.x development by @impact27 in PR #9219. So I was able to live without it before, I guess I will be able to live without it again. |
Ok, leaving for 4.2.1 then because it's not critical (but I'm not making promises though).
Sure, but the previous implementation degraded typing performance in the Editor significantly, especially for large files. That's why the move to the PyLS was a must. |
You aren't making promises because you're not sure if you're ok with this feature from a UX perspective or because you're not sure you will be able to devote development to implement this? |
Because I don't know how hard it'll be to implement. |
Ok thank you. In that case, maybe I can help with this. I'm not very good with all the stuff that was added lately related to the pyls, but I guess I can learn. |
Great! Thanks for your help! |
I append my words to this posts because from the videos I see the same issue : Compare for example the tree in the first two videos Sincerely, |
@MCilento93 I think this is being taken care of in spyder-ide/pyls-spyder#10 |
This is a regression that was introduced by the migration of the outline explorer to LSP.
In the outline explorer, when the option
Follow cursor position
is unchecked, the outline explorer should highlight the lowest item in the tree corresponding to the cursor position, without expanding anything.This is an animation that shows how this was working before the migration to LSP:
This is an animation showing how it works after the migration to LSP.
Versions
The text was updated successfully, but these errors were encountered: