Skip to content

Configuration ​

clice reads configuration from clice.toml in the project root, or from .clice/config.toml if the former does not exist. Configuration can also be passed via LSP initializationOptions (JSON format); values from initializationOptions override the config file, and defaults fill in whatever remains unset after the merge.

Configuration is read once, when the server starts; there is no hot reload. When a project's configuration file is saved, created or deleted, the server asks the editor to restart it: VS Code (unless it connects to a server over a socket) and Neovim 0.12 or later restart it on their own; other editors show a diagnostic on the file saying the change applies once clice restarts.

A configuration clice cannot honor is an error: a file that does not parse, a value of the wrong type, a value outside an option's choices, a worker count of zero, a pattern that does not compile, a default_configuration no rule's tag names. The server shows each problem as an error diagnostic on the file and serves nothing of that project until the fixed file is saved; a command-line run names each problem with its place and exits with code 2. A key clice does not know is a warning on the file, and the rest applies. Settings from initializationOptions with an error are left out whole, with the error naming them.

A JSON schema of the whole configuration is published at clice-config.schema.json; editors that validate TOML or JSON against a schema can point at it. The VS Code extension associates it with both files for Even Better TOML, which then completes and checks them; elsewhere a first line #:schema https://docs.clice.io/clice-config.schema.json points taplo, the TOML language server of Zed and Neovim setups alike, at it.

Relative paths and patterns in the file resolve against the directory of the configuration file itself; values passed through initializationOptions resolve against the project root.

Editor Settings ​

Settings an editor passes in initializationOptions take the place of the same settings in the file.

Supported

Editor settings over the file

Rules the editor sends replace the rules of clice.toml

clice.toml gives main.cpp the macro it uses, and the file compiles. An editor that sends its own rules in its settings replaces the file's rules rather than adding to them, so here the macro is gone.

Restarting ​

An edit to the configuration applies when the server starts again.

Supported

Changes restart the server

clice reads clice.toml when the server starts. Saving it makes the server ask the editor to restart it, and the edit applies in the new server

The rule gains the macro while the server runs; once the editor restarted the server, main.cpp compiles with it.

Several Folders ​

Each workspace folder the editor opens is a project of its own, with its own clice.toml, compilation databases and cache directory, as long as it holds a clice.toml or a compile_commands.json (in the folder itself or one of its immediate subdirectories without a clice.toml of their own, where discovery looks). A folder with neither that sits inside another open folder is part of that folder's project instead. Inside a folder, a directory holding its own clice.toml or .clice/config.toml is a project of its own: the folder's project loads no database in it and takes none of its files as default sources or provisional members, though a database of the folder's own that lists them still compiles them there. A directory holding only a database serves, as a project of its own, the files the folder's project does not build. A file opened outside every folder belongs to the nearest directory above it holding a clice.toml or a compile_commands.json (directly or in its build/ directory), which is then served as if it were open, unless a served project loads that database already. A file is compiled by the project whose database lists it; a header without an entry of its own borrows a host from a project whose sources include it, preferring the project whose folder holds it. Workspace symbol search spans every project, and navigation — references, definitions and declarations, call and type hierarchies, implementations — reaches into the projects that declare the symbol in the same file. A file open in the editor answers only through the project serving it, so its unsaved edits are what every query sees.

initializationOptions apply to every project, and a cache directory serves one project: a directory outside the project records the project that first used it, and another project, in this server or a later clice index run alike, falls back to the one its clice.toml names, then to .clice in its folder, and runs without a cache when those are taken too. An absolute cache_dir in initializationOptions therefore goes to the first folder only. The worker counts are the largest any folder asks for at startup. Listing or switching configurations acts on the project of the file the request names — in VS Code, the active editor's — else on the first folder.

Logs ​

Each run of clice serve, clice index and clice lint logs into a directory of its own under logging_dir (.clice/logs in the project by default), named for when it started and its process id: a server's master.log, or a command's index.log or lint.log, beside one log per worker. A server starts its log with the first project it opens — a folder without a compilation database waits until a file of it is opened or a database appears in it — and every other project it opens links to it from its own logging directory. A run removes all but the 20 latest sessions, links among them, never one whose process still runs. A log file past 64 MiB moves to <name>.1.log, replacing the one there, and the new file starts by saying so.

