(serviceNode *ast.MappingValueNode)
| 72 | } |
| 73 | |
| 74 | func createImageLink(serviceNode *ast.MappingValueNode) *protocol.DocumentLink { |
| 75 | if resolveAnchor(serviceNode.Key).GetToken().Value == "image" { |
| 76 | service := stringNode(serviceNode.Value) |
| 77 | if service != nil { |
| 78 | linkedText, link := extractImageLink(service.Value) |
| 79 | if linkedText != "" { |
| 80 | return &protocol.DocumentLink{ |
| 81 | Range: createRange(service.GetToken(), len(linkedText)), |
| 82 | Target: types.CreateStringPointer(link), |
| 83 | Tooltip: types.CreateStringPointer(link), |
| 84 | } |
| 85 | } |
| 86 | } |
| 87 | } |
| 88 | return nil |
| 89 | } |
| 90 | |
| 91 | func createFileLinks(folderAbsolutePath string, wslDollarSign bool, serviceNode *ast.MappingValueNode, attributeName string) []protocol.DocumentLink { |
| 92 | if resolveAnchor(serviceNode.Key).GetToken().Value == attributeName { |
no test coverage detected