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

Create a cache for snippets #83

Merged
merged 5 commits into from
Oct 30, 2021

Conversation

ccordoba12
Copy link
Member

@ccordoba12 ccordoba12 added this to the v1.3.0 milestone Sep 7, 2021
@krassowski
Copy link
Contributor

Looks good to me. I won't have time to properly test it until next week though.

@ccordoba12
Copy link
Member Author

ccordoba12 commented Sep 7, 2021

No prob, I can wait for your review.

@ccordoba12
Copy link
Member Author

Hey @krassowski, any news on this?

@krassowski
Copy link
Contributor

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` |
Copy link
Contributor

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?

Copy link
Member Author

Choose a reason for hiding this comment

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

What do you mean?

Copy link
Contributor

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.

Copy link
Member Author

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.

@ccordoba12 ccordoba12 self-assigned this Oct 9, 2021
@stonebig
Copy link

any hope to have this soon ?

@ccordoba12
Copy link
Member Author

It will come along with Spyder 5.2.0, to be released in November.

@ccordoba12 ccordoba12 merged commit e46cddd into python-lsp:develop Oct 30, 2021
@ccordoba12 ccordoba12 deleted the snippets-cache branch October 30, 2021 18:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants