Skip to content

Commit b48ef15

Browse files
MaxKlessFrozenPandaz
authored andcommitted
fix(core): handle uninstalled nx console case in autoinstall logic (#32673)
(cherry picked from commit 25c2001)
1 parent 855b736 commit b48ef15

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

packages/nx/src/utils/nx-console-prompt.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,15 @@ export async function ensureNxConsoleInstalled() {
1313

1414
const canInstallConsole = canInstallNxConsole();
1515

16+
// If user previously opted in but extension is not installed,
17+
// they must have manually uninstalled it - respect that choice
18+
if (setting === true && canInstallConsole) {
19+
// User had auto-install enabled but extension is missing
20+
// This means they manually uninstalled it
21+
preferences.setAutoInstallPreference(false);
22+
return;
23+
}
24+
1625
// Noop
1726
if (!canInstallConsole) {
1827
return;

0 commit comments

Comments
 (0)