diff --git a/CHANGELOG.md b/CHANGELOG.md index ff679d4d6..4d3214dbf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,10 @@ # Changelog +## 1.4.39 +* Added: More format options for minimum newlines +* Fixed: Unused imports bugfix (fully qualified references would mask normal references) +* Added: Checking typeParameters in new expressions. +* Added: Misc. debug and trace logging for debugging resolver bugs. + ## 1.4.38 * Trying to fix some minor resolver regression ## 1.4.37 diff --git a/gradle.properties b/gradle.properties index 200c33ef1..ebdeaf058 100644 --- a/gradle.properties +++ b/gradle.properties @@ -6,7 +6,7 @@ pluginName = Haxe Toolkit Support pluginRepositoryUrl = https://github.com/HaxeFoundation/intellij-haxe # SemVer format -> https://semver.org -pluginVersion = 1.4.38 +pluginVersion = 1.4.39 # IntelliJ Platform Properties -> https://github.com/JetBrains/gradle-intellij-plugin#intellij-platform-properties platformType = IU diff --git a/src/main/java/com/intellij/plugins/haxe/lang/psi/HaxeResolver.java b/src/main/java/com/intellij/plugins/haxe/lang/psi/HaxeResolver.java index db439f0cc..3f77b1524 100644 --- a/src/main/java/com/intellij/plugins/haxe/lang/psi/HaxeResolver.java +++ b/src/main/java/com/intellij/plugins/haxe/lang/psi/HaxeResolver.java @@ -494,6 +494,7 @@ private static List findTypeParameterPsi(HaxeReference refe .map(HaxeGenericParamModel::getPsi) .findFirst(); if (first.isPresent()) { + LogResolution(reference, "via TypeParameter Psi"); return List.of(first.get()); } return null; @@ -505,9 +506,10 @@ private List checkEnumExtractor(HaxeReference reference) { SpecificHaxeClassReference classReference = HaxeResolveUtil.resolveExtractorEnum(argumentExtractor); if (classReference != null) { HaxeEnumValueDeclaration declaration = HaxeResolveUtil.resolveExtractorEnumValueDeclaration(classReference, argumentExtractor); - if (declaration!= null) + if (declaration!= null) { LogResolution(reference, "via enum extractor"); return List.of(declaration); + } } }else { // Last attempt to resolve enum value (not extractor), normally imports would solve this but some typedefs can omit this.