Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
3001d34
IDE reference: every command of the IDE, 523 rows with what each does…
KubaO Nov 5, 2026
d691df9
IDE: a Title Bar reference page, with the title, the ADMIN badge and …
KubaO Nov 5, 2026
3f5e0aa
docs/.gitignore: Ignore all built sites
KubaO Nov 5, 2026
301d05a
Search: every bold label on an IDE page gets a search entry with a de…
KubaO Nov 5, 2026
349933f
Search: a section headed with a name no longer cancels the kind-word …
KubaO Nov 5, 2026
21d645c
Search: index terms take bracket groups, 'hide [a|the] panel', which …
KubaO Nov 5, 2026
f02323b
IDE: what cannot be customised: the toolbar's buttons, the status bar…
KubaO Nov 5, 2026
46a3748
BUGS-TO-REPORT: clicking the greyed-out Undo or Redo button before an…
KubaO Nov 5, 2026
43837bb
Search: hand marks on the IDE pages for the reader's own words, 210 n…
KubaO Nov 5, 2026
d4e1042
Search: the baseline saved from the build with the hand marks
KubaO Nov 5, 2026
aef5724
bugs/filed: negative-zero-text-win64 goes, #2547 is closed and 64-bit…
KubaO Nov 5, 2026
e581d86
Wisdom: a package goes by the name its landing page gives, so its ext…
KubaO Nov 5, 2026
3c94e20
IDE Options: Show Hidden Members says what it does, checked on BETA 1…
KubaO Nov 5, 2026
1ce1555
Panel Layouts: a floating panel's size, with the three panels that di…
KubaO Nov 5, 2026
549faee
BUGS-TO-REPORT: three IDE defects queued, each with a lane test and a…
KubaO Nov 5, 2026
76b3e16
#2001: ReadOnly is valid only in a class, as Wayne says: the two repr…
KubaO Nov 5, 2026
a4c9590
BUGS-TO-REPORT: five defects from the attribute pass queued with repr…
KubaO Nov 6, 2026
d3bf295
Attributes: every site the compiler accepts and the page did not list…
KubaO Nov 6, 2026
6473b1d
BUGS-TO-REPORT: #Warning and #Error cut their text at a vertical bar …
KubaO Nov 6, 2026
594a88a
svgshot: the capture path needs no Node, so that a Chrome extension c…
KubaO Nov 6, 2026
6fbdf11
svgshot Chrome extension: takes a page in the owner's signed-in Chrom…
KubaO Nov 6, 2026
e805936
svgshot: a clip of one axis takes the picture's span, since Chromium …
KubaO Nov 6, 2026
dfc6578
svgshot extension: chromeshot.mjs trims a capture of the whole window…
KubaO Nov 6, 2026
946de62
svgshot extension: a mark is drawn on whole CSS px, since the owner's…
KubaO Nov 6, 2026
b2afd35
svgshot extension: each take saves <name>.log.txt beside its capture,…
KubaO Nov 6, 2026
c7b3be5
svgshot extension: the six pictures' descriptions and crops follow th…
KubaO Nov 6, 2026
8ca57ef
svgshot: a field whose own text is transparent keeps its placeholder,…
KubaO Nov 6, 2026
018f7ca
svgshot: a closed <select> of appearance: none has no internal paddin…
KubaO Nov 6, 2026
f4575ce
shot_review takes a browser's pictures too, as the owner laid out: an…
KubaO Nov 6, 2026
64d326e
The six GitHub pictures of Building.md, retaken in the owner's Chrome…
KubaO Nov 6, 2026
cb05404
Building: pull requests target main, the production branch, staging b…
KubaO Nov 6, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ indexer/.packages/
# is drawn from, for scripts/svgshot/replay.mjs. Bundles hold the Windows user name.
/.svgshot-bundles/

# The words the Chrome extension masks and no published picture may show, which its panel
# reads from inside its own folder (scripts/svgshot/private-list.mjs).
/scripts/svgshot/private.json

