Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lg() not expanding #670

Open
ixarls opened this issue Dec 4, 2021 · 4 comments
Open

lg() not expanding #670

ixarls opened this issue Dec 4, 2021 · 4 comments

Comments

@ixarls
Copy link

ixarls commented Dec 4, 2021

linear gradient in .css not expanding.
I'm using VS code. lg works -> background-image: linear-gradient();
but lg(...) does not. A have actually tried another editor a got the same result.
Am i doing something wrong?

@sergeche
Copy link
Member

sergeche commented Dec 5, 2021

Looks like a bug, will check it out

@p-stevenson
Copy link

issue is still present.

@theperfectpunk
Copy link
Contributor

@sergeche the following test cases pass in our build

it('gradient resolver', () => {
    equal(expand('lg'), 'background-image: linear-gradient(${0});');
    equal(expand('lg(to right, #0, #f00.5)'), 'background-image: linear-gradient(to right, #000, rgba(255, 0, 0, 0.5));');
});

The issue can still be reproduced in vscode, what I've observed is emmet suggestions stop after a round bracket.
Maybe its an issue with implementation in the plugins

lgexpand

@sergeche
Copy link
Member

sergeche commented Mar 19, 2023

Yes, it’s VSCode implementation issue. Works fine in Sublime Text and CodeMirror.
You should fill an issue in VSCode repo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants