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 test code lens when umbrella app names have the same prefix. #759

Merged

Conversation

BlindingDark
Copy link
Contributor

This PR will fix test code lens not working with some umbrella project test files.

For example, if we have umbrella apps paths apps/app and apps/app1, The previous method using String.contains?/1 will treat apps/app1/test/some_test.exs as belonging to app instead of app1 which is a wrong result.

The new approach uses the Path module, which is more accurate.

@lukaszsamson lukaszsamson merged commit 3c8a6e0 into elixir-lsp:master Nov 6, 2022
@lukaszsamson
Copy link
Collaborator

Thanks

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.

2 participants