-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpackage.json
203 lines (203 loc) · 5.28 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
{
"name": "symbol-masks",
"displayName": "Symbol Masks",
"publisher": "sporiley",
"description": "Mask symbols in your document with prettier text",
"repository": {
"url": "https://github.com/stevengeeky/symbol-masks"
},
"version": "0.0.4",
"engines": {
"vscode": "^1.43.0"
},
"categories": [
"Other"
],
"activationEvents": [
"*"
],
"icon": "screenshots/mask.png",
"contributes": {
"configuration": {
"title": "Symbol Masks",
"properties": {
"symbolMasks.masks": {
"type": "array",
"description": "An array of language masks",
"properties": {
"selector": {
"type": "string",
"description": "The document selector that the masks within this object should be applied to (can be a language (i.e. 'typescript'), a filename path (i.e. '**/*.js'), or an array of filename paths/languages (i.e. ['typescript', '**/*.js']))",
"default": "typescript"
},
"patterns": {
"type": "array",
"required": [
"pattern"
],
"properties": {
"pattern": {
"type": "string",
"description": "The regex to use to match all symbols this mask will get applied to"
},
"ignoreCase": {
"type": "boolean",
"description": "Whether or not to set the 'ignore case' flag when creating a regex from the given pattern",
"default": "false"
},
"replace": {
"oneOf": [
{
"type": "string",
"description": "The string that will visually replace all symbols that get matched"
},
{
"type": "object",
"description": "Case matching for pattern results",
"propertyNames": true,
"properties": {
"scope": {
"type": "string",
"description": "The (optional) scope to validate this match result against"
},
"text": {
"type": "string",
"description": "The text to show in place of this match result"
},
"hover": {
"type": "string",
"default": "You hovered over me!"
},
"backgroundColor": {
"type": "string",
"default": "#ffffff20"
},
"border": {
"type": "string",
"default": "1px solid #aaa"
},
"borderColor": {
"type": "string",
"default": "gray"
},
"color": {
"type": "string",
"default": "red"
},
"fontStyle": {
"type": "string",
"default": "italic"
},
"fontWeight": {
"type": "string",
"default": "bold"
},
"css": {
"type": "string",
"default": "text-decoration: underline"
}
}
}
]
},
"scope": {
"type": "string",
"description": "The (optional) textmate scope this mask should be applied to (Can be found via Ctrl+Shift+P with the command 'Developer: Inspect Editor Tokens and Scopes')",
"default": "keyword.operator"
},
"style": {
"type": "object",
"description": "The style used to decorate all replaced results",
"required": [],
"properties": {
"backgroundColor": {
"type": "string",
"default": "#ffffff20"
},
"border": {
"type": "string",
"default": "1px solid #aaa"
},
"borderColor": {
"type": "string",
"default": "gray"
},
"color": {
"type": "string",
"default": "red"
},
"fontStyle": {
"type": "string",
"default": "italic"
},
"fontWeight": {
"type": "string",
"default": "bold"
},
"css": {
"type": "string",
"default": "text-decoration: underline"
}
}
}
}
}
},
"default": [
{
"language": "typescript",
"patterns": [
{
"pattern": "(?<=[\\b\\s])===(?=[\\b\\s])",
"replace": "≡"
}
]
}
]
}
}
},
"configurationDefaults": {
"symbolMasks.masks": [
{
"language": "typescript",
"patterns": [
{
"pattern": "(?<=[\\b\\s])===(?=[\\b\\s])",
"replace": "≡",
"scope": "keyword.operator",
"style": {
"fontWeight": "bold"
}
}
]
}
]
}
},
"main": "./out/extension.js",
"scripts": {
"vscode:prepublish": "yarn run compile",
"compile": "tsc -p ./",
"lint": "eslint src --ext ts",
"watch": "tsc -watch -p ./",
"postinstall": "./node_modules/.bin/electron-rebuild -f -v 7.1.0"
},
"devDependencies": {
"@types/glob": "^7.1.1",
"@types/mocha": "^7.0.1",
"@types/node": "^12.11.7",
"@types/vscode": "^1.43.0",
"@typescript-eslint/eslint-plugin": "^2.18.0",
"@typescript-eslint/parser": "^2.18.0",
"eslint": "^6.8.0",
"glob": "^7.1.6",
"mocha": "^7.0.1",
"typescript": "^3.7.5",
"vscode-test": "^1.3.0"
},
"dependencies": {
"electron-rebuild": "^1.10.1",
"vscode-textmate": "^4.4.0"
}
}