Sublime Forum

Autocomplete for CSS Variables with var() is not working - Build 4107

#1

:root {
–pb-height: 8px;
–pb-dot-height: 8px;
}

When used in a class it does not auto complete or shows suggestions
Screenshot%202021-06-13%20130208

This feature was working in previous SublimeText builds

0 Likes

CSS variable suggestions gone with new update?
ST4 issues I found, but have no time to write proper bug reports (yet)
#2

Default CSS auto-completions don’t support function arguments completions in general, currently.

0 Likes

#3

But it was working on previous build of ST3

0 Likes

#4

Not that I am aware of, with regards to shipped completions plugin (CSS/css_completions.py).

What you’ve seen in ST3 are variables such as --pb-heigth being picked up from buffer and suggested as so called word completions. Several heuristics with regards to which tokens are extracted have changed in ST4. It appears leading -- is causing those tokens from being ignored by those new heuristics as - is matched as word separator.

It’s because most/all? features in ST ignore word_separators setting.

0 Likes