Skip to content

Conversation

vitaliyboykocontributor
Copy link
Contributor

Deleted the unused SearchGutterIconNavigationHandler class and replaced its implementation in PluginLineMarkerProvider with direct NavigationGutterIconBuilder usage. This simplifies the code and removes redundant complexity.

  1. Fixes java.lang.Throwable: Assertion failed: Do not use PsiElement for popup model. See PsiTargetNavigator #1639

Contribution checklist (*)

  • Pull request has a meaningful description of its purpose
  • All commits are accompanied by meaningful commit messages
  • All new or changed code is covered with integration/functional tests (if applicable)
  • All automated tests passed successfully (all builds are green)

Deleted the unused `SearchGutterIconNavigationHandler` class and replaced its implementation in `PluginLineMarkerProvider` with direct `NavigationGutterIconBuilder` usage. This simplifies the code and removes redundant complexity.
…failed-Do-not-use-PsiElement-for-popup-model.-See-PsiTargetNavigator
…ng.Throwable-Assertion-failed-Do-not-use-PsiElement-for-popup-model.-See-PsiTargetNavigator
Addressed an assertion failure related to improper `PsiElement` usage for popup models in `PluginLineMarkerProvider`. Made the `NavigationGutterIconBuilder` instance immutable by declaring it as `final`, enhancing code safety and readability. Updated the changelog for relevant changes.
…sertion-failed-Do-not-use-PsiElement-for-popup-model.-See-PsiTargetNavigator' into 1639-java.lang.Throwable-Assertion-failed-Do-not-use-PsiElement-for-popup-model.-See-PsiTargetNavigator
Ensured line markers are correctly created by targeting the `ASTNode` of type `IDENTIFIER` for `PsiElement`. This change prevents potential errors and improves precision in line marker rendering. Enhanced the stability and correctness of the `PluginLineMarkerProvider`.
@VitaliyBoyko VitaliyBoyko merged commit d2b8e61 into magento:5.4.0-develop Feb 15, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging this pull request may close these issues.

java.lang.Throwable: Assertion failed: Do not use PsiElement for popup model. See PsiTargetNavigator
3 participants