(editor: string)
| 47 | * 'code' → matches. |
| 48 | */ |
| 49 | export function classifyGuiEditor(editor: string): string | undefined { |
| 50 | const base = basename(editor.split(' ')[0] ?? '') |
| 51 | return GUI_EDITORS.find(g => base.includes(g)) |
| 52 | } |
| 53 | |
| 54 | /** |
| 55 | * Build goto-line argv for a GUI editor. VS Code family uses -g file:line; |
no outgoing calls
no test coverage detected