Aura
October 5, 2019, 4:54pm
1
Is there some way that I could run a glitch console command like refresh
using a VS Code task?
An example of a VS Code task would be:
{
"version": "2.0.0",
"tasks": [
{
"type": "npm",
"script": "install",
"problemMatcher": []
}
]
}
Could setup a watch.json
and have the task alter a trigger file.
https://glitch.com/help/restart/
Aura
October 20, 2019, 9:51am
3
Oh I see, that would be cool. How could I do that?
Like, what type
would I use? Also what script
This is how I’d setup a task …
{
"version": "2.0.0",
"tasks": [
{
"label": "restart project",
"type": "shell",
"command": "date > .trigger-restart",
"windows": {
"command": "time /t > .trigger-restart"
}
}
]
}
But I couldn’t get it working with the Glitch extension, it breaks the Tasks functionality in several ways and makes Tasks unusable. Maybe it works for you?
Edit - I raised a bug for this in github https://github.com/vscode-glitch/vscode-glitch/issues/11
Aura
October 21, 2019, 12:55pm
5
Aww that’s too bad… Hopefully they could get this working though
cori
October 21, 2019, 4:25pm
6
Thanks for creating the GitHub issue, @mishavee . I’m not sure when anyone will be able to take a look, but that’s a good place to start!
1 Like
Aura
October 21, 2019, 5:46pm
7
I honestly didn’t think of the GitHub repo, I would’ve put it there if I had thought about it