clemos / haxe-sublime-bundle

Sublime Text bundle for Haxe programming language
Apache License 2.0
237 stars 85 forks source link

Minor code completion issue #37

Closed jgranick closed 12 years ago

jgranick commented 12 years ago

Hi!

I'm trying out Sublime Text 2 and the haxe bundle again. Thanks for all your work!

I just wanted to point out a minor spot where completion isn't provided, but where it would be nice. Let's imagine I have a DisplayObject called "Footer", and I want to manipulate it.

If I type "Foot" and press enter, "Footer." is completed and I have the pop-up box with properties and methods for my Footer object.

If I type "Footer", click away, then click back and type a period, I will also receive the pop-up box.

However, if I begin typing and ignore the completion for "Footer", but instead type "Footer." myself, I receive no completion after the period. It is fairly common that I might type the full name of an object rather than letting completion provide it for me, but once I've typed it, I'd like to receive completion.

Not sure if this is a limitation somehow, or just a minor little thing?

Thank you!

clemos commented 12 years ago

Hi Joshua,

Actually, it's kind of a limitation of the ST2 autocompletion system. There were some workarounds for these a while ago, but they turned out to be very buggy with different versions of ST2, so I decided to simply remove them and rely as much as possible on ST2 autocomplete behaviour. It's been a while since I didn't check the ST2 dev forum, and maybe there are new features we could use here, so I'll try to do it soon.

Regards, Clément

jgranick commented 12 years ago

I had a feeling it might be something like that. Sticking with the official behavior seems like a safe bet.

Have a great day :)

clemos commented 12 years ago

Hi Joshua,

I think the latest version solves your issue, hopefully without breaking too much of the rest :) Could you try again and let me know if it works as expected ? FYI it seems to work perfectly with ST2 2195 so far : http://www.sublimetext.com/dev

Regards, Clément

clemos commented 12 years ago

Well actually I have just commited a new change that makes it work even better. You may need to restart ST2, though

Regards