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

Find references in umbrella projects #46

Merged
merged 1 commit into from
Sep 11, 2019

Conversation

axelson
Copy link
Member

@axelson axelson commented Sep 8, 2019

Not sure how to create a test for this since we don't have any sample projects or anything.

@axelson
Copy link
Member Author

axelson commented Sep 8, 2019

So I was going to add a test fixture that is an umbrella application but Mix.Project.umbrella? returns false inside the tests in the umbrella app: https://elixirforum.com/t/mix-project-umbrella-0-returns-false-inside-an-umbrella-app/25246

Not sure of a way around without calling a bunch of internal Mix functions (which is effectively what ElixirLS does for it's umbrella app tests right now).

@msaraiva msaraiva merged commit 3310400 into elixir-lsp:master Sep 11, 2019
@msaraiva
Copy link
Collaborator

@axelson we can try to create a test for it when we find out a good way to do it. Thanks! 🎉

@axelson axelson deleted the umbrella-references branch September 11, 2019 17:57
@axelson
Copy link
Member Author

axelson commented Sep 11, 2019

Okay, sounds good.

axelson added a commit to elixir-lsp/elixir-ls that referenced this pull request Dec 22, 2019
* Bump elixir_sense and use ElixirSense.references/3

Now that elixir-lsp/elixir_sense#42 is fixed (via
elixir-lsp/elixir_sense#61) and umbrella support is
added via elixir-lsp/elixir_sense#46 we no longer need
to maintain a separate implementation of `ElixirSense.references/3` and can
instead use the implementation provided by `ElixirSense`. This is good because
now we're using less of the private internals of `ElixirSense`.

* Map nil uri from ElixirSense to the current file

* Upgrade elixir_sense after infinite loop

* Handle types being an atom
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants