Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Unchecking Show Method Separator still showing on @doc and @spec #1788

Merged
merged 2 commits into from Jun 5, 2020

Conversation

KronicDeth
Copy link
Owner

@KronicDeth KronicDeth commented Jun 5, 2020

Fixes #798

Changelog

Bug Fixes

  • Fix Unchecking Show Method Separator still showing on @doc and @spec.

    Previously, unchecking Show Method Separator would still show the method separator if it was the module attributes (such as @doc and @spec) associated with the call definition (def, defp, defmacro, or defmacrop) and only disabled the ones directly above the call definition. This is fixed by checking if method separators are enabled in getLineMarkerInfo(PsiElement) instead of the specialized getLineMarkerInfo(Call), so that the check happens for both module attributes and call definitions.

Fixes #798

Previously, unchecking Show Method Separator would still show the method separator if it was the module attributes (such as `@doc` and `@spec`) associated with the call definition (`def`, `defp`, `defmacro`, or `defmacrop`) existed and only disabled the ones directly above the call definiton.  This is fixed by checking if method separators are enabled in `getLineMarkerInfo(PsiElement)` instead of the specialized `getLineMarkerInfo(Call)`, so that the check happens for both module attributes and call definitions.
@KronicDeth KronicDeth self-assigned this Jun 5, 2020
@KronicDeth KronicDeth added this to the v11.8.0 milestone Jun 5, 2020
@KronicDeth KronicDeth merged commit 71ff1fc into master Jun 5, 2020
@KronicDeth KronicDeth deleted the 798 branch June 5, 2020 16:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add possibility to remove ugly horizontal line above module attributes
1 participant