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

preserveNewLinesBetweenPropertyValues option seems ignored by vscode extension #109

Open
fabien-michel opened this issue Oct 30, 2023 · 0 comments

Comments

@fabien-michel
Copy link

fabien-michel commented Oct 30, 2023

Reproduce:
Have VS code with thisismanta.stylus-supremacy extension installed (v2.17.6)

Create two files in an empty folder:
./.vscode/settings.json

{
    "stylusSupremacy.preserveNewLinesBetweenPropertyValues": true
}

./test.stylus

.blop
    background: linear-gradient(to right, blue, red), 
                blue

Try to format the stylus file using the extension, you get:

.blop {
    background: linear-gradient(to right, blue, red), blue;
}

which is not expected, because of preserveNewLinesBetweenPropertyValues set to true.

It works as expected from command line :

$ stylus-supremacy --version
v2.17.5
$ stylus-supremacy format test.stylus --options .vscode/settings.json

Results:

.blop {
	background:
		linear-gradient(to right, blue, red),
		blue;
}
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

1 participant