-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathpackage.json
More file actions
459 lines (459 loc) · 12.3 KB
/
Copy pathpackage.json
File metadata and controls
459 lines (459 loc) · 12.3 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
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
{
"name": "vscode-bigquery",
"displayName": "Bigquery Data View",
"description": "Google BigQuery extension for Visual Studio Code. List datasets and tables, view table contents, and run queries.",
"version": "0.5.1",
"publisher": "bstruct",
"icon": "logo.png",
"repository": {
"type": "git",
"url": "https://github.com/bstruct/vscode-bigquery.git"
},
"homepage": "https://github.com/bstruct/vscode-bigquery",
"bugs": {
"url": "https://github.com/bstruct/vscode-bigquery/issues"
},
"engines": {
"vscode": "^1.90.0"
},
"categories": [
"Other"
],
"activationEvents": [
"onView:bigquery-main-activity-bar",
"onWebviewPanel:bigquery-table-results",
"onWebviewPanel:authentication-troubleshoot"
],
"main": "./dist/extension.js",
"contributes": {
"configuration": {
"title": "Bigquery Data View",
"properties": {
"vscode-bigquery.pinned-projects": {
"type": "array",
"default": [],
"scope": "machine-overridable",
"title": "Pinned projects",
"description": "Pinned GCP projects id's in the explorer tree in the Bigquery extension"
},
"vscode-bigquery.projects": {
"type": "array",
"default": [],
"scope": "machine-overridable",
"title": "Projects",
"description": "GCP projects id's that need to be listed, but there's no explicit permission to the project, only datasets"
},
"vscode-bigquery.tables": {
"type": "array",
"default": [],
"scope": "machine-overridable",
"title": "Table full name",
"description": "Tables that need to be listed, but there's no explicit permission to the project nor dataset, only the table"
},
"vscode-bigquery.my-jobs-only": {
"type": "boolean",
"default": true,
"title": "My Jobs Only",
"description": "Show only my jobs in the Job view"
}
}
},
"languages": [
{
"id": "bqsql",
"aliases": [
"BigQuery SQL"
],
"configuration": "./resources/language/bqsql-language-configuration.json",
"extensions": [
"bqsql"
],
"icon": {
"light": "./resources/google-bigquery.svg",
"dark": "./resources/google-bigquery.svg"
}
}
],
"grammars": [
{
"language": "bqsql",
"scopeName": "source.bqsql",
"path": "./resources/language/bqsql.tmGrammar.json"
}
],
"snippets": [
{
"language": "bqsql",
"path": "./resources/language/snippets.json"
}
],
"configurationDefaults": {
"[bqsql]": {
"editor.semanticHighlighting.enabled": true
}
},
"chatParticipants": [
{
"id": "bigquery.sql",
"fullName": "BigQuery SQL",
"name": "bigquery",
"description": "BigQuery SQL assistant. Schema-aware, knows your tables' columns and types.",
"isSticky": true,
"commands": [
{
"name": "explain",
"description": "Explain the current .bqsql query in plain English"
},
{
"name": "optimize",
"description": "Suggest cost and performance optimisations for the current query"
},
{
"name": "schema",
"description": "Show the schemas of all tables referenced in the current query"
}
]
}
],
"notebooks": [
{
"type": "bqnb",
"displayName": "BigQuery Notebook",
"selector": [
{
"filenamePattern": "*.bqnb"
}
]
}
],
"notebookRenderer": [
{
"id": "bstruct-bqnb-grid",
"displayName": "BigQuery Grid Renderer",
"entrypoint": "./dist/bqnbRenderer.js",
"mimeTypes": [
"application/x-bstruct-bqnb-grid"
],
"requiresMessaging": "optional"
}
],
"commands": [
{
"command": "vscode-bigquery.run-query",
"title": "BigueryView: Run Query",
"icon": "$(debug-start)"
},
{
"command": "vscode-bigquery.run-selected-query",
"title": "BigueryView: Run Selected Query",
"icon": "$(debug-line-by-line)"
},
{
"command": "vscode-bigquery.user-login",
"title": "BigueryView: User login"
},
{
"command": "vscode-bigquery.service-account-login",
"title": "BigueryView: Service account login"
},
{
"command": "vscode-bigquery.user-login-no-launch-browser",
"title": "BigueryView: User login via console"
},
{
"command": "vscode-bigquery.authentication-refresh",
"title": "BigueryView: Authentication refresh",
"icon": "$(refresh)"
},
{
"command": "vscode-bigquery.gcp-user-activate",
"title": "BigueryView: Activate User",
"icon": "$(check)"
},
{
"command": "vscode-bigquery.gcp-user-remove",
"title": "BigueryView: Remove User",
"icon": "$(close)"
},
{
"command": "vscode-bigquery.explorer-refresh",
"title": "BigueryView: Explorer refresh",
"icon": "$(refresh)"
},
{
"command": "vscode-bigquery.view-table",
"title": "BigueryView: Preview",
"icon": "$(link-external)"
},
{
"command": "vscode-bigquery.create-table-default-query",
"title": "BigueryView: Create query",
"icon": "$(file-text)"
},
{
"command": "vscode-bigquery.open-ddl",
"title": "BigueryView: Open DDL",
"icon": "$(link-external)"
},
{
"command": "vscode-bigquery.set-default-project",
"title": "BigueryView: Set as default project",
"icon": "$(issue-closed)"
},
{
"command": "vscode-bigquery.project-pin",
"title": "BigueryView: Pin or unpin project",
"icon": "$(pin)"
},
{
"command": "vscode-bigquery.download-csv",
"title": "BigueryView: Download CSV",
"icon": "$(cloud-download)"
},
{
"command": "vscode-bigquery.send-pubsub",
"title": "BigueryView: Send to Pub/Sub",
"icon": "$(outline-view-icon)"
},
{
"command": "vscode-bigquery.download-jsonl",
"title": "BigueryView: Download JSONL",
"icon": "$(json)"
},
{
"command": "vscode-bigquery.troubleshoot",
"title": "BigueryView: troubleshoot"
},
{
"command": "vscode-bigquery.open-settings-projects",
"title": "BigueryView: open settings - projects"
},
{
"command": "vscode-bigquery.search",
"title": "BigQuery: Search datasets, tables, columns…",
"icon": "$(search)"
},
{
"command": "vscode-bigquery.job-refresh",
"title": "BigueryView: Job refresh",
"icon": "$(refresh)"
},
{
"command": "vscode-bigquery.job-toggle-my-jobs",
"title": "BigueryView: Toggle my jobs only",
"icon": "$(filter)"
},
{
"command": "vscode-bigquery.job-load-more",
"title": "BigueryView: Load more jobs"
},
{
"command": "vscode-bigquery.job-open-query",
"title": "BigueryView: Open script for job"
},
{
"command": "vscode-bigquery.create-notebook",
"title": "BigueryView: Create New Notebook",
"icon": "$(notebook)"
},
{
"command": "vscode-bigquery.create-query",
"title": "BigueryView: Create New Query",
"icon": "$(new-file)"
}
],
"menus": {
"editor/title": [
{
"command": "vscode-bigquery.run-query",
"group": "navigation@-3",
"when": "editorLangId == bqsql && !notebookEditorFocused"
},
{
"command": "vscode-bigquery.run-selected-query",
"group": "navigation@-2",
"when": "editorLangId == bqsql && !notebookEditorFocused"
}
],
"view/title": [
{
"command": "vscode-bigquery.authentication-refresh",
"group": "navigation",
"when": "view == 'bigquery-authentication'"
},
{
"command": "vscode-bigquery.explorer-refresh",
"group": "navigation",
"when": "view == 'bigquery-tree-data-provider'"
},
{
"command": "vscode-bigquery.search",
"group": "navigation",
"when": "view == bigquery-tree-data-provider"
},
{
"command": "vscode-bigquery.job-refresh",
"group": "navigation",
"when": "view == 'bigquery-job-data-provider'"
},
{
"command": "vscode-bigquery.job-toggle-my-jobs",
"group": "navigation",
"when": "view == 'bigquery-job-data-provider'"
},
{
"command": "vscode-bigquery.create-notebook",
"group": "navigation@1",
"when": "view == 'bigquery-tree-data-provider'"
},
{
"command": "vscode-bigquery.create-query",
"group": "navigation@2",
"when": "view == 'bigquery-tree-data-provider'"
}
],
"view/item/context": [
{
"command": "vscode-bigquery.view-table",
"when": "viewItem == 'bq-table'"
},
{
"command": "vscode-bigquery.create-table-default-query",
"when": "viewItem == 'bq-table'"
},
{
"command": "vscode-bigquery.open-ddl",
"when": "viewItem == 'bq-table' || viewItem == 'bq-routine'"
},
{
"command": "vscode-bigquery.open-ddl",
"when": "viewItem == 'bq-model'"
},
{
"command": "vscode-bigquery.create-table-default-query",
"when": "viewItem == 'bq-model'"
},
{
"command": "vscode-bigquery.gcp-user-activate",
"when": "viewItem == 'gcp-user'",
"group": "inline"
},
{
"command": "vscode-bigquery.gcp-user-remove",
"when": "viewItem == 'gcp-user'",
"group": "inline"
},
{
"command": "vscode-bigquery.set-default-project",
"when": "viewItem == 'bq-gcp-project'",
"group": "inline"
},
{
"command": "vscode-bigquery.project-pin",
"when": "viewItem == 'bq-gcp-project'",
"group": "inline"
}
]
},
"views": {
"bigquery-main-activity-bar": [
{
"id": "bigquery-authentication",
"name": "Authentication",
"contextualTitle": "BigQuery",
"type": "tree",
"icon": "$(key)"
},
{
"id": "bigquery-tree-data-provider",
"name": "Explorer",
"contextualTitle": "BigQuery",
"type": "tree",
"icon": "$(list-tree)"
},
{
"id": "bigquery-job-data-provider",
"name": "Jobs",
"contextualTitle": "BigQuery",
"type": "tree",
"icon": "$(history)"
}
]
},
"viewsContainers": {
"activitybar": [
{
"id": "bigquery-main-activity-bar",
"title": "BigQuery",
"icon": "./resources/google-bigquery.svg"
}
]
},
"keybindings": [
{
"command": "vscode-bigquery.run-query",
"key": "Ctrl+Enter",
"when": "editorLangId == bqsql && !notebookEditorFocused"
},
{
"command": "vscode-bigquery.run-selected-query",
"key": "Ctrl+E",
"when": "editorLangId == bqsql && !notebookEditorFocused"
},
{
"command": "vscode-bigquery.search",
"key": "Ctrl+Shift+F10",
"mac": "Cmd+Shift+F10"
}
],
"viewsWelcome": [
{
"view": "bigquery-tree-data-provider",
"contents": "No Google Cloud projects found or still loading.\n\nIf you are presented with an error, please try to find your problem in the [troubleshoot](command:vscode-bigquery.troubleshoot) guide.\nIf the permissions to GCP were given to dataset or table level (not project), it's possible to specify the project (of the target dataset) and/or table in the settings.\n[Add Project directly in Settings](command:vscode-bigquery.open-settings-projects)\n[Add Table directly in Settings](command:vscode-bigquery.open-settings-tables)"
}
]
},
"scripts": {
"vscode:prepublish": "npm run package",
"compile": "webpack",
"watch": "webpack --watch",
"package": "npm run compile-grid_render && webpack --mode production --devtool hidden-source-map",
"compile-tests": "tsc -p . --outDir out",
"compile-grid_render": "cd grid_render && wasm-pack build --release --target web",
"watch-tests": "tsc -p . -w --outDir out",
"pretest": "npm run compile-tests && npm run compile && npm run lint",
"lint": "eslint src --ext ts",
"test": "node ./out/test/runTest.js",
"deploy": "vsce publish",
"package-dev": "vsce package --pre-release"
},
"devDependencies": {
"@types/glob": "^7.2.0",
"@types/mocha": "^9.1.1",
"@types/node": "16.x",
"@types/uuid": "^9.0.0",
"@types/vscode": "^1.90.0",
"@types/vscode-notebook-renderer": "^1.72.4",
"@typescript-eslint/eslint-plugin": "^8.56.0",
"@typescript-eslint/parser": "^8.56.0",
"@vscode/test-electron": "^2.1.5",
"@vscode/vsce": "^2.18.0",
"eslint": "^10.0.1",
"glob": "^8.0.3",
"mocha": "^5.0.5",
"ts-loader": "^9.3.1",
"typescript": "^4.7.4",
"webpack": "^5.88.2",
"webpack-cli": "^5.1.4"
},
"dependencies": {
"@google-cloud/bigquery": "^8.1.1",
"@google-cloud/pubsub": "^5.2.2",
"@types/gapi.client.bigquery-v2": "^0.0.4",
"@vscode/codicons": "^0.0.44",
"@vscode/webview-ui-toolkit": "^1.2.2",
"chart.js": "^4.5.1",
"csv-writer": "^1.6.0",
"grid_render": "file://.//grid_render/pkg"
}
}