-
Notifications
You must be signed in to change notification settings - Fork 16
/
package.json
211 lines (210 loc) · 5.7 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
204
205
206
207
208
209
210
211
{
"name": "ast-grep-vscode",
"version": "0.1.13",
"description": "ast-grep VSCode is a structural search and replace extension for many languages.",
"keywords": [
"ast",
"ast-grep",
"code search",
"language-server",
"lint",
"multiline search",
"refactor",
"rewrite",
"search and replace",
"structural replace",
"structural search",
"structural",
"syntax",
"vscode",
"extension"
],
"publisher": "ast-grep",
"preview": false,
"displayName": "ast-grep VSCode: Structural Search, Replace and more",
"homepage": "https://ast-grep.github.io",
"repository": "https://github.com/ast-grep/ast-grep-vscode",
"author": "Herrington Darkholme",
"license": "MIT",
"main": "./out/extension.js",
"engines": {
"vscode": "^1.94.0"
},
"icon": "media/favicon.png",
"categories": ["Linters", "Programming Languages", "Other"],
"activationEvents": ["onStartupFinished"],
"contributes": {
"commands": [
{
"command": "ast-grep.executeAutofix",
"title": "Fix all auto-fixable Problems",
"category": "ast-grep"
},
{
"command": "ast-grep.restartLanguageServer",
"title": "Restart Language Server",
"category": "ast-grep"
},
{
"command": "ast-grep.searchInFolder",
"title": "ast-grep: Find pattern in this folder"
},
{
"command": "ast-grep.clearSearchResults",
"title": "Clear Search Results",
"icon": {
"light": "media/clear-light.svg",
"dark": "media/clear-dark.svg"
}
},
{
"command": "ast-grep.refreshSearch",
"title": "Refresh Search",
"icon": {
"light": "media/refresh-light.svg",
"dark": "media/refresh-dark.svg"
}
},
{
"command": "ast-grep.collapseAll",
"title": "Collapse All",
"icon": {
"light": "media/collapse-light.svg",
"dark": "media/collapse-dark.svg"
}
},
{
"command": "ast-grep.expandAll",
"title": "Expand All",
"icon": {
"light": "media/expand-light.svg",
"dark": "media/expand-dark.svg"
}
},
{
"command": "ast-grep.searchByCode",
"title": "ast-grep: Search by Code"
}
],
"menus": {
"explorer/context": [
{
"command": "ast-grep.searchInFolder",
"group": "4_search",
"when": "explorerResourceIsFolder"
}
],
"editor/context": [
{
"command": "ast-grep.searchByCode",
"when": "editorHasSelection",
"group": "navigation"
}
],
"view/title": [
{
"command": "ast-grep.collapseAll",
"when": "view == ast-grep.search.input && !ast-grep.searchDefaultCollapse",
"group": "navigation"
},
{
"command": "ast-grep.expandAll",
"when": "view == ast-grep.search.input && ast-grep.searchDefaultCollapse",
"group": "navigation"
},
{
"command": "ast-grep.clearSearchResults",
"when": "view == ast-grep.search.input",
"group": "navigation"
},
{
"command": "ast-grep.refreshSearch",
"when": "view == ast-grep.search.input",
"group": "navigation"
}
]
},
"configuration": {
"type": "object",
"title": "ast-grep",
"properties": {
"astGrep.serverPath": {
"scope": "window",
"type": "string",
"description": "Specify the language server binary path. It can be a relative path to workspace root or an absolute path."
},
"astGrep.configPath": {
"scope": "resource",
"type": "string",
"description": "Customize ast-grep config file path relative. Default is `sgconfig.yml`."
}
}
},
"viewsContainers": {
"activitybar": [
{
"id": "ast-grep-sidebar-view",
"title": "ast-grep",
"icon": "media/favicon.svg"
}
]
},
"views": {
"ast-grep-sidebar-view": [
{
"type": "webview",
"id": "ast-grep.search.input",
"name": "Structural Search"
}
]
}
},
"qna": "https://github.com/ast-grep/ast-grep/discussions",
"sponsor": {
"url": "https://github.com/sponsors/HerringtonDarkholme"
},
"scripts": {
"vscode:prepublish": "npm run compile",
"pretest": "npm run compile",
"test": "node ./scripts/test/runTest.mjs",
"compile": "node ./scripts/build.mjs",
"typecheck": "tsc --noEmit",
"lint": "biome lint .",
"format:check": "biome format .",
"watch": "node ./scripts/build.mjs --watch",
"prepare": "husky install"
},
"lint-staged": {
"**/*": "biome format --write --no-errors-on-unmatched",
"*.{ts, js}": "biome lint"
},
"devDependencies": {
"@biomejs/biome": "1.9.4",
"@stylexjs/esbuild-plugin": "0.9.3",
"@stylexjs/stylex": "0.9.3",
"@types/glob": "8.1.0",
"@types/mocha": "10.0.10",
"@types/node": "22.9.3",
"@types/react": "18.3.12",
"@types/react-dom": "18.3.1",
"@types/vscode": "1.94.0",
"@vscode/test-electron": "2.4.1",
"@vscode/webview-ui-toolkit": "1.4.0",
"babel-plugin-syntax-hermes-parser": "0.25.1",
"esbuild": "0.24.0",
"glob": "11.0.0",
"husky": "9.1.7",
"lint-staged": "15.2.10",
"mocha": "10.8.2",
"react": "18.3.1",
"react-dom": "18.3.1",
"react-icons": "5.3.0",
"react-use": "17.5.1",
"react-virtuoso": "4.12.1",
"tslib": "2.8.1",
"tsx": "4.19.2",
"typescript": "5.7.2",
"unport": "0.6.0",
"vscode-languageclient": "9.0.1"
}
}