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: support separator char in envvar default value #1574

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

acolombier
Copy link
Contributor

This fix allows support for default environment variable containing a :, used as a sepeartor. A common example for this use case is

  ...
  "remoteEnv": {
    "DISPLAY": "${localEnv:DISPLAY::0}",
  }
  ...

Without this fix, DISPLAY will be set to an empty string (basically won't be set) if no DISPLAY variable is defined on the host. With this fix it will default to :0

@acolombier acolombier force-pushed the fix/separator-char-envvar branch 2 times, most recently from e27cf9d to 6ae3b0d Compare January 18, 2025 14:33
@acolombier acolombier force-pushed the fix/separator-char-envvar branch from 6ae3b0d to ae63e59 Compare January 18, 2025 14:34
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.

1 participant