re: Building a Visual Studio Code Extension VIEW POST

re: Hi Brian, your write up here has me want to ask... could an extension read the user's code and render something in-line? Like if I have a comment i...

At the very worst, you should be able to use something like Acorns to generate an AST and then walk the tree to find comments that match that pattern, query your DevOps source of truth, and add text to the second line. That's a lot of overhead, so hopefully you can find a better way.

On a single instance basis, you should be able to do this easily just by highlighting the comment, running the command, parsing the comment, querying your source of truth, and then using the "editBuilder" API to populate the ticket info. You may have to wrestle with some auth stuff, but that shouldn't be terrible.

code of conduct - report abuse