-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathpackage.json
More file actions
327 lines (327 loc) · 9.26 KB
/
package.json
File metadata and controls
327 lines (327 loc) · 9.26 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
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
{
"name": "vscode-buf",
"displayName": "Buf",
"description": "Visual Studio Code support for Buf",
"version": "0.8.0",
"icon": "logo.png",
"publisher": "bufbuild",
"repository": {
"type": "git",
"url": "https://github.com/bufbuild/vscode-buf.git"
},
"bugs": {
"url": "https://github.com/bufbuild/vscode-buf/issues"
},
"license": "Apache-2.0",
"licenses": [
{
"type": "Apache-2.0",
"url": "http://www.apache.org/licenses/LICENSE-2.0"
}
],
"engines": {
"vscode": "^1.95.0"
},
"categories": [
"Formatters",
"Linters"
],
"keywords": [
"proto",
"proto3",
"protobuf",
"protocol buffers",
"buf",
"bufbuild",
"lint",
"format"
],
"activationEvents": [
"workspaceContains:**/*.proto",
"workspaceContains:**/buf.yaml",
"workspaceContains:**/buf.lock",
"workspaceContains:**/buf.mod",
"workspaceContains:**/buf.work",
"workspaceContains:**/buf.gen.yaml",
"workspaceContains:**/buf.work.yaml"
],
"contributes": {
"//": "This is kept in alphabetical order. https://code.visualstudio.com/api/references/contribution-points",
"commands": [
{
"command": "buf.build",
"category": "Buf",
"icon": "$(files)",
"title": "Build",
"description": "Run `buf build` across VS Code workspace(s)."
},
{
"command": "buf.configinit",
"category": "Buf",
"icon": "$(file-add)",
"title": "Init",
"description": "Run `buf config init` to initialize a new Buf workspace"
},
{
"command": "buf.configlsbreakingrules",
"category": "Buf",
"icon": "$(list-unordered)",
"title": "List available breaking change detection rules."
},
{
"command": "buf.configlslintrules",
"category": "Buf",
"icon": "$(list-unordered)",
"title": "List available lint rules."
},
{
"command": "buf.configlsmodules",
"category": "Buf",
"icon": "$(folder-library)",
"title": "List modules in workspace."
},
{
"command": "buf.depprune",
"category": "Buf",
"icon": "$(gather)",
"title": "Prune module dependencies.",
"description": "Run `buf dep prune` across VS Code workspace(s) to prune unused buf.lock dependencies."
},
{
"command": "buf.depupdate",
"category": "Buf",
"icon": "$(repo-pull)",
"title": "Update module dependencies.",
"description": "Run `buf dep update` across VS Code workspace(s) to update buf.lock dependencies."
},
{
"command": "buf.generate",
"category": "Buf",
"icon": "$(file-submodule)",
"title": "Generate",
"description": "Run `buf generate` across VS Code workspace(s)."
},
{
"command": "buf.lsfiles",
"category": "Buf",
"icon": "$(files)",
"title": "List module files.",
"description": "List module files across VS Code workspace(s)."
},
{
"command": "buf.price",
"category": "Buf",
"icon": "$(briefcase)",
"title": "Price for BSR paid plans.",
"description": "Check the price of BSR paid plans across VS Code workspace(s)."
},
{
"command": "buf.stats",
"category": "Buf",
"icon": "$(graph-line)",
"title": "Module stats",
"description": "Get stats for Buf modules across VS Code workspace(s)."
},
{
"command": "buf.install",
"category": "Buf",
"icon": "$(cloud-download)",
"title": "Install CLI",
"description": "Install the Buf CLI from GitHub releases."
},
{
"command": "buf.showOutput",
"category": "Buf",
"icon": "$(output)",
"title": "Show Buf Output"
},
{
"command": "buf.startLanguageServer",
"category": "Buf",
"icon": "$(debug-start)",
"title": "Start Buf Language Server"
},
{
"command": "buf.stopLanguageServer",
"category": "Buf",
"icon": "$(debug-stop)",
"title": "Stop Buf Language Server"
},
{
"command": "buf.update",
"category": "Buf",
"icon": "$(sync)",
"title": "Update CLI",
"description": "Check for updates and install the latest version of the Buf CLI."
}
],
"configuration": {
"title": "Buf",
"properties": {
"buf.commandLine.path": {
"type": "string",
"description": "The path to a specific install of Buf to use. Relative paths are supported and are relative to the workspace root."
},
"buf.commandLine.version": {
"type": "string",
"description": "Specific version (git tag e.g. 'v1.53.0') of Buf release to download and install."
},
"buf.restartAfterCrash": {
"type": "boolean",
"default": true,
"description": "Automatically restart Buf (up to 4 times) if it crashes."
},
"buf.checkUpdates": {
"type": "boolean",
"default": true,
"description": "Check for language server updates on startup."
},
"buf.enableHover": {
"type": "boolean",
"default": true,
"description": "Enable hover features provided by the language server."
},
"buf.enable": {
"type": "boolean",
"default": true,
"description": "Enable Buf language server features."
},
"buf.debug": {
"type": "boolean",
"default": false,
"description": "Enable debug mode."
},
"buf.log-format": {
"type": [
"string",
"null"
],
"enum": [
"text",
"color",
"json"
],
"default": "text",
"description": "Buf language server log format."
},
"buf.checks.breaking.againstStrategy": {
"type": "string",
"enum": [
"disk",
"git"
],
"default": "git",
"description": "The strategy to use when checking breaking changes against a specific reference."
},
"buf.checks.breaking.againstGitRef": {
"type": "string",
"default": "refs/remotes/origin/HEAD",
"description": "The Git reference to check breaking changes against."
}
}
},
"configurationDefaults": {
"[proto]": {
"editor.formatOnSave": true
}
},
"grammars": [
{
"language": "proto",
"scopeName": "source.proto",
"path": "./syntaxes/proto.json"
},
{
"language": "proto-decl",
"scopeName": "source.proto-decl",
"path": "./syntaxes/proto-decl.json"
}
],
"jsonValidation": [
{
"fileMatch": "buf.yaml",
"url": "https://www.schemastore.org/buf.json"
},
{
"fileMatch": "buf.gen.yaml",
"url": "https://www.schemastore.org/buf.gen.json"
}
],
"languages": [
{
"id": "yaml",
"filenames": [
"buf.lock",
"buf.mod",
"buf.work",
"buf.gen"
]
},
{
"id": "proto",
"extensions": [
".proto"
],
"aliases": [
"Protocol Buffers",
"Protobuf"
],
"configuration": "./protobuf-language-configuration.json"
},
{
"//": "This is a special language used by the 'declaration' part of hover inlays in Markdown.",
"id": "proto-decl"
}
],
"yamlValidation": [
{
"fileMatch": "buf.yaml",
"url": "https://www.schemastore.org/buf.json"
},
{
"fileMatch": "buf.gen.yaml",
"url": "https://www.schemastore.org/buf.gen.json"
}
]
},
"main": "./out/src/extension.js",
"scripts": {
"vscode:prepublish": "npm run compile",
"clean": "rm -rf ./dist/* && rm -rf ./out/* && rm -rf ./bin/* && rm -rf ./test-results/* && rm -rf .vscode-test/* rm *.vsix",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"pretest": "npm run compile && npm run prepworkspaces",
"prepworkspaces": "npm ci --prefix test/workspaces/empty-single",
"lint": "biome lint --fix .",
"test": "npm run test:integration && npm run test:playwright",
"test:integration": "vscode-test",
"test:playwright": "playwright test",
"test:playwright:debug": "playwright test --debug --workers=1 --retries=0 --reporter=list",
"package": "vsce package",
"format": "biome format --write ."
},
"devDependencies": {
"@biomejs/biome": "^2.1.4",
"@playwright/test": "^1.54.2",
"@types/mocha": "^10.0.10",
"@types/node": "^24.2.1",
"@types/semver": "^7.7.0",
"@types/vscode": "^1.102.0",
"@types/which": "^3.0.4",
"@vscode/test-cli": "^0.0.11",
"@vscode/test-electron": "^2.5.2",
"@vscode/vsce": "^3.6.0",
"cross-env": "^10.0.0",
"mocha": "^11.7.1",
"msw": "^2.10.4",
"typescript": "^5.9.2"
},
"dependencies": {
"@preact/signals-core": "^1.11.0",
"rimraf": "^6.0.1",
"semver": "^7.7.2",
"tmp": "^0.2.4",
"vscode-languageclient": "^9.0.1",
"which": "^5.0.0"
}
}