metalbear-co / mirrord-vscode

Connect your local process and your cloud environment, and run local code in cloud conditions.
https://mirrord.dev
MIT License
8 stars 10 forks source link

Expand VSCode variables for config file #30

Closed aviramha closed 1 year ago

aviramha commented 1 year ago

MIRRORD_CONFIG_FILE should be able to accept ${var} so we can do for example "${workspaceFolder}/ip-visit-counter/mirrord.json"

Razz4780 commented 1 year ago

If the path is relative, it is already resolved relative to the workspace folder. Do we want this to be more explicit?

aviramha commented 1 year ago

If the path is relative, it is already resolved relative to the workspace folder. Do we want this to be more explicit?

No. If you try using ${workspaceFolder} as value for MIRRORD_CONFIG_FILE it won't work, since the ${..} is passed as is to the mirrord configuration, which doesn't have the value of $workspaceFolder

eyalb181 commented 1 year ago

@Razz4780 It's resolved relative to the directory mirrord runs from, which can be configured to not be the workspace folder.