Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
224 lines (224 loc) · 9.88 KB
/
Copy pathpackage.json
File metadata and controls
224 lines (224 loc) · 9.88 KB
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
224
{
"name": "inline-fold",
"displayName": "Inline fold v2",
"description": "Folds verbose inline content for better readability. Supports regex to match any content.",
"icon": "res/icon.png",
"version": "2.0.0",
"publisher": "moalamri",
"homepage": "https://github.com/moalamri/vscode-inline-fold",
"bugs": "https://github.com/moalamri/vscode-inline-fold/issues",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/moalamri/vscode-inline-fold"
},
"engines": {
"vscode": "^1.116.0"
},
"categories": [
"Visualization",
"Other"
],
"activationEvents": [
"onStartupFinished"
],
"main": "./out/extension.js",
"contributes": {
"commands": [
{
"command": "inlineFold.toggle",
"title": "Inline Fold: Toggle"
},
{
"command": "inlineFold.clearCache",
"title": "Inline Fold: Clear session cache"
}
],
"configuration": {
"type": "object",
"title": "Inline Fold",
"properties": {
"inlineFold.autoFold": {
"type": "boolean",
"scope": "language-overridable",
"description": "Set the default state of inline fold when opening a file",
"default": true
},
"inlineFold.togglePerFile": {
"type": "boolean",
"scope": "language-overridable",
"description": "Toggle inline fold per file, instead of per workspace",
"default": true
},
"inlineFold.useGlobal": {
"type": "boolean",
"scope": "language-overridable",
"description": "Change the order to use global configuration before language-specific",
"default": false
},
"inlineFold.supportedLanguages": {
"type": "array",
"description": "Supported languages",
"items": {
"type": "string",
"description": "Language Ids: https://code.visualstudio.com/docs/languages/identifiers#_known-language-identifiers"
},
"minItems": 1,
"default": [
"astro",
"vue",
"html",
"svelte",
"vue-html",
"php",
"blade",
"erb",
"twig",
"nunjucks",
"django-html",
"jinja-html",
"javascript",
"typescript",
"javascriptreact",
"typescriptreact"
]
},
"inlineFold.regex": {
"type": "string",
"description": "Regex to match",
"scope": "language-overridable",
"default": "(class|className)=(({(`|))|(['\"`]))(.*?)(\\2|(\\4)})",
"examples": [
"(class|className)=(({(`|))|(['\"`]))(.*?)(\\2|(\\4)})",
"(class|className)=[`'{\"]([^`'\"}]+)[`'\"}]",
"id=\"([a-zA-Z0-9-\\s]+)(?=\")"
]
},
"inlineFold.regexFlags": {
"type": "string",
"scope": "language-overridable",
"description": "Regex flags",
"default": "g",
"examples": [
"g",
"gi"
]
},
"inlineFold.regexGroup": {
"type": [
"string",
"number"
],
"scope": "language-overridable",
"description": "Regex capture group number for content that will be folded",
"default": "6",
"examples": [
"1",
"2",
"3",
"4",
"5",
"6"
]
},
"inlineFold.maskChar": {
"type": "string",
"scope": "language-overridable",
"description": "The mask that covers the folded text",
"default": "◦◦◦",
"examples": [
"◦◦◦",
"▶▶▶",
"⌨"
]
},
"inlineFold.maskColor": {
"type": "string",
"scope": "language-overridable",
"description": "The color of the covering mask in hex",
"default": "#68D7AC",
"examples": [
"#68D7AC",
"#FF0000"
]
},
"inlineFold.unfoldedOpacity": {
"type": "number",
"scope": "language-overridable",
"description": "The opacity of the unfolded text (from 0 to 1)",
"default": 0.7,
"enum": [
0,
0.1,
0.2,
0.3,
0.4,
0.5,
0.6,
0.7,
0.8,
0.9,
1
]
},
"inlineFold.after": {
"type": "string",
"scope": "language-overridable",
"description": "(Optional) Add any text/character to be appended to the folded text",
"default": "",
"examples": [
"+",
"<-",
"<<"
]
},
"inlineFold.unfoldOnLineSelect": {
"type": "boolean",
"scope": "language-overridable",
"description": "(Optional) unfold the line when any part of the line is selected",
"default": false
},
"inlineFold.disableInDiffEditor": {
"type": "boolean",
"scope": "language-overridable",
"description": "(Optional) disable fold in diff editor",
"default": false
}
},
"required": [
"inlineFold.regex",
"inlineFold.regexFlags",
"inlineFold.regexGroup",
"inlineFold.maskChar",
"inlineFold.supportedLanguages"
]
}
},
"scripts": {
"vscode:prepublish": "npm run compile",
"package": "vsce package",
"publish": "vsce publish",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"test": "npm run compile && vscode-test",
"prettier": "prettier --write \"src/**/*.{ts,js,json,md}\""
},
"devDependencies": {
"@types/mocha": "^10.0.10",
"@types/node": "22.19.17",
"@types/vscode": "^1.116.0",
"@vscode/test-cli": "^0.0.12",
"@vscode/test-electron": "^2.5.2",
"typescript": "^6.0.2",
"prettier": "^3.8.3"
},
"__metadata": {
"id": "4dc4b505-dda3-4ac6-b839-397f8cf0adcc",
"publisherDisplayName": "Alamri",
"publisherId": "4b757094-d011-6968-816e-7257445a6afd",
"isPreReleaseVersion": false,
"updated": true,
"preRelease": false,
"installedTimestamp": 1657117103571
}
}