completion: Add prepend_inference_result config for method signatures#446
Merged
completion: Add prepend_inference_result config for method signatures#446
prepend_inference_result config for method signatures#446Conversation
In some editors (e.g., Zed), additional information like inferred return type displayed when a completion item is selected may be cut off in the UI when the method signature text is long. This change adds `completion.method_signature.prepend_inference_result` configuration option to prepend the return type as a code block to the documentation, ensuring it is always visible. Like `strip_prefix`, the default behavior uses client-based auto-detection. Added tip admonitions encouraging users to submit PRs if explicit settings improve behavior for their client.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #446 +/- ##
==========================================
- Coverage 65.46% 65.40% -0.07%
==========================================
Files 44 44
Lines 5681 5688 +7
==========================================
+ Hits 3719 3720 +1
- Misses 1962 1968 +6
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
In some editors (e.g., Zed), additional information like inferred return type displayed when a completion item is selected may be cut off in the UI when the method signature text is long.
This change adds
completion.method_signature.prepend_inference_resultconfiguration option to prepend the return type as a code block to the documentation, ensuring it is always visible.Like
strip_prefix, the default behavior uses client-based auto-detection. Added tip admonitions encouraging users to submit PRs if explicit settings improve behavior for their client.