The logs keep info and above whatever the log level; CLICE_LOG_LEVEL in the environment (trace, debug, info, warn, error, fatal or off) sets what reaches stderr. An editor shows the server's, from info (the Neovim configuration asks for warn); a command prints warnings and errors as warning: … and error: …. With CLICE_LSP_TRACE=1, a server an editor starts also writes every LSP message it receives (<-) and sends (->), with the time, to trace.log in its session directory, which moves aside past 64 MiB as a log does. An editor passes these variables to the server it starts (VS Code: clice.serverEnv). Paths in a project are written relative to its root; a server serving several projects writes them relative to the directory holding them all, the folder's name first; a worker's own log writes them in full. To report a problem, attach the session directory: master.log says what the server did and how long it took, and a crash's stack trace is in the log of the process that crashed; master.log quotes a worker's, with the last lines the worker logged.

Variable Substitution ​

The following variable is supported in string values:

VariableDescription
${workspace}The project's root directory

Top Level ​

Top-level options, written before any section.

OptionTypeDefault
default_configurationstring""

The build configuration to fall back on when neither --configuration nor a persisted selection names one: a tag declared on rules; a name no rule declares is an error. Unset, the first declared tag is used.

[project] ​

OptionTypeDefault
cache_dirstring""

Directory for the unified on-disk cache (PCHs, PCMs and the index). Empty defaults to ${workspace}/.clice, which keeps itself out of version control and backups via generated .gitignore and CACHEDIR.TAG markers (a .clice/config.toml stays visible to Git; backup tools honoring CACHEDIR.TAG skip the whole directory); an explicitly configured directory is never marked. The resolved path is printed at startup.

OptionTypeDefault
logging_dirstring""

Directory for log files; empty derives ${cache_dir}/logs. Each server, clice index and clice lint run logs into a subdirectory of its own; the 20 latest are kept.

OptionTypeDefault
enable_indexingbooltrue

Build the background index that serves cross-TU features (find references, workspace symbols, ...).

OptionTypeDefault
standard_library_instantiationsboolfalse

Index what the standard library's own template instantiations and macros resolve inside the library — the comparator std::sort calls, the destructor std::vector runs — so references and the call hierarchy reach those places. Off by default: they are library internals, and walking them costs indexing time and space. Applies to the units indexed after a change.

OptionTypeDefault
index_library_bodiesboolfalse

Index the bodies of the functions system headers define — the names std::vector::push_back uses inside — so references and the call hierarchy reach a library's internals. Off by default: only a reader of the library's own code asks about them, a header opened in the editor is indexed whole all the same, and walking them in every unit costs indexing time and space. Applies to the units indexed after a change.

OptionTypeDefault
skip_header_bodiesbooltrue

Skip the bodies of the functions in the headers an open file includes at its top, as clangd does, but those of templates forwarding their arguments (make_unique) and of constexpr and auto functions, which clang always parses, and those of a precompiled header the build declares, which the file loads as the build compiled it. The file opens and rebuilds after an edit several times faster and holds less memory; the price is the errors and warnings inside those bodies, a header template's instantiated from the file among them, and whether a declaration is unused, which show only when the background index has compiled the file as it is saved. The background index and every command but clice inspect still compile the bodies.

OptionTypeDefault
readonlystring"off"

Read-only serving for open files: "off" targets a full AST for every open file — builds are pulled by the first request that needs them, with the index answering in the meantime; "on" builds no preamble PCH — reads serve from the index alone (a cold file jumps the indexing queue), while completion and signature help still compile on demand without a preamble; "auto" starts every file as "on", switches it to "off" at the first edit intent (edit, completion, signature help, context switch), and falls back to "off" for a file the index cannot serve. Feature routing always answers from the best source currently available.

OptionTypeDefault
idle_timeout_msuint323000

Idle delay in milliseconds before background indexing starts.

OptionTypeDefault
test_hooksboolfalse

Enable the clice/internal test hooks used by the test harness.

OptionTypeDefault
stateful_worker_countuint322

Number of stateful workers — they hold ASTs in memory and serve queries (hover, semantic tokens, ...); at least 1.

OptionTypeDefault
max_resident_documentsuint320

How many open documents keep their AST in the stateful workers. Past it, the document asked about least recently gives its AST up: it answers what its last compile's answers cover, and compiles again for the rest. 0 means one per GB of memory, at least 8 and at most 32, which is also the default.

OptionTypeDefault
stateless_worker_countuint32—

Number of stateless workers started — they handle ephemeral tasks (PCH/PCM builds, completion, signature help, background indexing) — and the most that background indexing keeps busy at once; defaults to half the machine's physical cores, at least 2. At least 1.

OptionTypeDefault
min_stateless_worker_countuint321

Lower bound for dynamic stateless-worker scaling; at least 1.

OptionTypeDefault
max_stateless_worker_countuint32—

Upper bound for dynamic stateless-worker scaling, which only interactive work that finds every worker busy reaches; 0 means the machine's physical cores, which is also the default.

[tracker] ​

clice looks at files on disk in the background to notice changes made outside the editor (a git checkout, a regenerated compile_commands.json, an agent or a code generator writing files), so the server picks them up without a restart. A workspace file is also looked at before every request that depends on it; headers the toolchain installed are looked at every few minutes, whenever their environment is updated, and at every save. Setting workspace_poll_seconds to 0 turns the background polling off.

OptionTypeDefault
workspace_poll_secondsuint3230

Longest interval in seconds between two background looks at a workspace file: the interval doubles at every look that finds the file unchanged, up to this. 0 disables background polling, compilation databases included.

[diagnostics] ​

The [diagnostics] section controls the diagnostics clice publishes for open files.

OptionTypeDefault
clang_tidybooltrue

Run clang-tidy on open files and offer its fixes, with the checks the nearest .clang-tidy configures (a small default set without one). Checks too slow for an editor, and those unreliable on code being edited, are left out; files clice lint does not check get none. NOLINT comments also silence compiler warnings only while this runs.

OptionTypeDefault
suppressarray of string[]

Diagnostics open files do not show, by their code: a compiler warning's option (-Wunused-variable), clang's name for any other diagnostic (err_undeclared_var_use), a clang-tidy check, or one of clice's own warnings (toolchain-query-failed). For code clang gets wrong: everything else works on the file as before, and clice lint still reports them.

[documentation] ​

The [documentation] section controls how clice reads documentation comments.

OptionTypeDefault
formatstring"doxygen"

How documentation comments are read, wherever they show (hover, completion, signature help, clice query): "doxygen" reads Doxygen's commands (@brief, @param, @return, ...) and the Markdown Doxygen allows, along with the GTK-Doc and kernel-doc conventions; "plain" shows a comment as written.

OptionTypeDefault
inheritbooltrue

An overriding method without a documentation comment shows the one of the method it overrides.

[hover] ​

The [hover] section controls how hover cards render.

OptionTypeDefault
show_akabooltrue

Show what a type alias stands for, e.g. size_type is unsigned long.

OptionTypeDefault
max_membersuint3220

Maximum number of members the definition of a hovered class or enum lists: data members and member types, or enumerators; member functions are left out. 0 shows the declaration alone.

OptionTypeDefault
layoutbooltrue

Show how the compiler lays out a class or a field wherever it is hovered: size, alignment, a field's offset, and the padding.

[document_symbols] ​

The [document_symbols] section controls what the outline of a file lists.

OptionTypeDefault
macrosbooltrue

List the #defines the file writes; an include guard's never lists.

OptionTypeDefault
localsbooltrue

List what a function's body declares: its variables, types and lambdas, under the function.

[inlay_hints] ​

The [inlay_hints] section controls which inlay hints the server produces and how long they may grow. Changes take effect after a server restart; no recompile is involved.

OptionTypeDefault
enabledbooltrue

Master switch: false disables all inlay hints.

OptionTypeDefault
parametersbooltrue

Parameter name hints at call sites, e.g. draw(width: 800, height: 600).

OptionTypeDefault
mutable_referencesbooltrue

& marking an argument passed by mutable reference, e.g. mutate(&value: v).

OptionTypeDefault
prefixed_namesboolfalse

Parameter name hints for an argument named like the parameter without its one-letter prefix, e.g. param passed to aParam.

OptionTypeDefault
single_letter_namesboolfalse

Parameter name hints for a function taking one parameter whose name is a single letter, e.g. push_back(x: 1).

OptionTypeDefault
deduced_typesbooltrue

Deduced type hints for auto variables, structured bindings, init-captures and auto parameters, the type a decltype names, and deduced return types.

OptionTypeDefault
spelled_typesboolfalse

Deduced type hints for a variable whose initializer already names its type, e.g. static_cast<long>(x), Widget{1, 2} or std::make_unique<Widget>().

