mage
mage copied to clipboard
VSCode support for running mage tasks
Could be as easy as running tests, where a clickable link is inserted above each task.
For the record, I have no idea how to make vscode plugins, so if you do, feel free to jump on this one!
Hey, I wrote vscode plugins before, but I think for this task you don't need a plugin. For starters you can create tasks.json with custom mage commands. But the tests links are a cool idea, I will take a look to it in the coming days.
DISCLAIMER: I discovered mage just now, so I'm not sure about it capabilities.
The test link style would be super handy when you're testing out your mage targets, or even if you just want to be lazy and not type :)
I will start doing this around february , when I'm done with my thesis. If anyone wants to work on it meanwhile, go for it.
I'm writing this so that I can put it in the backlog of my mind.
There was another discussion (Original discussion: https://github.com/magefile/mage/discussions/368) in the past about getting a method exposed to return the metadata of all discovered tasks. If that can be done then creating a vscode task output should be easy. I did some of this with InvokeBuild in powershell and whenever I ran Invoke-Build tidy
it would regenerate all the vscode tasks automatically based on the tasks discovered.
I'd love to help here, but I think this is needed first.
Right now I just did a quick text replace and generated all my tasks as vscode tasks and Cmd+t
allows much to launch fresh mage tasks with fuzzy matching from command pallete.