vscode
vscode copied to clipboard
Inlay hint flicker when adding/removing whitespace around it
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:
- Create a
test.tsfile - Enable typescript.inlayHints.functionLikeReturnTypes
- Write:
function foo(){
return Date.now();
}
- Change to: (adding a whitespace between
foo()and{)
function foo() {
return Date.now();
}
- During the change you will see a small flicker of the inlay hint: going from
: numberto: numbe...to: numberagain.
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)