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

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

Closed
mverbaas opened this issue Sep 27, 2024 · 5 comments
Closed

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

mverbaas opened this issue Sep 27, 2024 · 5 comments

Comments

@mverbaas
Copy link

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
Copy link
Contributor

@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
Copy link
Author

mverbaas commented Sep 27, 2024

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
Copy link
Contributor

ivanduplenskikh commented Sep 27, 2024

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

@mverbaas
Copy link
Author

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

@mverbaas
Copy link
Author

@ivanduplenskikh, I notice there was an update and the functionality is present!
Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants