You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add to Chat on the Solution Explorer right-click menu: select one or more files, right-click, and each gets @-mentioned into the CLI composer (whole-file, no line range). Multi-select supported.
Why
Pointing Claude at files it hasn't touched yet currently means dragging them to the panel's attach tray or typing @-paths in the terminal. The editor flyout from #27 covers the open file; this covers everything else — "look at these three files" becomes select + right-click.
Implementation notes
VSCT: a group under IDM_VS_CTXT_ITEMNODE (and consider IDM_VS_CTXT_XPROJ_MULTIITEM for cross-project multi-select). Remember the Add a "Claude Actions" editor context menu (Explain / Add to Chat) #27 lesson recorded in CLAUDE.md: a <Menu> needs an intermediate <Group>, and the Exp hive caches the compiled command table (devenv /rootsuffix Exp /updateconfiguration after .vsct edits).
Read the selected items via DTE.SelectedItems or IVsMonitorSelection; skip non-file nodes (projects, folders) in v1.
Per file: AttachmentService.ToWorkspaceRelative (made internal in Add a "Claude Actions" editor context menu (Explain / Add to Chat) #27) + the at_mentioned broadcast — SelectionService.MentionCurrentAsync shows the exact shape; a shared MentionFileAsync(path) helper would serve both.
Known CLI quirk applies (CLAUDE.md): mentions sent mid-turn can be silently dropped — consider routing through the attachment tray (chips) instead of bare mentions so users get the click-to-re-mention affordance for free.
Came out of the #27 review. @DaveTseng2019 — this one is well-scoped and self-contained, and you already know the mention path from #27; it's yours if you want it.
What
Add to Chat on the Solution Explorer right-click menu: select one or more files, right-click, and each gets
@-mentioned into the CLI composer (whole-file, no line range). Multi-select supported.Why
Pointing Claude at files it hasn't touched yet currently means dragging them to the panel's attach tray or typing
@-paths in the terminal. The editor flyout from #27 covers the open file; this covers everything else — "look at these three files" becomes select + right-click.Implementation notes
IDM_VS_CTXT_ITEMNODE(and considerIDM_VS_CTXT_XPROJ_MULTIITEMfor cross-project multi-select). Remember the Add a "Claude Actions" editor context menu (Explain / Add to Chat) #27 lesson recorded in CLAUDE.md: a<Menu>needs an intermediate<Group>, and the Exp hive caches the compiled command table (devenv /rootsuffix Exp /updateconfigurationafter.vsctedits).DTE.SelectedItemsorIVsMonitorSelection; skip non-file nodes (projects, folders) in v1.AttachmentService.ToWorkspaceRelative(madeinternalin Add a "Claude Actions" editor context menu (Explain / Add to Chat) #27) + theat_mentionedbroadcast —SelectionService.MentionCurrentAsyncshows the exact shape; a sharedMentionFileAsync(path)helper would serve both.Came out of the #27 review. @DaveTseng2019 — this one is well-scoped and self-contained, and you already know the mention path from #27; it's yours if you want it.