-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
181 lines (181 loc) · 6.73 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
{
"name": "dim",
"displayName": "dim",
"description": "Define rules to reduce opacity of repeating lines or blocks to be able to focus in main logic",
"publisher": "ufukty",
"version": "2.1.1",
"engines": {
"vscode": "^1.78.0"
},
"categories": [
"Other"
],
"keywords": [
"light",
"code reading"
],
"activationEvents": [
"onStartupFinished"
],
"main": "./out/extension.js",
"contributes": {
"commands": [
{
"command": "dim.disableDimForCurrentEditor",
"title": "Disable Dim for current editor"
},
{
"command": "dim.enableDimForCurrentEditor",
"title": "Enable Dim for current editor"
},
{
"command": "dim.toggleDimForCurrentEditor",
"title": "Toggle Dim for current editor"
}
],
"configuration": {
"title": "dim",
"properties": {
"dim.rules": {
"default": [],
"scope": "language-overridable",
"description": "List of rules that will be used by dim to decide which part of code will be dimmed. A rule can be in one of two types: single-line or multi-line",
"type": "array",
"items": {
"type": "object",
"oneOf": [
{
"properties": {
"start": {
"type": "string"
},
"end": {
"type": "string"
},
"opacity": {
"type": "string",
"enum": [
"min",
"mid",
"max"
]
},
"maxLinesBetween": {
"type": "number",
"default": 5
},
"ignoreMatchingBraces": {
"type": "boolean",
"description": "(Experimantal) Ignore matching-number of opening and closing braces when searching for multi-line rules contains closing brace as closing pattern.",
"default": true
}
},
"required": [
"start",
"end"
]
},
{
"properties": {
"rule": {
"type": "string"
},
"opacity": {
"type": "string",
"enum": [
"min",
"mid",
"max"
]
}
},
"required": [
"rule"
]
}
]
}
},
"dim.valueForMinTier": {
"type": "number",
"default": 0.25,
"scope": "window",
"description": "Actual opacity value for min opacity rules.",
"minimum": 0,
"maximum": 1
},
"dim.valueForMidTier": {
"type": "number",
"default": 0.5,
"scope": "window",
"description": "Actual opacity value for mid opacity rules.",
"minimum": 0,
"maximum": 1
},
"dim.valueForMaxTier": {
"type": "number",
"default": 0.75,
"scope": "window",
"description": "Actual opacity value for max opacity rules.",
"minimum": 0,
"maximum": 1
},
"dim.defaultOpacityTier": {
"type": "string",
"scope": "window",
"enum": [
"min",
"mid",
"max"
],
"default": "mid",
"description": "The default opacity will be assumed for rules that doesn't specify"
},
"dim.defaultScanLimit": {
"type": "number",
"default": 1000,
"scope": "language-overridable",
"description": "Only the first 'n' lines will be searched for matches. Exceeding will be ignored."
},
"dim.defaultMaxLinesBetween": {
"type": "number",
"default": 5
}
}
}
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"pretest": "npm run compile && npm run lint",
"lint": "eslint src --ext ts",
"test": "node ./out/test/runTest.js"
},
"devDependencies": {
"@types/glob": "^8.1.0",
"@types/lodash": "^4.14.194",
"@types/mocha": "^10.0.1",
"@types/node": "16.x",
"@types/vscode": "^1.78.0",
"@typescript-eslint/eslint-plugin": "^5.59.1",
"@typescript-eslint/parser": "^5.59.1",
"@vscode/test-electron": "^2.3.0",
"eslint": "^8.39.0",
"glob": "^8.1.0",
"mocha": "^10.2.0",
"typescript": "^5.0.4"
},
"dependencies": {
"lodash": "^4.17.21"
},
"icon": "media/icon.png",
"bugs": {
"url": "https://github.com/ufukty/dim/issues"
},
"repository": {
"type": "git",
"url": "https://github.com/ufukty/dim"
},
"homepage": "https://github.com/ufukty/dim"
}