OptionTypeDefault
deduced_template_argumentsbooltrue

The template arguments class template argument deduction found, e.g. <int, double> after pair in std::pair pair(1, 2.5).

OptionTypeDefault
designatorsbooltrue

Field designator hints in aggregate initialization, e.g. .x= and .y= in Point{1, 2}.

OptionTypeDefault
array_indicesboolfalse

Array index designator hints in aggregate initialization, e.g. [0]= and [1]= in int pair[2] = {1, 2}.

OptionTypeDefault
block_endboolfalse

// name after the closing brace of a function, type or control flow block, linking to its start.

OptionTypeDefault
namespace_endbooltrue

// namespace name after the closing brace of a namespace, linking to its start.

OptionTypeDefault
endifbooltrue

// condition after an #endif, the condition of the #if it closes, linking to it.

OptionTypeDefault
default_argumentsboolfalse

The default arguments a call omitted.

OptionTypeDefault
min_block_linesuint3210

The height in lines, both ends included, from which a block, namespace or conditional gets a hint at its end.

OptionTypeDefault
max_length.typesuint3232

Maximum length in characters of a deduced type or of deduced template arguments; 0 means no limit. The template arguments that do not fit become …, e.g. tuple<int, string, …>; a type whose outermost name does not fit is not shown.

OptionTypeDefault
max_length.default_argumentsuint3232

Maximum length in characters of the omitted default arguments; 0 means no limit. One too long becomes …, and the list is cut with … where it no longer fits.

OptionTypeDefault
max_length.block_enduint3260

Maximum length in characters of a block end or namespace end label, cut with … past it; 0 means no limit.

OptionTypeDefault
max_length.endifuint3260

Maximum length in characters of an #endif condition, cut with … past it; 0 means no limit.

[semantic_tokens] ​

The [semantic_tokens] section controls what the semantic tokens hold and the names their kinds and modifiers are sent by. The names are announced when the editor connects, so changes take effect after a server restart.

OptionTypeDefault
lexicalbooltrue

Send the tokens an editor's own syntax highlighting colors as well: keywords, literals, comments, operators, preprocessor directives. When off, only what syntax cannot tell is sent: names by what they name, overloaded and declarator operators, template brackets, format specifiers, and the tokens of preprocessor-inactive code, kindless.

OptionTypeDefault
kindstable of string{}

The names a client or theme expects for clice's token kinds, as field = "property"; an empty name drops the kind, whose tokens are then not sent, and kinds given one name merge. Read when the server starts.

OptionTypeDefault
modifierstable of string{}

The names a client or theme expects for clice's token modifiers; an empty name drops the modifier, and modifiers given one name merge. Read when the server starts.

[code_completion] ​

The [code_completion] section controls completion item assembly.

OptionTypeDefault
argumentsstring"placeholders"

What completing a call or a template inserts after the name: "placeholders" its parentheses or angle brackets with a placeholder per parameter, "delimiters" the empty parentheses or brackets with the cursor between them, "none" the name alone. It applies to functions, function-like macros, variables holding a lambda and class, alias and variable templates; an overload set listed as one item takes the delimiters. Nothing is added where the arguments are written already or the name is not called, as when taking a function's address. Clients without snippet support get the parentheses of a call alone. An Objective-C message takes a placeholder or an empty tab stop after each piece of its selector, its first piece alone with "none" or without snippet support.

OptionTypeDefault
bundle_overloadsbooltrue

Collapse an overload set into a single completion item.

OptionTypeDefault
statement_snippetsboolfalse

Complete statements such as if and for as snippets with placeholders for their parts; otherwise only the keyword is inserted. Ignored for clients without snippet support.

OptionTypeDefault
dot_to_arrowbooltrue

After . on a pointer, list the members -> reaches and turn the . into -> when one is chosen.

OptionTypeDefault
all_scopesbooltrue

Where an unqualified name is being typed, also offer the project's names of other namespaces it matches, inserting the qualifier they need; one in several namespaces is offered once per namespace. Names the file reaches already are offered as they are; for the others see insert_includes and insert_imports. The names of other namespaces come from the index.

OptionTypeDefault
insert_includesbooltrue

With all_scopes, also offer names declared, and macros defined, in headers the file does not include yet, adding the #include of the header that holds them.

OptionTypeDefault
insert_importsbooltrue

With all_scopes, also offer names exported by modules the file does not import yet, adding the import. Where the project builds the std module, a file that imports modules or is a module unit takes the standard library's names with import std; rather than their headers.

OptionTypeDefault
limituint32100

Maximum number of completion items, the best ranked; 0 means no limit. A list cut short is marked incomplete, so the editor asks again as you type.

[signature_help] ​

The [signature_help] section controls what the signature help popup shows.

OptionTypeDefault
documentationbooltrue

Show the called function's documentation comment.

[references] ​

The [references] section controls what find references answers.

OptionTypeDefault
limituint322000

Maximum number of locations a references request answers with; 0 means no limit. A reply cut short keeps the locations in the file it is asked from before any other. clice query references lists every one.

[[rules]] ​

A rule names files by pattern and says where they take their compile commands from and how those commands are edited. Every rule matching a file applies, in declaration order: an earlier rule's databases rank first among the file's candidates, the first matching rule with a default_command supplies the command of a file without an entry, append and remove accumulate with a later remove cancelling an earlier append, and index = false on any matching rule keeps the file out of the index. A rule carrying a configuration tag applies only while that configuration is active; the distinct tags form the configuration menu.

OptionTypeDefault
patternsarray of string[]

Glob patterns selecting the files this rule applies to. A relative pattern is anchored at this configuration file's directory (.. segments allowed), or at the project root for a rule passed through initializationOptions; an absolute pattern or one starting with ** matches the file's absolute path. * matches within a path segment, ? a single character, ** any number of segments, {a,b} alternatives, [0-9] a character range, [!...] a negated range. Omitted means every file.

OptionTypeDefault
configurationstring""

Build configuration tag. A tagged rule applies only while that configuration is active; an untagged rule always applies. The distinct tags form the configuration menu; --configuration, the persisted selection and default_configuration pick the active one, in that order.

OptionTypeDefault
compile_commandsarray of string[]

Compilation databases, in priority order: a compile_commands.json or a directory containing one, relative to this configuration file (to the project root for a rule passed through initializationOptions). All of them load, and every entry applies to its own file whatever the patterns say; the patterns and the order decide which entry a file present in several databases gets by default. A rule without patterns names the project's databases. When no rule declares a source, every compile_commands.json in the project root and its immediate subdirectories loads, and so do the ones in the directories above a file when it is opened; a directory below the root with a clice.toml or .clice/config.toml of its own is another project, and none in it loads.

OptionTypeDefault
resolve_symlinksboolfalse

Whether builds are told apart by the real paths this rule's compile_commands resolve to, through symlinks and Windows junctions, rather than by the configuration's name: for a build system that selects a build by pointing a link at its directory. Each real path keeps an index of its own, and when the link is pointed elsewhere the server asks to be restarted on that build's index, which still holds what an earlier session indexed there. A configuration whose rules differ from this configuration's only in naming exactly those databases directly shares its index. The index of a build no longer used stays in the cache directory until deleted.

OptionTypeDefault
default_commandstring or array of string""

The compile command for matching files without a database entry, without the source file: a string tokenized like a shell command line, or an argv array. It runs from the directory of the configuration file it was read from (the project root for a rule passed through initializationOptions), and the matching source files on disk join the background index (unless the rule turns index off) — enumerated at startup and again on every workspace poll, so a file created later compiles when opened and joins the index within a poll period. A file clang has no language for (an Arduino .ino, an extensionless tool) is a source only when the command forces a language (-x c++) and a pattern names its suffix (*.ino) or the file itself. Omitted means none.

OptionTypeDefault
appendarray of string[]

Compilation flags appended for matching files, e.g. ["-std=c++20", "-DNDEBUG"].

OptionTypeDefault
removearray of string[]

Compilation flags removed for matching files, e.g. ["-Wall"]. A flag with a value removes that value (-DDEBUG), the next element being a separate value as on a command line; one with * for its value (-I*, ["-include", "*"]), or without one at the end of the list (["-include"]), removes every value; a * right after a flag's name removes every flag of its kind spelled with that prefix (-W* takes -Wall and -Wextra too).

OptionTypeDefault
query_toolchainbooltrue

Whether clice runs the compiler of matching files' commands to ask how it compiles them: its target, standard library and system headers, predefined macros and default language standard. false runs no compiler: clice's own clang reads the command as written, with clang's defaults for the compiler's name. Any matching rule saying false wins.

