microsoft / azure-pipelines-language-server

A language server for Azure Pipelines YAML
37 stars 25 forks source link

Feat: Add "Definition" Support for for template Entries #157

Closed Stuart-Wilcox closed 8 months ago

Stuart-Wilcox commented 8 months ago

Motivation

My teams makes significant use of the ADO Pipeline template paradigm and has many template references all over our pipeline definitions.

One of the most annoying things about this pattern is that when navigating around in VSCode, you need to select the full template path, copy it, and CTRL+P to open it in a new tab. Thus the motivation here is to have a seamless experience like in JS/TS where using F12 (or context clicking and selecting "Go To Definition") which takes you right to the template locally.

Implementation

JulienDesalliers commented 8 months ago

That's awesome, I've been wanting something similar for a while now!

50Wliu commented 8 months ago

Okay, played around with it a bit and pushed some of my changes to get things working. Notably:

@Stuart-Wilcox if these changes look good to you, I'll push the big green button :).

Stuart-Wilcox commented 8 months ago

Thanks for adding those changes, it all looks good to me!

50Wliu commented 8 months ago

Thank you for the contribution!!