livecode / atom-language-livecode

LiveCode Language package for Atom
GNU General Public License v3.0
16 stars 15 forks source link

LiveCode Script auto-completion doesn't offer local symbols #18

Closed peter-b closed 8 years ago

peter-b commented 8 years ago

In LiveCode Script mode, the autocomplete settings don't result in useful suggestions.


In LiveCode Builder mode:

handler TestHandler()
    variable tTempVar

end handler

Put the cursor on the blank line and type tte. The first suggestion is tTempVar.


In LiveCode Script mode:

on mouseUp
   local tTempVar

end mouseUp

Put the cursor on the blank line and type tte. The first suggestion is templateEPS and tTempVar doesn't appear anywhere in the suggested completions.

montegoulding commented 8 years ago

Hmm... any suggestions as to why this happens. I would have thought that suggestions from the local file would override any snippets

montegoulding commented 8 years ago

I've got it. PR coming soon.