Skip to content

add: load ENV variables as args #2655

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 2 commits into from
May 10, 2024
Merged

add: load ENV variables as args #2655

merged 2 commits into from
May 10, 2024

Conversation

carsakiller
Copy link
Collaborator

This started off with me taking a look at implementing #2330, but I am not sure how I would go about merging an ENV variable with a client configuration. Any tips on that would be great!

In the meantime, I have added loading of ENV variables for a bunch of the CLI args, as it was a pretty low-hanging fruit. So for example, instead of doing ./lua-language-server --doc="path/to/workspace", you can do export LLS_DOC_PATH="path/to/workspace" and then just run ./lua-language-server.

@carsakiller carsakiller marked this pull request as draft May 8, 2024 17:59
@carsakiller carsakiller marked this pull request as ready for review May 10, 2024 03:14
@sumneko sumneko merged commit c820d1f into LuaLS:master May 10, 2024
10 checks passed
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants