Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Excessive CodeLens Requests

Open
#5,104 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
typescript, vscode
Domain
devtools

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.

Description

Issue-Bug
Summary

When a document is open there are codelens requests roughly every 500ms.
image

Our client current announces it supports refresh in the clientCapabilities, so the expected flow would be:

  1. Client Opens Document, requests initial codelens
  2. Client makes changes but doesn't request new codelens.
  3. If server detects a change that needs a new codelens, it sends a codelens refresh request
  4. Client then requests codelens upon notification.

This "polling" of codelens doesn't seem right if refresh is enabled

Dominant language
TypeScript
Stars
1.9k
Forks
548
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

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.

More from PowerShell/vscode-powershell

All issues in PowerShell/vscode-powershell

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.