atom-language-cfml icon indicating copy to clipboard operation
atom-language-cfml copied to clipboard

Only one code complete option shown for each prefix

Open sebduggan opened this issue 10 years ago • 2 comments

Not sure if this is an issue with the package, or with Atom itself...

If you start typing a keyword such as cfquery, the complete options are simply "cfquery (update sql)" and "cfqueryparam". However, there are multiple different completion templates which all have the prefix "cfquery"; it looks like only the last one is being displayed in the list. The same is observed for cfregistry - only "cfregistry (set)" is displayed as an option.

sebduggan avatar Jul 02 '15 13:07 sebduggan

OK, looking at the snippets plugin, it appears that this is the expected behaviour.

The solution would be to create unique prefixes - so, for instance:

  • cfquery-delete
  • cfquery-insert
  • cfquery-long
  • cfquery-select
  • cfquery-short
  • cfquery-update

It would, however, make the completion dropdown look like this: image

sebduggan avatar Jul 02 '15 13:07 sebduggan

Yikes. I'm not really a fan of either! Is there a different snippets plugin we can recommend? Or should we file a bug/enhancement with them?

atuttle avatar Jul 02 '15 13:07 atuttle