-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
215 lines (215 loc) · 5.45 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
{
"name": "color-blocks",
"displayName": "Color Blocks",
"version": "2.2.0",
"description": "Highlight ranges of code lines using comments.",
"publisher": "zimonitrome",
"repository": {
"type": "git",
"url": "https://github.com/zimonitrome/vscode-color-blocks"
},
"categories": [
"Other",
"Snippets",
"Visualization"
],
"keywords": [
"comments",
"highlight",
"block",
"range",
"annotate"
],
"license": "SEE LICENSE IN LICENSE",
"engines": {
"vscode": "^1.63.0"
},
"icon": "media/icon.png",
"activationEvents": [
"onStartupFinished"
],
"main": "./dist/extension.js",
"contributes": {
"commands": [
{
"command": "color-blocks.add",
"title": "Add Color Block."
},
{
"command": "color-blocks.toggle",
"title": "Toggle enable/disable color blocks."
}
],
"keybindings": [
{
"command": "color-blocks.add",
"key": "ctrl+K ctrl+B"
}
],
"snippets": [
{
"path": "./src/snippets.code-snippets"
}
],
"configuration": [
{
"title": "Wrap Text",
"properties": {
"color-blocks.wrapText.enabled": {
"type": "boolean",
"default": false,
"description": "Make the color block shrink horizontally to match the minimum amount of code.",
"scope": "window",
"order": 0
},
"color-blocks.wrapText.padding": {
"type": "number",
"default": 1,
"description": "Padding to add if `wrapText` is enabled. Measured in characters.",
"scope": "window"
}
}
},
{
"title": "Standardize Color Brightness",
"properties": {
"color-blocks.standardizeColorBrightness.enabled": {
"type": "boolean",
"default": true,
"description": "Change colors to standardized brightness. Configurable with `backgroundColorBrightness` and `backgroundColorBrightness`",
"scope": "window",
"order": 0
},
"color-blocks.standardizeColorBrightness.background": {
"type": "number",
"default": 50,
"description": "Lightness value to use when standardizing background brightness.",
"scope": "window"
},
"color-blocks.standardizeColorBrightness.commentText": {
"type": "number",
"default": 80,
"description": "Lightness value to use when standardizing brightness of the text of the first line of the color block.",
"scope": "window"
}
}
},
{
"title": "Border",
"properties": {
"color-blocks.border.width": {
"type": "string",
"default": "0.3ch",
"description": "CSS border width.",
"scope": "window"
},
"color-blocks.border.radius": {
"type": "string",
"default": "0.5ch",
"description": "CSS border radius.",
"scope": "window"
},
"color-blocks.border.opacity": {
"type": "number",
"default": 0.4,
"description": "Opacity/alpha in the range 0-1.",
"scope": "window"
},
"color-blocks.border.style": {
"type": "string",
"default": "solid",
"description": "CSS border-style.",
"scope": "window"
}
}
},
{
"title": "Background",
"properties": {
"color-blocks.background.opacity": {
"type": "number",
"default": "0.2",
"description": "Opacity/alpha in the range 0-1.",
"scope": "window"
}
}
},
{
"title": "Comment Line",
"properties": {
"color-blocks.commentLine.color": {
"type": "boolean",
"default": true,
"description": "Apply color to the comment line text.",
"scope": "window"
},
"color-blocks.commentLine.lineOpacity": {
"type": "number",
"default": 0.4,
"description": "Opacity of the comment delimiter and color block arguments.",
"scope": "window"
},
"color-blocks.commentLine.commentFontWeight": {
"type": "string",
"default": "bold",
"description": "CSS font-weight of the main comment text.",
"scope": "window"
},
"color-blocks.commentLine.largeText": {
"type": "boolean",
"default": false,
"description": "Make the main comment text larger and in a sans serif font.",
"scope": "window"
}
}
},
{
"title": "Behavior",
"properties": {
"color-blocks.behavior.autoUpdate": {
"type": "boolean",
"default": true,
"description": "Automatically update color blocks when lines are added/removed inside its range.",
"scope": "window"
},
"color-blocks.behavior.enabled": {
"type": "boolean",
"default": true,
"description": "Toggle showing color blocks.",
"scope": "window"
}
}
}
]
},
"scripts": {
"vscode:prepublish": "npm run package",
"compile": "webpack",
"watch": "webpack --watch",
"package": "webpack --mode production --devtool hidden-source-map",
"compile-tests": "tsc -p . --outDir out",
"watch-tests": "tsc -p . -w --outDir out",
"pretest": "npm run compile-tests && npm run compile && npm run lint",
"lint": "eslint src --ext ts",
"deploy": "node ./publish.js"
},
"devDependencies": {
"@types/colornames": "^1.1.2",
"@types/json5": "^2.2.0",
"@types/node": "14.x",
"@types/vscode": "^1.63.0",
"@typescript-eslint/eslint-plugin": "^5.12.1",
"@typescript-eslint/parser": "^5.12.1",
"@vscode/test-electron": "^2.1.2",
"eslint": "^8.9.0",
"ts-loader": "^9.2.6",
"typescript": "^4.5.5",
"vsce": "^2.7.0",
"webpack": "^5.76.0",
"webpack-cli": "^4.9.2"
},
"dependencies": {
"colornames": "^1.1.1",
"json5": "^2.2.1"
}
}