Skip to content

Commit f0986e1

Browse files
authored
State message tooltips (#1100)
State messages can contain long errors and are frequently truncated. By default VSCode shows labels as tooltips, which is not useful. Also removed the empty node between workflows and pipelines.
1 parent ab214b4 commit f0986e1

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

packages/databricks-vscode/src/ui/bundle-resource-explorer/JobRunStatusTreeNode.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ export class JobRunStatusTreeNode implements BundleResourceExplorerTreeNode {
3636
{
3737
label: "State Message",
3838
description: this.runDetails.state?.state_message,
39+
tooltip: this.runDetails.state?.state_message,
3940
contextValue: "state_message",
4041
},
4142
this

packages/databricks-vscode/src/ui/bundle-resource-explorer/ResourceTypeHeaderTreeNode.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import {
99
} from "./types";
1010
import {ExtensionContext, TreeItemCollapsibleState} from "vscode";
1111
import {PipelineTreeNode} from "./PipelineTreeNode";
12-
import {TreeItemTreeNode} from "./TreeItemTreeNode";
1312

1413
function humaniseResourceType(type: BundleResourceExplorerTreeNode["type"]) {
1514
switch (type) {
@@ -93,10 +92,6 @@ export class ResourceTypeHeaderTreeNode
9392
);
9493
if (pipelines.length > 0) {
9594
roots.push(
96-
new TreeItemTreeNode(
97-
{collapsibleState: TreeItemCollapsibleState.None},
98-
undefined
99-
),
10095
new ResourceTypeHeaderTreeNode(context, "pipelines", pipelines)
10196
);
10297
}

packages/databricks-vscode/src/ui/bundle-resource-explorer/TaskRunStatusTreeNode.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ export class TaskRunStatusTreeNode implements BundleResourceExplorerTreeNode {
4545
{
4646
label: "State Message",
4747
description: this.runDetails.state?.state_message,
48+
tooltip: this.runDetails.state?.state_message,
4849
contextValue: "state_message",
4950
},
5051
this

0 commit comments

Comments
 (0)