|
227 | 227 | "command": "databricks.bundle.refreshRemoteState", |
228 | 228 | "icon": "$(refresh)", |
229 | 229 | "title": "Refresh remote state", |
230 | | - "enablement": "databricks.context.activated && databricks.context.bundle.isTargetSet", |
| 230 | + "enablement": "databricks.context.activated && databricks.context.bundle.isTargetSet && databricks.context.bundle.deploymentState == idle", |
231 | 231 | "category": "Databricks" |
232 | 232 | }, |
233 | 233 | { |
234 | 234 | "command": "databricks.bundle.deploy", |
235 | 235 | "icon": "$(cloud-upload)", |
236 | 236 | "title": "Deploy bundle", |
237 | | - "enablement": "databricks.context.activated && databricks.context.bundle.isTargetSet", |
| 237 | + "enablement": "databricks.context.activated && databricks.context.bundle.isTargetSet && databricks.context.bundle.deploymentState == idle", |
238 | 238 | "category": "Databricks" |
239 | 239 | }, |
240 | 240 | { |
241 | 241 | "command": "databricks.bundle.deployAndRun", |
242 | 242 | "icon": "$(debug-start)", |
243 | 243 | "title": "Deploy the bundle and run the resource", |
244 | | - "enablement": "databricks.context.activated && databricks.context.bundle.isTargetSet", |
| 244 | + "enablement": "databricks.context.activated && databricks.context.bundle.isTargetSet && databricks.context.bundle.deploymentState == idle", |
245 | 245 | "category": "Databricks" |
246 | 246 | }, |
247 | 247 | { |
248 | 248 | "command": "databricks.bundle.cancelRun", |
249 | 249 | "title": "Cancel run", |
250 | 250 | "icon": "$(debug-stop)", |
251 | | - "enablement": "databricks.context.activated && databricks.context.bundle.isTargetSet", |
| 251 | + "enablement": "databricks.context.activated && databricks.context.bundle.isTargetSet && databricks.context.bundle.deploymentState == idle", |
252 | 252 | "category": "Databricks" |
253 | 253 | }, |
254 | 254 | { |
|
314 | 314 | { |
315 | 315 | "command": "databricks.bundle.variable.openFile", |
316 | 316 | "title": "Override bundle variables", |
317 | | - "enablement": "databricks.context.activated && databricks.context.bundle.isTargetSet", |
| 317 | + "enablement": "databricks.context.activated && databricks.context.bundle.isTargetSet && databricks.context.bundle.deploymentState == idle", |
318 | 318 | "category": "Databricks", |
319 | 319 | "icon": "$(gear)" |
320 | 320 | }, |
321 | 321 | { |
322 | 322 | "command": "databricks.bundle.variable.reset", |
323 | 323 | "title": "Reset to default values", |
324 | | - "enablement": "databricks.context.activated && databricks.context.bundle.isTargetSet", |
| 324 | + "enablement": "databricks.context.activated && databricks.context.bundle.isTargetSet && databricks.context.bundle.deploymentState == idle", |
325 | 325 | "category": "Databricks", |
326 | 326 | "icon": "$(discard)" |
| 327 | + }, |
| 328 | + { |
| 329 | + "command": "databricks.bundle.destroy", |
| 330 | + "title": "Destroy bundle", |
| 331 | + "enablement": "databricks.context.activated && databricks.context.bundle.isTargetSet && databricks.context.bundle.deploymentState == idle", |
| 332 | + "category": "Databricks", |
| 333 | + "icon": "$(trash)" |
327 | 334 | } |
328 | 335 | ], |
329 | 336 | "viewsContainers": { |
|
438 | 445 | "when": "view == dabsResourceExplorerView && databricks.context.bundle.deploymentState == idle", |
439 | 446 | "group": "navigation@1" |
440 | 447 | }, |
| 448 | + { |
| 449 | + "command": "databricks.bundle.destroy", |
| 450 | + "when": "view == dabsResourceExplorerView && databricks.context.bundle.deploymentState == idle", |
| 451 | + "group": "navigation@1" |
| 452 | + }, |
441 | 453 | { |
442 | 454 | "command": "databricks.bundle.variable.openFile", |
443 | 455 | "when": "view == dabsVariableView && databricks.context.bundle.deploymentState == idle", |
|
0 commit comments