microsoft / microsoft/vscode-languageserver-node

Incremental mode for documentSymbolProvider

Open
#883 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

feature-request
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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.