ConnectToCdpOptions.configDirectory?
ConnectToCdpOptions › configDirectory?
Type: string
The vault's **config folder** — Obsidian's per-vault *Override config folder* setting, e.g.'.obsidian-desktop'. Set it to open a vault that keeps its settings somewhere other than .obsidian; without it such a vault opens against .obsidian, which for a vault that has a stale one beside the real folder means opening successfully against the wrong settings.Must start with a dot, must not be the bare dot, and must not contain a path separator — anything else throws before Obsidian launches, since Obsidian would silently substitute
.obsidian. After the vault opens, its actual app.vault.configDir is read back and a mismatch throws ConfigDirectoryFallbackError.Ignored in attach mode (ConnectToCdpOptions.port set), where the vault is opened by the user's own Obsidian under its own config.