-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Upstream inlay hints #11445
Merged
Merged
Upstream inlay hints #11445
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
55371be
Add experimental VSCode api
SomeoneToIgnore 0f396d6
Bump deps
lnicola 2ae8248
Add log messages
lnicola 5a49dbd
Update inlay hints for upstream
lnicola 0b69717
Fixes
lnicola 9c0c199
Clean up the redundant hints code and config
SomeoneToIgnore b1d8dae
Load hints for part of the file only
SomeoneToIgnore 5de5e45
Remove debugging leftovers
SomeoneToIgnore 8454358
Bump vscode
lnicola 9d43291
Drop hint conversion
lnicola 4b16b9b
Fix formatting
lnicola b9d74fe
Update LSP docs
lnicola 04128de
Bump esbuild
lnicola 26d2e88
Fix parameter hint position
lnicola 97109d7
Add missing parameter
lnicola 88a2141
Add inlayHints cap
lnicola File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -112,6 +112,7 @@ impl StaticIndex<'_> { | |
max_length: Some(25), | ||
}, | ||
file_id, | ||
None, | ||
) | ||
.unwrap(); | ||
// hovers | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,5 @@ node_modules | |
server | ||
.vscode-test/ | ||
*.vsix | ||
bundle | ||
vscode.proposed.d.ts |
Oops, something went wrong.
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.
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.
why do chaining hints not have their own kind? (CC)
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.
Most likely cause the proposal only defines type and parameter hint kinds.
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.
Yes, here's a current corresponding definition on VSCode side: https://github.com/DefinitelyTyped/DefinitelyTyped/blob/597a8ab3638d98ab8bfdbb07a6d6afec1dd45ab4/types/vscode/index.d.ts#L4581-L4596
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 suppose a chaining hint is a kind of type hint?
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.
Could be.
If we believe their docs, it should affect the appearance only(?)
https://github.com/DefinitelyTyped/DefinitelyTyped/blob/597a8ab3638d98ab8bfdbb07a6d6afec1dd45ab4/types/vscode/index.d.ts#L4671-L4674