vscode-powershell icon indicating copy to clipboard operation
vscode-powershell copied to clipboard

Excessive CodeLens Requests

Open JustinGrote opened this issue 1 year ago • 1 comments

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

JustinGrote avatar Nov 27 '24 17:11 JustinGrote

Looks like @TylerLeonhardt ran into this same thing a while back. https://stackoverflow.com/questions/50009481/adjust-vscode-interval-for-sending-codelens-and-codeaction-messages

JustinGrote avatar Nov 27 '24 17:11 JustinGrote