stylelint / vscode-stylelint

The official Visual Studio Code extension for Stylelint

Home Page:https://marketplace.visualstudio.com/items?itemName=stylelint.vscode-stylelint

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Bug]: format can't trigger auto fix

Yueyanc opened this issue · comments

How did you encounter this bug?

if vscode setting has

{ "files.insertFinalNewline": true }

auto fix can't be trigger.

analyzed the source code find this

Snipaste_2023-12-07_23-20-13

and

Snipaste_2023-12-07_23-21-19

if has config , will get the cache.

can't to find cofig file for gernerate configoptions

Link to Minimal Reproducible Example

without

Code Snippet

No response

Stylelint Configuration

No response

Extension Configuration

No response

Actual Behaviour

auto fix

Expected Behaviour

can't auto fix

Logs

No response

Stylelint Version

v15.11.0

vscode-stylelint Version

v1.3.0

Node.js Version

v16.14.2

Operating System

windows

Windows Subsystem for Linux

No response

Code of Conduct

  • I agree to follow vscode-stylelint's Code of Conduct

insertSpaces,tabSize,insertFinalNewline,trimTrailingWhitespace,These configurations cause the auto fix to fail

image

this config will resolve the problem