-
Notifications
You must be signed in to change notification settings - Fork 311
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
How can I call command in my extension? #8422
Comments
|
Many thanks @chrmarti , what about
|
These commands are not stable API. What are you trying to do? |
I want call |
It more like do the same thing reopen in container, but I want call it in my extension. and do some thing before/after the container opened, especially
|
You could add the following to your package.json to make sure your extension can run after the window reload: "extensionKind": [
"ui"
], You might have to add |
Now I use pkg build cli into an executable app and in my extension i call it. |
I am failed with pkged cli on windows, macos too, only worked on linux. It seems
|
See devcontainers/cli#498 (comment) on
|
@chrmarti I have a similar problem and I would like to programmatically open a local folder in a devcontainer. If I use Would you know when you are planning to support opening a folder in a devcontainer using the remote contains API? I noticed similar issues related to the same in problem in the past:
Thanks in advance! |
@andpiccione If |
@chrmarti Maybe I'm doing something wrong, but it doesn't work as expected for me when To clarify, by running However, the result of executing the command above is a new Visual Studio Code window with the folder referenced by |
@chrmarti Any updates on the above? Thanks! |
@chrmarti is out, I will reopen this just in case since it's not clear to me what's expected |
I have a similar issue, I'm trying to connect to an existing remote tunnel from my extension. I already know that GitHub was used to create the tunnel and I know the tunnel id, because my extension initialised it. Does |
@roblourens / @chrmarti any pointers would be greatly appreciated |
@Simon-Count Could you open a issue for the tunnel case?
This works for me with a local folder: await vscode.commands.executeCommand('remote-containers.openFolder', vscode.Uri.file('C:\\Users\\chrmarti\\devel\\test')); And a WSL folder: await vscode.commands.executeCommand('remote-containers.openFolder', vscode.Uri.file('\\\\wsl.localhost\\Ubuntu\\home\\chrmarti\\devel\\test')); Closing again as fixed, let me know if this doesn't work. |
Is it possible I can do this and what are the arguments types?
The text was updated successfully, but these errors were encountered: