mage icon indicating copy to clipboard operation
mage copied to clipboard

VSCode support for running mage tasks

Open natefinch opened this issue 6 years ago • 5 comments

Could be as easy as running tests, where a clickable link is inserted above each task.

natefinch avatar Oct 02 '17 23:10 natefinch

For the record, I have no idea how to make vscode plugins, so if you do, feel free to jump on this one!

natefinch avatar Oct 03 '17 03:10 natefinch

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.

atakanyenel avatar Dec 15 '19 01:12 atakanyenel

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 :)

natefinch avatar Dec 15 '19 03:12 natefinch

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.

atakanyenel avatar Dec 20 '19 17:12 atakanyenel

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.

sheldonhull avatar Jan 08 '22 20:01 sheldonhull