vscode-yaml-sort icon indicating copy to clipboard operation
vscode-yaml-sort copied to clipboard

First level keys not sorted by default with `sort yaml` command

Open UyttenhoveSimon opened this issue 1 year ago • 0 comments

Hello,

First thanks for your extension. Second, apologies if such thing exists but I could not find a similar issue opened/closed or anything in the documentation.

Issue:

nq:
  auth:
    org-organization-uuids:
      '7680': toto
    org-sso-ids:
      '7680': tata
  deployments:
    dashboard:
      api:
        key: 7df5f
        url: ${url}
      data:
        environment: UAT
        manifest-file: file:/data/workdir/manifest.json
      enabled: true
      
environment:
  name: Test

When using "sort yaml" command, the nq key and its child nodes are not placed below environment key. If I use "Custom sort 1" it does the sorting as expected.

Is this behavior expected ?

Thanks in advance.

UyttenhoveSimon avatar Feb 15 '24 12:02 UyttenhoveSimon