Skip to content
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: Reload symbols when saving a file through the Save as menu entry (Outline) #19360

Merged
merged 4 commits into from
Sep 9, 2022

Conversation

ccordoba12
Copy link
Member

@ccordoba12 ccordoba12 commented Sep 8, 2022

Description of Changes

  • Symbols were pointing to the original file instead of the renamed one. This PR fixes that by deleting the current symbols and requesting them for the new file.

    Before

    rename-wrong

    After

    rename-right

  • Add a regression test for this.

  • Expand Outline tests to check that we can display special comments and cells.

  • Remove some dead code in the Outline and its tests.

Issue(s) Resolved

Fixes #15517

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: @ccordoba12

@ccordoba12 ccordoba12 added this to the v5.4.0 milestone Sep 8, 2022
@ccordoba12 ccordoba12 self-assigned this Sep 8, 2022
@pep8speaks
Copy link

pep8speaks commented Sep 8, 2022

Hello @ccordoba12! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

Line 46:1: E302 expected 2 blank lines, found 1

Comment last updated at 2022-09-09 18:48:22 UTC

Copy link
Member

@dalthviz dalthviz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @ccordoba12 ! Checked locally on WIndows and seems like the changes work there too 👍

Left some comments/questions regarding some code (a class and a test) that were removed here. Otherwise this LGTM 👍

@ccordoba12 ccordoba12 merged commit 50ab705 into spyder-ide:5.x Sep 9, 2022
@ccordoba12 ccordoba12 deleted the issue-15517 branch September 9, 2022 21:39
ccordoba12 added a commit that referenced this pull request Sep 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants