Sublime Forum

.sublime-completions scope definition

#1

Hello,
I’m quite new to sublime and this worries me:

I’ve created custom completions for

"scope": "source.css, source.css.less"

It works fine when working with css, but when I switch to less, the completions rarely work (but sometimes they do!?!).

When checking the console for the scope, it shows the right one.
with no selection

>>> print (view.syntax_name(view.sel()[0].b)) source.css.less
with random text selected

>>> print (view.syntax_name(view.sel()[0].b)) support.type.property-name.css source.css.less
When working in the *.less file, switching to CSS syntax enables the completions.

Any idea what’s causing the trouble?

0 Likes