microsoft / microsoft/vscode-languageserver-node
Incremental mode for documentSymbolProvider
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 1.8k
- Forks
- 404
- Avg merge
- 2d 8h
- Merged PRs (30d)
- 14
Description
If I understand correctly, documentSymbolProvider can't work in incremental mode, as the request contains only document uri. This is very slow in large documents, as we have to send all the symbols on each change. It's especially slow in web extensions due to limited resources and requests marshaling between web workers.
Is it possible to add an incremental mode for the symbol provider, similar to semantic tokens delta?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the documentSymbolProvider request definition and compare its document-URI-only request with semantic tokens delta. Work out the protocol and provider changes needed for incremental symbol updates, then define coverage for initial and subsequent requests; done means large documents no longer require resending all symbols on every change.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- api, developer-experience
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100