-
Notifications
You must be signed in to change notification settings - Fork 130
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
createFunction returns before function is created #3052
Comments
Could you check if this is related to #2908? It seems like a very similar scenario (and both from vscode-mssql irrc). |
It is similar, however, this seems to be a core issue with how the function returns the promise faster than the function file is actually created. I have been able to repro this many times. |
This is likely a problem with the VS Code workspace not being updated by the time they attempt to read host.json. We should use |
@wwlorey and @alexweininger any updates on if this is planned on being fixed/improved? |
Fixed by #3268 |
I have been using the createFunction API and found that after the call is made and the user completes the flow. The promise is immediately completed but the function file is not made and therefore any following commands/logic that requires to access the project file, for example, would not work and return undefined.
The createFunction should ensure that the function file is made prior to completing the promise.
The current workaround is to create a watcher to see when a project file or host.json is created from the createFunction.
The text was updated successfully, but these errors were encountered: