-
-
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: Migrate the Outline Explorer to use LSP information #13109
Conversation
Hello @andfoy! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:
Comment last updated at 2020-09-16 20:53:48 UTC |
/show binder |
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 a lot for this @andfoy! I left an initial review for you to take a look at.
It seems that variables are displayed, but imports not. Actually, most of the LSP servers I've tried this PR on, they all show variables as part of their response, not only the LSP |
This is a limitation of the LSP spec, which does not consider attributes nor methods |
…://github.com/andfoy/python-language-server.git external-deps/python-language-server subrepo: subdir: "external-deps/python-language-server" merged: "bb47a9058" upstream: origin: "https://github.com/andfoy/python-language-server.git" branch: "fix_method_attribute_symbols" commit: "bb47a9058" git-subrepo: version: "0.4.1" origin: "https://github.com/ingydotnet/git-subrepo" commit: "a04d8c2"
…://github.com/andfoy/python-language-server.git external-deps/python-language-server subrepo: subdir: "external-deps/python-language-server" merged: "b1d320b54" upstream: origin: "https://github.com/andfoy/python-language-server.git" branch: "fix_method_attribute_symbols" commit: "b1d320b54" git-subrepo: version: "0.4.1" origin: "https://github.com/ingydotnet/git-subrepo" commit: "a04d8c2"
…://github.com/andfoy/python-language-server.git external-deps/python-language-server subrepo: subdir: "external-deps/python-language-server" merged: "0b932ad77" upstream: origin: "https://github.com/andfoy/python-language-server.git" branch: "fix_method_attribute_symbols" commit: "0b932ad77" git-subrepo: version: "0.4.1" origin: "https://github.com/ingydotnet/git-subrepo" commit: "a04d8c2"
Thanks @andfoy for your latest updates to this PR! The spinner interaction is working great, but we're still showing a lot of unnecessary imports: I think this is something that needs to be fixed because it constitutes an important regression with respect to what we have now: |
…://github.com/andfoy/python-language-server.git external-deps/python-language-server subrepo: subdir: "external-deps/python-language-server" merged: "58bfa4599" upstream: origin: "https://github.com/andfoy/python-language-server.git" branch: "fix_method_attribute_symbols" commit: "58bfa4599" git-subrepo: version: "0.4.1" origin: "https://github.com/ingydotnet/git-subrepo" commit: "a04d8c2"
…://github.com/andfoy/python-language-server.git external-deps/python-language-server subrepo: subdir: "external-deps/python-language-server" merged: "a831e8c23" upstream: origin: "https://github.com/andfoy/python-language-server.git" branch: "fix_method_attribute_symbols" commit: "a831e8c23" git-subrepo: version: "0.4.1" origin: "https://github.com/ingydotnet/git-subrepo" commit: "a04d8c2"
…r/python-language-server.git external-deps/python-language-server subrepo: subdir: "external-deps/python-language-server" merged: "d81c7ba14" upstream: origin: "https://github.com/palantir/python-language-server.git" branch: "develop" commit: "d81c7ba14" git-subrepo: version: "0.4.1" origin: "https://github.com/ingydotnet/git-subrepo" commit: "a04d8c2"
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 a lot @andfoy! This is a fantastic improvement!!
For the record, as requested by @ccordoba12 , some quick test results moving lines that result in Outline Explorer updates, all with default Spyder settings, on mainwindow.py starting from around line 1000 and moving for 100 lines: Previous result without this PR on 4.x, Outline Explorer hidden: 13 lines/s The Outline Explorer appears to update approximately 1-2x second with perhaps 100-200 ms lag, which would explain most of the slowdown (assuming it was blocking or stealing cycles from GUI updates during most of that time). |
Description of Changes
This PR migrates the Outline Explorer to use the information provided by the LSP via
textDocument/documentSymbols
call.Loading spinner
This PR depends on palantir/python-language-server#846
Issue(s) Resolved
Fixes #
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: @andfoy