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

Introduce a low priority background workspace indexer #1735

Open
1 task done
dbanck opened this issue Jun 12, 2024 · 0 comments
Open
1 task done

Introduce a low priority background workspace indexer #1735

dbanck opened this issue Jun 12, 2024 · 0 comments
Labels
enhancement New feature or request refactor

Comments

@dbanck
Copy link
Member

dbanck commented Jun 12, 2024

Language Server Version

v0.34.0

Problem Statement

The rearchitecture in #1667 changed the way we index a workspace. Instead of doing all the work at startup, we now index a directory when a user opens a file in it. This brings a lot of performance gains, but also cripples language server protocol features that work at the workspace level, such as the workspaces symbols handler.

To still be able to resolve this request without missing data, we could introduce a low-priority background indexer to prepare the data. Another solution worth exploring might be, indexing the full workspace once a workspace symbol request is received.

Related LSP methods

No response

References

Help Wanted

  • I'm interested in contributing a fix myself

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment
@dbanck dbanck added enhancement New feature or request refactor labels Jun 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request refactor
Projects
None yet
Development

No branches or pull requests

1 participant