Skip to content

Commit f6dcb48

Browse files
Show resources in DABS Resource Explorer (#1008)
## Changes <!-- Summary of your changes that are easy to understand --> ## Tests <!-- How is this tested? -->
1 parent 936fc49 commit f6dcb48

File tree

17 files changed

+489
-32
lines changed

17 files changed

+489
-32
lines changed

packages/databricks-vscode/.vscode/settings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,8 @@
1212
"editor.defaultFormatter": "esbenp.prettier-vscode",
1313
"[javascript]": {
1414
"editor.defaultFormatter": "esbenp.prettier-vscode"
15+
},
16+
"[xml]": {
17+
"editor.defaultFormatter": "redhat.vscode-xml"
1518
}
1619
}

packages/databricks-vscode/resources/dark/logo.svg

Lines changed: 21 additions & 1 deletion
Loading
Lines changed: 6 additions & 0 deletions
Loading
Lines changed: 6 additions & 0 deletions
Loading
Lines changed: 6 additions & 0 deletions
Loading

packages/databricks-vscode/src/bundle/BundleCommands.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ export class BundleCommands implements Disposable {
88
"Databricks Asset Bundles"
99
);
1010

11-
constructor(private bundleRemoteStateModel: BundleRemoteStateModel) {}
11+
constructor(private bundleRemoteStateModel: BundleRemoteStateModel) {
12+
this.disposables.push(this.outputChannel);
13+
}
1214

1315
@onError({popup: {prefix: "Error refreshing remote state."}})
1416
async refreshRemoteState() {

packages/databricks-vscode/src/bundle/models/BundlePreValidateModel.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import {BundleTarget} from "../types";
44
import {BaseModelWithStateCache} from "../../configuration/models/BaseModelWithStateCache";
55
import {UrlUtils} from "../../utils";
66
import {Mutex} from "../../locking";
7-
import {onError} from "../../utils/onErrorDecorator";
87

98
export type BundlePreValidateState = {
109
host?: URL;
@@ -68,7 +67,6 @@ export class BundlePreValidateModel extends BaseModelWithStateCache<BundlePreVal
6867
: undefined;
6968
}
7069

71-
@onError({popup: {prefix: "Failed to parse bundle yaml"}})
7270
@Mutex.synchronise("mutex")
7371
protected async readState() {
7472
if (this.target === undefined) {

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
import {commands, QuickPickItem, QuickPickItemKind, window} from "vscode";
22
import {CliWrapper} from "../cli/CliWrapper";
3-
import {InputStep, MultiStepInput, ValidationMessageType} from "../ui/wizard";
3+
import {
4+
InputStep,
5+
MultiStepInput,
6+
ValidationMessageType,
7+
} from "../ui/MultiStepInputWizard";
48
import {workspaceConfigs} from "../vscode-objs/WorkspaceConfigs";
59
import {
610
AuthProvider,

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import {
44
InputStep,
55
MultiStepInput,
66
ValidationMessageType,
7-
} from "../ui/wizard";
7+
} from "../ui/MultiStepInputWizard";
88
import {CliWrapper} from "../cli/CliWrapper";
99
import {workspaceConfigs} from "../vscode-objs/WorkspaceConfigs";
1010
import {

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

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -31,24 +31,22 @@ export class ConfigurationDataProvider
3131
> = this._onDidChangeTreeData.event;
3232

3333
private disposables: Array<Disposable> = [];
34-
private components: Array<BaseComponent> = [];
34+
private components: Array<BaseComponent> = [
35+
new BundleTargetComponent(this.configModel),
36+
new AuthTypeComponent(this.connectionManager, this.configModel),
37+
new ClusterComponent(this.connectionManager, this.configModel),
38+
new SyncDestinationComponent(
39+
this.codeSynchronizer,
40+
this.connectionManager,
41+
this.configModel
42+
),
43+
];
3544
constructor(
3645
private readonly connectionManager: ConnectionManager,
3746
private readonly bundleProjectManager: BundleProjectManager,
3847
private readonly codeSynchronizer: CodeSynchronizer,
3948
private readonly configModel: ConfigModel
4049
) {
41-
this.components.push(
42-
new BundleTargetComponent(this.configModel),
43-
new AuthTypeComponent(this.connectionManager, this.configModel),
44-
new ClusterComponent(this.connectionManager, this.configModel),
45-
new SyncDestinationComponent(
46-
this.codeSynchronizer,
47-
this.connectionManager,
48-
this.configModel
49-
)
50-
);
51-
5250
this.disposables.push(
5351
this.bundleProjectManager.onDidChangeStatus(() => {
5452
this._onDidChangeTreeData.fire();

0 commit comments

Comments
 (0)