Skip to content

Commit 62a47e3

Browse files
authored
Don't show deeplinks for undeployed resources (#1043)
Don't show deeplinks for undeployed resources
1 parent 5b1eb9b commit 62a47e3

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export class JobTreeNode implements BundleResourceExplorerTreeNode {
1818
get url(): string | undefined {
1919
const host = this.connectionManager.databricksWorkspace?.host;
2020

21-
if (host === undefined) {
21+
if (!host || !this.data.id) {
2222
return undefined;
2323
}
2424

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export class PipelineTreeNode implements BundleResourceExplorerTreeNode {
1717
get url(): string | undefined {
1818
const host = this.connectionManager.databricksWorkspace?.host;
1919

20-
if (host === undefined) {
20+
if (!host || !this.data.id) {
2121
return undefined;
2222
}
2323

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export class TaskTreeNode implements BundleResourceExplorerTreeNode {
2929

3030
get url(): string | undefined {
3131
const host = this.connectionManager.databricksWorkspace?.host;
32-
if (host === undefined || this.taskKey === undefined) {
32+
if (!host || !this.jobId || !this.taskKey) {
3333
return undefined;
3434
}
3535

0 commit comments

Comments
 (0)