-
Notifications
You must be signed in to change notification settings - Fork 1
Validate DEV_USER_EXTENSIONS_PATH in utility function to prevent activation failures #23
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
Conversation
Co-authored-by: yCodeTech <31927084+yCodeTech@users.noreply.github.com>
Co-authored-by: yCodeTech <31927084+yCodeTech@users.noreply.github.com>
yCodeTech
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A lot of this validation and errors should probably go in the util function that adds it to the env in the first place.
Co-authored-by: yCodeTech <31927084+yCodeTech@users.noreply.github.com>
Moved the validation logic from Addressed in commit 88864fe. |
Co-authored-by: yCodeTech <31927084+yCodeTech@users.noreply.github.com>
yCodeTech
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm. Maybe it should be in a new util function for validation? Because of the DOT principle.
…nciple Co-authored-by: yCodeTech <31927084+yCodeTech@users.noreply.github.com>
Created a separate Addressed in commit 64f50b5. |
yCodeTech
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this above the addDevEnvVariables? Please move it below for better organisation.
Co-authored-by: yCodeTech <31927084+yCodeTech@users.noreply.github.com>
Moved Addressed in commit 25e5e94. |
- Added `validateDevEnvVariables` util function to validate and sanitize the `DEV_USER_EXTENSIONS_PATH` env variable value. Added it's function call to `addDevEnvVariables` util function. This function is based on the code Copilot created in PR #23, but with significant improvement.
|
Superseded by #24. |
- Added `validateDevEnvVariables` util function to validate and sanitize the `DEV_USER_EXTENSIONS_PATH` env variable value. Added it's function call to `addDevEnvVariables` util function. This function is based on the code Copilot created in PR #23, but with significant improvement.
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.