Skip to content

Fix umbrella app detection - #88

Merged
mhanberg merged 1 commit into
elixir-tools:mainfrom
davidelias:main
May 13, 2023
Merged

Fix umbrella app detection#88
mhanberg merged 1 commit into
elixir-tools:mainfrom
davidelias:main

Conversation

@davidelias

Copy link
Copy Markdown
Contributor

This fixes umbrella path detection. Currently, maybe_umbrella_path is always the same as child_or_root_path because of how vim.fs.find works.
So this change kind of restores the logic that existed before removing lspconfig dep

Suggestion

It also removes the logic that detects if the umbrella path contains the dir apps. This was because this path could be set to another name in mix. exs with :apps_path, and maybe it is redundant checking for this when we found the mix. exs in a parent dir. But this is a suggestion, and I may be missing something.

@davideliasdavidelias changed the title fix: umbrella app detectionFix umbrella app detectionMay 7, 2023
Comment threadlua/elixir/utils.lua Outdated

@mhanbergmhanberg left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good! I'll merge if you're done making changes, just let me know.

Comment threadtests/utils_spec.lua

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is awesome!!

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! I've just rebased with main, so it should be good to merge 👍

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent

@mhanberg

Copy link
Copy Markdown
Collaborator

Can you rebase on main actually?

- adds tests for `elixir.utils.root_dir`
@mhanberg
mhanberg enabled auto-merge (squash) May 13, 2023 16:57
@mhanberg
mhanberg disabled auto-merge May 13, 2023 16:57
@mhanberg
mhanberg enabled auto-merge (squash) May 13, 2023 16:57
@mhanberg
mhanberg merged commit a17c863 into elixir-tools:mainMay 13, 2023
@mhanberg

Copy link
Copy Markdown
Collaborator

Thanks again! 🤗

@github-actionsgithub-actionsBot mentioned this pull request Jun 8, 2023
Sign up for freeto 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.

2 participants

@davidelias@mhanberg