(pattern: string, path: string, options: GrepOptions = {})
| 210 | } |
| 211 | |
| 212 | grep(pattern: string, path: string, options: GrepOptions = {}): Promise<WorkspaceGrepMatch[]> { |
| 213 | return withSpan( |
| 214 | this.#ws.observer, |
| 215 | "workspace.fs.grep", |
| 216 | { "workspace.fs.path": path, "workspace.fs.pattern": pattern }, |
| 217 | () => this.#ws.fs.grep(pattern, path, options), |
| 218 | (span, outcome) => { |
| 219 | if (outcome.ok) span.setAttribute("workspace.fs.matches", outcome.value.length); |
| 220 | }, |
| 221 | ); |
| 222 | } |
| 223 | |
| 224 | // --- Mutations --------------------------------------------------- |
| 225 |
nothing calls this directly
no test coverage detected