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

Cache LSP completions. #112

Merged
merged 1 commit into from
Dec 10, 2022
Merged

Cache LSP completions. #112

merged 1 commit into from
Dec 10, 2022

Conversation

skx
Copy link
Owner

@skx skx commented Dec 10, 2022

This will close #111 by calculating possible completions only once, and then reusing them for the duration of our LSP server.

This works because we only complete things within the standard-library which won't change mid-execution.

If we ever supported completion of the users' code then this approach would need to be revisited, but we don't do that and don't want to at the moment.

This will close #111 by calculating possible completions only once,
and then reusing them for the duration of our LSP server.

This works because we only complete things within the standard-library
which won't change mid-execution.

If we ever supported completion of the users' code then this approach
would need to be revisited, but we don't do that and don't want to at
the moment.
@skx skx merged commit 5212cb5 into master Dec 10, 2022
@skx skx deleted the 111-lsp-cache branch December 10, 2022 06:52
@skx skx mentioned this pull request Feb 13, 2023
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.

Improve LSP
1 participant