-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
462 lines (462 loc) · 14.1 KB
/
package.json
File metadata and controls
462 lines (462 loc) · 14.1 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
460
461
462
{
"name": "flink-sql-workbench",
"displayName": "Flink SQL Workbench",
"description": "VS Code extension for editing and executing Flink SQL with gateway session management (Avichay Marciano, Iulius Hutuleac)",
"version": "0.1.5",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/giulio1979/flink-sql-workbench-vsce.git"
},
"categories": [
"Data Science",
"Other"
],
"engines": {
"vscode": "^1.103.0",
"code-server": "^4.0.0"
},
"extensionDependencies": [
"IuliusHutuleac.credential-manager"
],
"activationEvents": [
"onStartupFinished"
],
"main": "./dist/extension.js",
"publisher": "IuliusHutuleac",
"contributes": {
"languages": [
{
"id": "flinksql",
"aliases": [
"Flink SQL",
"flinksql"
],
"extensions": [
".flink.sql"
],
"configuration": "./language-configuration.json"
}
],
"customEditors": [
{
"viewType": "flink-sql-workbench.sqlEditor",
"displayName": "Flink SQL Editor",
"selector": [
{
"filenamePattern": "*.flink.sql"
}
],
"priority": "option"
}
],
"commands": [
{
"command": "flink-sql-workbench.executeQuery",
"title": "Execute Flink SQL Query",
"icon": "$(play)"
},
{
"command": "flink-sql-workbench.executeAllQueries",
"title": "Execute All Queries",
"icon": "$(play-circle)"
},
{
"command": "flink-sql-workbench.stopQuery",
"title": "Stop Current Query",
"icon": "$(stop)"
},
{
"command": "flink-sql-workbench.connectToGateway",
"title": "Connect to Flink Gateway"
},
{
"command": "flink-sql-workbench.disconnectFromGateway",
"title": "Disconnect from Flink Gateway"
},
{
"command": "flink-sql-workbench.showResults",
"title": "Show Query Results"
},
{
"command": "flink-sql-workbench.testResults",
"title": "Test Results Panel"
},
{
"command": "flink-sql-workbench.testEmptyResults",
"title": "Test Empty Results Panel"
},
{
"command": "flink-sql-workbench.refreshSessions",
"title": "Refresh Session",
"icon": "$(refresh)"
},
{
"command": "flink-sql-workbench.createSession",
"title": "Create New Session",
"icon": "$(add)"
},
{
"command": "flink-sql-workbench.deleteSession",
"title": "Delete Current Session",
"icon": "$(trash)"
},
{
"command": "flink-sql-workbench.viewSessionInfo",
"title": "View Session Info"
},
{
"command": "flink-sql-workbench.setActiveSession",
"title": "Set as Active Session",
"icon": "$(star-full)"
},
{
"command": "flink-sql-workbench.showOutput",
"title": "Show Flink SQL Output",
"icon": "$(output)"
},
{
"command": "flink-sql-workbench.refreshCatalog",
"title": "Refresh Catalog",
"icon": "$(refresh)"
},
{
"command": "flink-sql-workbench.setCatalog",
"title": "Set as Current Catalog"
},
{
"command": "flink-sql-workbench.insertTableReference",
"title": "Insert Reference"
},
{
"command": "flink-sql-workbench.refreshJobs",
"title": "Refresh Jobs",
"icon": "$(refresh)"
},
{
"command": "flink-sql-workbench.toggleJobsAutoRefresh",
"title": "Toggle Auto Refresh",
"icon": "$(sync)"
},
{
"command": "flink-sql-workbench.stopJob",
"title": "Stop Job",
"icon": "$(debug-stop)"
},
{
"command": "flink-sql-workbench.cancelJob",
"title": "Cancel Job",
"icon": "$(close)"
},
{
"command": "flink-sql-workbench.viewJobDetails",
"title": "View Job Details",
"icon": "$(info)"
},
{
"command": "flink-sql-workbench.openSettings",
"title": "Open Flink SQL Workbench Settings",
"icon": "$(gear)"
},
{
"command": "flink-sql-workbench.selectConnection",
"title": "Select Credential Manager Connection",
"icon": "$(database)"
},
{
"command": "flink-sql-workbench.refreshConnections",
"title": "Refresh Available Connections",
"icon": "$(refresh)"
},
{
"command": "flink-sql-workbench.clearConnection",
"title": "Clear Current Connection",
"icon": "$(close)"
},
{
"command": "flink-sql-workbench.openCredentialManager",
"title": "Open Credential Manager",
"icon": "$(settings-gear)"
}
],
"views": {
"explorer": [
{
"id": "flinkSqlConnections",
"name": "Flink Gateway Connections",
"icon": "$(database)"
},
{
"id": "flinkSqlSessions",
"name": "Flink SQL Session",
"icon": "$(server)"
},
{
"id": "flinkSqlCatalog",
"name": "Flink SQL Catalog",
"icon": "$(database)"
},
{
"id": "flinkSqlJobs",
"name": "Flink SQL Jobs",
"icon": "$(play)"
}
]
},
"viewsWelcome": [
{
"view": "flinkSqlConnections",
"contents": "No Flink Gateway connections found.\n[Select Connection](command:flink-sql-workbench.selectConnection)\n[Open Credential Manager](command:flink-sql-workbench.openCredentialManager)\n[Refresh Connections](command:flink-sql-workbench.refreshConnections)\nTo learn more about setting up connections [read our docs](https://github.com/giulio1979/flink-sql-workbench-vsce#credential-manager-setup)."
},
{
"view": "flinkSqlSessions",
"contents": "No Flink SQL Gateway connection.\n[Connect to Gateway](command:flink-sql-workbench.connectToGateway)\nTo learn more about Flink SQL Gateway [read our docs](https://nightlies.apache.org/flink/flink-docs-release-1.17/docs/dev/table/sql-gateway/overview/).",
"when": "!flinkGatewayConnected"
},
{
"view": "flinkSqlSessions",
"contents": "Connected to Gateway but no active session.\n[Create Session](command:flink-sql-workbench.createSession)",
"when": "flinkGatewayConnected && !hasActiveSession"
},
{
"view": "flinkSqlCatalog",
"contents": "No Flink SQL Gateway connection.\n[Connect to Gateway](command:flink-sql-workbench.connectToGateway)",
"when": "!flinkGatewayConnected"
},
{
"view": "flinkSqlJobs",
"contents": "No Flink SQL Gateway connection.\n[Connect to Gateway](command:flink-sql-workbench.connectToGateway)",
"when": "!flinkGatewayConnected"
}
],
"menus": {
"editor/title": [
{
"command": "flink-sql-workbench.executeQuery",
"when": "resourceLangId == flinksql",
"group": "navigation"
},
{
"command": "flink-sql-workbench.executeAllQueries",
"when": "resourceLangId == flinksql",
"group": "navigation"
}
],
"commandPalette": [
{
"command": "flink-sql-workbench.executeQuery",
"when": "resourceLangId == flinksql"
},
{
"command": "flink-sql-workbench.executeAllQueries",
"when": "resourceLangId == flinksql"
},
{
"command": "flink-sql-workbench.stopQuery",
"when": "resourceLangId == flinksql"
},
{
"command": "flink-sql-workbench.showResults"
},
{
"command": "flink-sql-workbench.testResults"
},
{
"command": "flink-sql-workbench.testEmptyResults"
},
{
"command": "flink-sql-workbench.selectConnection"
},
{
"command": "flink-sql-workbench.refreshConnections"
},
{
"command": "flink-sql-workbench.clearConnection"
},
{
"command": "flink-sql-workbench.openCredentialManager"
}
],
"view/title": [
{
"command": "flink-sql-workbench.selectConnection",
"when": "view == flinkSqlConnections",
"group": "navigation"
},
{
"command": "flink-sql-workbench.refreshConnections",
"when": "view == flinkSqlConnections",
"group": "navigation"
},
{
"command": "flink-sql-workbench.openCredentialManager",
"when": "view == flinkSqlConnections",
"group": "navigation"
},
{
"command": "flink-sql-workbench.refreshSessions",
"when": "view == flinkSqlSessions",
"group": "navigation"
},
{
"command": "flink-sql-workbench.createSession",
"when": "view == flinkSqlSessions && flinkGatewayConnected",
"group": "navigation"
},
{
"command": "flink-sql-workbench.refreshCatalog",
"when": "view == flinkSqlCatalog",
"group": "navigation"
},
{
"command": "flink-sql-workbench.refreshJobs",
"when": "view == flinkSqlJobs",
"group": "navigation"
},
{
"command": "flink-sql-workbench.toggleJobsAutoRefresh",
"when": "view == flinkSqlJobs",
"group": "navigation"
}
],
"view/item/context": [
{
"command": "flink-sql-workbench.setActiveSession",
"when": "view == flinkSqlSessions && viewItem == session",
"group": "inline@1"
},
{
"command": "flink-sql-workbench.viewSessionInfo",
"when": "view == flinkSqlSessions && viewItem == session",
"group": "inline@2"
},
{
"command": "flink-sql-workbench.deleteSession",
"when": "view == flinkSqlSessions && viewItem == session",
"group": "inline@3"
},
{
"command": "flink-sql-workbench.setCatalog",
"when": "view == flinkSqlCatalog && viewItem == catalog"
},
{
"command": "flink-sql-workbench.insertTableReference",
"when": "view == flinkSqlCatalog && (viewItem == catalog || viewItem == database || viewItem == table)"
},
{
"command": "flink-sql-workbench.stopJob",
"when": "view == flinkSqlJobs && viewItem == runningJob",
"group": "jobActions@1"
},
{
"command": "flink-sql-workbench.stopJob",
"when": "view == flinkSqlJobs && viewItem == runningJob",
"group": "inline@1"
},
{
"command": "flink-sql-workbench.cancelJob",
"when": "view == flinkSqlJobs && viewItem == runningJob",
"group": "jobActions@2"
},
{
"command": "flink-sql-workbench.viewJobDetails",
"when": "view == flinkSqlJobs && (viewItem == runningJob || viewItem == finishedJob || viewItem == cancelledJob || viewItem == failedJob)",
"group": "jobInfo@1"
}
]
},
"keybindings": [
{
"command": "flink-sql-workbench.executeQuery",
"key": "ctrl+enter",
"mac": "cmd+enter",
"when": "resourceLangId == flinksql"
},
{
"command": "flink-sql-workbench.executeAllQueries",
"key": "ctrl+shift+enter",
"mac": "cmd+shift+enter",
"when": "resourceLangId == flinksql"
}
],
"configuration": {
"title": "Flink SQL Workbench",
"properties": {
"flinkSqlWorkbench.gateway.connectionId": {
"type": "string",
"default": "",
"description": "Connection ID from credential manager for Flink Gateway access"
},
"flinkSqlWorkbench.gateway.useProxy": {
"type": "boolean",
"default": false,
"description": "Use proxy for requests to avoid CORS issues"
},
"flinkSqlWorkbench.session.properties": {
"type": "object",
"default": {
"execution.runtime-mode": "streaming",
"table.exec.resource.default-parallelism": "1",
"execution.checkpointing.interval": "10s"
},
"description": "Default session properties for Flink SQL Gateway sessions",
"additionalProperties": {
"type": "string"
}
},
"flinkSqlWorkbench.logging.level": {
"type": "string",
"enum": [
"trace",
"debug",
"info",
"warn",
"error"
],
"default": "info",
"description": "Logging level for the extension"
},
"flinkSqlWorkbench.jobs.autoRefresh": {
"type": "boolean",
"default": false,
"description": "Automatically refresh jobs list"
},
"flinkSqlWorkbench.jobs.refreshInterval": {
"type": "number",
"default": 10000,
"description": "Jobs auto-refresh interval in milliseconds"
}
}
}
},
"scripts": {
"vscode:prepublish": "npm run package",
"compile": "webpack",
"watch": "webpack --watch",
"package": "webpack --mode production --devtool hidden-source-map",
"compile-tests": "tsc -p . --outDir out",
"watch-tests": "tsc -p . -w --outDir out",
"pretest": "npm run compile-tests && npm run compile && npm run lint",
"lint": "eslint src",
"test": "vscode-test"
},
"devDependencies": {
"@types/mocha": "^10.0.10",
"@types/nock": "^10.0.3",
"@types/node": "22.x",
"@types/sinon": "^17.0.4",
"@types/vscode": "^1.103.0",
"@typescript-eslint/eslint-plugin": "^8.39.0",
"@typescript-eslint/parser": "^8.39.0",
"@vscode/test-cli": "^0.0.11",
"@vscode/test-electron": "^2.5.2",
"axios": "^1.12.2",
"eslint": "^9.32.0",
"nock": "^14.0.10",
"sinon": "^21.0.0",
"ts-loader": "^9.5.2",
"typescript": "^5.9.2",
"webpack": "^5.101.0",
"webpack-cli": "^6.0.1"
}
}