Skip to content

Ensure every plugin event has before/action/after variants - #1711

Merged
TwitchBronBron merged 2 commits into
v1from
plugin-events-full-triplet
Aug 28, 2026
Merged

Ensure every plugin event has before/action/after variants#1711
TwitchBronBron merged 2 commits into
v1from
plugin-events-full-triplet

Conversation

@TwitchBronBron

@TwitchBronBron TwitchBronBron commented May 13, 2026

Copy link
Copy Markdown
Member

Summary

Closes #1552. Every plugin event now exposes the full beforeAction / action / afterAction triplet.

  • Added the missing middle events: addFile, removeFile, buildProgram, writeProgram.
  • Renamed onGetSourceFixAllCodeActionsprovideSourceFixAllCodeActions (matches the earlier onGetCodeActions / onGetSemanticTokens renames) and added beforeProvideSourceFixAllCodeActions / afterProvideSourceFixAllCodeActions.
  • Back-compat: the old OnGetSourceFixAllCodeActionsEvent type is kept as a deprecated alias, and onGetSourceFixAllCodeActions is forward-converted by the PluginInterface sanitizer (with a warning) the same way other renamed hooks are.

Test plan

  • npm run build — succeeds
  • npm run test:nocover — 4292 passing, 9 pending (no regressions)
  • Verify a plugin using the old onGetSourceFixAllCodeActions hook still fires (with a deprecation warning) on a downstream consumer

Merged latest v1. The only conflicts were import lines colliding with v1's new inlay-hints event; v1 already emits the full inlay-hints triplet, so nothing here needed reworking.

🤖 Generated with Claude Code

Adds the missing middle event for addFile, removeFile, buildProgram, and
writeProgram, and renames onGetSourceFixAllCodeActions to
provideSourceFixAllCodeActions (with the matching before/after variants).
The old name is kept as a deprecated type alias and forward-converted by
the PluginInterface sanitizer so existing plugins continue to work.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@TwitchBronBron TwitchBronBron assigned Copilot and unassigned Copilot Aug 28, 2026
# Conflicts:
#	src/Program.ts
#	src/bscPlugin/BscPlugin.ts
@TwitchBronBron
TwitchBronBron merged commit 98411e3 into v1 Aug 28, 2026
10 of 11 checks passed
@TwitchBronBron
TwitchBronBron deleted the plugin-events-full-triplet branch August 28, 2026 20:08
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