(directory: string, pattern?: string)
| 186 | } |
| 187 | |
| 188 | find(directory: string, pattern?: string): Promise<WorkspaceFoundEntry[]> { |
| 189 | return withSpan( |
| 190 | this.#ws.observer, |
| 191 | "workspace.fs.find", |
| 192 | { "workspace.fs.path": directory, "workspace.fs.pattern": pattern }, |
| 193 | () => this.#ws.fs.find(directory, pattern), |
| 194 | (span, outcome) => { |
| 195 | if (outcome.ok) span.setAttribute("workspace.fs.matches", outcome.value.length); |
| 196 | }, |
| 197 | ); |
| 198 | } |
| 199 | |
| 200 | ls(prefix: string): Promise<string[]> { |
| 201 | return withSpan( |
nothing calls this directly
no test coverage detected