Skip to content

Conversation

Ffinnis
Copy link

@Ffinnis Ffinnis commented Sep 1, 2025

Context

I really want the ability to cancel indexing without disabling it entirely. This usually happens after I’ve been working on a small project and then switch to a large codebase.

Implementation

Add a Cancel button. Show it only when the feature is enabled and indexing is in progress. Stop indexing when the _cancelled variable is set to false.

Screenshots

before after
Снимок экрана 2025-09-01 в 16 01 20 Снимок экрана 2025-09-01 в 16 01 44

How to Test

  • setup indexing
  • start indexing the codebase
  • stop indexing by click on the cancel button
  • Ensure indexing does not restart unless the window is reloaded.

Get in Touch

Discord - ffinnis (Pivo)

Copy link

changeset-bot bot commented Sep 1, 2025

🦋 Changeset detected

Latest commit: bcb4c69

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
kilo-code Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@Ffinnis Ffinnis force-pushed the add-canceling-indexing branch from 587c672 to 45e7c5a Compare September 1, 2025 09:19
@kevinvandijk kevinvandijk self-requested a review September 3, 2025 06:19
@Ffinnis
Copy link
Author

Ffinnis commented Sep 10, 2025

@kevinvandijk please check my PR(

if (this._cancelled) {
// Abort adding more items if cancelled
break
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

all these nested this._cancelled checks within this for loop seem a bit excessive. Isn't the check per block on line 195 enough here?

Copy link
Collaborator

@kevinvandijk kevinvandijk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good overall! I have one question that I would like to see addressed before we can merge this. Just want to verify if all these if's are necessary there!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants