(prefix: string)
| 198 | } |
| 199 | |
| 200 | ls(prefix: string): Promise<string[]> { |
| 201 | return withSpan( |
| 202 | this.#ws.observer, |
| 203 | "workspace.fs.ls", |
| 204 | { "workspace.fs.path": prefix }, |
| 205 | () => this.#ws.fs.ls(prefix), |
| 206 | (span, outcome) => { |
| 207 | if (outcome.ok) span.setAttribute("workspace.fs.entries", outcome.value.length); |
| 208 | }, |
| 209 | ); |
| 210 | } |
| 211 | |
| 212 | grep(pattern: string, path: string, options: GrepOptions = {}): Promise<WorkspaceGrepMatch[]> { |
| 213 | return withSpan( |
nothing calls this directly
no test coverage detected