Skip to content

How to make use of "code" cli command in postAttachCommand script #94

Answered by eljog
jota0222 asked this question in Q&A
Discussion options

You must be logged in to vote

Thank you for opening this discussion.

The lifecycle commands such as the onCreateCommand (the one you tried), postStartCommand and postAttachCommand 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 as code --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

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jota0222
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants