feat: add user startup warnings, add home directory check (#3056)

This commit is contained in:
Pyush Sinha
2025-07-05 23:27:00 -07:00
committed by GitHub
parent da9b1baa6e
commit 39e8509452
3 changed files with 124 additions and 1 deletions

View File

@@ -22,6 +22,7 @@ import {
} from './config/settings.js';
import { themeManager } from './ui/themes/theme-manager.js';
import { getStartupWarnings } from './utils/startupWarnings.js';
import { getUserStartupWarnings } from './utils/userStartupWarnings.js';
import { runNonInteractive } from './nonInteractiveCli.js';
import { loadExtensions, Extension } from './config/extension.js';
import { cleanupCheckpoints } from './utils/cleanup.js';
@@ -165,7 +166,10 @@ export async function main() {
}
}
let input = config.getQuestion();
const startupWarnings = await getStartupWarnings();
const startupWarnings = [
...(await getStartupWarnings()),
...(await getUserStartupWarnings(workspaceRoot)),
];
// Render UI, passing necessary config values. Check that there is no command line question.
if (process.stdin.isTTY && input?.length === 0) {