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 9399f16
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: rust/contracts/rust-core-api.md
+36-2Lines changed: 36 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -568,7 +568,7 @@ or removing a command fails until the table changes in the same commit.
568
568
| `workspace.configureIndexing` | Install a process-local, canonical-root indexing policy before workspace consumers run; returns a monotonic revision, effective directory reasons and Git failure state; see `rust/fixtures/workspace/indexing-policy-v1.json` |
569
569
| `workspace.refreshIndexing` | Refresh external Git decisions for a live `root`, `ownerId`, `revision` lease without changing preferences or release tokens; returns lazy `IndexingStatus` |
570
570
| `workspace.filterChanges` | Filter an array of workspace-relative paths, or `{ paths, hiddenFilePatterns }` whose `!` entries turn default exclusions off, against Core's default hidden folders and patterns, including the folders enabled plugins declare; preserve order, spelling, and the empty root path. Native event loss bypasses filtering. Hosts relativize to the most specific explicit watch root and retain explicitly watched files |
571
-
| `workspace.listDirectories` | Return one visible level of children for each requested workspace-relative directory (`""` is the root); missing, hidden, symlinked, or nested-worktree paths are omitted, and each listing reports the nested worktrees it left out. Child directories have `children: []` only when a shallow probe proves them visibly empty; otherwise children remain omitted (unloaded), with no recursive tree allocation. Children list directories first, then names in IDEA's natural file-name order (digit runs compare by value, case-insensitive, `-` next to `_`; fixture `rust/fixtures/workspace/file-name-order-v1.json`) |
571
+
| `workspace.listDirectories` | Return one visible level of children for each requested workspace-relative directory (`""` is the root); missing, hidden, external/cyclic symlink, or nested-worktree paths are omitted; workspace-internal aliases are browsable and each listing reports `linked: true` when reached through an alias, and each listing reports the nested worktrees it left out. Child directories have `children: []` only when a shallow probe proves them visibly empty; otherwise children remain omitted (unloaded), with no recursive tree allocation. Children list directories first, then names in IDEA's natural file-name order (digit runs compare by value, case-insensitive, `-` next to `_`; fixture `rust/fixtures/workspace/file-name-order-v1.json`) |
572
572
| `workspace.orderEntries` | Order natively enumerated directory siblings |
573
573
| `workspace.projectTree.rows` | Say which loaded project tree nodes show as rows, keep the selection on a row that shows, and find the row the top of the view was on, without reading the disk (from `lithe-project-tree`) |
574
574
| `workspace.rowSelection.reduce` | Apply one plain, Cmd/Ctrl or Shift click, or the end of a batch, to the multi-selection of rows of workspace paths and return what a batch acts on (from `lithe-row-selection`) |
@@ -2332,7 +2332,41 @@ Without `projectPage`, its original capped literal-search response is unchanged.
2332
2332
Project pages use path/line continuation inside matching, including across pages
2333
2333
within one file; options and immutable `textOverrides` bind the cursor. There is
2334
2334
no 200-result total ceiling. Each page observes current files; edits before a
2335
-
cursor require a fresh query.
2335
+
cursor require a fresh query. Like Search Everywhere text queries, project pages
2336
+
reuse ready content postings or search the names-only inventory directly; they
2337
+
never synchronously build a full content index before returning the first page.
2338
+
2339
+
`workspace.search` with `countOnly: true` scans the same query, scope, decoding,
2340
+
visibility and unsaved snapshots independently of the loaded page. It returns
2341
+
`{ files, lines, occurrences, fileOccurrences }`: files with at least one content
2342
+
match, matching lines, and every non-overlapping occurrence (including zero-width
2343
+
regex matches). `countPaths` selects at most 200 loaded paths for per-file totals;
2344
+
the map contains only selected matching paths, while the three totals cover the
2345
+
entire query. No previews are retained or returned. The host publishes its first
2346
+
page before starting this cancellable scan, labels counting/failure distinctly,
2347
+
and discards totals when the query, snapshots or watched files change.
2348
+
2349
+
`workspace.search` with `languageSources` discovers relevant language providers
2350
+
without opening documents. Each source has opaque `languageId`, optional
2351
+
`fileExtensions` (with or without a dot) and `fileNames` (including project
2352
+
markers). Core matches case-insensitively against the workspace name inventory
2353
+
and returns sorted unique `{ languages }`. Sources are limited to 1024, each ID
2354
+
to 256 bytes, each source to 1024 selectors and each selector to 1024 bytes.
2355
+
The host reads enabled manifests, starts only relevant servers when symbol
2356
+
search is requested, and queries their standard `workspace/symbol` capability
2357
+
as readiness arrives. Core does not duplicate a language parser or semantic index.
2358
+
2359
+
Search, Search Everywhere and replacement accept query-local
2360
+
`includeGenerated` and `followSymlinks`. Generated output declarations can be
2361
+
included without overriding explicitly hidden names/globs or manual indexing
2362
+
exclusions. Internal links retain lexical result paths; canonical targets must
2363
+
stay inside the workspace and respect target exclusions and delegated roots.
2364
+
Canonical ancestor checks stop cycles. External roots must be opened as workspace
2365
+
roots rather than traversed implicitly. Link-aware indexes are rebuilt on native
2366
+
file events and invalidated on saves, so a physical target change cannot leave
2367
+
an alias stale. Replacement previews deduplicate canonical files to avoid writing
2368
+
one file twice. Directory listings expose internal aliases and `linked`; hosts
2369
+
refresh expanded linked listings when recursive physical-target events arrive.
2336
2370
2337
2371
Search and replacement accept `scopeExpression`: comma-separated relative paths,
2338
2372
include globs and `!`-prefixed exclude globs. `scopePaths` remains supported.
0 commit comments