This commit is contained in:
Masahiro Honma 2026-04-21 11:34:39 +00:00 committed by GitHub
commit c4990f5a59
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -590,7 +590,9 @@ export async function loadCliConfig(
const trimmedPath = p.trim();
if (!trimmedPath) return false;
try {
return resolveToRealPath(trimmedPath) !== realCwd;
// Safely check if paths differ, ignoring OS case insensitivity
const realIdePath = resolveToRealPath(trimmedPath);
return path.relative(realCwd, realIdePath) !== '';
} catch (e) {
debugLogger.debug(
`[IDE] Skipping inaccessible workspace folder: ${trimmedPath} (${e instanceof Error ? e.message : String(e)})`,