microsoft / vscode-azuretools

Common packages for building Azure extensions for VS Code
MIT License
104 stars 67 forks source link

Use `context.fsPath` instead of `context.workspace.uri.fsPath` #1682

Closed nturinski closed 9 months ago

nturinski commented 9 months ago

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, 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 effectiveDeployFsPath here.

effectiveDeployFsPath is passed in to deploy() in both Functions and App Service.