From ca3e0d58952e86f38c2ed3044d84deee41b90b03 Mon Sep 17 00:00:00 2001 From: Patrick Erichsen Date: Mon, 19 Aug 2024 15:30:43 -0700 Subject: [PATCH] chore: updated dialog for index rebuilds --- gui/src/components/loaders/IndexingProgressBar.tsx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/gui/src/components/loaders/IndexingProgressBar.tsx b/gui/src/components/loaders/IndexingProgressBar.tsx index cfbb63bb3..7446f8df9 100644 --- a/gui/src/components/loaders/IndexingProgressBar.tsx +++ b/gui/src/components/loaders/IndexingProgressBar.tsx @@ -121,7 +121,9 @@ const IndexingProgressBar = ({ function onClick() { switch (indexingState.status) { case "failed": - if (indexingState.shouldClearIndexes) { + // For now, we don't show in JetBrains since the reindex command + // is not yet implemented + if (indexingState.shouldClearIndexes && !isJetBrains()) { dispatch(setShowDialog(true)); dispatch( setDialogMessage( @@ -131,9 +133,8 @@ const IndexingProgressBar = ({ text={ "Your index appears corrupted. We recommend clearing and rebuilding it, " + "which may take time for large codebases.\n\n" + - "Alternatively, you can close this and use the 'Continue: Force Codebase Re-Indexing' " + - "command to attempt a faster rebuild without clearing data, though it may be " + - "less reliable for persistent issues." + "For a faster rebuild without clearing data, press 'Shift + Command + P' to open " + + "the Command Palette, and type out 'Continue: Force Codebase Re-Indexing'" } onConfirm={() => { posthog.capture("rebuild_index_clicked");