Skip to content

Commit aed6f00

Browse files
committed
Hide the hints that are 1 character long
1 parent 7a93273 commit aed6f00

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# Changelog
22

33
## [Unreleased]
4+
### Changed
5+
- Hide the hints that are 1 character long
6+
47
### Fixed
58
- Hints showing when placing a positional argument after keyword ones
69

src/main/kotlin/space/whitememory/pythoninlayparams/PythonInlayHintsProvider.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ class PythonInlayHintsProvider : InlayParameterHintsProvider {
116116
*/
117117
private fun isHintNameValid(name: String, argument: PyExpression): Boolean {
118118
// TODO: More filters
119-
return name != argument.name && !name.startsWith("__")
119+
return name != argument.name && !name.startsWith("__") && name.length > 1
120120
}
121121

122122
/**

0 commit comments

Comments
 (0)