Update DocsService.ts

This commit is contained in:
Patrick Erichsen 2025-03-14 14:56:54 -07:00
parent 0156409dac
commit 137d4e48fe

View file

@ -688,7 +688,12 @@ export default class DocsService {
progress: 1,
});
void this.ide.showToast("info", `Successfully indexed ${startUrl}`);
// Only show notificaitons if the user manually re-indexed, otherwise
// they are too noisy, especially when switching embeddings providers
// and we automatically re-index all docs
if (forceReindex) {
void this.ide.showToast("info", `Successfully indexed ${startUrl}`);
}
this.messenger?.send("refreshSubmenuItems", {
providers: ["docs"],