Skip to content

fix: pathStrict should also look for strict path uris in workspace libraries #1592

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

Merged
merged 1 commit into from
Sep 27, 2022

Conversation

folke
Copy link
Contributor

@folke folke commented Sep 26, 2022

When ebabling pathStrict, lua-language-server properly lists completion for require paths, but can't actually resolve the require if it's a strict path from a library.

This PR fixes that.

Any file where the tail mathes with a library file and where the relative path in the library is /, should be included when pathStrict is enabled.

@sumneko sumneko merged commit 98c365b into LuaLS:master Sep 27, 2022
@sumneko
Copy link
Collaborator

sumneko commented Sep 27, 2022

Thank you!

@folke
Copy link
Contributor Author

folke commented Oct 9, 2022

@sumneko any chance we could get a new release soon? I have a bunch of changes to lua-dev.nvim that I want to release, but I need the pathstrict fix before that.

@sumneko
Copy link
Collaborator

sumneko commented Oct 10, 2022

It takes a long time in plan, but if you are in a hurry, I can publish a small version first.

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