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

Variable substitution support in LTeX settings #854

Open
phdcybersec opened this issue Sep 26, 2023 · 0 comments
Open

Variable substitution support in LTeX settings #854

phdcybersec opened this issue Sep 26, 2023 · 0 comments
Labels
1-feature-request ✨ Issue type: Request for a desirable, nice-to-have feature

Comments

@phdcybersec
Copy link

Is your feature request related to a problem? Please describe.

I'm a Nix/NixOS user and I heavily rely on development shells (a way to start a shell session with $PATH and other environment variables populated to access a specific set of programs and/or configurations). Tools such as LTeX are installed and made available in these shells, but their path is dynamic, and therefore I cannot set a deterministic path to the ltex-ls language server that is packaged in Nixpkgs (the Nix package repository).

What I can do is set an environment variable in my shell session (loaded in VSCode) containing the path to ltex-ls, and use VSCode variable substitution to specify the setting ltex.ltex-ls.path using the environment variable, but it does not work.

Describe the solution you'd like
Variable substitution support in the settings, so I can do : "ltex.ltex-ls.path": "${env:MY_VAR_WITH_LTEX_PATH}" in my workspace settings.

Describe alternatives you've considered
I considered other ways of setting up the extension, but none seemed to work:

  • using "ltex.ltex-ls.path": "ltex-ls" to use the binary available in $PATH directly, but it looks like this setting has to point to a directory.
  • settings up a bash script in my workspace that simply calls "ltex-ls" and tried to point to this script, but the same issue as above arise.
  • set $JAVA_HOME using my shell session to point to a Java installation made with Nix, but the extension does not detect it automatically.

Additional context
Relevant links:

@phdcybersec phdcybersec added the 1-feature-request ✨ Issue type: Request for a desirable, nice-to-have feature label Sep 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1-feature-request ✨ Issue type: Request for a desirable, nice-to-have feature
Projects
None yet
Development

No branches or pull requests

1 participant