OptionTypeDefault
indexbooltrue

Whether matching translation units join the background index. false keeps them out; they still compile when opened and still host the headers they include. A module unit, or the unit writing a precompiled header, is indexed all the same by the build of its module or header, for the files reading it. Any matching rule saying false wins.

OptionTypeDefault
lintbooltrue

Whether clice lint checks matching files. false keeps them out: their findings are dropped and a translation unit they head is not parsed, unless --index needs it for the index. Files outside the project are never checked. Any matching rule saying false wins.

OptionTypeDefault
formatbooltrue

Whether clice format formats matching files. false keeps them out. Files outside the project are never formatted. Any matching rule saying false wins.

Example ​

toml
[[rules]]
compile_commands = ["build"]
append = ["-std=c++23"]

[[rules]]
patterns = ["test/**"]
append = ["-DTEST_MODE"]

Two build directories as switchable configurations, and a project without a compilation database:

toml
default_configuration = "debug"

[[rules]]
configuration = "debug"
compile_commands = ["build/debug"]

[[rules]]
configuration = "release"
compile_commands = ["build/release"]
toml
[[rules]]
patterns = ["src/**", "include/**"]
default_command = "arm-none-eabi-gcc -std=c23 -mcpu=cortex-m4 -Iinclude"

Rules in Practice ​

Each example shows what a rule does to the files it matches.

Supported

Files without a database

Files a rule matches compile with its default command, and files created later join the index

src/main.cpp compiles under the rule's command, with no note that the command was guessed. A file created while the server runs compiles the same way at once and is indexed at the next look at the disk.

Supported

Databases in priority order

A file several databases list takes its command from the first one, and the others stay on offer as contexts

Database a lists main.cpp with -DFROM_A; database b lists it with -DFROM_B and also lists other.cpp. main.cpp compiles with the command from a and can be switched to the one from b, while other.cpp takes its command from b.

Supported

Patterns start at clice.toml

A relative pattern matches paths under the directory of the clice.toml that declares it

The rule appends -DFEATURE to the files under src/: src/main.cpp compiles, while other.cpp, beside clice.toml, misses the macro.

Supported

Remove flags from commands

A rule takes flags out of a file's command, and a later rule's remove cancels an earlier append

The database gives main.cpp both -DBROKEN and -include prefix.h, which the first rule removes, so it compiles. For other.cpp the second rule appends -DFEATURE and the third removes it again.

Switching Configurations ​

The configuration tags on rules form a menu, and one tag is active per project; untagged rules always apply. The active one is, in priority order, the --configuration <tag> argument (accepted by clice serve, clice index, clice lint and clice inspect), the persisted selection, or default_configuration. A selection is made from the editor — in VS Code the language status of a C or C++ file (the {} beside its language mode) names the active configuration and opens the menu, other clients call clice/switchConfiguration — and is stored in state.json under cache_dir, never in clice.toml; it takes effect when the server is started again, which the server asks the editor to do, as for an edited configuration file. Each configuration keeps its own index under cache_dir, so switching back and forth never reindexes what a configuration already indexed. The tags are also how the batch commands choose an index: clice index --configuration release builds the release index, and clice index stats reports the index of the configuration it resolves the same way.

Some build systems choose a build by pointing a symlink at its directory instead. A rule with resolve_symlinks = true tells builds apart by the real path its compile_commands resolve to, through symlinks and Windows junctions: each build the link points to keeps an index of its own, the running server asks to be restarted on that build's index when the link is pointed elsewhere, and a build pointed at again finds its index where it left it. A configuration whose rules differ only in naming that build's databases directly shares its index. VS Code names the build beside the configuration (active → debug): the configuration sharing its index, else the last two directories of its path. An index is kept until deleted: each is a directory under the index directory in cache_dir, named after the configuration and the last directories of the build's path.

Supported

One command per board

Tagged rules form a menu of build configurations, and a switch applies when the server starts again

Each board's rule gives its own default command, and board-a is the default configuration. Under it the header's BOARD_B branch is inactive; after switching to board-b and restarting, the BOARD_A branch is.

Supported

One index per linked build

A rule resolving symlinks keeps an index for each build its link points to, and follows the link when it moves

The build system points out/current at the build it chose. Pointed at out/debug, which the debug configuration names too, the server switches to that configuration's index; pointed back at out/release, the release index serves again and nothing is indexed anew.