-
Notifications
You must be signed in to change notification settings - Fork 30.3k
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
"Error running command <command>: Canceled." when adding folder via extension to VS Code with folder open #109991
Comments
(Experimental duplicate detection) |
I cannot reproduce. With a simple hello world extension, I run this code and it works fine: vscode.workspace.updateWorkspaceFolders(0, undefined, { uri: vscode.Uri.file('/Users/bpasero/Desktop/test-ts/src/test') }); You will have to come up with minimal reproducible steps. As for your issues pointed out in 5 and 6, could you please file individual issues so that in here we focus on the "error running command" problem? |
This is the line in the workflow that triggers the error: https://github.com/aws/aws-toolkit-vscode/blob/master/src/lambda/commands/importLambda.ts#L97 ; unfortunately, you'll need to have an AWS account with a downloadable Lambda function to test it directly. The helper function that that line calls is here: https://github.com/aws/aws-toolkit-vscode/blob/5d1f1807d9b9546e6ccc0ef1728d6303a6cedb89/src/shared/utilities/workspaceUtils.ts#L35 |
I am sorry but we are not diagnosing issues in other extensions code. |
I'll see if I can strip this out into a minimal extension, but this is definitely reproducible in this case on both Mac and Windows. re: your test, does any code after the |
@bryceitoc9 no, it is the only code in the command. Note that we restart the extension host in certain cases and maybe that is the source of all the issues you describe? No code can execute after that if it happens. See #69335 |
I'll see if I can play around with this in the next week or so but that does sound like it might be the root cause. 👍ed it in the meanwhile, thanks! |
Sounds good 👍 |
Steps to Reproduce:
vscode.workspace.updateWorkspaceFolders
callDoes this issue occur when all extensions are disabled?: No, error is specifically generated by extensions adding workspace folders.
The text was updated successfully, but these errors were encountered: