Repository navigation
feat(vsix): link declared extension commands to their registrations - #14977
akshad-exe wants to merge 20 commits into
Conversation
Record vscode callee facts in the JavaScript semantic graph, keep every declared command with its menus and keybindings, and add correlate_vsix_commands to report registered, missing, undetermined and undeclared commands from package and application Evidence. Refs morluto#3687 Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01A5mgB1jLBG3CL4gxqa8xm8
Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01A5mgB1jLBG3CL4gxqa8xm8
[Medium impact] The reviewed changes appear safe to merge. SummaryAdds
Diagram%%{init: {'theme': 'neutral'}}%%
flowchart TD
P["inspect_vsix_package Evidence"] --> C["correlate_vsix_registrations"]
J["analyze_javascript_application Evidence"] --> C
C --> R["Match declarations and registration calls"]
R --> G["Apply coverage and uncertainty checks"]
G --> E["Complete correlation Evidence"]
E --> S["Inline result or retained summary"]
Reviews (14) · Last reviewed commit: "fix(javascript): bound write tracking fo..." · Reviewed by Greptile |
…larations unknown Reject value ambiguity as a vscode callee, record which callee facts a graph carries, treat skipped sources as unanalyzed, report unmatched registrations as undetermined when declarations are incomplete, retain each menu name once, and count statuses in one pass. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01A5mgB1jLBG3CL4gxqa8xm8
A selection whose branches name one module through require no longer reports a non-module alternative. Refs morluto#3687 Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01A5mgB1jLBG3CL4gxqa8xm8
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 16c6601e1e
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
…acts A call omitted by a resource limit leaves its entry undetermined. A member written in the file, or a default member written on a require, is not resolved as the VS Code API. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01A5mgB1jLBG3CL4gxqa8xm8
Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01A5mgB1jLBG3CL4gxqa8xm8
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 3c8b543c6a
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
…larations unknown Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01A5mgB1jLBG3CL4gxqa8xm8
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 498cee859d
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
…d menus unknown Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01A5mgB1jLBG3CL4gxqa8xm8
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 4dcd518722
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
… facts unknown Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01A5mgB1jLBG3CL4gxqa8xm8
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: be61a0b236
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
…sfer Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01A5mgB1jLBG3CL4gxqa8xm8
Source order does not establish whether a write to a vscode member ran before a call, so a written member now marks its calls as possibly replaced instead of dropping or keeping them by position. Menus and keybindings with unreadable rows are unknown. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01A5mgB1jLBG3CL4gxqa8xm8
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: f9b7363fb2
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
A registration built at run time may be any declared command, and a menu or keybinding field that is not text cannot be read. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01A5mgB1jLBG3CL4gxqa8xm8
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: e3fa0cb721
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
A binding that may hold something other than vscode keeps its call as a possible identity instead of dropping it. Computed writes mark members as possibly replaced, member lookups walk each path once, and an oversized module callee is omitted with a resource-limit unknown. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01A5mgB1jLBG3CL4gxqa8xm8
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 4cb167c08d
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01A5mgB1jLBG3CL4gxqa8xm8
Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01A5mgB1jLBG3CL4gxqa8xm8
…es uncertain Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01A5mgB1jLBG3CL4gxqa8xm8
…on calls Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01A5mgB1jLBG3CL4gxqa8xm8
Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01A5mgB1jLBG3CL4gxqa8xm8
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 245d59e3bb
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
…te shortcuts call, apply and bind leave unmatched commands undetermined, constructor expressions are not registrations, and menus and keybindings keep alt commands and platform overrides. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01A5mgB1jLBG3CL4gxqa8xm8
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 37b49984d2
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01A5mgB1jLBG3CL4gxqa8xm8
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: e67d8879ca
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Summary
Adds
correlate_vsix_registrations/correlate-vsix-registrations, which joins the commands a VS Code extension declares with the code that registers them.Refs #3687. First command-analysis part after #12469; @mvanhorn confirmed they are not working on it. Later parts build on this one.
Change and scope
callee_fact_modules, or incompletely read declarations giveundetermined. Menus are grouped by name.module_calleefact on call sites intovscode, includingrequireand interop-wrapped imports. Matches through an unchecked helper are labelledwrapper: unverified.menusandkeybindings.inspect_vsix_packageandanalyze_javascript_applicationEvidence and reportsregistered,not_found,undeterminedorregistered_undeclared; run-time identifiers stay unresolved.VSIX_PACKAGE_PROVIDER_IDENTITYmoves todomain/investigationProviders.ts.undetermined; a registration function the file may replace is markedreplacement: possibleand givesundetermined;defaultwritten on arequireis not resolved as the VS Code API. Directrequire("vscode")calls resolve. An unreadable command declaration leaves undeclared statusundetermined.detail: an MCP result above the agent result budget returns a retained summary of counts, with the complete record paged throughinspect_analysis_view.Evidence
Published extensions from Open VSX, analyzed without execution:
Extension results were measured before the review fixes; EditorConfig, flowrelay, shiny and promptx command counts were rechecked afterwards and unchanged.
GitLens: call analysis of its entry bundles was dropped under the analysis result budget, so nothing is claimed. It also registers through local wrapper functions, which literal matching would miss.
Known limitations
undetermined(measured at245d59e3b).undetermined).Object.assign/defineProperty, or withdelete; such a command can showregistered.not_foundcan still hide a registration:const register = vscode.commands[name]; register(...), or a computed name on an untraced object.registered, labelledwrapper: unverified.undetermined, as does a reference taken before a later replacement.Validation
check:fast,format:check,docs:check, advertised schema summary: passed16c6601e1)Author readiness