The reference request carries no read/write information, so derive it:
- Classify every reference syntactically first — assignment and compound
assignment, ++/--, and ref/out arguments are writes, everything else is a
read. The suffix test only looks past the end of the reference, so the `=`
in `previous = x` does not make the read of `x` look like a write.
- Then ask textDocument/documentHighlight per file, whose Read/Write kinds
override the syntactic answer. Plain Text highlights carry no kind and
leave it standing, so servers without the feature still get a sensible
column. Files have to be opened as text documents for the server to
answer, so results spanning more than 60 files skip this step.
In the panel: a sortable Kind column with read/write badges, All / Reads /
Writes buttons, the kind included in the text filter, and a write count in
the summary line. The kind filter is persisted with the rest of the view
state. Line and Kind columns carry minimum widths that fit their own
headers, which Line previously did not.
Verified against DotRush on a field that is both read and written: the
assignment and the `ref` argument classify as writes, the subscript, the
comparison and the right-hand-side use as reads.
The editor view does not mark writes yet.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>