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

Feature Proposal: Support for batch requests of DocumentSymbols #1533

Open
Blaiski opened this issue Aug 10, 2022 · 0 comments
Open

Feature Proposal: Support for batch requests of DocumentSymbols #1533

Blaiski opened this issue Aug 10, 2022 · 0 comments
Labels
document symbols feature-request Request for new features or functionality
Milestone

Comments

@Blaiski
Copy link

Blaiski commented Aug 10, 2022

I have a use case where I need to request DocumentSymbol of large number of files on one go for my Vscode Extension.

I have looked into LSP documentation and Vscode's, and as far as I could tell... there does not seem to be a supported mechanism to do this directly. I looked at:

Workspace request is not useful for me as it does not return the DocumentSymbol hierarchy which is crucial for my work.

I resorted to implementing some sort of batch processing where I go over all the source files I need, sending a DocumentSymbol request for each. The solution works with different languages I tried, but it is far from perfect and I am wondering if LSP community would consider supporting such a feature in the near future?

Considering the performance load it would put on servers, I suppose it could be implemented with some sort of latent response mechanism.

Note: there's a related request on vscode repo.

Any thoughts or tips, please?

Thank you
Mujtaba

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
document symbols feature-request Request for new features or functionality
Projects
None yet
Development

No branches or pull requests

2 participants