(payload: ImportPayload)
| 4 | import { parseVSCodeSnippetFiles } from './snippets/vscode' |
| 5 | |
| 6 | function hasMarkdownFiles(payload: ImportPayload): boolean { |
| 7 | return (payload.files || []).some((file) => { |
| 8 | const filePath = (file.relativePath || file.name).toLowerCase() |
| 9 | return filePath.endsWith('.md') |
| 10 | }) |
| 11 | } |
| 12 | |
| 13 | function detectSnippetSource(payload: ImportPayload): ImportSource { |
| 14 | if (payload.url?.trim()) { |
no outgoing calls
no test coverage detected