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

gives syntax error for valid content when file name is not azure-pipelines.yml #591

Closed
vairakkumaar-svs-hf opened this issue Jul 16, 2024 · 2 comments
Labels
Area: VsCodeExtension question Further information is requested

Comments

@vairakkumaar-svs-hf
Copy link

vairakkumaar-svs-hf commented Jul 16, 2024

I have a file name azure-pipelines-prod.yml

and have the following content
`
trigger:

  • none

resources:
repositories:

  • repository: templates # The name used to reference this repository in the checkout step
    type: git
    name: projectname/azure-pipeline-templates
  • repository: self
    type: git
    name: self

stages:

  • template: azure-pipelines.yml@templates
    parameters:
    deploytoProdAuto: 'true'
    `

and I get error in line 1. how to make vscode to use the azure-pipelines syntax?

I tried adding in my workspace settings.json as follows and it did not work.

{ "files.associations": { "**/ci/azure-pipelines-*.yml": "azure-pipelines" } }

@vmapetr vmapetr added question Further information is requested and removed triage labels Jul 26, 2024
@vmapetr
Copy link

vmapetr commented Jul 29, 2024

Hi @vairakkumaar-svs-hf thanks for reporting!
We are working on more prioritized issues at the moment, but will get back to this one soon.

@winstliu
Copy link
Member

winstliu commented Oct 2, 2024

I'm unable to repro this. If you're still having problems getting the file association correct, I'd suggest asking a question on StackOverflow: https://stackoverflow.com/questions/tagged/vscode

@winstliu winstliu closed this as not planned Won't fix, can't repro, duplicate, stale Oct 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: VsCodeExtension question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants