Skip to content

Commit

Permalink
fix: noarg-method navigation behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
ceclin committed Apr 20, 2022
1 parent 3c79622 commit 13a3bd2
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
14 changes: 8 additions & 6 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,18 @@
# BDLH Changelog

## [Unreleased]
### Fixed
- Method navigation behavior

## [0.2.0]
### Added
- Navigation for class signature
### Added
- Navigation for class signature

### Changed
- Update pluginIcon.svg
### Changed
- Update pluginIcon.svg

### Fixed
- Subclasses resolving
### Fixed
- Subclasses resolving
- Method navigation behavior

## [0.1.0]
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
pluginGroup = com.github.ceclin.bdlh
pluginName = BDLH
# SemVer format -> https://semver.org
pluginVersion = 0.2.0
pluginVersion = 0.2.1

# See https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html
# for insight into build numbers and IntelliJ Platform versions.
Expand Down
2 changes: 1 addition & 1 deletion src/main/kotlin/com/github/ceclin/bdlh/lang/ImplExt.kt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class RefToJava(element: BDLSignature) : PsiReferenceBase<BDLSignature>(element,
return clazz.findMethodsByName(method.methodName.text, false).firstOrNull {
val parameter = method.parameter
if (parameter == null)
it.hasParameters()
!it.hasParameters()
else {
it.parameterList.parameters.joinToString(",") { p ->
val type = p.type
Expand Down

0 comments on commit 13a3bd2

Please sign in to comment.