Update DocsService.ts
This commit is contained in:
parent
0156409dac
commit
137d4e48fe
1 changed files with 6 additions and 1 deletions
|
|
@ -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"],
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue