(target: string)
| 110 | const readCommandLookupEnv = CommandLookupEnvConfig.pipe(Effect.orElseSucceed(() => ({}))); |
| 111 | |
| 112 | function parseTargetPathAndPosition(target: string): Option.Option<TargetPathAndPosition> { |
| 113 | const match = TARGET_WITH_POSITION_PATTERN.exec(target); |
| 114 | if (!match?.[1] || !match[2]) { |
| 115 | return Option.none(); |
| 116 | } |
| 117 | |
| 118 | return Option.some({ |
| 119 | path: match[1], |
| 120 | line: match[2], |
| 121 | column: Option.fromUndefinedOr(match[3]), |
| 122 | }); |
| 123 | } |
| 124 | |
| 125 | function resolveCommandEditorArgs( |
| 126 | editor: (typeof EDITORS)[number], |
no outgoing calls
no test coverage detected