jcberquist / sublimetext-cfml

CFML (ColdFusion and Lucee) package for Sublime Text
MIT License
115 stars 24 forks source link

Custom Tag Attribute Indexing Finds Chained Methods #132

Closed michaelalandawson closed 4 years ago

michaelalandawson commented 4 years ago

Sublime Text 3.2.2, Build 3211, most-recent CFML package

I added "custom_tag_folders" to a project settings file. I am now able to see completions for custom tags in that folder, as well as attributes in those custom tags. I regret not adding this earlier as it is a wonderful time saver.

I noticed the indexer, finds elements other than attributes-based variables.

if (attributes.keyExists("pageTitle") and attributes.pageTitle.trim().len()) {

The attributes indexing code adds "keyexists" to the completions list for attributes. This is a chained method and not a variable.

Thank you for an excellent ColdFusion package!

jcberquist commented 4 years ago

I pushed an update in st3-v0.29.1 that should fix this.