|
136 | 136 | "title": "Run File as Workflow", |
137 | 137 | "category": "Databricks", |
138 | 138 | "enablement": "!inDebugMode && databricks.context.activated && databricks.context.loggedIn", |
139 | | - "icon": "$(play)" |
| 139 | + "icon": { |
| 140 | + "dark": "resources/dark/databricks-run-icon.svg", |
| 141 | + "light": "resources/light/databricks-run-icon.svg" |
| 142 | + } |
140 | 143 | }, |
141 | 144 | { |
142 | 145 | "command": "databricks.run.runEditorContents", |
143 | 146 | "title": "Upload and Run File", |
144 | 147 | "category": "Databricks", |
145 | 148 | "enablement": "!inDebugMode && databricks.context.activated && databricks.context.loggedIn", |
146 | | - "icon": "$(play)" |
| 149 | + "icon": { |
| 150 | + "dark": "resources/dark/databricks-run-icon.svg", |
| 151 | + "light": "resources/light/databricks-run-icon.svg" |
| 152 | + } |
147 | 153 | }, |
148 | 154 | { |
149 | 155 | "command": "databricks.quickstart.open", |
|
256 | 262 | "command": "databricks.run.dbconnect.debug", |
257 | 263 | "title": "Databricks Connect: Debug current file", |
258 | 264 | "enablement": "databricks.context.activated && databricks.context.loggedIn", |
259 | | - "category": "Databricks" |
| 265 | + "category": "Databricks", |
| 266 | + "icon": { |
| 267 | + "dark": "resources/dark/databricks-run-icon.svg", |
| 268 | + "light": "resources/light/databricks-run-icon.svg" |
| 269 | + } |
260 | 270 | }, |
261 | 271 | { |
262 | 272 | "command": "databricks.run.dbconnect.run", |
263 | 273 | "title": "Databricks Connect: Run current file", |
264 | 274 | "enablement": "databricks.context.activated && databricks.context.loggedIn", |
265 | | - "category": "Databricks" |
| 275 | + "category": "Databricks", |
| 276 | + "icon": { |
| 277 | + "dark": "resources/dark/databricks-run-icon.svg", |
| 278 | + "light": "resources/light/databricks-run-icon.svg" |
| 279 | + } |
266 | 280 | }, |
267 | 281 | { |
268 | 282 | "command": "databricks.bundle.showLogs", |
|
275 | 289 | "title": "Copy", |
276 | 290 | "enablement": "databricks.context.activated", |
277 | 291 | "category": "Databricks" |
| 292 | + }, |
| 293 | + { |
| 294 | + "command": "databricks.bundle.variable.openFile", |
| 295 | + "title": "Override bundle variables", |
| 296 | + "enablement": "databricks.context.activated && databricks.context.bundle.isTargetSet", |
| 297 | + "category": "Databricks", |
| 298 | + "icon": "$(gear)" |
| 299 | + }, |
| 300 | + { |
| 301 | + "command": "databricks.bundle.variable.reset", |
| 302 | + "title": "Reset to default values", |
| 303 | + "enablement": "databricks.context.activated && databricks.context.bundle.isTargetSet", |
| 304 | + "category": "Databricks", |
| 305 | + "icon": "$(discard)" |
278 | 306 | } |
279 | 307 | ], |
280 | 308 | "viewsContainers": { |
|
298 | 326 | "visibility": "visible", |
299 | 327 | "when": "databricks.context.bundle.isTargetSet" |
300 | 328 | }, |
| 329 | + { |
| 330 | + "id": "dabsVariableView", |
| 331 | + "name": "Bundle Variables View", |
| 332 | + "visibility": "visible", |
| 333 | + "when": "databricks.context.bundle.isTargetSet" |
| 334 | + }, |
301 | 335 | { |
302 | 336 | "id": "workspaceFsView", |
303 | 337 | "name": "Workspace explorer", |
|
382 | 416 | "command": "databricks.bundle.deploy", |
383 | 417 | "when": "view == dabsResourceExplorerView && databricks.context.bundle.deploymentState == idle", |
384 | 418 | "group": "navigation@1" |
| 419 | + }, |
| 420 | + { |
| 421 | + "command": "databricks.bundle.variable.openFile", |
| 422 | + "when": "view == dabsVariableView && databricks.context.bundle.deploymentState == idle", |
| 423 | + "group": "navigation@1" |
| 424 | + }, |
| 425 | + { |
| 426 | + "command": "databricks.bundle.variable.reset", |
| 427 | + "when": "view == dabsVariableView && databricks.context.bundle.deploymentState == idle", |
| 428 | + "group": "navigation@1" |
385 | 429 | } |
386 | 430 | ], |
387 | 431 | "databricks.cluster.filter": [ |
|
504 | 548 | "explorer/context": [ |
505 | 549 | { |
506 | 550 | "submenu": "databricks.run", |
507 | | - "when": "resourceLangId == python" |
| 551 | + "when": "resourceLangId == python || resourceExtname == .ipynb" |
508 | 552 | } |
509 | 553 | ] |
510 | 554 | }, |
|
0 commit comments