-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpackage.json
200 lines (200 loc) · 6.05 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
{
"name": "line-width-indicator",
"displayName": "Line Width Indicator",
"description": "Shows how many characters you can type until line limit is reached. Quickly add/remove format ignore comments.",
"publisher": "lbragile",
"version": "0.0.7",
"engines": {
"vscode": "^1.46.0"
},
"author": {
"name": "Lior Bragilevsky",
"homepage": "https://www.github.com/lbragile"
},
"license": "MIT",
"bugs": {
"url": "https://github.com/lbragile/Line-Width-Indicator/issues",
"email": "[email protected]"
},
"repository": {
"type": "git",
"url": "https://github.com/lbragile/Line-Width-Indicator.git"
},
"homepage": "https://github.com/lbragile/Line-Width-Indicator/blob/master/README.md",
"categories": [
"Formatters",
"Other"
],
"keywords": [
"word count",
"line limit",
"character count",
"character count indicator"
],
"icon": "images/lwi-logo128.png",
"galleryBanner": {
"color": "#BBDDFF",
"theme": "light"
},
"activationEvents": [
"onStartupFinished"
],
"main": "./dist/extension.js",
"contributes": {
"commands": [
{
"command": "LWI.toggleState",
"title": "Enable/Disable LWI"
},
{
"command": "LWI.toggleComment",
"title": "Add/Remove Format Ignore Comment"
}
],
"keybindings": [
{
"command": "LWI.toggleState",
"key": "ctrl+shift+i",
"when": "editorTextFocus"
},
{
"command": "LWI.toggleComment",
"key": "ctrl+shift+/",
"when": "editorTextFocus"
}
],
"configuration": {
"title": "Line Width Indicator",
"properties": {
"LWI.breakpoints": {
"type": "array",
"default": [
{
"color": "rgb(0, 255, 0, 0.6)",
"column": 110
},
{
"color": "rgb(255, 255, 0, 0.6)",
"column": 115
},
{
"color": "rgb(255, 0, 0, 0.6)",
"column": 120
}
],
"description": "The counter will be a given color when its count is below that column's respective value."
},
"LWI.excludedLanguages": {
"type": "array",
"default": [
"json",
"jsonc",
"css",
"html",
"markdown",
"plaintext",
"scss",
"yaml"
],
"markdownDescription": "An array of [languages identifiers](https://code.visualstudio.com/docs/languages/identifiers#_known-language-identifiers) for which you wish not to use the 'Line Width Indicator' extension."
},
"LWI.ignoreComment": {
"type": "string",
"default": "// prettier-ignore",
"description": "A comment that is added to preserve the current line formatting (no wrapping). Depending on your formatter, this will differ.",
"minLength": 4,
"maxLength": 50,
"pattern": "//\\s[a-z]+"
},
"LWI.style.margin": {
"type": "number",
"default": 10,
"description": "In pixels, this adds horizontal spacing between the typed text and counter.",
"minimum": 5,
"maximum": 50
},
"LWI.style.fontStyle": {
"type": "string",
"default": "normal",
"enum": [
"normal",
"italic",
"oblique"
],
"enumDescriptions": [
"The browser displays a normal font style. This is default",
"The browser displays an italic font style (special font version)",
"The browser displays an oblique font style (slightly slanted to right)"
]
},
"LWI.style.fontWeight": {
"type": "string",
"default": "normal",
"enum": [
"100",
"200",
"300",
"normal",
"500",
"600",
"bold",
"800",
"900"
],
"enumDescriptions": [
"Defines from thin to thick characters. 400 is the same as normal, and 700 is the same as bold"
]
},
"LWI.style.backgroundColor": {
"type": "string",
"default": "transparent",
"description": "General string - white | transparent - or HEX - #FFF | #FFF7 - or RGBA - rgba(255, 255, 255, 0.5) - that will be used as the counter's background.",
"pattern": "#[a-zA-Z0-9]{3,4}|rgba?\\(([0-9.]{1,5}(,\\s)?){3,4}\\)|[a-z]{3,15}",
"minLength": 4,
"maxLength": 25
}
}
}
},
"badges": [
{
"url": "https://img.shields.io/visual-studio-marketplace/v/lbragile.line-width-indicator?label=Version&style=flat-square",
"description": "VS Marketplace Version",
"href": "https://marketplace.visualstudio.com/items?itemName=lbragile.line-width-indicator"
},
{
"url": "https://img.shields.io/github/license/lbragile/Line-Width-Indicator?&label=License&&style=flat-square",
"description": "License",
"href": "https://github.com/lbragile/Line-Width-Indicator/blob/master/LICENSE.md"
}
],
"scripts": {
"vscode:prepublish": "npm run package",
"compile": "webpack",
"watch": "webpack --watch",
"package": "webpack --mode production --devtool hidden-source-map",
"test-compile": "tsc -p ./",
"test-watch": "tsc -watch -p ./",
"pretest": "npm run test-compile && npm run lint",
"lint": "eslint src --ext ts",
"test": "node ./out/test/runTest.js"
},
"devDependencies": {
"@types/glob": "^7.1.3",
"@types/mocha": "^8.0.4",
"@types/node": "^12.11.7",
"@types/sinon": "^9.0.11",
"@types/vscode": "^1.46.0",
"@typescript-eslint/eslint-plugin": "^4.14.1",
"@typescript-eslint/parser": "^4.14.1",
"eslint": "^7.19.0",
"glob": "^7.1.6",
"mocha": "^8.2.1",
"sinon": "^10.0.0",
"ts-loader": "^8.0.14",
"typescript": "^4.1.3",
"vscode-test": "^1.5.0",
"webpack": "^5.19.0",
"webpack-cli": "^4.4.0"
}
}