Skip to content

Add dynamic environment file loading#339

Merged
darrenburns merged 4 commits into
darrenburns:mainfrom
waylonwang:dynamic_load_environment_variable
Mar 25, 2026
Merged

Add dynamic environment file loading#339
darrenburns merged 4 commits into
darrenburns:mainfrom
waylonwang:dynamic_load_environment_variable

Conversation

@waylonwang
Copy link
Copy Markdown

I've added the feature of dynamically loading env files at runtime via commands. This allows dynamic switching of environment variable values, eliminating the need to exit the app and reload environment variables with the --env arg.

  • Add LoadEnvFileDialog modal for selecting and loading .env files
  • Scan both working directory and config directory for .env files
  • Add "environment: Load env file" command palette entry

btw: merging with #319 makes the PR more complete

- Add LoadEnvFileDialog modal for selecting and loading .env files
- Scan both working directory and config directory for .env files
- Add "environment: Load env file" command palette entry
Copy link
Copy Markdown
Owner

@darrenburns darrenburns left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! I've made some changes to this PR to use a path completing autocompletion dropdown instead of the 2 distinct fields, as it feels slightly nicer to me

@darrenburns darrenburns merged commit 334130f into darrenburns:main Mar 25, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants