-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpackage.json
203 lines (203 loc) · 7.18 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
{
"publisher": "banlify",
"name": "debugger-for-console",
"displayName": "Debugger for Console",
"version": "0.15.1",
"description": "Quickly create console debugging information for multiple languages.",
"author": "Libon <[email protected]>",
"license": "MIT",
"homepage": "https://github.com/libondev/debugger-for-console#readme",
"repository": {
"type": "git",
"url": "https://github.com/libondev/debugger-for-console"
},
"bugs": {
"url": "https://github.com/libondev/debugger-for-console/issues"
},
"keywords": [],
"categories": [
"Other",
"Debuggers"
],
"sideEffects": false,
"main": "./dist/extension.js",
"icon": "res/icon.png",
"engines": {
"vscode": "^1.55.0"
},
"activationEvents": [
"onCommand:debugger-for-console.create",
"onCommand:debugger-for-console.before",
"onCommand:debugger-for-console.remove",
"onCommand:debugger-for-console.comment",
"onCommand:debugger-for-console.uncomment"
],
"contributes": {
"commands": [
{
"title": "Debugger for Console: Insert a debug statement after the current line",
"command": "debugger-for-console.create",
"when": "editorTextFocus && !editorReadonly"
},
{
"title": "Debugger for Console: Insert a debug statement before the current line",
"command": "debugger-for-console.before",
"when": "editorTextFocus && !editorReadonly"
},
{
"title": "Debugger for Console: Comment all debugger statements",
"command": "debugger-for-console.comment",
"when": "editorTextFocus && !editorReadonly"
},
{
"title": "Debugger for Console: Uncomment all debugger statements",
"command": "debugger-for-console.uncomment",
"when": "editorTextFocus && !editorReadonly"
},
{
"title": "Debugger for Console: Remove all debugger statements",
"command": "debugger-for-console.remove",
"when": "editorTextFocus && !editorReadonly"
},
{
"title": "Debugger for Console: Update the latest workbench configuration",
"command": "debugger-for-console.update",
"when": "editorTextFocus && !editorReadonly"
}
],
"keybindings": [
{
"key": "ctrl+shift+down",
"command": "debugger-for-console.create",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+shift+up",
"command": "debugger-for-console.before",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+shift+/",
"command": "debugger-for-console.comment",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+shift+u",
"command": "debugger-for-console.uncomment",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+shift+backspace",
"command": "debugger-for-console.remove",
"when": "editorTextFocus && !editorReadonly"
}
],
"configuration": {
"type": "object",
"title": "Debugger for Console",
"properties": {
"debugger-for-console.emoji": {
"type": "boolean",
"default": true,
"description": "Determine whether to insert an emoji."
},
"debugger-for-console.quote": {
"type": "string",
"enum": [
"'",
"\"",
"`"
],
"default": "'",
"description": "Specify the type of quotation marks to use when inserting statements. \nTips: Some languages that require the use of double quotes may not support this feature, e.g. Go"
},
"debugger-for-console.fileDepth": {
"type": "number",
"default": 2,
"description": "Set the relative path depth of files. (Set to 0 to disable the path)."
},
"debugger-for-console.autoSave": {
"type": "boolean",
"default": false,
"description": "Automatically save the current file after executing an operation."
},
"debugger-for-console.lineNumber": {
"type": "boolean",
"default": true,
"description": "Determine whether to insert the line number."
},
"debugger-for-console.outputNewline": {
"type": "boolean",
"default": false,
"description": "Show variables and logos in rows."
},
"debugger-for-console.onlyOutputVariable": {
"type": "string",
"enum": [
"auto",
"enable"
],
"default": "auto",
"enumDescriptions": [
"Automatically detect the programming language of the current document.",
"Remove all redundant prompts and only output variables."
],
"description": "Set to `enable` to cancel all redundant information and output only variables instead..\nTips: When the log output method of some languages does not support multiple parameters, it will be temporarily switched to `enable` internally, such as `Java`.. If it is a custom function, it should be set to \"enable\"."
},
"debugger-for-console.insertEmptyLine": {
"type": "string",
"default": "none",
"enum": [
"none",
"before",
"after",
"both",
"direction",
"directionReverse"
],
"enumDescriptions": [
"Do not insert an empty line.",
"Insert an empty line before the debug statement.",
"Insert an empty line after the debug statement.",
"Insert an empty line before and after the debug statement.",
"Insert an empty line according to the direction of the debug statement.",
"Insert an empty line according to the reverse direction of the debug statement."
],
"description": "Insert an empty line before or after the debug statement."
},
"debugger-for-console.wrappers": {
"type": "object",
"description": "Customize debugging statements for different languages. \nTips: We will replace {VALUE} with the logger, it is optional, so you can also modify it to 'debugger'",
"default": {
"csharp": "Console.Log({VALUE})",
"go": "println({VALUE})",
"java": "System.out.println({VALUE});",
"javascript": "console.log({VALUE})",
"php": "var_dump({VALUE})",
"python": "print({VALUE})",
"rust": "println!({VALUE})",
"default": "console.log({VALUE})"
}
}
}
}
},
"scripts": {
"dev": "tsup src/extension.ts --watch --external vscode",
"build": "npm run typecheck && tsup src/extension.ts --external vscode",
"vscode:prepublish": "npm run build",
"pack": "npx vsce package --no-dependencies",
"release": "bumpp --commit --push --tag",
"typecheck": "tsc --noEmit",
"lint": "eslint src --ext ts ",
"lint:fix": "eslint src --ext ts --fix"
},
"devDependencies": {
"@antfu/eslint-config": "^0.39.8",
"@types/vscode": "1.55.0",
"@vscode/vsce": "^2.19.0",
"eslint": "^8.45.0",
"tsup": "^7.1.0",
"typescript": "^4.9.5"
}
}