News for hackers. Stuff that matters.
Re:Type Inference That Sticks by realharo on Sunday February 05, 2023 @09:12AM (#34665014)
VS Code also supports inlay hints for both inferred types, and parameter names https://code.visualstudio.com/docs/typescript/typescript-edi...

I think it's turned off by default for most languages though - probably considered unnecessary, as you can always just hover over the variable. Also, unlike the JetBrains IDEs, I don't think you can Ctrl+Click on such a hint to navigate to its definition in VS Code (like you can in normal code).

Re:Type Inference That Sticks by MrJohz on Sunday February 05, 2023 @09:39AM (#34665232)
You can if the LSP enables it, I believe. In rust-analyzer, it's definitely possible to do this, for example, but I think that was a new feature added somewhere in the last few releases.
Re:Type Inference That Sticks by cma on Sunday February 05, 2023 @09:55AM (#34665360)
Regular Visual Studio has this now too, at least for C++.