Skip to content

refactor: group worker config metadata - #815

Merged
sheremet-va merged 2 commits into
mainfrom
refactor/worker-config-metadata
Sep 6, 2026
Merged

refactor: group worker config metadata#815
sheremet-va merged 2 commits into
mainfrom
refactor/worker-config-metadata

Conversation

@hi-ogawa

@hi-ogawa hi-ogawa commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

This defines a bag of config-related data that is passed from Vitest worker to extension host as ExtensionWorkerConfig. This would make it simpler for #811 to introduce one more value for html reporter path in the same bag.

Co-authored-by: OpenCode (gpt-5.6-sol) <noreply@opencode.ai>
@hi-ogawa
hi-ogawa marked this pull request as ready for review September 4, 2026 04:17
Comment thread packages/extension/src/apiProcess.ts Outdated
readonly pkg: VitestPackage,
readonly projects: SerializedProject[],
readonly workspaceSource: string | false,
readonly extensionConfig: ExtensionWorkerConfig,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This doesn’t seem like the right name. Extension config is something that configures the extension

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Naming is hard. What I ended up is metadata: WorkerReadyMetadata. Now we have to live with meta.metadata in some places.

Co-authored-by: OpenCode (gpt-5.6-sol) <noreply@opencode.ai>
@hi-ogawa
hi-ogawa requested a review from sheremet-va September 4, 2026 09:42
@sheremet-va
sheremet-va merged commit 3ab6afb into main Sep 6, 2026
5 checks passed
@sheremet-va
sheremet-va deleted the refactor/worker-config-metadata branch September 6, 2026 20:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants