You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 6a2c082
Browse filesBrowse the repository at this point in the historyBrowse files
| `workspace.searchPreferences` | Resolve and validate search/replacement file budgets |
588
+
| `workspace.searchPresentation` | Group loaded result paths and return loaded counts |
587
589
| `workspace.searchEverywhere` | Search file paths, contents, and symbols |
588
590
| `workspace.replacePreview` | Return deterministic replacement lines and complete replacement text |
589
591
| `workspace.replaceText` | Plan replacement against a host-captured text snapshot without writing |
590
592
| `workspace.searchTextBatch` | Search provider-captured text snapshots using workspace matching rules |
591
593
| `file.read` | Read a text file using a workspace-relative path; optional `encoding`, see [File encodings](#file-encodings) |
592
594
| `file.write` | Write a text file using a workspace-relative path; optional `encoding` and `bom` |
593
-
| `text.decode` | Decode `{ bytes }` (standard base64 of bytes the host read) like `file.read`, optional `encoding`; returns `{ text, encoding, hasBom, lossy, identity }` with the same 32 MB, plain-text and detection rules |
595
+
| `text.decode` | Decode `{ bytes }` (standard base64 of bytes the host read) like `file.read`, optional `encoding`; returns `{ text, encoding, hasBom, lossy, identity }` with the same 64 MiB, plain-text and detection rules |
594
596
| `text.encode` | Encode `{ text }` like `file.write`, optional `encoding` and `bom`; returns `{ bytes, encoding, hasBom, identity }` with `bytes` in standard base64. Nothing is written, and an unmappable character fails with `encoding_unmappable` as `file.write` does |
595
597
| `document.lifecycle` | Reduce a shared document save, external-change, or conflict event without reading text or disk |
596
598
| `document.classifyText` | Classify decoded Unicode text independently of its filename |
@@ -2310,16 +2312,43 @@ need separate buckets may also provide `maxFileResults` and
2310
2312
`maxContentResults`; each category is capped independently and the total cap
2311
2313
still applies.
2312
2314
2313
-
Content search and its index read every file the desktop editor opens as text:
2314
-
files up to 16 MiB, decoded with `file.read`'s automatic detection (BOM-marked
2315
-
UTF-8 or UTF-16, UTF-8, then GBK or GB18030). Files containing a NUL byte outside
2316
-
UTF-16, or other control characters after decoding, are binary and skipped.
2317
-
Lines are split on `\n` and a CRLF line's `\r` is not part of its text, so `$`,
2318
-
whole words, `sourceLine` and the ranges are the same on CRLF and LF files.
2319
-
`workspace.replacePreview` reads only strict UTF-8 files up to 2 MiB, because
2320
-
hosts write `replacementText` back as UTF-8; it keeps each CRLF line's `\r` in
2321
-
`replacementText`. A file search finds in another encoding, or above 2 MiB, is
2322
-
therefore absent from the preview.
2315
+
Content search, index warming/updating and replacement previews accept optional
2316
+
`maxFileBytes` (default 16 MiB, valid 1–64 MiB). Index variants include this budget
2317
+
and `includeIgnored`; changing either cannot reuse incompatible postings. Text is
2318
+
decoded with `file.read`'s detection. NUL and binary controls are skipped, while
2319
+
ANSI escape is allowed as source text. Lines split on `\n`; a CRLF line's `\r`
2320
+
is excluded from matching and retained in replacement output.
2321
+
2322
+
`workspace.searchPreferences` accepts optional `maxFileBytes` and
2323
+
`replacementMaxFileBytes`. It returns those effective byte budgets and
2324
+
`maximumFileBytes` (64 MiB). Search defaults to 16 MiB; replacement inherits the
2325
+
search budget when absent. Zero or values above the maximum return
2326
+
`invalid_request` with `details: invalid_file_budget`. The native settings source
2327
+
is owned by the host; resolving preferences performs no writes.
0 commit comments