Skip to content

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

Open
TwitchBronBron wants to merge 1 commit into
v1from
plugin-events-full-triplet
Open

Ensure every plugin event has before/action/after variants#1711
TwitchBronBron wants to merge 1 commit into
v1from
plugin-events-full-triplet

Conversation

@TwitchBronBron
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 — 4050 passing, 9 pending (no regressions)
  • Verify a plugin using the old onGetSourceFixAllCodeActions hook still fires (with a deprecation warning) on a downstream consumer

🤖 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>
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.

1 participant