-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathpackage.json
238 lines (238 loc) · 9.33 KB
/
package.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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
{
"name": "vscode-wrap-console-log",
"displayName": "Wrap Console Log",
"description": "Wrap to console.log by word or selection",
"repository": {
"type": "git",
"url": "https://github.com/midnightsyntax/vscode-wrap-console-log"
},
"version": "1.7.3",
"publisher": "midnightsyntax",
"icon": "images/icon.png",
"engines": {
"vscode": "^1.5.0"
},
"categories": [
"Formatters"
],
"keywords": [
"wrap",
"console",
"log"
],
"activationEvents": [
"onCommand:console.log.wrap",
"onCommand:console.log.wrap.input",
"onCommand:console.log.wrap.prefix",
"onCommand:console.log.wrap.prefix.input",
"onCommand:console.log.wrap.up",
"onCommand:console.log.wrap.up.prefix",
"onCommand:console.log.wrap.up.prefix.input",
"onCommand:console.log.wrap.down",
"onCommand:console.log.wrap.down.prefix",
"onCommand:console.log.wrap.down.prefix.input",
"onCommand:console.log.wrap.string",
"onCommand:console.log.wrap.string.up",
"onCommand:console.log.wrap.string.down"
],
"main": "out/extension.js",
"contributes": {
"configuration": {
"id": "wrap-console-log",
"title": "Wrap Console Log",
"type": "object",
"properties": {
"wrap-console-log.autoFormat": {
"type": "boolean",
"description": "Run VSCode 'Format Document' after every log command.",
"default": false
},
"wrap-console-log.configuration.emptyLineAction": {
"type": "string",
"enum": [
"Insert and push",
"Replace empty"
],
"markdownDescription": "Defines the default text action when logging to an empty line. \n\n`Insert and push` will push the target line in the direction of the log command. \n\n`Replace empty` will replace the target line. No existing rows will be moved.",
"default": "Insert and push"
},
"wrap-console-log.configuration.moveToLine": {
"type": "string",
"enum": [
"Current line",
"Target line"
],
"description": "Controls what line the cursor should be set to after log.",
"default": "Current line"
},
"wrap-console-log.configuration.moveToPosition": {
"type": "string",
"enum": [
"Current position",
"First character",
"Beginning of line",
"End of line"
],
"description": "Specifies the cursor position within the log line after log.",
"default": "Current position"
},
"wrap-console-log.alwaysInputBoxOnPrefix": {
"type": "boolean",
"title": "Always show input box when wrapping with a prefix.",
"description": "Always use the input box when logging with a prefix.",
"default": false
},
"wrap-console-log.alwaysUsePrefix": {
"type": "boolean",
"title": "Always log with the wrapped word as prefix.",
"description": "Always log with default prefix.",
"default": false
},
"wrap-console-log.format.wrap.logFunctionName": {
"markdownDescription": "Defines the function to use for default logging with no arguments. See also [`Log String`](#wrap-console-log.format.text.logString).",
"type": "string",
"default": "console.log",
"pattern": "^[a-zA-Z.-]+$"
},
"wrap-console-log.format.wrap.logString": {
"markdownDescription": "Enables custom control of the default log string. Use `$func` to specify the function name defined by [`Log Function`](#wrap-console-log.format.text.textFunction) and `$var` to specify the variable/text to log. `$var` can be specified **one** or **multible** times. ",
"type": "string",
"default": "$func($var)"
},
"wrap-console-log.format.wrap.prefixFunctionName": {
"markdownDescription": "Defines the function to use for logging with prefix. See also [`Wrap Advanced`](#wrap-console-log.format.text.prefixString).",
"type": "string",
"default": "console.log",
"pattern": "^[a-zA-Z.-]+$"
},
"wrap-console-log.format.wrap.prefixString": {
"markdownDescription": "Enables custom control of the prefix log string. Use `$func` to specify the function name defined by [`Wrap Function Name`](#wrap-console-log.format.text.prefixFunctionName) and `$var` to specify the variable/text to log. `$var` can be specified **one** or **multible** times. ",
"type": "string",
"default": "$func('$var:', $var)"
}
}
},
"commands": [
{
"command": "console.log.wrap",
"title": "Wrap console.log"
},
{
"command": "console.log.wrap.down",
"title": "Wrap down console log"
},
{
"command": "console.log.wrap.up",
"title": "Wrap up console log"
},
{
"command": "console.log.wrap.prefix",
"title": "Wrap prefix console log"
},
{
"command": "console.log.wrap.input",
"title": "Wrap input console log"
},
{
"command": "console.log.wrap.down.prefix",
"title": "Wrap down prefix console log"
},
{
"command": "console.log.wrap.up.prefix",
"title": "Wrap up prefix console log"
},
{
"command": "console.log.wrap.down.input",
"title": "Wrap down input console log"
},
{
"command": "console.log.wrap.up.input",
"title": "Wrap up input console log"
},
{
"command": "console.log.wrap.string",
"title": "Wrap console.log as string"
},
{
"command": "console.log.wrap.string.down",
"title": "Wrap down console.log as string"
},
{
"command": "console.log.wrap.string.up",
"title": "Wrap up console.log as string"
}
],
"keybindings": [
{
"command": "console.log.wrap",
"key": "ctrl+alt+w w",
"when": "editorTextFocus"
},
{
"command": "console.log.wrap.string",
"key": "alt+shift+w w",
"when": "editorTextFocus"
},
{
"command": "console.log.wrap.string.down",
"key": "alt+shift+w down",
"when": "editorTextFocus"
},
{
"command": "console.log.wrap.string.up",
"key": "alt+shift+w up",
"when": "editorTextFocus"
},
{
"command": "console.log.wrap.down",
"key": "ctrl+alt+w down",
"when": "editorTextFocus"
},
{
"command": "console.log.wrap.up",
"key": "ctrl+alt+w up",
"when": "editorTextFocus"
},
{
"command": "console.log.wrap.prefix",
"key": "ctrl+alt+w ctrl+alt+w",
"when": "editorTextFocus"
},
{
"command": "console.log.wrap.input",
"key": "ctrl+shift+alt+w w",
"when": "editorTextFocus"
},
{
"command": "console.log.wrap.down.prefix",
"key": "ctrl+alt+w ctrl+alt+down",
"when": "editorTextFocus"
},
{
"command": "console.log.wrap.up.prefix",
"key": "ctrl+alt+w ctrl+alt+up",
"when": "editorTextFocus"
},
{
"command": "console.log.wrap.down.input",
"key": "ctrl+shift+alt+w down",
"when": "editorTextFocus"
},
{
"command": "console.log.wrap.up.input",
"key": "ctrl+shift+alt+w up",
"when": "editorTextFocus"
}
]
},
"scripts": {
"vscode:prepublish": "yarn run compile",
"compile": "tsc -p ./",
"postinstall": "node ./node_modules/vscode/bin/install"
},
"devDependencies": {
"@types/node": "^8.10.25",
"typescript": "^3.1.4",
"vscode": "^1.1.34"
}
}