mnaoumov_obsidian-advanced-.../demo-vault/_assets/CodeScriptToolkit/startup.ts
Michael Naumov 715fe7ed5b feat: add demo vault
Add a developer-focused demo vault that shows how Advanced Debug Mode enriches
the DevTools console. Notes are numbered basic to advanced and cover debug mode,
long stack traces (with a Run button that throws through async boundaries), async
long stack traces, long-running-task timeouts, mobile DevTools, debug namespaces,
and every setting. A no-app integration suite keeps the notes in sync with the
PluginSettings surface. The root README documents the three ways to open it.
2026-07-20 09:19:21 -06:00

10 lines
447 B
TypeScript

// Per-vault startup script, run by the universal Demo Vault Helper plugin (via CodeScript
// Toolkit's require) once CodeScript Toolkit is installed and enabled. This is where each
// plugin's demo vault does its own startup setup. Here it just opens the landing note.
const START_NOTE_PATH = '00 Start.md';
const startNote = app.vault.getFileByPath(START_NOTE_PATH);
if (startNote) {
void app.workspace.getLeaf(false).openFile(startNote);
}