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

Multiresolve to alias and defmodule #405

Merged
merged 4 commits into from
Sep 2, 2016
Merged

Multiresolve to alias and defmodule #405

merged 4 commits into from
Sep 2, 2016

Conversation

KronicDeth
Copy link
Owner

Fixes #404

Changelog

Enhancements

  • Resolve as: aliased name to both alias and defmodule
  • Complete modules nested under as: aliased name.

Bug Fixes

  • Resolve alias nested under aliased modules to both the alias and defmodule, as resolving to only the alias loses the nested name, so it wasn't possible to jump to the nested name's `defmodule.
  • Resolve aliased name to both the alias and the defmodule, so you can skip jumping to the alias before jumping to the defmodule.

Nested modules jumping to the alias loses the context of the nested
name, so in addition to resolving to the alias, also resolve to the
final, unaliased defmodule.
Multiresolve works for the aliased name itself, not just nested modules
under the aliased name.
Missing `getName` declaration in Elixir.bnf had UnmatchedQualifiedAlias
using the PsiNamedElement.getName, which returned null and broke display
of element for the Choose Declaration lookup.
@KronicDeth KronicDeth added this to the v4.3.0 milestone Sep 2, 2016
@KronicDeth KronicDeth self-assigned this Sep 2, 2016
@KronicDeth KronicDeth merged commit 86e2d1f into master Sep 2, 2016
@KronicDeth KronicDeth deleted the 404 branch September 2, 2016 03:06
KronicDeth added a commit that referenced this pull request Sep 2, 2016
@KronicDeth KronicDeth mentioned this pull request Sep 2, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant