Skip to content

Commit 717c94d

Browse files
Move existing run options to new Databricks Run icon (#968)
## Changes For python files. <img width="202" alt="image" src="https://github.com/databricks/databricks-vscode/assets/88345179/3b92f134-20b7-4916-a462-68813a23ae6b"> For notebooks <img width="152" alt="image" src="https://github.com/databricks/databricks-vscode/assets/88345179/b6f27426-2487-4a24-913d-8735466143d9"> ### Light mode Python file <img width="204" alt="image" src="https://github.com/databricks/databricks-vscode/assets/88345179/23f3eace-5c4b-43f8-8446-931f173aecf3"> ### Light Mode (alt) Python File <img width="218" alt="image" src="https://github.com/databricks/databricks-vscode/assets/88345179/a6c25a87-ca32-465e-8a1e-46f9e13ade72"> ## Tests <!-- How is this tested? -->
1 parent 09a59a3 commit 717c94d

File tree

1 file changed

+20
-5
lines changed

1 file changed

+20
-5
lines changed

packages/databricks-vscode/package.json

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -147,14 +147,14 @@
147147
},
148148
{
149149
"command": "databricks.run.runEditorContentsAsWorkflow",
150-
"title": "Run File as Workflow on Databricks",
150+
"title": "Run File as Workflow",
151151
"category": "Databricks",
152152
"enablement": "!inDebugMode",
153153
"icon": "$(play)"
154154
},
155155
{
156156
"command": "databricks.run.runEditorContents",
157-
"title": "Upload and Run File on Databricks",
157+
"title": "Upload and Run File",
158158
"category": "Databricks",
159159
"enablement": "!inDebugMode",
160160
"icon": "$(play)"
@@ -364,16 +364,23 @@
364364
"group": "inline@0"
365365
}
366366
],
367-
"editor/title/run": [
367+
"editor/title": [
368+
{
369+
"submenu": "databricks.run",
370+
"group": "navigation@0",
371+
"when": "resourceLangId == python || resourceLangId == scala || resourceLangId == r || resourceLangId == sql || resourceExtname == .ipynb"
372+
}
373+
],
374+
"databricks.run": [
368375
{
369376
"command": "databricks.run.runEditorContents",
370377
"when": "resourceLangId == python",
371-
"group": "navigation@1"
378+
"group": "1_remote@1"
372379
},
373380
{
374381
"command": "databricks.run.runEditorContentsAsWorkflow",
375382
"when": "resourceLangId == python || resourceLangId == scala || resourceLangId == r || resourceLangId == sql || resourceExtname == .ipynb",
376-
"group": "navigation@1"
383+
"group": "1_remote@2"
377384
}
378385
],
379386
"commandPalette": [
@@ -418,6 +425,14 @@
418425
"id": "databricks.cluster.filter",
419426
"label": "Filter clusters ...",
420427
"icon": "$(filter)"
428+
},
429+
{
430+
"id": "databricks.run",
431+
"label": "Run on Databricks",
432+
"icon": {
433+
"dark": "resources/dark/logo.svg",
434+
"light": "resources/light/logo.svg"
435+
}
421436
}
422437
],
423438
"taskDefinitions": [

0 commit comments

Comments
 (0)