-
-
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
PR: Fix class/function selector for split editors (Editor) #20961
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @rear1019 ! LGTM 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @rear1019 for your help with this!
Hi @ccordoba12, sorry for the slow response. Unfortunately, I haven’t been able to work on Spyder over the last few weeks. I will try to update this PR the next few days.
I managed to come up with a fix if I remember correctly. I will try to make a (draft) PR the next few days. |
f9fdb63
to
44be806
Compare
@ccordoba12 I have added the suggested changes. Concerning broken indention guides and code folding in cloned editors, see #21033. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One last minor comment for you @rear1019, the rest looks good to me.
Great! Thanks for addressing that problem too. |
44be806
to
2009c49
Compare
The test fails as of this commit due to a bug which is fixed in the next commit
Split editors are “clones” of the “main editor”. Handling of some LSP related events (e.g. folding and symbols) is performed by the main editor only (see e.g. CodeEditor.start_completion_services() and EditorStack.create_new_editor()). Add missing update of the class and function selector [1] for split editors. (Also see PR [2] which fixed a related issue in the Outline plugin.) [1] See menu entry “Source → Show selection for classes and function”; the selector is shown at the top of the editor’s viewport, just below the tabbar. [2] spyder-ide#20221
Co-authored-by: Carlos Cordoba <[email protected]>
2009c49
to
b4eb8fb
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me now, thanks @rear1019!
Description of Changes
This PR fixes missing updates of the class and function selector of vertically/horizontally split (cloned) editors. See commit message for details.
Note: Update of indent guides and code folding in cloned editors is broken as well (similar root cause). I have looked into fixing that as well, however, have not succeeded so far.
Affirmation
By submitting this Pull Request or typing my (user)name below,
I affirm the Developer Certificate of Origin
with respect to all commits and content included in this PR,
and understand I am releasing the same under Spyder's MIT (Expat) license.
I certify the above statement is true and correct:
rear1019