From f74b19e07bfda126ac8ba408e6a6b99f39dbc2fe Mon Sep 17 00:00:00 2001 From: Masafumi Koba <473530+ybiquitous@users.noreply.github.com> Date: Tue, 30 Jan 2024 01:14:30 +0900 Subject: [PATCH] docs: fix `editor.codeActionsOnSave` values in README examples See https://code.visualstudio.com/updates/v1_85#_code-actions-on-save-and-auto --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 49247f00..145d729a 100644 --- a/README.md +++ b/README.md @@ -226,11 +226,11 @@ An array of language identifiers specifying which files to enable snippets for. ### `editor.codeActionsOnSave` -This extension provides an action that you can use with VS Code's [`editor.codeActionsOnSave`][vscode settings] setting. If provided a `source.fixAll.stylelint` property set to `true`, all auto-fixable Stylelint errors will be fixed on save. +This extension provides an action that you can use with VS Code's [`editor.codeActionsOnSave`][vscode settings] setting. If provided a `source.fixAll.stylelint` property set to `explicit`, all auto-fixable Stylelint errors will be fixed on save. ```json "editor.codeActionsOnSave": { - "source.fixAll.stylelint": true + "source.fixAll.stylelint": "explicit" } ``` @@ -238,7 +238,7 @@ The following turns on auto fix for all providers, not just Stylelint: ```json "editor.codeActionsOnSave": { - "source.fixAll": true + "source.fixAll": "explicit" } ``` @@ -246,8 +246,8 @@ You can also selectively disable Stylelint: ```json "editor.codeActionsOnSave": { - "source.fixAll": true, - "source.fixAll.stylelint": false + "source.fixAll": "explicit", + "source.fixAll.stylelint": "never" } ``` @@ -256,7 +256,7 @@ You can also selectively enable and disable specific languages using VS Code's l ```json "[html]": { "editor.codeActionsOnSave": { - "source.fixAll.stylelint": false + "source.fixAll.stylelint": "never" } } ```