PowerShell / PowerShell/vscode-powershell
Excessive CodeLens Requests
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 1.9k
- Forks
- 547
- PR merge metrics
- No merged PRs in 30d
Description
Summary
When a document is open there are codelens requests roughly every 500ms.
Our client current announces it supports refresh in the clientCapabilities, so the expected flow would be:
- Client Opens Document, requests initial codelens
- Client makes changes but doesn't request new codelens.
- If server detects a change that needs a new codelens, it sends a codelens refresh request
- Client then requests codelens upon notification.
This "polling" of codelens doesn't seem right if refresh is enabled
Contributor guide
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 by tracing the CodeLens request and refresh flow described in the issue, including the client capability announcement and the repeated requests while a document is open. Confirm where the polling originates and compare it with the expected refresh-notification flow. Done means unnecessary requests stop while initial requests and refresh-triggered updates still work.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript, vscode
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100