Skip to content

Commit 9e05703

Browse files
Fix regression where bundle logs are not displayed during deploy (#1086)
## Changes <!-- Summary of your changes that are easy to understand --> ## Tests <!-- How is this tested? -->
1 parent 168d69f commit 9e05703

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

packages/databricks-vscode/src/cli/CliWrapper.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import {
44
execFile as execFileCb,
55
spawn,
66
} from "child_process";
7-
import {ExtensionContext, window, Uri} from "vscode";
7+
import {ExtensionContext, window, Uri, commands} from "vscode";
88
import {SyncDestinationMapper} from "../sync/SyncDestination";
99
import {workspaceConfigs} from "../vscode-objs/WorkspaceConfigs";
1010
import {promisify} from "node:util";
@@ -380,6 +380,7 @@ export class CliWrapper {
380380
) {
381381
const cmd = [this.cliPath, "bundle", "deploy", "--target", target];
382382

383+
await commands.executeCommand("databricks.bundle.showLogs");
383384
logger?.info(`Deploying the bundle for target ${target}...`, {
384385
bundleOpName: "deploy",
385386
});

packages/databricks-vscode/src/language/DbConnectStatusBarButton.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,14 @@ export class DbConnectStatusBarButton implements Disposable {
1616
StatusBarAlignment.Left,
1717
1000
1818
);
19-
this.disposables.push(this.statusBarButton);
19+
this.disposables.push(
20+
this.statusBarButton,
21+
this.featureManager.onDidChangeState(
22+
"debugging.dbconnect",
23+
this.update,
24+
this
25+
)
26+
);
2027
this.disableStatusBarButton();
2128
}
2229

0 commit comments

Comments
 (0)