(env: Record<string, string | undefined>)
| 207 | } |
| 208 | |
| 209 | function resolveEditorCommand(env: Record<string, string | undefined>): string | undefined { |
| 210 | for (const key of ['KIMI_CODE_EDITOR', 'VISUAL', 'EDITOR']) { |
| 211 | const value = env[key]; |
| 212 | if (typeof value === 'string' && value.trim().length > 0) return value.trim(); |
| 213 | } |
| 214 | return undefined; |
| 215 | } |
| 216 | |
| 217 | function supportsLineTarget(command: string): boolean { |
| 218 | const first = command.trim().split(/\s+/)[0] ?? ''; |
no outgoing calls
no test coverage detected