Skip to content

Commit 1950ed5

Browse files
committed
update agents.md
1 parent 49d7189 commit 1950ed5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎agents.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ across calls) — keep the caller's stable string instead.
330330
331331
To add a new advanced setting:
332332
333-
- add definition in cmd/gen-settings.ts
333+
- add definition in cmd/gen-settings.ts (and cmd/ng-gen-settings.ts). A string setting with a fixed set of values gets `.enum([...])`, plus `.emptyMeans("...")` when empty is allowed: the docs list the values, the dialog and the command palette offer them, and loading replaces anything else with the default
334334
- run "bun cmd/gen-code.ts" (or "bun cmd/gen-settings.ts") to regenerate src/Settings.h and src/Settings.cpp (it also re-emits the settings docs)
335335
336336
## Adding a new command

0 commit comments

Comments
 (0)