-
Notifications
You must be signed in to change notification settings - Fork 377
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 relative path to runtime #5950
Conversation
@alanlong9278 can you check this out and double check it for me? I think I've addressed all the spots where the runtime path is used. |
@@ -352,7 +351,7 @@ export default async (composer: IExtensionRegistration): Promise<void> => { | |||
|
|||
let runtimePath = currentProject.settings?.runtime?.path; | |||
if (runtimePath && !path.isAbsolute(runtimePath)) { | |||
runtimePath = path.resolve(currentProject.dir, runtimePath); | |||
runtimePath = path.resolve(currentProject.dir, 'settings', runtimePath); | |||
} |
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.
I'm a little worried about the amount of duplicated code. Can we add a method to the project that centralizes this?
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.
good idea.
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-b-r-o-w-n I addressed this. Want to give it another look?
* Properly support relative path to runtime * refactor path computation into a single method on the botproject model Co-authored-by: Andy Brown <asbrown002@gmail.com>
Description
Task Item
Fixes #5786
Replaces #5838