pascalre / vscode-yaml-sort

This VS Code extension exposes the possibility to sort, format and validate yaml files.
https://marketplace.visualstudio.com/items?itemName=PascalReitermann93.vscode-yaml-sort
MIT License
41 stars 2 forks source link

SortOnSave not working #191

Closed nathan-de-pachtere closed 4 months ago

nathan-de-pachtere commented 4 months ago

Hi,

I can't make it works when saving document (onSave)

here is my settings.json

{
    "editor.bracketPairColorization.enabled": true,
    "editor.guides.bracketPairs": true,
    "editor.formatOnSave": true,
    "editor.defaultFormatter": "esbenp.prettier-vscode",
    "editor.codeActionsOnSave": {
        "source.fixAll.eslint": "explicit"
    },
    "eslint.validate": ["javascript", "javascriptreact", "typescript", "vue"],
    "typescript.tsdk": "node_modules/typescript/lib",
    "files.autoSave": "onFocusChange",
    "prettier.configPath": "prettier.config.js",
    "vue.codeActions.enabled": true,
    "eslint.options": {
        "overrideConfigFile": "eslint.config.js"
    },
    "vscode-yaml-sort.forceQuotes": true,
    "vscode-yaml-sort.sortArrays": true,
    "vscode-yaml-sort.sortOnSave": 0,
    "vscode-yaml-sort.useLeadingDashes": false,
    "vscode-yaml-sort.emptyLinesUntilLevel": 1,
    "prettier.vueIndentScriptAndStyle": false,
    "prettier.singleAttributePerLine": true,
    "path-intellisense.autoSlashAfterDirectory": true,
    "vue.inlayHints.missingProps": true
}

Working fine by Ctrl + Maj + P and then YAML Sort: Sort YAML

Nothing in the OUTPUT to debug and help understand what's going on.

nathan-de-pachtere commented 4 months ago

Never mind, I'm moving to eslint-plugin-yml