gemini-cli/packages/cli/src/config
Jerop Kipruto 98f3a7066e
refactor: rename `disableDataCollection` to `dataCollectionEnabled` (#1319)
Renames the `disableDataCollection` flag to the more intuitive and positive `dataCollectionEnabled`.

This change improves code clarity by avoiding double negatives and making the purpose of the flag more direct. The logic has been inverted wherever the flag is used to accommodate the new naming convention.

Using a suffix like `"Enabled"` follows a common convention that improves readability. 
- A condition like `if (dataCollectionEnabled)` reads like a natural language sentence ("if data collection is enabled"), which reduces cognitive load.
- Distinguishes the boolean flag (representing a state) from potential functions that would perform an action (e.g., `enableDataCollection()` or `disableDataCollection()`), avoiding ambiguity between checking a value and calling a function.

#750
2025-06-23 21:19:40 +00:00
..
auth.ts {bug} Vertex Auth Support (#1302) 2025-06-23 00:30:58 +00:00
config.integration.test.ts Plumb extension context filenames through for /memory refresh (#1312) 2025-06-22 16:17:05 -07:00
config.test.ts Clearcut logging - initial implementation (#1274) 2025-06-22 14:26:48 +00:00
config.ts refactor: rename `disableDataCollection` to `dataCollectionEnabled` (#1319) 2025-06-23 21:19:40 +00:00
extension.test.ts Stop extension MCPs from hopping into settings. (#1026) 2025-06-13 14:51:29 -07:00
extension.ts Stop extension MCPs from hopping into settings. (#1026) 2025-06-13 14:51:29 -07:00
sandboxConfig.ts Fix seatbelt sandboxing when GEMINI_SANDBOX="" and starting with -s (#1298) 2025-06-22 18:33:29 +00:00
settings.test.ts Clearcut logging - initial implementation (#1274) 2025-06-22 14:26:48 +00:00
settings.ts Add setting enableRecursiveFileSearch to control @-file completion (#1290) 2025-06-22 01:23:35 +00:00