danro / LESS-sublime

LESS syntax highlighting for Sublime Text.
https://sublime.wbond.net/packages/LESS
501 stars 92 forks source link

compatibility with “all autocomplete” package #93

Closed mavsar closed 6 years ago

mavsar commented 6 years ago

Hi, it worked just fine till one week ago when suddenly my "All autocomplete" plugin stopped working for LESS variables that starts with @ ... usually it was when you had less file with variables open (lets say variables.less) and you had another file (lets say styles.less) open in another tab and you started to type @nameofvariables, autocomplete automatically scraped everything from variables.less file ... but now suddenly this doesn't work anymore ...

Whole variable used to be colored in red, but now the @ part is colored white and the rest is red ... what happened?

capture
braver commented 6 years ago

what happened

A complete rewrite is what happened 😄 . The colors are now in line with many other languages, and there have been several other improvements.

I cannot confirm that it previously had the behaviour you describe: that's not how auto-complete works in Sublime Text (it does in Atom though) and if I try older versions it doesn't show autocomplete for variables.

mavsar commented 6 years ago

Hmmm it did ... 100000% because I was using it all the time ... all you had to have is open less file where you defined variables and it worked :) I am working on a same project, with exactly the same files and it doesn't work now :) I guess that "All autocomplete" now doesn't recognize @XYZ as variables anymore ...

So no solution to this?

braver commented 6 years ago

Well if the old version worked as you say it did you can manually install the 1.0.1 release.

mavsar commented 6 years ago

Thanks ... as soon as I installed 1.0.1 version it works just fine :) and this is not default auto-complete behavior ... it is "All autocomplete" plugin for Sublime that does this - option to autocomplete from all open files ...

braver commented 6 years ago

Oh, that clears it up for me, I’ll have a look at what that package actually does and if we can restore compatibility. Thanks!

fundix commented 6 years ago

I installed 1.0.1 too :-) everyone work's fine again.

braver commented 6 years ago

I think it now also works in the latest 2.x.x release.

screen shot 2018-01-10 at 16 52 27