vscode icon indicating copy to clipboard operation
vscode copied to clipboard

Inlay hint flicker when adding/removing whitespace around it

Open Altonss opened this issue 1 year ago • 0 comments

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version: VS Code 1.94.2 (Also reproduced on VSCodium 1.94.2)
  • OS Version: Fedora Linux 40 (Workstation Edition), Gnome (46), Wayland

Steps to Reproduce:

  1. Create a test.ts file
  2. Enable typescript.inlayHints.functionLikeReturnTypes
  3. Write:
function foo(){
    return Date.now();
}
  1. Change to: (adding a whitespace between foo() and {)
function foo() {
    return Date.now();
}
  1. During the change you will see a small flicker of the inlay hint: going from : number to : numbe... to : number again.

This flickering behavior isn't very elegant, and also happens with other languages, for example with Python (and the basedpyright extension, see https://github.com/DetachHead/basedpyright/issues/794)

Altonss avatar Oct 19 '24 14:10 Altonss