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

perf(repl): don't walk workspace in repl language server #24037

Merged
merged 4 commits into from
May 29, 2024

Conversation

nayeemrmn
Copy link
Collaborator

Fixes #24031. Don't walk the workspace if the workspace capability is None. Also refactor client capability storage to use the lsp_types field and not parsing it into our own struct. It had some unused fields.

We used to address this by passing document_preload_limit: 0 from the repl, but the workspace walk was separated from that check as of #23123.

Copy link
Member

@dsherret dsherret left a comment

Choose a reason for hiding this comment

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

Nice. LGTM!

@nayeemrmn nayeemrmn merged commit 3d37225 into denoland:main May 29, 2024
17 checks passed
@nayeemrmn nayeemrmn deleted the repl-lsp-no-workspace-walk branch May 29, 2024 23:40
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.

deno repl takes upwards of 8 seconds to start due to randomly going through files.
2 participants