# scripts/shot_review.mjs: the screenshot review's session and its runs' stages
# (scripts/lib/shot-session.mjs), which hold the Windows user name.
/.shot-review/
713 changes: 706 additions & 7 deletions BUGS-TO-REPORT.md

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions WIP.IDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,10 @@ controls or keys, and `docs/Documentation/Authoring.md` (*Formatting conventions
for contributors.

- **UI names** in bold, as the IDE spells them: **Project Explorer**, **Break On All Errors**.
The search reads this bold (`WIP.Search.md`, "Term entries"): a label that is not bold
is not found. A run-in sentence in bold ends in a full stop: as a definition term or at the
start of a list item it still gets its search entry and deep link, but its text is not
taken as a label term.
- **Menu paths** in bold with an arrow: **File → Export Project**.
- **Keys**: `<kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>F</kbd>`, with key names in mixed case and no
spaces around the `+`. Every key is written by name: `<kbd>Enter</kbd>`, `<kbd>F5</kbd>`,
Expand Down
209 changes: 204 additions & 5 deletions WIP.Screenshots.md

Large diffs are not rendered by default.

159 changes: 136 additions & 23 deletions WIP.Search.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,23 @@ Everything needed to continue is in this file and in `eval/`.
**Where it stands.** The design below is in place. No decision is open. The
candidates for further work are under "Next"; the user picks.

**The eval** (`node eval/search_quality.mjs`, ground truth `intent-5`,
10,327 queries): 98.2% at rank 1, 99.1% in the top 10.
**The eval** (`node eval/search_quality.mjs`, ground truth `intent-6`,
11,714 queries): 97.4% at rank 1, 99.1% in the top 10.

| category | hit@1 | n | what it types |
|---|---|---|---|
| bare names | 99.7% | 2,884 | `PaintPicture`, judged by reader intent (tiers) |
| qualified names | 100% | 5,108 | `Printer.Fonts` |
| name and kind | 91.1% | 1,785 | `MaxHeight property` |
| prose | 97.2% | 108 | hand-picked (`late binding`, `immediate window`, `ByVal`) |
| page titles | 97.2% | 142 | `Return Syntax` |
| page plus section | 96.7% | 300 | `DTPicker Properties` |

No bare name is out of tier order, and every prose query's `behind` page is
within the top 3 (22 of 22). Compare categories, not totals, across ground
truths: the name-and-kind set lowers the overall hit@1 (99.7% without it).
| bare names | 99.1% | 2,915 | `PaintPicture`, judged by reader intent (tiers) |
| qualified names | 99.2% | 5,159 | `Printer.Fonts` |
| name and kind | 92.0% | 1,815 | `MaxHeight property` |
| prose | 97.2% | 318 | hand-picked (`late binding`, `immediate window`, `ByVal`) |
| page titles | 95.1% | 223 | `Return Syntax` |
| page plus section | 96.8% | 908 | `DTPicker Properties` |
| labels | 89.6% | 376 | `Copy Path`, an IDE label typed whole ([Term entries](#term-entries)) |

Six bare names are out of tier order, and every prose query's `behind` page is
within the top 3 (42 of 42). Compare categories, not totals, across ground
truths: the name-and-kind set lowers the overall hit@1. The "Known misses"
below were counted on `intent-5` and are older than these figures.

**Known misses (185 at rank 1)**, each recorded where it was diagnosed:
- 158 name-and-kind queries, mostly properties; not diagnosed yet
Expand All @@ -51,25 +53,21 @@ truths: the name-and-kind set lowers the overall hit@1 (99.7% without it).
1. **The 158 name-and-kind misses.** Diagnose them as the whole-title probes
were: group by cause, measure a knob, ship only what makes nothing worse.
93 aren't in the top 50 at all.
2. **Question-shaped queries.** `how do I register a com dll` misses the
index entry: the all-words pass requires `how`, `do` and `I`, and only the
FAQ holds them all. A fix touches the all-words pass, so it needs the
spaced and kinds probes as well as the eval.
3. **The cost of one-letter words.** `a p` takes about 250 ms and a single
2. **The cost of one-letter words.** `a p` takes about 250 ms and a single
letter 80–110 ms, lunr's own work. Cheaper means changing the query, and
so the ranking, for instance not completing a one-letter word
([lunr patches](#lunr-patches)).
4. **More content and index entries**, under the rules below. Open:
3. **More content and index entries**, under the rules below. Open:
`COM interop` (no clear target) and three content gaps: subclassing,
IntelliSense and conditional breakpoints (first find out whether the IDE
has the last two). See
[Known misses and limits](#known-misses-and-limits).
5. **An extra word hides a page.** `memory window`, `history panel`,
4. **An extra word hides a page.** `memory window`, `history panel`,
`registry access`: the all-words pass finds a few pages holding both
words and doesn't fall back, so the page named by the other word never
shows. Entries fixed 20 such queries, but the cause is the pass itself,
as in item 2; a fix there needs the spaced and kinds probes.
6. **Operator-shaped page titles.** `Input #` and `Mid =` miss rank 1
as the question-shaped queries were; a fix there needs the spaced and kinds probes.
5. **Operator-shaped page titles.** `Input #` and `Mid =` miss rank 1
because the query trims its non-word character. Exact names already spell
such characters as word characters (`#If`); whether a whole title can too
needs the title set and the spaced probe.
Expand All @@ -96,6 +94,23 @@ page for words it doesn't contain. So authors mark index entries by hand
don't (stems), but `type char` doesn't match `type character`, and
`register a dll` doesn't match `register dll`: each spelling a reader types
is its own term.
- A term may be written with bracket groups: `hide [a|the] panel` is `hide
panel`, `hide a panel` and `hide the panel`. This is authoring shorthand only:
`parseIndexTerms` (`search.mjs`) writes the terms out before anything else
sees them, so the entries, `phraseKey`, `indexTermKey`, the client and the
replica are as if the terms were written out by hand, and **each spelling a
reader types is still its own term**. Whole words only (`customi[s|z]e` is
refused), two groups at most, no nesting, no empty group or alternative, a
word outside the groups; each fails the build, naming the page and the term
as written. `checkIndexTerms` compares each expanded form, and says which term
it was written as (`indexWritten`, kept on the entry for that message only and
not in the output). In front matter a term that starts with a bracket must be
quoted: unquoted, YAML reads it as a list and the page fails to parse. The
heading attribute (`{: index="hide [a|the] panel" }`) and the code guard leave
brackets and the pipe alone.
- A bold label on an IDE page needs no mark: its page gets an entry for it
([Term entries](#term-entries)). A mark is for the reader's own words, not
for a label, and a label that is a main term gets no entry of its own.
- A term whose stem is a bare name's reorders that name (`declaration` and
`Declare`). A secondary entry can overtake a page that ranks first only on
its own text, so that page takes a main entry for the term too. A one-word
Expand Down Expand Up @@ -724,7 +739,7 @@ a changed ranking. Each set below names the label it counts under.
the replica, so the eval and `probes/kinds.mjs` build the set from the list
the replica searches with.
- **Prose** (`intent-2` for its two expectation changes): the hand-picked
queries in `eval/search_prose_queries.json` (108), each with a
queries in `eval/search_prose_queries.json` (318), each with a
maintainer-judged expected page, matched by path only. The expectations for
`64-bit compilation`, `Fusion`, `symbol index` and `array bounds checks` are
right, so a miss on them is a ranking problem. A query may name
Expand Down Expand Up @@ -951,7 +966,8 @@ requires the kind word and a member's section rarely says "property",
"method" or "event" (`Continue`'s page never says "statement").

`namesTheThing()` tells whether a result matched the name: in `exact` or
`primary`, or every word of it in `title`. For a query naming one thing in
`primary`, or every word of it in `title` of an entry whose `page` matched too
(the thing's own page). For a query naming one thing in
two or more words, if no entry the all-words pass found matched the name, the
pass runs again with the kind words not required (they still score).

Expand All @@ -961,6 +977,17 @@ word optional, the `Mid =` statement page, which never says "function", comes
in on its exact name. The exact-name test alone fell back there, since a
section carries no names, so the title counts as well.

**A section merely headed with the name does not name the thing.** A contributed
package's member page (`TBMANLIB_Diagnostic`'s `AddItem`, `cDialog`'s `ReadOnly`) is
headed with the name, says the kind word, and has no `names` join, so it passed
the title test, was found by the kind-required pass and cancelled the fallback:
`AddItem method` put it first and never reached ComboBox's `AddItem`, which does
not say "method". 42 queries that were first in an older baseline lost rank 1 so.
The title now counts only when the page is titled with the name too (`Mid`'s
section is on the Mid page; the member page is on `DiagnosticResult`'s). Measured
on one index: name and kind 89.1% to 92.0% (1,669 to 1,724 of 1,874 in the
probe), 65 queries better and none worse; the eval 63 better, 0 worse.

**Measured, and rejected** (name-and-kind hit@1 over every symbol written as
its name and kind):
- Kind words never required: 93.9%, but 22 queries worse (`Mid function`,
Expand Down Expand Up @@ -1184,6 +1211,92 @@ The boosts sit in the client beside every other boost, not in
with identical results. Hence one field, with the secondary level encoded
as one more `_`.

### Term entries

**Why.** An IDE page names its controls in bold, and a reader types the name.
Before term entries a title word beat the label: an entry with one query word
in its heading outranked the entry that held the whole label in its text
(`Copy Path` found Diagnostics' `Copy Problems` first, `Select All` found
Finding's `Select All Matches`). `title` has boost 200 and `content` 2, and
nothing rewards adjacent words. Of the 866 bold labels in `docs/IDE` that are
not symbol names, the page that defines or shows the label was first for 30.9%
and in the top 3 for 52.2%. A label is not only a definition term: of the 505
in a defining position, 268 are definition terms, 148 lead a list item and 181
a table row (some are more than one); 572 are in prose only.

**What the build does** (`search.term_entries` in `docs/_config.yml`, the
permalink prefixes; today `/tB/IDE`).
- `termAnchorPlugin` (`render.mjs`) gives an id `term:<slug>` to a definition
term, to a list item that leads with bold and to a table row whose first
cell leads with bold (one word only in capitals; a title ending in `.`, `:`,
`?` or `!` is a run-in sentence). A colon is never in a heading's id
(`kramdownSlug` drops it), so a term can never take a heading's id.
- `termSections` (`search.mjs`) makes an entry of each such block, titled with
the label (bold spans joined by and/or/commas, keys in brackets left out), at
`<page>#term:<slug>`, right after the section that holds it. **The section
keeps its text**: entries are added and none changes, so nothing loses a
word. The id is also the deep link: `:target` is that element.
- `boldLabels` / `settleLabels` make every other bold span of two to four words
a secondary index term of the entry that holds it, unless a heading, a page
title, a term entry or a hand mark already answers it (without that rule 13
page titles lost rank 1). A term entry titled with a main term is dropped:
the hand mark says where the term goes. `cpu-worker.mjs` must pass `labels`
to the main thread, and nothing fails when it does not.
- The client: a term entry never counts as naming the thing in the kind-word
test (`isTermEntry()`; required, or `Continue statement` goes from 1 to
none), and a leading `how do I`, `how to` and the like is dropped
(`QUESTION_LEAD`).
- The generated Keyboard Shortcuts tables put each command in `code`, not bold,
and make no entry: 523 rows, none.
- `symbols.json` is unchanged (`headingsOf()` reads `<hN` only), and the book
prefixes every ` id="`.

**Measured** (BETA tree at 3f5e0aaa, online tree only; the lab's tools are in
`.claude/scratch/ide-docs/search-lab`, not in the repository):

| | entries | raw | gzip |
|---|---|---|---|
| before | 12,251 | 50.94 MB | 11.05 MB |
| with term entries and label terms | 12,766 | 51.95 MB | |

| (866 labels / 373 wordings / 80 held-out) | labels @1 / @3 | wordings @1 / @3 / none | held-out @1 / @3 |
|---|---|---|---|
| before | 30.9% / 52.2% | 124 / 209 / 86 | 19 / 42 |
| term entries, label terms, question lead | 63.4% / 78.4% | 125 / 215 / 79 | 20 / 45 |

`eval/search_quality.mjs` against a baseline made from the same tree: nine
queries worse, one better, none of them a label. The three OLE queries
(`DTPicker.OLEStartDrag`, `MonthView.OLEStartDrag` 2 to 22, `TreeView.OLEDragOver` 21
to 22) are a tie between a heading naming six members and 20 controls' single
`OLEStartDrag` (719.1 against 716.9); new entries move the average title
length and the tie flips, and any change to the entry count can do it again.
`For statement` 9 to 10, `#Else directive` 2 to 3 and `WebView2 control` 4 to 5 are the same
kind of shift. `watches` and `DPI awareness` lost a place to a label and have a hand
mark each. `call stack` lost two and has none (owner): `Inspecting#call-stack` is third,
behind the Debugging page's **CALL STACK** row and a Breakpoints term.

**Rejected**, so that nobody tries them again:

| option | why not |
|---|---|
| Label terms alone, no term entries | no deep link; `DPI awareness` and `Library Symbols` lost rank 1 |
| Term entries for `<dt>` only | misses list items and table rows (`PROCESS`, `Sort Lines Ascending`) |
| Phrase re-rank in the client | 439 queries worse, 412 lost rank 1 (`Default property` 1 to 31) |
| Hand marks for every label | 866 labels, someone must remember each new one |
| A label's words in `title` | BM25 discounts a long title; the term entry does it without the cost |
| Moving the text out of the section | 0.4 MB smaller, and 4 more wordings find nothing (the trap under "Placing a section") |
| Weighing term entries less (document boost) | labels @1 63.5 to 58.7 at 0.7 |
| Whole-title lift for headings only | labels @1 62.2 to 59.5 |
| Synonym table | finds more, ranks no higher, one more hand-kept list |
| Articles left out of index keys | touches `phraseKey` in two copies, undoes a documented rule |
| Filler words optional in the all-words pass | +1 wording for a wider change to the pass |
| `#:~:text=` links in place of ids | more client code; a failed fragment lands at the top |

A hand mark fixes the spelling it names and little else: an unlisted wording is
right first about a third of the time. The labels are fixed by mechanism and
that figure generalises; the wordings are not. A term's id follows its label, so
`term:` URLs are outside the Permanent Links promise.

### Index entry decisions

The rules for writing entries are under "Rules for index entries" above. The
Expand Down
15 changes: 15 additions & 0 deletions WIP.ShotReview.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ Two decisions are made by fixed thresholds, and neither threshold holds for ever
- **The tool commits**, with a default message that can be edited and a button that puts the
default back.
- **One session at a time.**
- **A picture only a person can take is retaken from the tool too** (owner, 2026-11-06): it brings
the extension up to date on disk, opens the page in the default browser, says what to set up, and
takes in the result the person saves. See [Runs](#runs).
- **No code is duplicated between the tool and the command-line tools** (owner): what they
share is moved into modules both call. See [Factoring](#factoring).
- **The server listens on a fixed port, 4180, with `--port`** to choose another (owner,
Expand Down Expand Up @@ -345,6 +348,18 @@ process: `shoot_docs.mjs` is a script with effects at the top level (the registr
hand, ends its IDEs and puts the registry back, as at its normal end. Killing it would skip
that, so the tool offers a kill only after a stop has not ended it, with that warning.

**A browser retake is `chromeshot.mjs --take`**, a run like the others, with `--stage` and
`--events`, so that the tool and the command line reach the same result, and a capture goes
through what `shoot_docs.mjs` does with one: `decidePicture`, `reviewPicture`, the stage, the
verdicts. `runOf` makes any retake of a picture of `chrome/shots.mjs` one, so every Retake button
works unchanged; a retake of those and of the IDE's together is refused, being two tools. It
differs in waiting for a person. Its `run` event has `setup: "browser"` jobs, `await` says what it
waits for and `refused` why a capture was no good, which `runFacts` keeps for the runs page, and
a refusal is no failure: the picture is waited for again. Stop ends the wait at once. A refusal
names what a look at the picture finds late: one theme (which the site then shows in both), no
marks, a dragged rectangle, or another repository, whose crop does not show it. Its verdicts
carry `build: null`, a picture of a browser being of no build of the IDE.

## Factoring

The rule: **the tool decides nothing and writes nothing by code of its own.** It runs the
Expand Down
Loading
Loading