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

Skip bare Aliases when resolving Types #3262

Merged
merged 1 commit into from
Jun 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@
* Call `FileIndex.getContentRootForFile` in `ReadAction` when getting working directory for `mix format`.
* [#3261](https://github.com/KronicDeth/intellij-elixir/pull/3261) - [@KronicDeth](https://github.com/KronicDeth)
* Don't include `null` target usage types when finding usage type across all targets.
* [#3262](https://github.com/KronicDeth/intellij-elixir/pull/3262) - [@KronicDeth](https://github.com/KronicDeth)
* Skip bare Aliases when resolving Types.

## v15.0.1

Expand Down
1 change: 1 addition & 0 deletions resources/META-INF/changelog.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ <h1>v15.0.2</h1>
directory for <code>mix format</code>.
</li>
<li>Don't include <code>null</code> target usage types when finding usage type across all targets.</li>
<li>Skip bare Aliases when resolving Types.</li>
</ul>
</li>
</ul>
Expand Down
2 changes: 1 addition & 1 deletion src/org/elixir_lang/psi/scope/Type.kt
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ abstract class Type : PsiScopeProcessor {
is ElixirKeywordKey -> executeOnParameter(element, state)
is ElixirNoParenthesesOneArgument, is ElixirAccessExpression -> executeOnChildren(element, state)
is ElixirAtom, is ElixirFile, is ElixirLine, is ElixirList, is ElixirParentheticalStab,
is ElixirStructOperation, is ElixirTuple, is WholeNumber
is ElixirStructOperation, is ElixirTuple, is QualifiableAlias, is WholeNumber
-> false

is ModuleImpl<*> -> execute(element, state)
Expand Down