Skip to content

chore: add getMetainfo convenience getter for protocol metainfo#39794

Merged
pavelfeldman merged 1 commit intomicrosoft:mainfrom
pavelfeldman:refactor-metainfo-getter
Mar 20, 2026
Merged

chore: add getMetainfo convenience getter for protocol metainfo#39794
pavelfeldman merged 1 commit intomicrosoft:mainfrom
pavelfeldman:refactor-metainfo-getter

Conversation

@pavelfeldman
Copy link
Member

Summary

  • Extract MethodMetainfo type in generate_channels.js and export it from generated protocolMetainfo.ts
  • Add getMetainfo() helper in protocolFormatter.ts that wraps methodMetainfo.get(type + '.' + method)
  • Migrate all callers to use getMetainfo() instead of direct map lookups

Extract MethodMetainfo type from generate_channels.js and add
getMetainfo() helper in protocolFormatter.ts to replace repeated
methodMetainfo.get(type + '.' + method) lookups across the codebase.
Copy link
Contributor

@dgozman dgozman left a comment

Choose a reason for hiding this comment

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

stampy stamp

@github-actions
Copy link
Contributor

Test results for "MCP"

3 failed
❌ [msedge] › mcp/dashboard.spec.ts:23 › should show browser session chip @mcp-windows-latest
❌ [firefox] › mcp/test-run.spec.ts:87 › test_run filters @mcp-macos-latest
❌ [firefox] › mcp/test-setup.spec.ts:105 › test_debug should run global setup and teardown @mcp-macos-latest

5455 passed, 340 skipped


Merge workflow run.

@github-actions
Copy link
Contributor

Test results for "tests 1"

5 flaky ⚠️ [chromium-library] › library/popup.spec.ts:261 › should not throw when click closes popup `@ubuntu-22.04-chromium-tip-of-tree`
⚠️ [chromium-library] › library/popup.spec.ts:261 › should not throw when click closes popup `@chromium-ubuntu-22.04-arm-node20`
⚠️ [chromium-library] › library/trace-viewer.spec.ts:1223 › should display language-specific locators `@chromium-ubuntu-22.04-node24`
⚠️ [chromium-library] › library/trace-viewer.spec.ts:1223 › should display language-specific locators `@chromium-ubuntu-22.04-node20`
⚠️ [firefox-library] › library/inspector/cli-codegen-1.spec.ts:1080 › cli codegen › should not throw csp directive violation errors `@firefox-ubuntu-22.04-node20`

38823 passed, 845 skipped


Merge workflow run.

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.

3 participants