microsoft / azure-pipelines-vscode

VS Code extension for working with Azure Pipelines YAML files
MIT License
163 stars 102 forks source link

Add support for "go to definition" for template files #596

Open mverbaas opened 4 hours ago

mverbaas commented 4 hours ago

Is it possible to add support for "go to definition" (F12) in the Azure DevOps pipeline when highlighting a file/template.

Creating modular pipeline with support makes navigating the structure easier.

For example, when you have a bicep file and select the referenced file (module) and selecting F12/go to definition it opens the file in a new tab. Same functionality would be greatly appreciated from a pipeline to template file.

ivanduplenskikh commented 3 hours ago

@mverbaas, thank you for sharing your idea. I have a couple of questions regarding your proposal. Are you referring to go to definition when using extends in YAML? extends definition | Microsoft Learn Could you please provide a YAML example that illustrates your concept?

mverbaas commented 3 hours ago

Hi @ivanduplenskikh, Thanks for the quick follow up. I use the template functionality in the following way:

    jobs:
      - template: azure-pipelines/deploy-jobs.yml

I'm not familiar with the extends keyword.

What I expect is when the cursor is in the - template line and I press F12 (or right click go to definition) it would opent the deploy-jobs.yml file in a new editor window.

ivanduplenskikh commented 1 hour ago

@mverbaas, I found that we already have this functionality implemented. We'll release it soon. I'll keep you updated.

mverbaas commented 1 hour ago

Great! I guess you read my mind for this request ;)