-
Notifications
You must be signed in to change notification settings - Fork 194
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
Create a cache for snippets #83
Conversation
ccordoba12
commented
Sep 7, 2021
- This builds on top of the excellent work done by @krassowski on PR Implement cached label resolution and label resolution limit #26 to build a cache for snippets.
- As with labels, this increases completions speed dramatically.
Looks good to me. I won't have time to properly test it until next week though. |
No prob, I can wait for your review. |
Hey @krassowski, any news on this? |
Sorry, not yet! Feel free to merge - I will take time to look at it ultimately and create a follow up PR if find anything in need of improvement. |
@@ -22,8 +22,8 @@ This server can be configured using `workspace/didChangeConfiguration` method. E | |||
| `pylsp.plugins.jedi_completion.include_class_objects` | `boolean` | Adds class objects as a separate completion item. | `true` | | |||
| `pylsp.plugins.jedi_completion.fuzzy` | `boolean` | Enable fuzzy when requesting autocomplete. | `false` | | |||
| `pylsp.plugins.jedi_completion.eager` | `boolean` | Resolve documentation and detail eagerly. | `false` | | |||
| `pylsp.plugins.jedi_completion.resolve_at_most_labels` | `number` | How many labels (at most) should be resolved? | `25` | | |||
| `pylsp.plugins.jedi_completion.cache_labels_for` | `array` of `string` items | Modules for which the labels should be cached. | `["pandas", "numpy", "tensorflow", "matplotlib"]` | | |||
| `pylsp.plugins.jedi_completion.resolve_at_most` | `number` | How many labels and snippets (at most) should be resolved? | `25` | |
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.
Isn't this a BC change?
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.
What do you mean?
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.
We need to document this backwards compatibility difference somewhere to let clients that these flags have changed names.
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.
Ah, ok, I totally agree with that. Will do it in our release notes when 1.3.0 is out.
any hope to have this soon ? |
be7042a
to
d92e90a
Compare
It will come along with Spyder 5.2.0, to be released in November. |