When I refactored the code, I used context.workspace.uri.fsPath as the src code path. Unfortunately, the deploySubpath setting gets ignored if you do that. We preserve the effective deploy path on context.fsPath so that's what I'm using across all the deployment steps.
For reference, context.fsPath gets set to the effectiveDeployFsPathhere.
Fixes: https://github.com/microsoft/vscode-azurefunctions/issues/3969
When I refactored the code, I used
context.workspace.uri.fsPath
as the src code path. Unfortunately, thedeploySubpath
setting gets ignored if you do that. We preserve the effective deploy path oncontext.fsPath
so that's what I'm using across all the deployment steps.For reference,
context.fsPath
gets set to theeffectiveDeployFsPath
here.effectiveDeployFsPath
is passed in todeploy()
in both Functions and App Service.