Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add inlay hints support #42089
Add inlay hints support #42089
Changes from 44 commits
cd99389
ab3c937
d91b2f7
8388add
1058fdd
1517b1f
fd9b09f
23afce2
ee6527e
679b58d
446bee4
d2fbd1e
c4abb87
a9e007a
df62a11
fce2619
679f066
eb4b4ad
9297051
467b5cd
e5ca31b
37a7089
2ccfc98
0e5f223
7197d0d
e785943
637c7f8
b3c3e7e
7948cec
a374417
7ac2a35
5767d7e
d7d72d6
9306d72
5cab46f
2750c6b
0090962
f771afc
67dcbb0
957756c
db4135b
b74af7c
388cc6d
f5695a1
6336803
09cdf37
71bae5e
cba4dc3
0e8cdb6
cc06dbc
e8fef30
d8dc8f1
52c9d5c
7ce7a44
24e1a4a
6b279e7
8e9a8d8
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What are “duplicated” parameter name hints? Do we need all three of these options? What happens if I have
includeInlayParameterNameHints
disabled but the other two enabled? (Sorry if these questions have already been addressed.)There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the review.
The argument is an identifier and it's same as the parameter name.
I'm not sure how to accurately describe this behavior. Any suggestions about the naming?
here's some context. I'm ok to remove them.
There's no hints will be provided.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I actually like the format that Cyrus showed where it was “suppress hints when ...” because it makes it more clear that those options won’t do anything if
includeInlayParameterNameHints
is disabled. Also, does VS Code let us show a nested/hierarchical checkbox list like that screenshot? I don’t think so, but that would be really nice.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess that's the description what UI shows. Not about the implementations.
Another problem is VSCode would not open new feature's options by default.
If the option is
suppress something
, the default behavior isnot suppress something
, that isinclude/provide something
. (If I'm correct).Sadly it's not supported.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think my ideal scenario would be
and the latter can default to
true
both in VS Code and in TS Server. But I’m ok with swapping it toincludeInlayParameterNameHintsWhenArgumentMatchesName
in the options, and maybe trying to use “suppress” language in the VS Code UI and invert the value sent. I just really don’t want the options UI to allow for a bunch of checkboxes that sound like they should enable something but actually do nothing because they’re really sub-options ofincludeInlayParameterNameHints
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this need the TODO comment?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems yes.
At line 641.