This repository has been archived by the owner on Oct 7, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmw.json
79 lines (79 loc) · 2.05 KB
/
mw.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
{
"@metadata": {
"name": "mw",
"comment": "The library is imported as default, it is \"implied\", and can be fully identified by its library prefix. This is nearly always named as \"mw\", as it is the standard mw-lib, so it is pretty safe to assume it can be used as prefix.",
"authors": [
"Jeblad"
]
},
"mw 001": {
"prefix": "mw.addWarning( text )",
"body": [
"mw.addWarning( ${1:text} )$0"
],
"description": "Adds a warning above the preview during editing.\n"
},
"mw 002": {
"prefix": "mw.allToString( ... )",
"body": [
"mw.allToString( ${1:...} )$0"
],
"description": "Calls tostring() on all arguments and concatenates them.\n"
},
"mw 003": {
"prefix": "mw.clone( value )",
"body": [
"mw.clone( ${1:value} )$0"
],
"description": "Creates a deep copy of a value.\n"
},
"mw 004": {
"prefix": "mw.getCurrentFrame()",
"body": [
"mw.getCurrentFrame()$0"
],
"description": "Get the current frame object.\n"
},
"mw 005": {
"prefix": "mw.incrementExpensiveFunctionCount()",
"body": [
"mw.incrementExpensiveFunctionCount()$0"
],
"description": "Adds one to the count, and throws an exception when overflowing.\n"
},
"mw 006": {
"prefix": "mw.isSubsting()",
"body": [
"mw.isSubsting()$0"
],
"description": "Checks if last invoke is substed.\n"
},
"mw 007": {
"prefix": "mw.loadData( module )",
"body": [
"mw.loadData( ${1:module} )$0"
],
"description": "Loads data from a separate page.\n"
},
"mw 008": {
"prefix": "mw.dumpObject( object )",
"body": [
"mw.dumpObject( ${1:object} )$0"
],
"description": "Serializes object to a human-readable representation.\n"
},
"mw 009": {
"prefix": "mw.log( ... )",
"body": [
"mw.log( ${1:...} )$0"
],
"description": "Surface serialize and appends the result to the log buffer.\n"
},
"mw 010": {
"prefix": "mw.logObject ( object, prefix )",
"body": [
"mw.logObject( ${1:object}${2:, ${3:prefix}} )$0"
],
"description": "Serializes object to a human-readable representation and appends the result to the log buffer.\n"
}
}