better signal hover message

This commit is contained in:
Martino Ferrari
2026-01-24 21:37:08 +01:00
parent c9cc67f663
commit 8e13020d50
2 changed files with 92 additions and 1 deletions

View File

@@ -978,12 +978,22 @@ func formatNodeInfo(node *index.ProjectNode) string {
typ := node.Metadata["Type"]
ds := node.Metadata["DataSource"]
if ds == "" {
if node.Parent != nil && node.Parent.Name == "Signals" {
if node.Parent.Parent != nil {
ds = node.Parent.Parent.Name
}
}
}
if typ != "" || ds != "" {
sigInfo := "\n"
if typ != "" {
sigInfo += fmt.Sprintf("**Type**: `%s` ", typ)
}
sigInfo += fmt.Sprintf("**DataSource**: `%s` ", ds)
if ds != "" {
sigInfo += fmt.Sprintf("**DataSource**: `%s` ", ds)
}
// Size
dims := node.Metadata["NumberOfDimensions"]