Skip to content

Commit

Permalink
Merge pull request #2043 from continuedev/pe/clear-cache-dialog-updates
Browse files Browse the repository at this point in the history
chore: updated dialog for index rebuilds
  • Loading branch information
Patrick-Erichsen authored Aug 19, 2024
2 parents 0778c2a + ca3e0d5 commit 4bb1846
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions gui/src/components/loaders/IndexingProgressBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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");
Expand Down

0 comments on commit 4bb1846

Please sign in to comment.