* True when a grep `path` targets the workspace files tree (`files/` or * `recently-deleted/files/`). Such greps search a single file's content via * WorkspaceVFS.grepFile; every other path searches the VFS map.
(path: string | undefined)
| 30 | * {@link WorkspaceVFS.grepFile}; every other path searches the VFS map. |
| 31 | */ |
| 32 | function isWorkspaceFileGrepPath(path: string | undefined): path is string { |
| 33 | if (!path) return false |
| 34 | return /^(recently-deleted\/)?files(\/|$)/.test(path.replace(/^\/+/, '')) |
| 35 | } |
| 36 | |
| 37 | /** True when a grep `path` targets the chat-scoped uploads namespace. */ |
| 38 | function isChatUploadGrepPath(path: string | undefined): path is string { |
no test coverage detected