Skip to content

Commit 13a3bd2

Browse files
committed
fix: noarg-method navigation behavior
1 parent 3c79622 commit 13a3bd2

File tree

3 files changed

+10
-8
lines changed

3 files changed

+10
-8
lines changed

CHANGELOG.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,18 @@
33
# BDLH Changelog
44

55
## [Unreleased]
6+
### Fixed
7+
- Method navigation behavior
68

79
## [0.2.0]
8-
### Added
9-
- Navigation for class signature
10+
### Added
11+
- Navigation for class signature
1012

11-
### Changed
12-
- Update pluginIcon.svg
13+
### Changed
14+
- Update pluginIcon.svg
1315

14-
### Fixed
15-
- Subclasses resolving
16+
### Fixed
17+
- Subclasses resolving
1618
- Method navigation behavior
1719

1820
## [0.1.0]

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
pluginGroup = com.github.ceclin.bdlh
55
pluginName = BDLH
66
# SemVer format -> https://semver.org
7-
pluginVersion = 0.2.0
7+
pluginVersion = 0.2.1
88

99
# See https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html
1010
# for insight into build numbers and IntelliJ Platform versions.

src/main/kotlin/com/github/ceclin/bdlh/lang/ImplExt.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class RefToJava(element: BDLSignature) : PsiReferenceBase<BDLSignature>(element,
1818
return clazz.findMethodsByName(method.methodName.text, false).firstOrNull {
1919
val parameter = method.parameter
2020
if (parameter == null)
21-
it.hasParameters()
21+
!it.hasParameters()
2222
else {
2323
it.parameterList.parameters.joinToString(",") { p ->
2424
val type = p.type

0 commit comments

Comments
 (0)