Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[vscode][6/n] Setup Env Variables: Add more validation to env path in…
…put (#1291) [vscode][6/n] Setup Env Variables: Add more validation to env path input Added two noteworthy checks that we didn't have before: 1. The filename itself must be ".env" (before it only checked for ending so things like "invalid/filename.env" could be valid) 2. The path must be a subset of the workspace path, to ensure that when we call the `loadenv()` function from Python in AIConfig SDK, it's able to access this `.env` file I also made this into a separate function to keep it cleaner ## Test Plan https://github.com/lastmile-ai/aiconfig/assets/151060367/d77305c4-2cc6-4cb8-a918-b74826ff3714 --- Stack created with [Sapling](https://sapling-scm.com). Best reviewed with [ReviewStack](https://reviewstack.dev/lastmile-ai/aiconfig/pull/1291). * #1300 * __->__ #1291
- Loading branch information