diff --git a/src/commands/doctor-config-flow.ts b/src/commands/doctor-config-flow.ts index e59ab7e18c1..66baf8d350a 100644 --- a/src/commands/doctor-config-flow.ts +++ b/src/commands/doctor-config-flow.ts @@ -58,13 +58,16 @@ export async function loadAndMaybeMigrateDoctorConfig(params: { doctorFixCommand, }); ({ cfg, candidate, pendingChanges, fixHints } = legacyStep.state); - const pluginLegacyIssues = findLegacyConfigIssues( - snapshot.parsed, - snapshot.parsed, - listPluginDoctorLegacyConfigRules({ - pluginIds: collectRelevantDoctorPluginIds(snapshot.parsed), - }), - ); + const pluginLegacyIssues = + snapshot.parsed === snapshot.sourceConfig + ? [] + : findLegacyConfigIssues( + snapshot.parsed, + snapshot.parsed, + listPluginDoctorLegacyConfigRules({ + pluginIds: collectRelevantDoctorPluginIds(snapshot.parsed), + }), + ); const seenLegacyIssues = new Set( snapshot.legacyIssues.map((issue) => `${issue.path}:${issue.message}`), );