forked from moalamri/vscode-inline-fold
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
157 lines (157 loc) · 3.42 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
{
"name": "inline-fold",
"displayName": "Inline fold",
"description": "A custom decorator that \"fold\" matching content in single line",
"icon": "res/icon.png",
"version": "0.0.8",
"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.68.1"
},
"categories": [
"Other"
],
"activationEvents": [
"onStartupFinished"
],
"main": "./out/extension.js",
"contributes": {
"configuration": {
"type": "object",
"title": "Inline fold settings",
"properties": {
"inlineFold.supportedLanguages": {
"type": "array",
"order": 0,
"description": "Supported languages",
"items": {
"type": "string",
"description": "language names in lowercase"
},
"minItems": 1,
"default": [
"html",
"svelte",
"javascript",
"typescript",
"javascriptreact",
"typescriptreact"
]
},
"inlineFold.regex": {
"type": "string",
"order": 1,
"description": "Regex to match",
"default": "class=\"([a-zA-Z0-9-\\s]+)(?=\")",
"examples": [
"class=\"([a-zA-Z0-9-\\s]+)(?=\")",
"id=\"([a-zA-Z0-9-\\s]+)(?=\")"
]
},
"inlineFold.regexFlags": {
"type": "string",
"order": 2,
"description": "Regex flags",
"default": "g",
"examples": [
"g",
"gi"
]
},
"inlineFold.regexGroup": {
"type": "string",
"order": 3,
"description": "Regex matched group number that will be folded",
"default": "1",
"examples": [
"1",
"2"
]
},
"inlineFold.maskChar": {
"type": "string",
"order": 4,
"description": "The mask that covers the folded text",
"default": "◦◦◦",
"examples": [
"◦◦◦",
"▶▶▶",
"..."
]
},
"inlineFold.maskColor": {
"type": "string",
"order": 5,
"description": "the color of the covering mask in hex",
"default": "#68D7AC",
"examples": [
"#68D7AC",
"#FF0000"
]
},
"inlineFold.unfoldedOpacity": {
"type": "number",
"order": 6,
"description": "The opacity of the unfolded text in css style from 0.0 to 1.0",
"default": 0.8,
"enum": [
0.0,
0.1,
0.2,
0.3,
0.4,
0.5,
0.6,
0.7,
0.8,
0.9,
1.0
]
},
"inlineFold.after": {
"type": "string",
"order": 7,
"description": "(Optional) Add any character to be added after the folded content",
"default": "",
"examples": [
"",
"<-",
"<<"
]
}
},
"required": [
"inlineFold.regex",
"inlineFold.regexFlags",
"inlineFold.regexGroup",
"inlineFold.maskChar",
"inlineFold.supportedLanguages"
]
}
},
"scripts": {
"vscode:prepublish": "pnpm run compile",
"vscode:package": "vsce package",
"vscode:publish": "vsce publish",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./"
},
"devDependencies": {
"@types/vscode": "1.68.1",
"@types/node": "^17.0.33",
"typescript": "4.7.4"
},
"__metadata": {
"id": "4dc4b505-dda3-4ac6-b839-397f8cf0adcc",
"publisherDisplayName": "Mohammed Alamri",
"publisherId": "41376028-10e6-4784-aff4-9c6be1c5c66e",
"isPreReleaseVersion": false
}
}