Add 'alertresponse' snippet.

This commit is contained in:
Ethan Dalool 2020-10-30 18:55:45 -07:00
parent 0d72593ea1
commit ca6e1ea0bc

View file

@ -0,0 +1,14 @@
<snippet>
<content><![CDATA[
if (response.meta.status !== 200)
{
alert(JSON.stringify(response));
return;
}
]]></content>
<tabTrigger>alertresponse</tabTrigger>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<!-- <tabTrigger>hello</tabTrigger> -->
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<!-- <scope>source.python</scope> -->
</snippet>