PowerShell / PowerShell/vscode-powershell

Excessive CodeLens Requests

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

Nobody has claimed this yet.

Issue-Bug
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.
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

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.

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.