(embedEl: HTMLElement)
| 321 | } |
| 322 | |
| 323 | function getRememberedSourcePath(embedEl: HTMLElement): string { |
| 324 | return embedEl.closest<HTMLElement>(`[${CODE_SPACE_SOURCE_PATH_ATTR}]`)?.getAttribute(CODE_SPACE_SOURCE_PATH_ATTR) ?? ""; |
| 325 | } |
| 326 | |
| 327 | function normalizeSourcePathCandidate(rawValue: string, plugin: CodeSpacePlugin): string { |
| 328 | const normalized = normalizePath(rawValue.replace(/\\/g, "/").trim()); |
no outgoing calls
no test coverage detected