(node: CanvasNodeLike)
| 202 | } |
| 203 | |
| 204 | function getCanvasNodeFilePath(node: CanvasNodeLike): string | null { |
| 205 | if (typeof node.filePath === "string" && node.filePath.trim()) { |
| 206 | return node.filePath; |
| 207 | } |
| 208 | |
| 209 | if (typeof node.file === "string" && node.file.trim()) { |
| 210 | return node.file; |
| 211 | } |
| 212 | |
| 213 | if (node.file instanceof TFile) { |
| 214 | return node.file.path; |
| 215 | } |
| 216 | |
| 217 | return null; |
| 218 | } |
| 219 | |
| 220 | export class TaskCardNoteDecorationsPlugin implements PluginValue { |
| 221 | private cachedTask: TaskInfo | null = null; |
no outgoing calls
no test coverage detected