Open TrueWill opened 3 years ago
https://github.com/microsoft/vscode/issues/128162 is a feature that allows you peek inlay hints after pressed some button.
/cc @DanielRosenwasser, was trying to find something to link this feedback to as we think about fine tuning the inlay hints experience, but couldn’t find a parent issue
Related: #45389
Would it make sense to override this in the function declaration on a per-parameter basis?
function describe(/* @ts-no-inlay */ name: string, /* @ts-no-inlay */ callback: () => (void | Promise<void>)) { ... }
@nmain Then it wouldn't be the users choice anymore (in case of libraries).
Suggestion
Originally opened at https://github.com/microsoft/vscode/issues/132304 - they asked me to file upstream.
🔍 Search Terms
inlay hints
✅ Viability Checklist
My suggestion meets these guidelines:
⭐ Suggestion
I ❤️ the new inlay hints feature. One area where it's a bit noisy is in tests, though. Even with the
literals
setting, it shows up for Jest (and similar) test blocks (describe
,it
,test
). Please consider adding a way to override this for certain cases. Thank you!📃 Motivating Example
As a developer, I want to maximize readability while minimizing noise.
💻 Use Cases