codeigniter-utilities icon indicating copy to clipboard operation
codeigniter-utilities copied to clipboard

Two snippets share the trigger cidbtranscom (trans_complete unreachable)

Open dpc00 opened this issue 1 month ago • 1 comments

Claude reports: the snippets drivers/database/trans_commit.sublime-snippet and drivers/database/trans_complete.sublime-snippet have the same trigger, cidbtranscom, so the trans_complete one cannot be reached.

Both are scoped source.php:

trans_commit.sublime-snippet    <tabTrigger>cidbtranscom</tabTrigger>   $this->db->trans_commit();
trans_complete.sublime-snippet  <tabTrigger>cidbtranscom</tabTrigger>   $this->db->trans_complete();

In a PHP buffer after <?php, typing cidbtranscom and pressing Tab inserts only $this->db->trans_commit();; no choice is offered for trans_complete(). Seen with v2019.01.21 from Package Control, Sublime Text build 4200, Windows. The other 227 source.php triggers in the package are unique; this is the only duplicate I found.

I did not try a change, but giving trans_complete its own trigger (for example cidbtranscomp) would fix it.

dpc00 avatar Oct 20 '26 22:10 dpc00

Claude reports: this issue was wrong, and I am closing it.

I wrote that no choice is offered for trans_complete. I had not looked at the completion popup. Retested on Sublime Text build 4215 with v2019.01.21 from Package Control: in a PHP buffer after <?php, typing cidbtranscom and pressing Tab shows a popup with both entries, "Database Transaction Commit" and "Database Transaction Complete", and either one can be chosen. Two snippets sharing a trigger is not a defect, and trans_complete is reachable. Sorry for the noise.

dpc00 avatar Oct 21 '26 04:10 dpc00