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: Fix errors when displaying the Symbols switcher #21667

Merged
merged 9 commits into from
Jan 1, 2024

Conversation

ccordoba12
Copy link
Member

Description of Changes

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

Also, make some small code formatting changes.
That signal is not really necessary because we have
sig_search_text_available, which is debounced and does pretty much the
same.
- Emit sig_mode_selected manually when calling the action to show
symbols. This makes symbols to be shown instantly.
- Fix default "score" kwarg value in the plugin API. This was giving an
error when comparing symbol scores.
- Reset switcher mode when rejecting it. This was preventing to show
symbols when calling the action to do it several times in a row.
Also, make some small performance improvements for the symbols switcher.
@pep8speaks
Copy link

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

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

@ccordoba12 ccordoba12 merged commit fada1c4 into spyder-ide:master Jan 1, 2024
14 checks passed
@ccordoba12 ccordoba12 deleted the fix-symbol-switcher branch January 1, 2024 19:28
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.

2 participants