Skip to content

Commit 55ffe59

Browse files
Add a plug button to configure profile in configuration view (#113)
Fixes #108 Co-authored-by: Fabian Jakobs <fabian.jakobs@databricks.com>
1 parent 4445a78 commit 55ffe59

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

packages/databricks-vscode/package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,11 @@
236236
"when": "view == clusterView",
237237
"group": "inline@0"
238238
},
239+
{
240+
"command": "databricks.connection.configureProject",
241+
"when": "view == configurationView && viewItem == profile",
242+
"group": "inline@1"
243+
},
239244
{
240245
"command": "databricks.connection.attachClusterQuickPick",
241246
"when": "view == configurationView && viewItem == clusterDetached",

packages/databricks-vscode/src/configuration/ConfigurationDataProvider.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ describe(__filename, () => {
121121
assert.deepEqual(children, [
122122
{
123123
collapsibleState: 2,
124+
contextValue: "profile",
124125
iconPath: {
125126
color: undefined,
126127
id: "tools",

packages/databricks-vscode/src/configuration/ConfigurationDataProvider.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ export class ConfigurationDataProvider
7070
iconPath: new ThemeIcon("tools"),
7171
id: "PROFILE",
7272
collapsibleState: TreeItemCollapsibleState.Expanded,
73+
contextValue: "profile",
7374
});
7475

7576
if (cluster) {

0 commit comments

Comments
 (0)