forked from midnightsyntax/vscode-wrap-console-log
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
223 lines (223 loc) · 8.6 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
{
"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.6.2",
"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": {
"title": "Wrap Console Log",
"type": "object",
"properties": {
"wrap-console-log.setCursorOnNewLine": {
"type": "boolean",
"title": "Configure the behavior of the cursor after a wrap up or down.",
"description": "When enabled the cursor will jump to the line where 'console.log' got inserted. If disabled the cursor will stay on the same line as when you executed the command.",
"default": false
},
"wrap-console-log.onEmptyLineAction": {
"type": "string",
"enum": [
"Insert",
"Replace"
],
"title": "The default action when logging up or down to empty lines",
"description": "When logging up or down the extension \"pushes\" the existing lines in the document by inserting 'console.log' with a new line. This is how 'Insert', the default behaviour, work. This setting controls if the same method should be used when targeting empty lines. When the target line is empty 'Insert' will move the empty line and place the log on its orginal location. 'Replace' on the other hand will replace the empty line, using the same line for the log.",
"default": "Insert"
},
"wrap-console-log.formatDocument": {
"type": "boolean",
"title": "Format Document after 'console.log' has been inserted.",
"description": "When enabled run \"editor.action.formatDocument\" after 'console.log' has been inserted.",
"default": false
},
"wrap-console-log.cursorPositionNewLine": {
"type": "string",
"enum": [
"Left",
"Right",
"Same"
],
"title": "Set the position of the cursor when it jumps to new lines.",
"description": "When 'setCursorOnNewLine' is enabled this setting controls where on the new line the cursor should be placed. If 'setCursorOnNewLine' is disabled this setting will have no effect.",
"default": "Right"
},
"wrap-console-log.alwaysInputBoxOnPrefix": {
"type": "boolean",
"title": "Always show input box when wrapping with a prefix.",
"description": "If true an input box will always show when logging with a prefix.",
"default": false
},
"wrap-console-log.alwaysUsePrefix": {
"type": "boolean",
"title": "Always log with the wrapped word as prefix.",
"description": "If true ALL wraps will log with the selected word as prefix.",
"default": false
},
"wrap-console-log.wrapText": {
"title": "The text to wrap with.",
"description": "Use $text to specify where in the string your variable/text should be placed.",
"type": "string",
"default": "console.log($txt);",
"pattern": "\\$txt"
}
}
},
"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": "tsc -p ./",
"compile": "tsc -watch -p ./",
"postinstall": "node ./node_modules/vscode/bin/install"
},
"devDependencies": {
"typescript": "^2.0.3",
"vscode": "^1.0.0",
"mocha": "^2.3.3",
"@types/node": "^6.0.40",
"@types/mocha": "^2.2.32"
}
}