-
Notifications
You must be signed in to change notification settings - Fork 81
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 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
- Loading branch information
1 parent
ba5106c
commit 90a27b9
Showing
1 changed file
with
34 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters