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

Problems with Formatting Azure DevOps Yaml File with template and parameters #205

Open
pri-kise opened this issue Apr 23, 2024 · 0 comments

Comments

@pri-kise
Copy link

pri-kise commented Apr 23, 2024

Hi I want to use the extension with Azure DevOps Pipelines and want to use templates.

This is the result after formatting:

name: $(Build.BuildId)

variables:
  - group: Custom Settings

trigger: none

stages:
  - parameters:
      firstparamter: XXX
      secondparameter: YYY
    template: templates\CI.yml

This is the expected result:
I'd like to have the template line before the parameters line.

name: $(Build.BuildId)

variables:
  - group: 'Custom Settings'

trigger: none

stages:
  - template: templates\CI.yml
    parameters:
      firstparamter: 'XXX'
      secondparameter: 'YYY'

my settings for the extension:

{
    "vscode-yaml-sort.customSortKeywords_2": [
        "name",
        "variables",
        "trigger",
        "resources"
    ],
    "vscode-yaml-sort.emptyLinesUntilLevel": 1,
    "vscode-yaml-sort.useLeadingDashes": false
}
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