-
I would like to open a file using However, it works as expected if I use it from the terminal. I must mention I also tried with the Do you have any way I can use to run those commands in the lifecycle hooks? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Thank you for opening this discussion. The lifecycle commands such as the However it appears that it is not supported in vscode remote/devcontainers extension. If you are using this extension you may open a request at https://github.com/microsoft/vscode-remote-release/issues |
Beta Was this translation helpful? Give feedback.
Thank you for opening this discussion.
The lifecycle commands such as the
onCreateCommand
(the one you tried),postStartCommand
andpostAttachCommand
are run non-interactively, hence it won't be able to launch a UI action.If you are using Codespaces you could use
postAttachCommand
that can run interactive commands such ascode --openExternal https://www.microsoft.com
.However it appears that it is not supported in vscode remote/devcontainers extension. If you are using this extension you may open a request at https://github.com/microsoft/vscode-remote-release/issues