-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
163 lines (163 loc) · 7.01 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
{
"name": "regexp",
"displayName": "RegExp Automation",
"description": "Facilitates automation of JavaScript flavored regular expressions.",
"version": "0.1.0",
"publisher":"cvogt729",
"license":"MIT",
"engines": {
"vscode": "^1.62.0"
},
"repository": {
"type": "git",
"url": "https://github.com/cvogt729/vscode-regexp-automation"
},
"categories": [
"Other"
],
"icon": "images/icon.png",
"keywords": [
"regex",
"regexp",
"regular expression",
"regular expressions",
"replace"
],
"activationEvents": [
"onCommand:regexp.modify.document",
"onCommand:regexp.modify.documents",
"onCommand:regexp.modify.selections",
"onCommand:regexp.modify.workspaces",
"onCommand:regexp.modify.clipboard",
"onCommand:regexp.modify.paste",
"onCommand:regexp.stringify"
],
"main": "./out/extension.js",
"contributes": {
"commands": [
{
"command": "regexp.modify.document",
"title": "Modify the active document",
"category": "RegExp"
},
{
"command": "regexp.modify.selections",
"title": "Modify selections in the active document",
"category": "RegExp"
},
{
"command": "regexp.modify.documents",
"title": "Modify all open documents",
"category": "RegExp"
},
{
"command": "regexp.modify.workspaces",
"title": "Modify documents in all open workspaces",
"category": "RegExp"
},
{
"command": "regexp.modify.clipboard",
"title": "Modify clipboard contents",
"category": "RegExp"
},
{
"command": "regexp.modify.paste",
"title": "Paste modified clipboard contents without altering clipboard",
"category": "RegExp"
},
{
"command": "regexp.stringify",
"title": "Stringify RegExp for JSON",
"category": "RegExp"
}
],
"configuration": {
"title": "RegExp Automation",
"properties":{
"regexp.args":{
"type":"object",
"description":"Dictionary of command parameters.",
"propertyNames":{
"pattern":"^(?!get$|has$|inspect$|update$).+$"
}
},
"regexp.actions":{
"type":"object",
"description":"Dictionary which contains named RegExp actions.",
"additionalProperties":false,
"patternProperties":{
"^(?!get$|has$|inspect$|update$).+$":{
"type":"array",
"description":"Contains a list of individual RegExps and/or references to other named RegExp actions. May include an optional description.",
"minItems":1,
"default":[
{ "description":"" },
{
"find":"",
"replace":"",
"literal":false,
"flags":"gm"
}
],
"items":{
"anyOf":[
{
"type":"object",
"description":"Executes a single RegExp. Supports properties: find, replace, literal, flags.",
"properties":{
"find":{
"type":"string",
"description":"Regular expression to match against."
},
"replace":{
"type":"string",
"description":"Replacement text for all RegExp matches."
},
"literal":{
"type":"boolean",
"description":"Specifies whether to perform the find-replace operation literally. The default value is false.",
"default":false
},
"flags":{
"type":"string",
"markdownDescription":"Specifies the flags parameter passed to the RegExp constructor. The global flag will be appended if not included. The default value is \"gm\" (global and multi-line). See [RegExp documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions#advanced_searching_with_flags) for more details.",
"default":"gm"
}
},
"additionalProperties":false,
"required":["find","replace"]
},
{
"type":"string",
"description":"Executes the RegExp action with the given name."
},
{
"type":"object",
"description":"A brief description of this RegExp action.",
"properties":{
"description":{
"type":"string",
"description":"A brief description of this RegExp action."
}
},
"additionalProperties":false,
"required":["description"]
}
]
}
}
}
}
}
}
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./"
},
"devDependencies": {
"@types/node": "16.x",
"@types/vscode": "1.x"
}
}