Triggering VS Code extension command by some preexisting command
08:48 24 Jan 2026

I want to trigger a command in my VS Code extension when a specific command is run, for example after accept inline completion is run I want to run my extension's command.

Is there a way to do this? I can't find anything in the documentation for VS Code extension.

vscode-extensions