Closed eholman closed 2 years ago
Hi @eholman,
you found the right spot in the documentation of the Azure Pipelines extension for Visual Studio Code.. You first need to ensure that all custom extensions/tasks are already installed in your organization, so that it can be included in the custom schema. Once that is done, just open the URL shown in the docs and save the output JSON file somewhere on your machine. In my case, I put it in a synchronized folder one OneDrive so the schema moves with me. You can then configure the schema location in the Visual Studio Code settings section for Azure Pipelines:
Keep in mind that when you open a YAML file, Visual Studio Code by default just uses the YAML language mode which is not very helpful for Azure Pipelines. You can check the language mode in the lower right corner of Visual Studio Code's status bar.
To change the language mode, click the YAML
indicator in the status bar and change to Azure Pipelines. I'd recommend configuring Visual Studio Code to automatically use the Azure Pipelines extension for specific files/locations as shown below.
Does that help?
Aaah I understand now, the result of the constructed URL indeed gives me the BuildQualityChecks task in the complete schema! I thought I had to add schemas per custom task. I feel a bit dumb now 😄 Thank you!
No need to feel stupid, the documentation could be better 😉 Glad I could help.
Hi,
I've installed the Azure Pipelines extension in VS Code and there are warnings regarding the
BuildQualityCheck
task.I don't have the knowledge to say how the Task got available in the Pipeline editor in Azure Devops, is it default or an installed marketplace thing? Anyway, the Task is editable over there. In VS Code it's not being recognized and this message is shown:
There is a possibility to add json schemes to the extension, for custom tasks, so I thought let's add that. But where is it? Is it somewhere? Or should the Task be added to the default supported list of tasks?