A language server never sees what holds a reference solution or generated data: `.cs/build/` (the materialized references), `.cs/cases/` (generated cases with their expected outputs), `.cs/runs/` (the data of runs) and the content root. Both phase 1 servers are Node programs, so `cstudy serve` starts them with `NODE_OPTIONS=--require=<hide_paths.cjs>` and the four directories in `CSTUDY_HIDDEN_DIRECTORIES`; in them, and in every Node process they start, a path in those directories fails as a file that is not there does, whatever the document names. The broker also leaves them out of definition answers and refuses them as library files. A content root that holds the workspace is left out of the list, since the server could not work without it. A server that is not a Node program must keep them out in its own way ([web-ui](web-ui.md#hidden-directories), [ADR 0018](../decisions/0018-editor-code-intelligence.md#phases)).
0 commit comments