Skip to content

Add object notation support for initializeCommand - #514

Merged
joshspicer merged 3 commits into
mainfrom
joshspicer/parallel-initializeCmd
May 9, 2023
Merged

joshspicer merged 3 commits into
mainfrom
joshspicer/parallel-initializeCmd

Conversation

@joshspicer

Copy link
Copy Markdown
Contributor

refs: microsoft/vscode-remote-release#7765, devcontainers/spec#168, https://github.slack.com/archives/C0431R35H37/p1683554998695899

Aligns the initializeCommand lifecycle hook with the other hooks, allow for the 'object notation', running each provided (and named) command in parallel with one another.

For logging, the behavior is mirrored for the other lifecycle hooks, not continuously streaming the output from each parallel hook, but instead holding the output until the end (otherwise, output will be interleaved and hard to follow). See the demo below for an illustration of this.

Screen.Recording.2023-05-08.at.6.36.21.PM.mov

@chrmarti Christof Marti (chrmarti) left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@justin-mccann

Copy link
Copy Markdown

Will this PR also fixup VSCode's problem-highlighting on the acceptable types for initializeCommand, or are there separate changes necessary for that?

@joshspicer

Copy link
Copy Markdown
Contributor Author

Will this PR also fixup VSCode's problem-highlighting on the acceptable types for initializeCommand, or are there separate changes necessary for that?

Separate changes are needed for that. Specifically, an update to the schema published here: https://raw.githubusercontent.com/devcontainers/spec/main/schemas/devContainer.base.schema.json

@joshspicer

Copy link
Copy Markdown
Contributor Author

Manually confirming things look good with the existing syntaxes

image image
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants